Build self-contained Windows JAR release
This commit is contained in:
@@ -30,13 +30,14 @@ class BuildPortabilityTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
void launch4jOnlyBelongsToTheWindowsProfile() throws Exception {
|
||||
void launch4jRequiresAnExplicitWindowsPackageProfile() throws Exception {
|
||||
Document pom = parsePom();
|
||||
Element project = element(pom, "project");
|
||||
assertFalse(hasPlugin(directChild(project, "build"), "launch4j-maven-plugin"));
|
||||
|
||||
Element windowsProfile = profile(project, "windows-package");
|
||||
assertEquals("Windows", childText(directChild(directChild(windowsProfile, "activation"), "os"), "family"));
|
||||
Element property = directChild(directChild(windowsProfile, "activation"), "property");
|
||||
assertEquals("windows.package", childText(property, "name"));
|
||||
assertTrue(hasPlugin(directChild(windowsProfile, "build"), "launch4j-maven-plugin"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user