Lines 285-291
Link Here
|
285 |
ArrayList paths = new ArrayList(Main.DEFAULT_SIZE_CLASSPATH); |
285 |
ArrayList paths = new ArrayList(Main.DEFAULT_SIZE_CLASSPATH); |
286 |
try { |
286 |
try { |
287 |
(new Main(new PrintWriter(System.out), new PrintWriter(System.err), true)). |
287 |
(new Main(new PrintWriter(System.out), new PrintWriter(System.err), true)). |
288 |
processPathEntries(Main.DEFAULT_SIZE_CLASSPATH, paths, classpathInput, null /* customEncoding */, false /* isSourceOnly */, true /* rejectDestinationPathOnJars*/); |
288 |
processPathEntries(Main.DEFAULT_SIZE_CLASSPATH, paths, classpathInput, null /* customEncoding */, true /* isSourceOnly */, false /* rejectDestinationPathOnJars*/); |
289 |
} catch (InvalidInputException e) { |
289 |
} catch (InvalidInputException e) { |
290 |
// e.printStackTrace(); |
290 |
// e.printStackTrace(); |
291 |
if (expectedError == null) { |
291 |
if (expectedError == null) { |
Lines 5048-5067
Link Here
|
5048 |
"incorrect destination path entry: " + cp); |
5048 |
"incorrect destination path entry: " + cp); |
5049 |
} |
5049 |
} |
5050 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=161996 |
5050 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=161996 |
5051 |
public void _test127_classpath() { |
5051 |
public void test127_classpath() { |
|
|
5052 |
String jarFile = OUTPUT_DIR + File.separator + "[squarebracket].jar"; |
5052 |
runClasspathTest( |
5053 |
runClasspathTest( |
5053 |
OUTPUT_DIR + File.separator + "[squarebracket].jar", |
5054 |
jarFile, |
5054 |
new String[] { |
5055 |
new String[] { |
5055 |
"[squarebracket].jar", null, null, |
5056 |
jarFile, null, null, |
5056 |
}, |
5057 |
}, |
5057 |
null); |
5058 |
null); |
5058 |
} |
5059 |
} |
5059 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=161996 |
5060 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=161996 |
5060 |
public void _test128_classpath() { |
5061 |
public void test128_classpath() { |
|
|
5062 |
String jarFile = OUTPUT_DIR + File.separator + "[square][bracket].jar"; |
5061 |
runClasspathTest( |
5063 |
runClasspathTest( |
5062 |
OUTPUT_DIR + File.separator + "[square][bracket].jar", |
5064 |
jarFile, |
5063 |
new String[] { |
5065 |
new String[] { |
5064 |
"[square][bracket].jar", null, null, |
5066 |
jarFile, null, null, |
5065 |
}, |
5067 |
}, |
5066 |
null); |
5068 |
null); |
5067 |
} |
5069 |
} |
Lines 5113-5137
Link Here
|
5113 |
null); |
5115 |
null); |
5114 |
} |
5116 |
} |
5115 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=161996 |
5117 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=161996 |
5116 |
public void _test134_classpath() { |
5118 |
public void test134_classpath() { |
|
|
5119 |
String jarFile = OUTPUT_DIR + File.separator + "[squarebracket].jar"; |
5117 |
runClasspathTest( |
5120 |
runClasspathTest( |
5118 |
OUTPUT_DIR + File.separator + "[squarebracket].jar[~**/internal/*][-d dir]", |
5121 |
jarFile + "[~**/internal/*][-d " + OUTPUT_DIR + "]", |
5119 |
new String[] { |
5122 |
new String[] { |
5120 |
"[squarebracket].jar", "{pattern=**/internal/* (DISCOURAGED)}", "dir", |
5123 |
jarFile, "{pattern=**/internal/* (DISCOURAGED)}", OUTPUT_DIR, |
5121 |
}, |
5124 |
}, |
5122 |
null); |
5125 |
null); |
5123 |
} |
5126 |
} |
5124 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=161996 |
5127 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=161996 |
5125 |
public void _test135_classpath() { |
5128 |
public void test135_classpath() { |
|
|
5129 |
String jarFile = OUTPUT_DIR + File.separator + "[square][bracket].jar"; |
5126 |
runClasspathTest( |
5130 |
runClasspathTest( |
5127 |
OUTPUT_DIR + File.separator + "[square][bracket].jar[~**/internal/*][-d dir]", |
5131 |
jarFile + "[~**/internal/*][-d dir]", |
5128 |
new String[] { |
5132 |
new String[] { |
5129 |
"[square][bracket].jar", "{pattern=**/internal/* (DISCOURAGED)}", "dir", |
5133 |
jarFile, "{pattern=**/internal/* (DISCOURAGED)}", "dir", |
5130 |
}, |
5134 |
}, |
5131 |
null); |
5135 |
null); |
5132 |
} |
5136 |
} |
5133 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=161996 |
5137 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=161996 |
5134 |
public void _test136_classpath() { |
5138 |
public void test136_classpath() { |
5135 |
String target = OUTPUT_DIR + File.separator + "[a]"; |
5139 |
String target = OUTPUT_DIR + File.separator + "[a]"; |
5136 |
(new File(target)).mkdirs(); |
5140 |
(new File(target)).mkdirs(); |
5137 |
runClasspathTest( |
5141 |
runClasspathTest( |
Lines 5142-5148
Link Here
|
5142 |
null); |
5146 |
null); |
5143 |
} |
5147 |
} |
5144 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=161996 |
5148 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=161996 |
5145 |
public void _test137_classpath() { |
5149 |
public void test137_classpath() { |
5146 |
String target = OUTPUT_DIR + File.separator + "[a]"; |
5150 |
String target = OUTPUT_DIR + File.separator + "[a]"; |
5147 |
(new File(target)).mkdirs(); |
5151 |
(new File(target)).mkdirs(); |
5148 |
runClasspathTest( |
5152 |
runClasspathTest( |