Creating subprojects using NANT
source link: https://www.codesd.com/item/creating-subprojects-using-nant.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Creating subprojects using NANT
I'm trying to build a project(A) using NANT. The project(A) relies upon another project(B) which is also built with NANT. I want to be able to invoke the build of the dependent project(B) from within the build of project(A). I've tried including the build file of project B in the build file of project A. This creates an error because the two build files contain targets that share the same name.
Is there a way to alias the included build file?
You can do it like this by creating a "parent" buildfile, that uses the "nant" action to call other buildfiles.
<target name="rebuild" depends="" >
<nant target="${target::get-current-target()}">
<buildfiles>
<include name="projectB.build" />
<include name="projectC.build" />
</buildfiles>
</nant>
</target>
Related Articles
.Net dependency injection on the debug version using nant
Creating and using the java web service for connecting the mysql remote server
Missing System.Web.Mvc Error When Building ASP.NET MVC 3 Using NAnt
Force Django to create tables using the MYISAM storage engine
Create and use a dynamic shared library on solaris
Can I create or use the view controller as SLComposeViewController for social networks other than Twitter and Facebook
Start / Stop the IIS Web Site Using Nant
Basic data: Search and sort the results in the order in which they were created, without using a timestamp.
How to create and use an object of another class in Java
javax.naming.NoInitialContextException: Unable to create InitialContext using the factory specified in hashtable
I can not delete rows created dynamically using jquery ajax
How can I create and use (or simulate) multi-column indexes in Erlang Mnesia
Create and use different tables in loops in R shorter
Creating Database Using C Programming
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK