Hi
I have a script that I'd like to run which requires that the current working
directory is the location of the script. So I tried the following:
<target name="package">
<cd dir="scripts" />
<exec program="package.bat" />
</target>
this didn't work because it couldn't find package.bat. So I tried this:
<target name="package">
<cd dir="scripts" />
<exec program="scripts/package.bat" />
</target>
this didn't work either. It found package.bat but it failed because the
current working directory was not scripts.
It appears that the <cd> task isn't doing what it should. So I wrote the
following to determine what it *was* doing:
<target name="package">
<echo message="${directory::get-current-directory()}" />
<echo message="${path::get-full-path('.')}" />
<cd dir="scripts" />
<echo message="${directory::get-current-directory()}" />
<echo message="${path::get-full-path('.')}" />
</target>
this prints out:
[echo] D:\project
[echo] D:\project
[cd] Current directory changed to "D:\project\scripts".
[echo] D:\project\scripts
[echo] D:\project
Please advise.
James
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
NAntContrib-Developer mailing list
NAntContrib-Developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer