Not able to compile from the svn source
Hi all I have checked out the source from object web and try to compile it but without any success. error message is as follow: BILD FAILED /usr/local/src/xwiki/build.xml:127: taskdef A class needed by class org.apache.cactus.integration.ant.CactusTask cannot be found: junit/framework/Test I have looked into build.xml and at line 127, the following was found: <!-- Define the Cactus tasks --> <taskdef resource="cactus.tasks"> <classpath> <pathelement location="${lib.dir}/cactus-1.6dev.jar"/> <pathelement location="${lib.dir}/cactus-ant-1.5.jar"/> <pathelement location="${lib.dir}/commons-httpclient-2.0-rc2.jar"/> <pathelement location="${lib.dir}/commons-logging.jar"/> <pathelement location="${lib.dir}/aspectjrt-1.1.1.jar"/> </classpath> </taskdef> Notice that all the above mentioned library except commons-httpclient-2.0-rc2.jar were found in the lib directory. commons-httpclient-2.0.1.jar were found in lib directory instead. I have tried to change the above to commons-httpclient-2.0-1.jar but still got the above message. What have I missed. Any help is appreciated. Patrick Lee
Hi Patrick, This is a well-know issue in Ant (see http://ant.apache.org/manual/OptionalTasks/junit.html and http://ant.apache.org/faq.html#delegating-classloader). You need to have the junit jar put in your ANTHOME/lib directory to be able to run any unit tests. Could you check that you have it there? Thanks -Vincent
-----Original Message----- From: Patrick Lee [mailto:[email protected]] Sent: mardi 19 avril 2005 09:15 To: [email protected] Subject: [xwiki-dev] Not able to compile from the svn source
Hi all
I have checked out the source from object web and try to compile it but without any success.
error message is as follow:
BILD FAILED /usr/local/src/xwiki/build.xml:127: taskdef A class needed by class org.apache.cactus.integration.ant.CactusTask cannot be found: junit/framework/Test
I have looked into build.xml and at line 127, the following was found:
<!-- Define the Cactus tasks --> <taskdef resource="cactus.tasks"> <classpath> <pathelement location="${lib.dir}/cactus-1.6dev.jar"/> <pathelement location="${lib.dir}/cactus-ant-1.5.jar"/> <pathelement location="${lib.dir}/commons-httpclient-2.0- rc2.jar"/> <pathelement location="${lib.dir}/commons-logging.jar"/> <pathelement location="${lib.dir}/aspectjrt-1.1.1.jar"/> </classpath> </taskdef> Notice that all the above mentioned library except commons-httpclient-2.0-rc2.jar were found in the lib directory. commons-httpclient-2.0.1.jar were found in lib directory instead. I have tried to change the above to commons-httpclient-2.0-1.jar but still got the above message. What have I missed. Any help is appreciated.
Patrick Lee
_________________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais ! Yahoo! Mail : http://fr.mail.yahoo.com
Hi Vincent Luvodic pointed me to this and I had solved the compile problem already. Still, many thanks. Patrick On 4/20/05, Vincent Massol <[email protected]> wrote:
Hi Patrick,
This is a well-know issue in Ant (see http://ant.apache.org/manual/OptionalTasks/junit.html and http://ant.apache.org/faq.html#delegating-classloader). You need to have the junit jar put in your ANTHOME/lib directory to be able to run any unit tests.
Could you check that you have it there?
Thanks -Vincent
-----Original Message----- From: Patrick Lee [mailto:[email protected]] Sent: mardi 19 avril 2005 09:15 To: [email protected] Subject: [xwiki-dev] Not able to compile from the svn source
Hi all
I have checked out the source from object web and try to compile it but without any success.
error message is as follow:
BILD FAILED /usr/local/src/xwiki/build.xml:127: taskdef A class needed by class org.apache.cactus.integration.ant.CactusTask cannot be found: junit/framework/Test
I have looked into build.xml and at line 127, the following was found:
<!-- Define the Cactus tasks --> <taskdef resource="cactus.tasks"> <classpath> <pathelement location="${lib.dir}/cactus-1.6dev.jar"/> <pathelement location="${lib.dir}/cactus-ant-1.5.jar"/> <pathelement location="${lib.dir}/commons-httpclient-2.0- rc2.jar"/> <pathelement location="${lib.dir}/commons-logging.jar"/> <pathelement location="${lib.dir}/aspectjrt-1.1.1.jar"/> </classpath> </taskdef> Notice that all the above mentioned library except commons-httpclient-2.0-rc2.jar were found in the lib directory. commons-httpclient-2.0.1.jar were found in lib directory instead. I have tried to change the above to commons-httpclient-2.0-1.jar but still got the above message. What have I missed. Any help is appreciated.
Patrick Lee
_________________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
participants (2)
-
Patrick Lee -
Vincent Massol