Thread: [Embedlets-dev] [outhouse] ant build script
Status: Alpha
Brought to you by:
tkosan
|
From: Ted K. <tk...@ya...> - 2003-03-07 07:04:26
|
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? Ted __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ |
|
From: Andrzej J. T. <an...@ch...> - 2003-03-07 19:19:23
|
> 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? The easy way is to copy the aJileAnt.jar file (found in the /lib dir) into your <ANT_HOME>/lib dir and leave the taskdef in place. This will allow Ant to find the task definition, even though you won't be using it if you don't have an aJile board. Andrzej Jan Taramina Chaeron Corporation: Enterprise System Solutions http://www.chaeron.com |
|
From: Nicola K. B. <nic...@ap...> - 2003-03-07 07:54:57
|
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) --------------------------------------------------------------------- |
|
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 > |