ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: taskdef and <property> declarations
Date Thu, 23 Aug 2001 06:25:21 GMT
On Thu, 23 Aug 2001, Gary Shea <shea@gtsdesign.com> wrote:

> Here's what I initially tried, which does not work with 1.3:
> 
>     <target name="init">
> 	<property name="jars.dir" value="..."/>
>     </target>
> 
>     <taskdef name="sqlfwk3"
> 	    classname="com.gtsdesign.sqlfwk3.ant.Sqlfwk3Taskdef" >
> 	<classpath>
> 	    <pathelement
> 	    location="${jars.dir}/sqlfwk3-taskdef.jar"/>
> 	</classpath>
>     </taskdef>

<taskdef> is not inside a target, so it gets run before any target -
your property is not defined.

> Is that the expected behavior?

Yes.

Stefan

Mime
View raw message