I think you want to change the line
<mkdir dir="$(build.dir}"/>
to
<mkdir dir="${build.dir}"/>
So after the "$" there is a "{", not a "("...
:)
To answer your more general question, it depends on the developer's
choice. In code you can specify where or not you want property expansion
for your TaskAttribute(s). The default is true, or yes.
BTW. For mkdir and copy those attributes should be set to enable
expansion.
> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:nant-developers-
> [EMAIL PROTECTED]] On Behalf Of Stefan Boberg
> Sent: Tuesday, April 23, 2002 3:08 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [nant-dev] no command line arg target behavior
>
> Hi there,
>
> Quick/stupid question:
>
> Is property expansion supposed to work on all attributes yet? I'm
> asking because it does not seem to work for me! The following will
> simply create a directory called ${build.dir} in my current
directory...
> What I wanted is Build20020423.
>
> ------------------------------8<-----------------------------------
> <?xml version="1.0"?>
>
> <project name="WBA" default="all" basedir=".">
> <sysinfo/>
> <tstamp/>
> <property name="build.dir" value="Build${tstamp.date}"/>
>
> <target name="clean">
> <echo message="TODO: clean up" />
> </target>
>
> <target name="all" depends="gamecode">
> <echo message="Building to ${build.dir}"/>
> <mkdir dir="$(build.dir}"/>
> <mkdir dir="$(build.dir}\bin"/>
> <mkdir dir="$(build.dir}\Game"/>
> <copy todir="$(build.dir}\bin">
> <fileset basedir="${sys.env.XOM2}/bin">
> <includes name="Wba.exe"/>
> <includes name="Physics.dll"/>
> <includes name="X*.dll"/>
> <excludes name="X*CLR*.dll"/>
> <excludes name="X*_d.dll"/>
> <excludes name="X*_rd.dll"/>
> </fileset>
> </copy>
> </target>
>
> <target name="gamecode">
> </target>
> </project>
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers