Sriram, Comments inline.
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of [EMAIL PROTECTED] > Sent: Tuesday, 15 June 2004 2:22 PM > To: [EMAIL PROTECTED] > Subject: [Nant-users] build multiple projects > > > Hi, > I kinda digged through the archives, hence this mail > I have multiple projects in my solution and one project depends on the other. > when i give multiple entries for > <project> > </project> > > in the same build file, it gives me the following error: > > "Error loading buildfile. > There are multiple root elements. Line NN, position 2." An XML file may only contain a single top-level element - for nant, this is the <project> element. If you have two projects, you will need to store them in two build files - one project per file. > 1) How do I ensure that I build project A first since Project B is refering to Project A > (and so forth) I don't think there's any mechanism for describing dependencies between _projects_... Nant is designed around _target_-level dependencies. > 2) Is nested calling of build files possible( buildfileA (of Project A) calls buildfileB > (of Project B))? The <nant> task will do this. See: http://nant.sourceforge.net/help/tasks/nant.html > 3) Any other alternative for achieving the same. If there is a strong coupling between the two projects, you could write a single build file that covers both projects, and describe each project in different targets. You could then ensure that project B's targets depend on project A's targets. Alternatively, you could have project A and B in separate build files, and put a target called 'dependency-test' in project B's build file. In this target, you could check for the outputs from project A... If these don't exist, then call project A's build file (using the nant task) to create them before continuing with the project B compile. > > Thanks > Sriram I hope this helps, -- Troy Disclaimer Message: This message contains confidential information and is intended only for the individual(s) named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please immediately delete it and all copies of it from your system, destroy any hard copies of it, and notify the sender. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. To the maximum extent permitted by law, Immersive Technologies Pty. Ltd. does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users