You can also do it this way,, use the star team stcmd command in a batch 
file and call that batch file from ant
just make sure on your path you have the path to the StarTeam executable 
files. 

running just stcmd from the command line will give you all the options 
avalable. 

<target name="build" description="Check Out files">
        <echo>Checking Out files...</echo>
        <exec dir="${build.dir}" executable="checkout.bat">
        </exec>
</target>

" Checkout.bat file "
stcmd co -p "User:Password@Server:50000/View to Chek out" -is -o -q -stop













Dave Draper <[EMAIL PROTECTED]>
08/28/2002 07:48 AM
Please respond to "Ant Users List"

 
        To:     "'Ant Users List'" <[EMAIL PROTECTED]>
        cc: 
        Subject:        RE: Starteam and ConnectionManager.ini


I have been using Starteam + Ant under Win2K. I have
not had the problem you describe and I can't see
anything wrong with your script off the top of my
head.

What does C:/Nebraska/start.xml do and what does
line 19 look like.

- Dave D

-----Original Message-----
From: juan hernandez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 27, 2002 15:19
To: [EMAIL PROTECTED]
Subject: Starteam and ConnectionManager.ini


Hi,

I am on a Windows2000 machine and I am trying to use Ant to check out 
files 
from starteam.
I have a system variable, WorkstationID set to "c:\Program 
Files\Starbase\Common\ConnectionManager.ini"

Here is my ant script:
<?xml version="1.0" encoding="UTF-8"?>
<project name="ScorpioUpdater" default="checkoutST" basedir=".">
    <property name="govDir" value="${basedir}/gov" />

    <target name="init">
       <mkdir dir="${govDir}" />
    </target>

    <target name="checkoutST" depends="init">
      <stcheckout servername="STARTEAM"
          serverport="49201"
          projectname="Scorpio"
          username="turok"
          password="*******"
          rootlocalfolder="${basedir}"
          rootstarteamfolder="\source code\Java\"
          forced="true"
          deleteuncontrolled="false"
      />

    </target>
</project>
====================
When I run it, I get the following error:

BUILD FAILED
file:C:/Nebraska/start.xml:19: java.lang.RuntimeException: no System 
property wa
s specified for the ConnectionManager.ini file location. Try using 
-Dwsidfile=<f
ilename>

I even try use the -Dwsidfile but I get the same results.
I can use starteam command interface to check out file so I know that the 
ConnectionManager.ini works.

any ideas of what I need to configure or what I am doing wrong??



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to