mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8049367: Modular Run-Time Images
Co-authored-by: Alan Bateman <alan.bateman@oracle.com> Co-authored-by: Alex Buckley <alex.buckley@oracle.com> Co-authored-by: Bradford Wetmore <bradford.wetmore@oracle.com> Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com> Co-authored-by: James Laskey <james.laskey@oracle.com> Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com> Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com> Co-authored-by: Magnus Ihse Bursie <magnus.ihse.bursie@oracle.com> Co-authored-by: Mandy Chung <mandy.chung@oracle.com> Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com> Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com> Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com> Reviewed-by: jlahoda, ksrini
This commit is contained in:
parent
f141ae6666
commit
8bc2b3ff3a
80 changed files with 2575 additions and 2861 deletions
|
@ -35,6 +35,7 @@
|
|||
import static util.OptionTestUtil.assertEquals;
|
||||
import static util.OptionTestUtil.checkFilesFound;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
|
@ -218,20 +219,20 @@ public class OptionDecoding {
|
|||
|
||||
// Test input paths
|
||||
static void testSearchPaths() {
|
||||
|
||||
List<String> i, x, iF, xF;
|
||||
i = x = iF = xF = new ArrayList<>();
|
||||
|
||||
SourceLocation dir1 = new SourceLocation(Paths.get("dir1"), i, x, iF, xF);
|
||||
SourceLocation dir2 = new SourceLocation(Paths.get("dir2"), i, x, iF, xF);
|
||||
String dir1_PS_dir2 = "dir1" + File.pathSeparator + "dir2";
|
||||
|
||||
Options options = Options.parseArgs("-sourcepath", "dir1:dir2");
|
||||
Options options = Options.parseArgs("-sourcepath", dir1_PS_dir2);
|
||||
assertEquals(options.getSourceSearchPaths(), Arrays.asList(dir1, dir2));
|
||||
|
||||
options = Options.parseArgs("-modulepath", "dir1:dir2");
|
||||
options = Options.parseArgs("-modulepath", dir1_PS_dir2);
|
||||
assertEquals(options.getModuleSearchPaths(), Arrays.asList(dir1, dir2));
|
||||
|
||||
options = Options.parseArgs("-classpath", "dir1:dir2");
|
||||
options = Options.parseArgs("-classpath", dir1_PS_dir2);
|
||||
assertEquals(options.getClassSearchPath(), Arrays.asList(dir1, dir2));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue