ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Szeto <rick.sz...@sitraka.com>
Subject Re: What's the status of Properties?
Date Fri, 05 Jan 2001 21:57:03 GMT
I would think that it is more of a dependency issue.
This will definitely work:

<target name="prepare" depends="init">
        <mkdir dir="${build}"/>
        <mkdir dir="${dist}"/>
</target>

Rick Szeto

David Blevins wrote:

> My build.xml worked in a the previous version of ant but in version 1.2 I
> get:
>
> prepare:
>     [mkdir] Created dir: C:\dev\theproject\${build}
>     [mkdir] Created dir: C:\dev\theproject\${dist}
>
> build and dist are properties set in the init target.
>
> <target name="init">
>       <property name="build"            value="build" />
>       <property name="dist"             value="dist" />
> </target>
>
> the prepare target looks like:
>
> <target name="prepare">
>         <mkdir dir="${build}"/>
>         <mkdir dir="${dist}"/>
> </target>
>
> I'm amazed this doesn't work, you must get this question all the time.
>
> David


Mime
View raw message