John Ludlow wrote:
What error are you getting ?
"Target 'st.co' does not exist in this project."
At the top of the project element, I have this:
<property name="build.includedir" value="..\Common"/> <include buildfile="${build.includedir}\commonproperties.xml"/> <include buildfile="${build.includedir}\Starteam.xml"/>
and in the Starteam.xml file I have
<target name="st.co" depends="init"> <exec program="${st.exe}" > <arg value="co -nologo -p" /> <arg value=""${st.prjspec}"" /> <arg value="-is -f NCO -stop" /> <arg value="${st.wildcard}" /> </exec> </target>
(obviously within a <project> element).
I created a test build file like this:
<project name="include-test" default="foo"> <include buildfile="commonproperties.xml"/>
<target name="foo" depends="st.co" >
</target>
</project>
which includes an st.co target in commonproperties.xml and it calls the st.co task with no issues:
NAnt 0.85 (Build 0.85.1676.0; net-1.1.win32; nightly; 8/3/2004) Copyright (C) 2001-2004 Gerry Shaw http://nant.sourceforge.net
Buildfile: file:///H:/dev/test/nant/includetest/default.build Target(s) specified: foo
st.co:
... ...
If you could post your exact build files - or a cut down version witht he failure I might be able to tell you why its not finding the target.
Ian
Thanks
**********************************************************************
Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you must not copy, distribute or take any action in reliance to it.
In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Minorplanet Systems Plc shall be understood as neither given nor endorsed by it.
**********************************************************************
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users
--
Ian MacLean, Developer, ActiveState, a division of Sophos
http://www.ActiveState.com
------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users