Hi Erik, No problem here with submitting my code... I placed the apache license header in there for just that reason.
-- Levi -----Original Message----- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2001 10:20 AM To: [EMAIL PROTECTED] Subject: Re: how to build/test Ant from CVS? Levi and Peter, Thanks for your assistance. I'm not sure what I was doing wrong, but after a couple of attempts this morning and re-copying in Levi's test case files I got it working.... no classpath, no ant_home, no path, just: build run-single-test -Dtestcase=org.apache.tools.ant.taskdefs.optional.PropertyFi leTest I put junit.jar in the main lib directory (where jaxp.jar and crimson.jar live). All is well, and now I should have the PropertyFile bug fixed soon. Levi - any objects to me submitting your test code to ant-dev? Any reason you have not submitted it yet? I'll add my test method to it that currently identifies the Entry bug, and then I'll submit a patch that fixes that bug. Erik ----- Original Message ----- From: "Levi Cook" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 04, 2001 7:27 AM Subject: RE: how to build/test Ant from CVS? > Hmm.. The class that its complaining about should be the product of > compiling the PropertyFileTest.java file I sent in yesterday. On my > installation, I end up placing this file under: > ~/projects/jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/opt > io > nal/PropertyFileTest.java > > At runtime, the unit test has a dependancy on propertyfile.xml, the > other file I sent in. Following a convention I picked up from other > tests, I place that file here: > ~/projects/jakarta-ant/src/etc/testcases/taskdefs/propertyfile.xml > > With these files in place, here's how I execute the unit test: > > $ ant run-single-test > -Dtestcase=org.apache.tools.ant.taskdefs.optional.PropertyFileTest > Buildfile: build.xml > > prepare: > > check_for_optional_packages: > > build: > [copy] Copying 2 files to D:\wk\jakarta-ant\build\classes > > compile-tests: > [javac] Compiling 1 source file to > D:\wk\jakarta-ant\build\testcases > > run-single-test: > [junit] Testsuite: > org.apache.tools.ant.taskdefs.optional.PropertyFileTest > [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.511 > sec > [junit] > [junit] Testcase: testUpdatesExistingProperties took 0.451 sec > > BUILD SUCCESSFUL > > Total time: 10 seconds > > > I'm also attaching a little newer test case.. Not much new.. > -- Levi > > > -----Original Message----- > From: Erik Hatcher [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 03, 2001 11:03 PM > To: [EMAIL PROTECTED] > Subject: how to build/test Ant from CVS? > > > Still haven't ironed out the problem.... here's what I'm getting: > > C:\jakarta\jakarta-ant>ant > run-single-test -Dtestcase=org.apache.tools.taskdefs. > optional.PropertyFileTest > Buildfile: build.xml > > prepare: > > check_for_optional_packages: > > build: > [copy] Copying 2 files to C:\jakarta\jakarta-ant\build\classes > > compile-tests: > > run-single-test: > [junit] Testsuite: > org.apache.tools.taskdefs.optional.PropertyFileTest > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec > [junit] > [junit] Caused an ERROR > [junit] org.apache.tools.taskdefs.optional.PropertyFileTest > [junit] java.lang.ClassNotFoundException: > org.apache.tools.taskdefs.optional > .PropertyFileTest > [junit] at > java.net.URLClassLoader$1.run(URLClassLoader.java:200) > [junit] at java.security.AccessController.doPrivileged(Native > Method) > [junit] at > java.net.URLClassLoader.findClass(URLClassLoader.java:188) > [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:297) > [junit] at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) > > [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:253) > [junit] at > org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoa > der.java:945) > [junit] at > org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader. > java:808) > [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:253) > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. > <init>(JUnitTestRunner.java:173) > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut > eInVM(JUnitTask.java:558) > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut > e(JUnitTask.java:403) > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut > e(JUnitTask.java:380) > [junit] at org.apache.tools.ant.Task.perform(Task.java:217) > [junit] at org.apache.tools.ant.Target.execute(Target.java:164) > [junit] at > org.apache.tools.ant.Target.performTasks(Target.java:182) > [junit] at > org.apache.tools.ant.Project.executeTarget(Project.java:601) > [junit] at > org.apache.tools.ant.Project.executeTargets(Project.java:560) > > [junit] at org.apache.tools.ant.Main.runBuild(Main.java:454) > [junit] at org.apache.tools.ant.Main.start(Main.java:153) > [junit] at org.apache.tools.ant.Main.main(Main.java:176) > [junit] > > BUILD FAILED > > C:\jakarta\jakarta-ant\build.xml:752: Test > org.apache.tools.taskdefs.optional.Pr > opertyFileTest failed > > Total time: 2 seconds > > Here's my envrironment (from a setenv.bat I created): > > set ant_home=c:\ant > set classpath= > set path=c:\ant\bin > > This seems to mirror the configuration Levi posted. And yes, > PropertyFileTest.class exists in the right place :) > > It seems odd to me to run the 1.4 version of Ant though. Shouldn't I > run > with no classpath, no path, and no ant_home set using build.bat? Like > this: > > build > run-single-test > -Dtestcase=org.apache.tools.taskdefs.optional.PropertyFileTe > st > > I'm getting the same error in both cases. Any ideas what I'm doing > wrong? > > I'm sure I'm doing something stupid, I just don't see it yet. > > Thanks > Erik "not feeling like an Ant jGuru today" Hatcher > > >
