@@ -75,7 +75,7 @@ public void testJarWithManifestInDirWithSpace() {
75
75
String extjarstring = buildRule .getProject ().getProperty ("ext.jar" );
76
76
Path myPath = new Path (buildRule .getProject ());
77
77
myPath .setLocation (new File (mainjarstring ));
78
- buildRule .getProject ().setUserProperty ("build.sysclasspath" , "ignore" );
78
+ buildRule .getProject ().setUserProperty (MagicNames . BUILD_SYSCLASSPATH , "ignore" );
79
79
loader = buildRule .getProject ().createClassLoader (myPath );
80
80
String path = loader .getClasspath ();
81
81
assertEquals (mainjarstring + File .pathSeparator + extjarstring , path );
@@ -87,7 +87,7 @@ public void testJarWithManifestInNonAsciiDir() {
87
87
String extjarstring = buildRule .getProject ().getProperty ("ext.jar.nonascii" );
88
88
Path myPath = new Path (buildRule .getProject ());
89
89
myPath .setLocation (new File (mainjarstring ));
90
- buildRule .getProject ().setUserProperty ("build.sysclasspath" , "ignore" );
90
+ buildRule .getProject ().setUserProperty (MagicNames . BUILD_SYSCLASSPATH , "ignore" );
91
91
loader = buildRule .getProject ().createClassLoader (myPath );
92
92
String path = loader .getClasspath ();
93
93
assertEquals (mainjarstring + File .pathSeparator + extjarstring , path );
@@ -135,7 +135,7 @@ public void testGetPackage() throws Exception {
135
135
buildRule .executeTarget ("prepareGetPackageTest" );
136
136
Path myPath = new Path (buildRule .getProject ());
137
137
myPath .setLocation (new File (buildRule .getProject ().getProperty ("test.jar" )));
138
- buildRule .getProject ().setUserProperty ("build.sysclasspath" , "ignore" );
138
+ buildRule .getProject ().setUserProperty (MagicNames . BUILD_SYSCLASSPATH , "ignore" );
139
139
loader = buildRule .getProject ().createClassLoader (myPath );
140
140
assertNotNull ("should find class" , loader .findClass ("org.example.Foo" ));
141
141
assertNotNull ("should find package" ,
@@ -148,7 +148,7 @@ public void testCodeSource() throws Exception {
148
148
Path myPath = new Path (buildRule .getProject ());
149
149
File testJar = new File (buildRule .getProject ().getProperty ("test.jar" ));
150
150
myPath .setLocation (testJar );
151
- buildRule .getProject ().setUserProperty ("build.sysclasspath" , "ignore" );
151
+ buildRule .getProject ().setUserProperty (MagicNames . BUILD_SYSCLASSPATH , "ignore" );
152
152
loader = buildRule .getProject ().createClassLoader (myPath );
153
153
Class <?> foo = loader .findClass ("org.example.Foo" );
154
154
URL codeSourceLocation =
@@ -164,7 +164,7 @@ public void testSignedJar() throws Exception {
164
164
165
165
Path myPath = new Path (buildRule .getProject ());
166
166
myPath .setLocation (jar );
167
- buildRule .getProject ().setUserProperty ("build.sysclasspath" , "ignore" );
167
+ buildRule .getProject ().setUserProperty (MagicNames . BUILD_SYSCLASSPATH , "ignore" );
168
168
loader = buildRule .getProject ().createClassLoader (myPath );
169
169
Class <?> foo = loader .findClass ("org.example.Foo" );
170
170
@@ -188,7 +188,7 @@ public void testInvalidZipException() {
188
188
189
189
Path myPath = new Path (buildRule .getProject ());
190
190
myPath .setLocation (jar );
191
- buildRule .getProject ().setUserProperty ("build.sysclasspath" , "ignore" );
191
+ buildRule .getProject ().setUserProperty (MagicNames . BUILD_SYSCLASSPATH , "ignore" );
192
192
loader = buildRule .getProject ().createClassLoader (myPath );
193
193
PrintStream sysErr = System .err ;
194
194
try {
0 commit comments