You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Robert Campbell <rr...@gmail.com> on 2008/02/15 12:09:02 UTC
Classpath problem / getting StarTeam tasks to work...
Hello,
I can't seem to get the StarTeam tasks working in my ant script. I keep
getting the following error:
BUILD FAILED
java.lang.NoClassDefFoundError: com/starbase/starteam/File
I have the StarTeam 2006 R2 client installed. I have taken the "
starteam93.jar" from ...\Borland\StarTeam SDK 9.3\Lib and placed it
everywhere I could think of:
-Ant\lib folder
-Eclipse classpath
-Project lib folder
And what I finally tried was the following (where "starteam93.jar" was
placed in the tools folder... and this path works fine for my
hibernatetools):
<path id="tool.class.path">
<fileset dir="tools">
<include name="**/*.jar" />
</fileset>
</path>
<!-- this redefine of the task shouldn't be necessary; Ant knows about
stcheckout already.. but I didn't know how else to attach the classpathref
-->
<taskdef name="stcheckout" classname="
org.apache.tools.ant.taskdefs.optional.starteam.StarTeamCheckout"
classpathref="tool.class.path" />
I have opened up "starteam93.jar" manually, and verified that
com/starbase/starteam/File is there. I have also included all the other
StarTeam jars everywhere mentioned above.
I am going a bit crazy here.. what am I missing? Here is the actual target:
<target name="integration" depends="">
<stcheckout servername="starteam.xxx.com"
serverport="49201"
projectname="XXX"
viewname="XXX"
username="xxxx"
password="xxxx"
rootlocalfolder="C:\XXX"
forced="true"
locked="true"
includes="Project.jar"
/>
</target>
Thank you!!
Re: Classpath problem / getting StarTeam tasks to work...
Posted by Ken Turner <ke...@kbturner.co.uk>.
I use StarTeam successfully simply by using the following -lib parameter when
I call Ant:
-lib "C:\Program Files\Borland\StarTeam SDK 2005\Lib"
--
View this message in context: http://www.nabble.com/Classpath-problem---getting-StarTeam-tasks-to-work...-tp15499112p16001862.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org