Differences between revisions 1 and 2
Revision 1 as of 2004-02-29 08:21:03
Size: 1007
Editor: adsl-49-176
Comment:
Revision 2 as of 2009-09-20 22:07:43
Size: 1009
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>

Proposals/Antlet/Sample (last edited 2009-09-20 22:07:43 by localhost)