Thanks DilbertDave!
On Mar 16, 6:02 am, DilbertDave <[email protected]> wrote: > You can get nant to perform file/folder operations. > Part of our build process publishes a setup package to a network > location: > > <!-- Copies the Setup file to Network location --> > <target name="publish-setup-file" description="Copy Setup File to > Release Folder on ASH-NAS-002"> > <!-- Check to see if the output folder already exists & only > proceed > if it doesn't --> > <if test="${directory::exists(release_path)}"> > <echo message="Setup Package Already Exists for this > Revision. No > need to generate a new one." /> > </if> > <!-- Next statement will not run if the directory already > exists --> > <if test="${not directory::exists(release_path)}"> > <echo message="Publishing Setup Package." /> > <!-- Create new Folder --> > <mkdir dir="${release_path}" /> > <!-- Copy files to new folder --> > <copy todir="${release_path}"> > <fileset basedir="${source_path}"> > <include name="*Setup.exe" /> > </fileset> > </copy> > <!-- Housekeeping --> > <echo message="Deleting Temporary Files." /> > <delete file="Setup Projects\\SPARS ${new_version} - > Setup.exe" /> > <delete file="Setup Projects\\Setup_Script.nsi" /> > </if> > </target> > > All you need is a suitable method for generating the new folder name. > > Hope this helps > Dave
