On Wed, Oct 1, 2008 at 16:06, Chagel <[EMAIL PROTECTED]> wrote:

> I want to zip a file with the name of time stamp.
> Tried to use CCNetBuildDate label like below, but failed. Any idea?
> I dont want to use NAnt if that's not the only solution.
>
> <exec>
>  <executable>C:\Program Files\7-Zip\7za.exe</executable>
>  <baseDirectory>E:\BuildRoot\Eagle\build\Staging</baseDirectory>
>  <buildArgs>a "Executive Suite 3.5 Setup Build ${CCNetBuildDate}.zip"
> "E:\BuildRoot\Eagle\build\Staging\*"</buildArgs>
>  <buildTimeoutSeconds>600</buildTimeoutSeconds>
> </exec>
>
CCNetBuildDate is an environment variable, not a configuration variable, so
you need to specify it as %CCNetBuildDate%, not ${CCNetBuildDate}.  I'm not
sure it will work in the <buildArgs> (I don't have CCNET source code handy),
but if not, you can wrap that command up in a .BAT file and it certainly
will work.

Ross

Reply via email to