You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Dominique Devienne <DD...@lgc.com> on 2004/01/13 15:46:40 UTC

RE: cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs P reSetDefTest.java

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


Re: cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs P reSetDefTest.java

Posted by Peter Reilly <pe...@corvil.com>.
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