Great.  That is what I was looking for.

Thanks,
Scott

On Wed, Jan 21, 2009 at 9:22 PM, Sam Calder <[email protected]> wrote:

> Better yet, use the NAnt 'if' attribute of the <delete> task with the
> 'directory::exists' function to check if the directory exists first... that
> way it won't error out at all.
>
> Syntax is something like:
>
>     <delete dir="test" if="${directory::exists('test')}" />
>
> Cheers,
>
>  - Sam.
>
>
>
> On Wed, Jan 21, 2009 at 7:53 PM, Craig Sutherland <
> [email protected]> wrote:
>
>>
>> Do the same thing but put the delete in an NAnt or MSBuild script -
>> this way you could get it to ignore any errors.
>>
>> The mailing list is moderated, hence will be a delay until someone
>> moderates the message.
>>
>>
>> Craig
>>
>> On Jan 22, 6:11 am, Scott <[email protected]> wrote:
>> > I have searched around for a solution to this, but, not found an
>> > answer yet.
>> >
>> > I want to do a clean build every time I build.  According to this,
>> http://jira.public.thoughtworks.org/browse/CCNET-1256,
>> > <cleanCopy>True</cleanCopy> for <sourcecontrol type="svn"> is not in a
>> > CC build yet.  As a work around, I decided to do this:
>> >
>> >         <prebuild>
>> >             <exec>
>> >                 <executable>cmd</executable>
>> >                 <buildArgs>/c rmdir /s /q c:\buildFolder\code\trunk
>> > \projectFolder</buildArgs>
>> >             </exec>
>> >         </prebuild>
>> >
>> > This work fine if the folder exists.  But, the first time the project
>> > is built, before the code is checked out, the build fails with "The
>> > system cannot find the file specified."  How can I get CC to ignore
>> > that error?
>> >
>> > Thanks,
>> > Scott Vickery
>>
>
>

Reply via email to