You could do something like this... <?xml version="1.0" ?> <project name="example Build" default="main"> <!-- Default target that doesn't do anything. --> <target name="main" description="I do nothing." /> <!-- Catchall target --> <target name="*"> <property name="build.target" value="${target::get-current-target()}" /> <call target="-target" failonerror="true" /> </target> <target name="-target"> <nant buildfile="sub1/subscript1.build" target="${build.target}" /> <nant buildfile="sub2/subscript2.build" target="${build.target}" /> <nant buildfile="sub3/subscript3.build" target="${build.target}" /> </target> </project>
-Charlie -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill Cornish Sent: Thursday, November 04, 2004 12:12 PM To: Byrd,Payton; [EMAIL PROTECTED] Sourceforge. Net Subject: Re: [Nant-users] Get specified targets Importance: Low Payton, Charlie can give you the definitive answer, but I'm pretty sure I know what it will be: You can't. You could call your scripts from inside trivial NAnt targets by those names, if that's what you want to do, but you can't access command line arguments other than -D:name=value arguments which get turned into properties named "name" with value "value". Merrill ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users This communication (including any attachments) is intended for the use of the intended recipient(s) only and may contain information that is confidential, privileged or legally protected. Any unauthorized use or dissemination of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender by return e-mail message and delete all copies of the original communication. Thank you for your cooperation. ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users