Bugs item #1149898, was opened at 2005-02-24 00:39 Message generated for change (Comment added) made by ianm74 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1149898&group_id=31650
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Bill Arnette (billarnette) >Assigned to: Ian MacLean (ianm74) Summary: Project help does not display targets in include files Initial Comment: Running: nant /f:test.build -projecthelp on the following build files shows "all" as the only target. It should show target1, target2, target3, and target4 as well. Note that an included targets can be called directly from the command line though. --- begin test.build --- <?xml version="1.0" encoding="utf-8"?> <project name="test" default="all"> <echo message="Building test project"/> <property name="path.build" value="${directory::get-current-directory()}"/> <property name="path.root" value="${directory::get-parent-directory(path.build)}"/> <include buildfile="include.build"/> <include buildfile="include2.build"/> <echo message="${property2}"/> <target name="all" depends="target1, target3"> <echo message="property1 = ${property1}"/> <call target="target2"/> <call target="target4"/> </target> </project> --- end test.build --- --- begin include.build --- <?xml version="1.0" encoding="utf-8"?> <project name="include"> <target name="target1"> <property name="env.root" value="${path.root}"/> <echo message="target1"/> </target> <target name="target2"> <echo message="target2"/> </target> </project> --- end include.build --- --- begin include2.build --- <?xml version="1.0" encoding="utf-8"?> <project name="include2"> <property name="property2" value="hello world from include2.build"/> <target name="target3"> <echo message="target3 in include2.build"/> </target> <target name="target4"> <echo message="target4 in include2.build"/> </target> </project> --- end include2.build --- ---------------------------------------------------------------------- >Comment By: Ian MacLean (ianm74) Date: 2005-02-24 22:26 Message: Logged In: YES user_id=321872 I"m working on an implementation for this. However it can only work for those includes that do *not* use an expression in their buildfile attributes. So for example ; <include buildfile="include.build"/> will work fine but <include buildfile="${some-expression}"/> cannot work for certain without running every task that occurs before the <include> - obviously not desirable when just getting help. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1149898&group_id=31650 ------------------------------------------------------- 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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers