Centipede usage issues
"Manocha, Nikunj" <[email protected]>
| Newsgroups | gmane.comp.krysalis.user |
|---|---|
| Message-ID | <C34B80A4EF89E24491CBE1E50D047C642AB68C@sghdqms03.global.ad.sabre.com> |
HI All,
Thanx Adam for your help with the centipede directory structure. It helped and we are making progress.
I have another issue though and sorry to keep bothering you again. This one pertains more to Ant usage than Centipede. I started trying to run the ant task using centipede but then realised that the target won't run even as a simple ant task. It isn't able to find some files or something and I have checked that all jars are available not only in the ant installation but also in the project's library files. Here is the output is get while I run this Junit task .
wmb@cabo /usr/local/metrics/ipan/vobs/dotRes/bin>ant test
Buildfile: build.xml
init:
test:
BUILD FAILED
file:/usr/local/metrics/ipan/vobs/dotRes/bin/build.xml:203: taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot be found
Total time: 1 second
---------------------------------------------------
My ant target test is defined as
<target depends="init" name="test">
<taskdef classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask" classpathref="res.classpath" name="junit"/> <taskdef classname="org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator" name="junitreport"/>
<property name="res.testlog" value="${res.build}/testlog"/>
<mkdir dir="${res.testlog}"/>
<junit fork="yes" maxmemory="256m">
<jvmarg value="-DRES_HOME=${res.home}"/>
<classpath>
<path refid="res.classpath"/>
<!-- ant classes -->
<pathelement path="${res.lib}/ant.jar"/>
<pathelement path="${res.lib}/optional.jar"/>
<!-- Oracle JDBC driver -->
<pathelement path="${res.lib}/classes111_816.zip"/>
<!-- .Res binaries -->
<pathelement path="${res.build}/lib/base.jar"/>
<pathelement path="${res.build}/lib/ibe.jar"/>
<pathelement path="${res.build}/lib/appfwk.jar"/>
<pathelement path="${res.build}/lib/application.jar"/>
<pathelement path="${res.build}/lib/configurator.jar"/>
<pathelement path="${res.build}/lib/faremessenger.jar"/>
<pathelement path="${res.build}/lib/testtools.jar"/>
<pathelement path="${res.build}/lib/conmigration.jar"/>
<pathelement path="${res.build}/lib/siteadmin.jar"/>
<!-- Property files -->
<pathelement path="${res.home}/etc/Sabre/Properties"/>
<pathelement path="${java.class.path}"/>
</classpath>
<formatter type="xml"/>
<batchtest fork="yes" todir="${res.testlog}">
<fileset dir="${res.classes}">
<include name="**/AllTests.class"/>
</fileset>
</batchtest>
</junit>
<junitreport todir="${res.testlog}">
<fileset dir="${res.testlog}">
<include name="TEST-*.xml"/>
</fileset>
</junitreport>
</target>
--------------------------------------------------------------------------------
I have also defined the following classpath
<path id="res.classpath">
....
....
<!-- JUnit testing framework -->
<pathelement path="${res.lib}/optional.jar"/>
<pathelement path="${res.lib}/junit.jar"/>
...
>
What am i doing wrong?? I would appreciate your help as i get fast responses from here and was hoping someone could guide me to tackle the probelm.
Thanx for all your help and time.
Regards,
Nikunj
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php