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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to