Differences between revisions 1 and 2
Revision 1 as of 2005-03-22 05:42:42
Size: 1060
Editor: anonymous
Comment: missing edit-log entry for this revision
Revision 2 as of 2009-09-20 22:07:45
Size: 1062
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
[http://cvs.sourceforge.net/viewcvs.py/metamorphosis/centipede2/src/java/org/krysalis/centipede2/ant/ImportAntletTask.java?view=markup sample code] [[http://cvs.sourceforge.net/viewcvs.py/metamorphosis/centipede2/src/java/org/krysalis/centipede2/ant/ImportAntletTask.java?view=markup|sample code]]

Antlets are designed to be (optionally) downloaded and imported by the importantlet task sample code

Sample

<?xml version="1.0"?>
<project default="dist" basedir="." name="hello-world">
        <description>Helloworld template project.</description>
{{{    <typedef resource="org/apache/ant/antlet/antlib.xml"     /> 

    <importantlet name="init" href="http://ant.apache.org/antlets" />      <target name="dist" >        <echo message="Build dir is defined in init as ${build.dir}"/>       </target>  </project>

  • }}}

This will download and automatically import http://ant.apache.org/antlets/init/xbuild.xml Which looks like

<?xml version="1.0"?>
<project  basedir="." name="init.antlet">
        <description>Standard Init.</description>
{{{   <property name="build.dir" value="${basedir}/build}" /> 

   <mkdir dir="${build.dir}"/> 

</project>

  • }}}

AntProjectPages/AntletSample (last edited 2009-09-20 22:07:45 by localhost)