You can do it either way you want. Basically, in our build we have the basic targets:
Clean Version Label Get Compile UpdateDb Deploy The compile task can do either release or debug based on the parameter. However, there was no reason why you can't have two Compile targets etc as you listed below. NAnt is very flexible. Also, you could have a property that held "debug" or "release" or "both" if you wanted. BOb -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nicholas Duane Sent: Wednesday, September 06, 2006 10:50 AM To: nant-users@lists.sourceforge.net Cc: [EMAIL PROTECTED] Subject: [NAnt-users] solution task: targets v.s. configuration I know there has already been a discussion on adding another attribute, operation, so we can specify clean, build, rebuild. From the little bit I've read so far (just started using nant) it appears that people are equating targets to clean, build, and rebuild and using a property to determine the configuration: debug or release. Is this correct? Why would the configuration not also equate to a target type? Otherwise, if I want to build both debug and release I have to have two nant entries (from my cruisecontrol configuration) whereas if debug and release were targets I would only need one entry and could specify both targets. So do people create debug and release targets? Maybe something like: <target name="debugclean" .../> <target name="debugbuild" .../> <target name="debugrebuild" .../> <target name="releaseclean" .../> <target name="releasebuild" .../> <target name="releaserebuild" .../> Thanks, Nick _________________________________________________________________ Check the weather nationwide with MSN Search: Try it now! http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG ------------------------------------------------------------------------ - 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 ------------------------------------------------------------------------- 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