Our master build file does the first part. However, it doesn't care
about dependencies. Any dependencies we have we address through the
solutions (i.e. if one project depends on another, they are both in the
same solution so that the solution can track the dependencies).

        <nant>
            <buildfiles>
                <include name="**\*.build" />
                <!-- avoid recursive execution of current build file -->
                <exclude name="${project::get-buildfile-path()}" />
            </buildfiles>
        </nant> 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Morpheous
Sent: Saturday, May 06, 2006 6:20 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Nant build traversing directories


I am a NANT newbie. I would like to use NAnt to automate my build
processes but have come unstuck.

I have several projects under a /src directory. There is some
inter-dependencies between some projects.

I want to have to have two build scripts as ff:

1). one main build file (say /src/main.build). 
2). A single build file for each project ( say
/src/project1/project1.build)

The main build file will traverse each of the folders under the /src/*
directority, and execute any *.build it encounters in the directory.
(i.e the individual build projects)

My questions are:

1). How can I create a main.build which will traverse a directory from a
specified base, and execute each of the .build files it encounters?

2). How can I specify in a project - a depency on another project?


Thks

--
View this message in context:
http://www.nabble.com/Nant-build-traversing-directories-t1570839.html#a4
265800
Sent from the NAnt - Users forum at Nabble.com.



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


*******************************************************************
Note: The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.
If you have received this communication in error, please notify us
immediately by replying to the message and deleting it from your
computer.
Thank you.
Stockamp & Associates, Inc.
*******************************************************************



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to