Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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)



Back to the top