Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ant-dev] Change options on javac, specifically failonerror


Not really the correct forum (I would ask again on eclipse.tools) but I can provide my suggestion:
you could share the build.xml with all of the team members, and then only the individual who makes the project structure change is responsible for updating the build.xml and releasing the change(s).

Just my quick thoughts
Darins


Adam Terrenzio <adam.terrenzio@xxxxxxx>
Sent by: platform-ant-dev-admin@xxxxxxxxxxx

02/17/03 02:25 PM
Please respond to platform-ant-dev

       
        To:        "ANT mailing list (E-mail)" <platform-ant-dev@xxxxxxxxxxx>
        cc:        
        Subject:        [platform-ant-dev] Change options on javac, specifically failonerror



The default settings for javac are great for a single user working at his
desktop.  The PDE even does an exceptional job at combining option files to
make the build.xml scripts to construct the deliverable artefacts.  I am
however having some problems getting the generated XML exactly how I like
it.  Specifically within the javac task I want to set the failonerror to
true.

<target name="example.jar" depends="init">
<property name="destdir" value="${temp.folder}/example.jar.bin"/>
                <delete dir="${temp.folder}/example.jar.bin"/>
                <mkdir dir="${temp.folder}/example.jar.bin"/>
                <!-- compile the source code -->
                <javac destdir="${temp.folder}/example.jar.bin" failonerror="false"
verbose="true" debug="on" includeAntRuntime="no"
bootclasspath="${bootclasspath}" classpath="F:/eclipse/plugins/ ..... .jar">
                                 <src path="java/"/>
                </javac>
                ....
                ....
                </target>

This is what gets automatically generated by the PDE when I select 'create
plugin jars'.  We work in a team setting and have a separate box perform the
builds nightly by running the generated build.xml files.  If each user
remember to go in and fix the failonerror=true then everything is fine.
Every time the project structure is slightly modified, the simplest way to
correct the XML is to simply re-generate it and the setting ends up back as
false.

My first question is - Can anyone help me configure this properly?
My second question is - Is this the correct forum for this question?

Thanks for your help,
Adam.

Adam Terrenzio
Software Developer, Research and Development, MKS Inc., www.mks.com
Waterloo, ON, Canada
Build Better Software(tm)

_______________________________________________
platform-ant-dev mailing list
platform-ant-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ant-dev



Back to the top