Page tree
Skip to end of metadata
Go to start of metadata

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


<?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="" />
    <target name="dist" >
      <echo message="Build dir is defined in init as ${build.dir}"/>

This will download and automatically import 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}"/>

  • No labels