[Anthill] newbie - building eclipse projects via anthill

Eresha De Silva eresha at bigpond.com
Sun Nov 14 14:14:26 CST 2004


Hi Don,

Thanks for the info - it does help.

Cheers

Mahela

-----Original Message-----
From: anthill-bounces at lists.urbancode.com
[mailto:anthill-bounces at lists.urbancode.com]On Behalf Of Don Nelson
Sent: Monday, 15 November 2004 5:22 AM
To: Anthill user list
Subject: Re: [Anthill] newbie - building eclipse projects via anthill


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
>
>
>
>

_______________________________________________
Anthill mailing list
Anthill at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill





More information about the Anthill mailing list