[Jxcl-devel] Re: jxunit, classpath
Status: Alpha
Brought to you by:
jddixon
|
From: Jim D. <jd...@di...> - 2004-01-08 16:41:28
|
On Wed, 7 Jan 2004, John Mishanski wrote:
> I am planning on using jxcl/jxunit during the
> development process on a project that i started this past
> month. I see this project being very helpful to my work,
> and I applaud all of your hard work.
>
> I was hoping that you could help me get up and running
> efficiently with the following situation. I'm using the
> jxunit task as below:
>
> <jxunit dir="." fork="true" haltonerror="false"
> checkCoverage="true" checkIncludes="com.algebrahelp.calc."
> checkExcludes="com.algebrahelp.calc.test"
> includeAntRuntime="yes">
> <classpath>
> <pathelement location="${build}" />
> <pathelement location="${java.class.path}" />
> </classpath>
> <formatter type="xml"> </formatter>
> <sysproperty key="test-data" file="${test-data}" />
> <batchtest todir="${jxcl-reports}">
> <fileset dir="${build}">
> <include name="${unit-test-pattern}" />
> <exclude name="**/*$*.class"/>
> </fileset>
> </batchtest>
> </jxunit>
>
> When i use junit i only include the classpath necessary for
> my project, however it seems that jxunit is requiring that i
> include a classpath including
> org/jxcl/jxunit/textui/TestRunner and other classes which
> are not related to the classes I'm testing. Is it possible
> to avoid including all of these classes by hand for a more
> junit-task-like behavior? If so, could you point me to the
> appropriate documentation?
From example/3x6/build.xml:
<fileset dir="../../${libdir}">
<include name="*.jar"/>
</fileset>
This is the usual approach: you put all your jars in a lib directory,
and then include all of them as above. Many people use $ANT_HOME/lib
for this purpose. I generally use $HOME/lib for personal stuff,
and $HOME/$PROJECT/lib and $HOME/$PROJECT/target/lib for projects like
JXCL.
I would think that setting
includeAntRuntime="yes"
would do what you want, but it doesn't appear to. I will look into
this.
> Thanks,
>
> John Mishanski
>
> algebrahelp.com
>
--
Jim Dixon jd...@di... tel +44 117 982 0786 mobile +44 797 373 7881
http://jxcl.sourceforge.net Java unit test coverage
http://xlattice.sourceforge.net p2p communications infrastructure
|