Re: [Embedlets-dev] [outhouse] ant build script
Status: Alpha
Brought to you by:
tkosan
|
From: Brill P. <bri...@ro...> - 2003-03-07 18:09:47
|
For a good example of this, see the japl/build.xml When you first build the platform-jstamp module, it will ask you to enter the path to the ajile directiory... it then saves that for future use and adds the aJile runtime to your classpath. - Brill Pappin Rogue Robotics www.roguerobotics.com ----- Original Message ----- From: "Nicola Ken Barozzi" <nic...@ap...> To: <emb...@li...> Sent: Friday, March 07, 2003 2:54 AM Subject: Re: [Embedlets-dev] [outhouse] ant build script > Topic tags:[ARCH][JAPL][WIRING][DOCS][MGMT][STRATEGY][NEWBIE] > _______________________________________________ > > > > Ted Kosan wrote, On 07/03/2003 8.04: > > Topic tags:[ARCH][JAPL][WIRING][DOCS][MGMT][STRATEGY][NEWBIE] > > _______________________________________________ > > > > Andrzej, > > > > If a person is only interested in deploying outhouse on a TINI right now what > > would be the proper way to configure outhouse's build.xml file so that the > > build process would not fail because the com.ajile.tools.ant.JemBuilderTask > > could not be found? > > > > When I comment out the following taskdef line in the build.xml file I can run > > most of the tasks: > > > > <taskdef name="JEMBuilder" classname="com.ajile.tools.ant.JemBuilderTask"/> > > > > but with it in not even the 'help' task will run. So, commenting out this line > > works but is there a way to set up the build.xml file so that one does not need > > to comment it out? > > Try this: > > Use this to see if the class is there: > http://ant.apache.org/manual/CoreTasks/available.html > > Then put the taskdef in a target, call that, and put an if="" attribute > on that target to make it conditional. > > Off the top of my head: > > <!-- set have.JEMBuilder==true if the class is present--> > <available property="have.JEMBuilder" > classname="com.ajile.tools.ant.JemBuilderTask"> > <classpath> > <fileset dir="lib"> > <include name="**/*.jar"/> > </fileset> > </classpath> > </available> > > <antcall target="load.JEMBuilder"> > ... > > and make: > > <target name="load.JEMBuilder" if="have.JEMBuilder"> > <taskdef name="JEMBuilder" > classname="com.ajile.tools.ant.JemBuilderTask"/> > </target> > > -- > Nicola Ken Barozzi nic...@ap... > - verba volant, scripta manent - > (discussions get forgotten, just code remains) > --------------------------------------------------------------------- > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Embedlets-developer mailing list > Emb...@li... > https://lists.sourceforge.net/lists/listinfo/embedlets-developer > |