On Thu, 18 Jul 2002, Stephane Bailliez <[EMAIL PROTECTED]> wrote: > I don't understand as to me what you want is like putting some java > code anywhere in a class but outside the methods.
This is possible for all versions of Ant, the code is <property> and <taskdef> and since 1.5 <typedef>. A few months ago we agreed to stretch this concept to all tasks, so that we no longer have to rely on magic names. See <http://marc.theaimsgroup.com/?t=100347272700004&r=1&w=2>. Try this in Ant 1.5 <project default="a"> <taskdef name="property" classname="org.apache.tools.ant.taskdefs.Echo" /> <property>Hello world</property> <target name="a" /> </project> It is going to work. If you disagree with allowing all tasks outside of targets, I'll have to revert a bit more of code, I guess. Stefan -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
