@@ -75,7 +75,7 @@ public void testJarWithManifestInDirWithSpace() {
7575        String  extjarstring  = buildRule .getProject ().getProperty ("ext.jar" );
7676        Path  myPath  = new  Path (buildRule .getProject ());
7777        myPath .setLocation (new  File (mainjarstring ));
78-         buildRule .getProject ().setUserProperty ("build.sysclasspath" , "ignore" );
78+         buildRule .getProject ().setUserProperty (MagicNames . BUILD_SYSCLASSPATH , "ignore" );
7979        loader  = buildRule .getProject ().createClassLoader (myPath );
8080        String  path  = loader .getClasspath ();
8181        assertEquals (mainjarstring  + File .pathSeparator  + extjarstring , path );
@@ -87,7 +87,7 @@ public void testJarWithManifestInNonAsciiDir() {
8787        String  extjarstring  = buildRule .getProject ().getProperty ("ext.jar.nonascii" );
8888        Path  myPath  = new  Path (buildRule .getProject ());
8989        myPath .setLocation (new  File (mainjarstring ));
90-         buildRule .getProject ().setUserProperty ("build.sysclasspath" , "ignore" );
90+         buildRule .getProject ().setUserProperty (MagicNames . BUILD_SYSCLASSPATH , "ignore" );
9191        loader  = buildRule .getProject ().createClassLoader (myPath );
9292        String  path  = loader .getClasspath ();
9393        assertEquals (mainjarstring  + File .pathSeparator  + extjarstring , path );
@@ -135,7 +135,7 @@ public void testGetPackage() throws Exception {
135135        buildRule .executeTarget ("prepareGetPackageTest" );
136136        Path  myPath  = new  Path (buildRule .getProject ());
137137        myPath .setLocation (new  File (buildRule .getProject ().getProperty ("test.jar" )));
138-         buildRule .getProject ().setUserProperty ("build.sysclasspath" , "ignore" );
138+         buildRule .getProject ().setUserProperty (MagicNames . BUILD_SYSCLASSPATH , "ignore" );
139139        loader  = buildRule .getProject ().createClassLoader (myPath );
140140        assertNotNull ("should find class" , loader .findClass ("org.example.Foo" ));
141141        assertNotNull ("should find package" ,
@@ -148,7 +148,7 @@ public void testCodeSource() throws Exception {
148148        Path  myPath  = new  Path (buildRule .getProject ());
149149        File  testJar  = new  File (buildRule .getProject ().getProperty ("test.jar" ));
150150        myPath .setLocation (testJar );
151-         buildRule .getProject ().setUserProperty ("build.sysclasspath" , "ignore" );
151+         buildRule .getProject ().setUserProperty (MagicNames . BUILD_SYSCLASSPATH , "ignore" );
152152        loader  = buildRule .getProject ().createClassLoader (myPath );
153153        Class <?> foo  = loader .findClass ("org.example.Foo" );
154154        URL  codeSourceLocation  =
@@ -164,7 +164,7 @@ public void testSignedJar() throws Exception {
164164
165165        Path  myPath  = new  Path (buildRule .getProject ());
166166        myPath .setLocation (jar );
167-         buildRule .getProject ().setUserProperty ("build.sysclasspath" , "ignore" );
167+         buildRule .getProject ().setUserProperty (MagicNames . BUILD_SYSCLASSPATH , "ignore" );
168168        loader  = buildRule .getProject ().createClassLoader (myPath );
169169        Class <?> foo  = loader .findClass ("org.example.Foo" );
170170
@@ -188,7 +188,7 @@ public void testInvalidZipException() {
188188
189189        Path  myPath  = new  Path (buildRule .getProject ());
190190        myPath .setLocation (jar );
191-         buildRule .getProject ().setUserProperty ("build.sysclasspath" , "ignore" );
191+         buildRule .getProject ().setUserProperty (MagicNames . BUILD_SYSCLASSPATH , "ignore" );
192192        loader  = buildRule .getProject ().createClassLoader (myPath );
193193        PrintStream  sysErr  = System .err ;
194194        try  {
0 commit comments