ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.rei...@corvil.com>
Subject Re: cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs P reSetDefTest.java
Date Tue, 13 Jan 2004 14:54:21 GMT
Dominique Devienne wrote:

>Is the magic ant-type attribute described anywhere Peter?
>  
>
No,
  Well it is on the dev-ant mailing list ~july 2003.

http://marc.theaimsgroup.com/?l=ant-dev&m=105846981518008&w=2

>It obviously allows polymorphism without using id/refid,
>  
>
Yes

>but when/how can it be used? Is it part of 1.6? Thanks, --DD
>  
>
Any addX(Y) or addConfiguredX(Y) but not createX() method.
It is part of 1.6, but it is undocumented. (I am not too sure it is
a good idea..., too many createX()s are out there).

Peter

>  
>
>>-----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
>
>
>
>  
>


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


Mime
View raw message