Ok, here we go:

In Minorplanet.xml, we have


<project xmlns="http://tempuri.org/nant-donotuse.xsd";>
        <property name="build.includedir" value="..\Common"/>
        <include buildfile="${build.includedir}\commonproperties.xml"/>
        <include buildfile="${build.includedir}\starteam.xml" />

        <target name="app.shared.mpl.init">
                <property name="app.shared.mpl.sln"                     
value="${app.shared}\Minorplanet\Minorplanet.sln"       overwrite="false"/>
                <property name="app.shared.mpl.out"                     
value="${app.out}"                                                                     
 overwrite="false"/>
                <property name="app.shared.mpl.buildconfig" value="${app.buildconfig}" 
                                                 overwrite="false"/>
                <property name="app.shared.mpl.st-folder"       
value="${app.shared.st-folder}/minorplanet"                     overwrite="false"/>
        </target>

        <target name="app.shared.mpl.checkout" depends="app.shared.mpl.init">
                <property name="st.folder" value="${app.shared.mpl.st-folder}"/>
                <property name="st.wildcard" value="*.*"/>

<!-- this is how I'm doing it at the moment - comes up with confusing "build 
succeeded" message, and can't return properties -->
<!--            <nant buildfile="${build.includedir}\starteam.xml" target="st.co" 
inheritall="true"/> -->

                <call target="st.co"/>


                <property name="st.folder" value="${app.shared.st-folder}"/>
                <property name="st.wildcard" value="nziplib.dll"/>

<!--            <nant buildfile="${build.includedir}\starteam.xml" target="st.co" 
inheritall="true"/> -->

                <call target="st.co"/>

        </target>

        <target name="app.shared.mpl.build-sln" description="Build the Shared mpl 
solution" depends="app.shared.mpl.init, app.shared.mpl.checkout">
                <echo message="Building Dependent Projects"/>
                <nant buildfile="Minorplanet.Mapping.xml" inheritall="true"/>

                <echo message="Building mpl solution: ${app.shared.mpl.sln}"/>
                <solution solutionfile="${app.shared.mpl.sln}" 
outputdir="${app.shared.mpl.out}" configuration="${app.shared.mpl.buildconfig}" />
        </target>
</project>

In Starteam.xml, (which is in the ..\common folder) we have 

<project xmlns="http://nant.sf.net/schemas/nant-0.85.win32.net-1.0.xsd";>
        <target name="init">
                <fail message="Please set Starteam username and password" 
if="${not(property::exists('st.usr') and property::exists('st.pw'))}"/>
                <property name="st.exe" value="c:\Program Files\Starbase\StarTeam 
5.3\stcmd.exe"/>
                <property name="st.prjspec" value="${st.usr}:[EMAIL 
PROTECTED]:${st.port}/${st.folder}" dynamic="true"/>
                <property name="st.server" value="***.***.***.***"/>  <!-- IP 
protected -->
                <property name="st.port" value="*****"/>                        <!-- 
Port number -->
                <property name="st.wildcard" value="*.*" overwrite="false"/>
        </target>

        <target name="st.co" depends="init">
                <exec program="${st.exe}" >
                        <arg value="co -nologo -p" />
                        <arg value="&quot;${st.prjspec}&quot;" />
                        <arg value="-is -f NCO -stop" />
                        <arg value="${st.wildcard}" />
                </exec>
        </target>
        <target name="st.ci" depends="init">
                <exec program="${st.exe}">
                        <arg value="ci" />
                        <arg value="-nologo" />
                        <arg value="-p" />
                        <arg value="&quot;${st.prjspec}&quot;" />
                        <arg value="-f NCI" />
                        <arg value="-is" />
                        <!--<arg value="${st.inlabel.param} &quot;${st.inlabel}&quot;" 
if="${property::exists('st.inlabel')}"/>-->
                        <arg value="-stop" />
                        <arg value="${st.wildcard}" />
                </exec>
        </target>
        <target name="st.mklabel" depends="init">
                <exec program="${st.exe}">
                        <arg value="label" />
                        <arg value="-nologo" />
                        <arg value="-p" />
                        <arg value="&quot;${st.prjspec}&quot;" />
                        <arg value="-is" />
                        <arg value="-nl" />
                        <arg value="&quot;${st.inlabel}&quot;" />
                        <arg value="-stop" />
                </exec>
        </target>
</project>

My command line is

C:\Documents and Settings\johnl\My Documents\builds\SharedProjects>nant 
-D:st.usr=username -D:st.pw=password /f:Minorplanet.xml app.shared.mpl.build-sln

And the output is

NAnt 0.85 (Build 0.85.1675.0; net-1.0.win32; nightly; 02/08/2004)
Copyright (C) 2001-2004 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/Documents and Settings/johnl/My 
Documents/builds/SharedProjects/Minorplanet.xml
Target(s) specified: app.shared.mpl.build-sln


app.shared.mpl.init:


app.shared.mpl.checkout:


BUILD FAILED

Target 'st.co' does not exist in this project.

Total time: 0.2 seconds.

Now's when you tell me I've been a muppet and missed something obvious ;)

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

Reply via email to