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!!