The latest nightlies for 0.85 should allow you to delete the wildcard patterns below. Bugs in earlier versions were preventing this from working correctly.


> <delete> > <fileset> > <include name="**/bin/**"/> > <include name="**/obj/**" /> > </fileset> > </delete>

Matt.

Angus Grant wrote:
I have written all my build files to delete the bin and obj directories of all associated solution files in 
the build when the "fullrebuild" or "clean" target is passed into nAnt. It takes me ages 
quite a while to keep maintained, but I could not find any other way to to it. Complete PITA and the 
"BuildMode" attribute would be great.

1st example deletes all dll's
2nd example deletes all dll's, and then performs build

nant.exe -f:wiwa.build clean
nant.exe -f:wiwa.build fullrebuild

________________________________________________________________________________________
<project name="Solution Build Example" default="rebuild">
    <property name="configuration" value="debug" overwrite="false"/>

<target name="clean" description="Delete all previously compiled binaries.">
<delete>
<fileset>
<include name="supportassembly/bin/**"/>
<include name="supportassembly/obj/**" />
<include name="WorrellsSource/exe/bin/**"/>
<include name="WorrellsSource/exe/obj/**" />
</fileset>
</delete>
</target>
<target name="build" description="Build all targets.">
<call target="build.winforms"/>
</target>
<target name="rebuild" depends="bootstrap, build" />
<target name="fullrebuild" depends="clean, build" />


    <target name="build.winforms">
        <solution configuration="${configuration}" 
solutionfile="supportassembly.sln" />
        <solution configuration="${configuration}" solutionfile="exe.sln" />
    </target>
</project>
________________________________________________________________________________________


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Gert Driesen
Sent: Wednesday, 15 December 2004 4:31 PM
To: 'OmarV'
Cc: [EMAIL PROTECTED]
Subject: [Nant-users] RE: <solution> rebuild in NAnt






-----Original Message-----
From: Nobody [mailto:[EMAIL PROTECTED] On Behalf Of OmarV
Sent: woensdag 15 december 2004 0:17
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: <solution> rebuild in NAnt

Message body follows:

There is a "rebuild" attribute for the <csc> task, is there something similar for the <solution> task? I couldn't find it in the docs (http://nant.sourceforge.net/help/tasks/solution.html)

If not, is there a way to force the rebuild? I tried deleting the output folder but I'd think there is a more elegant solution.

This is not implemented yet, no. I think we'll consider adding a "buildmode"
attribute (or something similar), that
can take the following values :


- Clean
- Build
- Rebuild

We could then use that enum for other tasks too.

Gert



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to