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

Title: Nachricht
I've filled already a bug report for this long time ago.
http://dev.eclipse.org/bugs/show_bug.cgi?id=22297
 
-----Original Message-----
From: Jeff_McAffer@xxxxxxxxxx [mailto:Jeff_McAffer@xxxxxxxxxx]
Sent: Tuesday, February 18, 2003 10:17 PM
To: platform-ant-dev@xxxxxxxxxxx
Subject: Re: [platform-ant-dev] Change options on javac, specifically failonerror


This is done by the pde.build plugin.  Please enter a bug report in PDE Core to track the issue.  The change is relatively simple.  Just replace failonerror="false" with failonerror="${failonerror}" and ensure that that property has a default value.  Then you can set it when you run the build.

Act now and it may get into 2.1...

Jeff



Darin Swanson <Darin_Swanson@xxxxxxxxxx>
Sent by: platform-ant-dev-admin@xxxxxxxxxxx

02/18/2003 02:30 PM
Please respond to platform-ant-dev

       
        To:        platform-ant-dev@xxxxxxxxxxx
        cc:        
        Subject:        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