bodewig 02/05/17 03:36:17
Modified: src/testcases/org/apache/tools/ant/taskdefs Tag:
ANT_15_BRANCH AntTest.java
Log:
Make AntTest pass for people with realive paths in their CLASSPATH.
Revision Changes Path
No revision
No revision
1.11.2.2 +4 -2
jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/AntTest.java
Index: AntTest.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/AntTest.java,v
retrieving revision 1.11.2.1
retrieving revision 1.11.2.2
diff -u -r1.11.2.1 -r1.11.2.2
--- AntTest.java 10 May 2002 11:33:54 -0000 1.11.2.1
+++ AntTest.java 17 May 2002 10:36:17 -0000 1.11.2.2
@@ -68,7 +68,7 @@
/**
* @author Nico Seessle <[EMAIL PROTECTED]>
* @author <a href="mailto:[EMAIL PROTECTED]">Stefan Bodewig</a>
- * @version $Revision: 1.11.2.1 $
+ * @version $Revision: 1.11.2.2 $
*/
public class AntTest extends BuildFileTest {
@@ -254,10 +254,12 @@
}
public void testRefId() {
+ Path testPath = new Path(project);
+ testPath.createPath().setPath(System.getProperty("java.class.path"));
PropertyChecker pc =
new PropertyChecker("testprop",
new String[] {null,
-
Path.systemClasspath.toString()});
+ testPath.toString()});
project.addBuildListener(pc);
executeTarget("testRefid");
AssertionFailedError ae = pc.getError();
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>