ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs P reSetDefTest.java
Date Tue, 13 Jan 2004 14:46:40 GMT
Is the magic ant-type attribute described anywhere Peter?
It obviously allows polymorphism without using id/refid,
but when/how can it be used? Is it part of 1.6? Thanks, --DD

> -----Original Message-----
> From: peterreilly@apache.org [mailto:peterreilly@apache.org]
>   Log:
>   Allow presetdef'ed types to be used with the ant-type attribute
> 
>   +  <target name="antTypeTest">
>   +    <taskdef name="anttypetest"
>   +
> classname="org.apache.tools.ant.taskdefs.PreSetDefTest$AntTypeTest"
>   +             classpathref="test-classes"/>
>   +    <presetdef name="java.fileset">
>   +      <fileset>
>   +        <include name="**/*.java"/>
>   +      </fileset>
>   +    </presetdef>
>   +
>   +    <anttypetest>
>   +      <fileset ant-type="java.fileset" dir="."/>
>   +      <configured ant-type="java.fileset" dir="."/>
>   +    </anttypetest>
>   +  </target>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message