-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: alias settings not being properly applied (#1686)
* test: make sure Alias tests cover all fields * fix: enablePreview is now treated the same as other boolean options * fix: not all alias settings were properly applied This fixes for example the issue where setting the "java" option didn't actually do anything. * test: added bunch of tests for `ProjectBuilder` These tests the main ways a project can be built: from a source file, from a JAR or from a GAV. In all three cases we also test their options being overridden by aliases. * fix: make sure resource strings use proper path separators * fix: make sure changes to System.properties are always reset
- Loading branch information
Showing
13 changed files
with
575 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
//REPOS dummy=http://dummy | ||
//DEPS dummy.org:dummy:1.2.3 | ||
|
||
//SOURCES Two.java | ||
//SOURCES nested/*.java | ||
|
||
//FILES res/resource.properties renamed.properties=res/resource.properties | ||
//FILES META-INF/application.properties=res/resource.properties | ||
|
||
//COMPILE_OPTIONS --enable-preview --verbose | ||
//RUNTIME_OPTIONS --add-opens java.base/java.net=ALL-UNNAMED | ||
//NATIVE_OPTIONS -O1 -d | ||
|
||
//JAVA 11+ | ||
//MAIN mainclass | ||
//MODULE mymodule | ||
//DESCRIPTION some description | ||
//GAV example.org:alltags:1.2.3 | ||
//CDS | ||
//PREVIEW | ||
//MANIFEST one=1 two=2 three=3 | ||
//JAVAAGENT | ||
|
||
public class alltags { | ||
public static void main(String... args) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.