Checkout a code from StarTeam using Apace Ant

Hi All,

Checking out a code from Starteam is very simple in Ant, First of all add the starteam related jars in the classpath.
and then write down a Ant task in build.xml.

<target name=”checkoutFromStarteam”>
<taskdef name=”stcheckout”
classname=”org.apache.tools.ant.taskdefs.optional.scm.AntStarTeamCheckOut”/>
<stcheckout servername=”SERVER_IP_ADDRESS”
serverport=”SERVER_PORT”
projectname=”PROJECT_NAME”
viewname=”BRANCH_NAME”
username=”USER_NAME”
password=”PASSWORD”
targetFolder=”C:\Checkout\codeBase\”
folderName =”VIEW/Java”
force=”true”
verbose=”true”
/>
</target>

If you are accessing the Starteam over firewall, then dont forgot to break the firewall and then try this task.

Thanks
R Vashi

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s