[Anthill] newbie - building eclipse projects via anthill
Don Nelson
dononelson at earthlink.net
Sun Nov 14 12:22:28 CST 2004
Well, the anthill build process and the eclipse build process really
aren't connected at all. You simply need to define an ant task to build
your entire project, and use that as the target for the anthill build.
Here's a snippet of one of my ant files that builds the entire project
and runs all JUnit tests...
...
<target name="compile" depends="init,prepare,resources">
<javac srcdir="${src.dir}" destdir="${webinf.dir}/classes"
debug="true">
<classpath refid="compile.classpath" />
</javac>
</target>
....
<target name="test" depends="init" description="Executes unit tests">
<junit fork="true" dir="${basedir}" printsummary="withOutAndErr"
haltonfailure="no" failureproperty="test.failed">
<jvmarg value="-Xmx768M" />
<classpath refid="compile.classpath" />
<formatter type="brief" usefile="false" />
<sysproperty
key="com.eds.ncpdp.util.TestSuiteRunner.DIRECTORY" value="${classes.dir}" />
<sysproperty
key="com.eds.ncpdp.util.TestSuiteRunner.TEST_CASE_SUFFIX" value="UTest" />
<test name="${test.suite.runner}" />
</junit>
<fail message="There were test failures!" if="test.failed" />
</target>
<target name="buildAndTest" depends="compile,test" />
Hope this helps
Eresha De Silva wrote:
>Hi,
>
>I have got anthill working. My eclipse projects are in CVS and I use the
>standard eclipse build process.
>
>However, I am not very familiar with the eclipse build process (although I
>do understand ant) and how these projects can be build via anthill.
>Appreciate if someone could point me to some documentation or info in this
>regard.
>
>Thanks
>
>Mahela
>
>
>_______________________________________________
>Anthill mailing list
>Anthill at lists.urbancode.com
>http://lists.urbancode.com/mailman/listinfo/anthill
>
>
>
>
More information about the Anthill
mailing list