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
On Mar 13, 10:30 pm, DJCouchyCouch <[email protected]> wrote:
> Hello,
>
> I'm new to CC.net, and I'm a little stuck.
>
> On our build machine, we've configured a nightly build, which was
> pretty straightforward to setup. The hitch is that we'd also like the
> build machine to create a new timestamped folder to dump and compile
> the code from SVN. This part we can't figure out. Is it possible to
> do?
>
> Thanks!