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

Please log in using one of these methods to post your comment:

WordPress.com Logo

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.