ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Draper <Da...@geotrust.com>
Subject RE: Starteam <stlabel> Exception
Date Wed, 30 Oct 2002 22:27:47 GMT
I also ran into the same exact problems using StarTeam 5.1 and Ant 1.5

I was never able to solve the problem in a timely manner so I
used a work around. I used the <exec> tag and stcmd.exe (StarTeam
command line interface) to get the job done.

After I coded up the work around and moved I discovered some other
problems I was having with views in general. When I ran into the
original problem I was trying to put a label on a reference view.
For our particular use I should have been using a branching view
instead.

Look at the type of view you are using. If it is a reference view
you might want to try a branching view and see what happens. If I
have a few minutes I will try it out here and see what happens.

- Dave D.


-----Original Message-----
From: Brown, Michael (Denver) [mailto:Michael_Brown@jdedwards.com]
Sent: Wednesday, October 30, 2002 15:14
To: 'Ant Users List'
Subject: RE: Starteam <stlabel> Exception


Gavin,

I am working with StarTeam 5.1 and ant 1.5.  I am using a cruisecontrol ant
task to execute the labeling.  Which version of StarTeam sdk do you have?

Mike B.

-----Original Message-----
From: Gavin Simpson [mailto:gsimpson@superscape.com]
Sent: Wednesday, October 30, 2002 7:58 AM
To: 'ant-user@jakarta.apache.org'
Subject: Starteam <stlabel> Exception


Hi, I'm having a problem adding a label to my project within starteam as it
causes the following exception:

A view can only be modified from its current configuration.
        at
com.starbase.starteam.vts.comm.BinaryCommand.popException(BinaryCommand.java
:643)
        at com.starbase.starteam.vts.comm.Command.pop(Command.java:303)
        at
com.starbase.starteam.vts.comm.BinaryCommand.readInt(BinaryCommand.java:183)
        at
com.starbase.starteam.LabelRWImpl.readGutsForCreation(LabelRWImpl.java:35)
        at com.starbase.starteam.CmdCreateLabel.pop(CmdCreateLabel.java:32)
        at
com.starbase.starteam.vts.comm.CommandMacro.execute(CommandMacro.java:107)
        at
com.starbase.starteam.PutMethods$3.createNewLabel(PutMethods.java:148)
        at com.starbase.starteam.PutMethods$3.execute(PutMethods.java:103)
        at com.starbase.starteam.PutMethods.put(PutMethods.java:509)
        at com.starbase.starteam.PutMethods.put(PutMethods.java:503)
        at com.starbase.starteam.Server.putItems(Server.java:440)
        at com.starbase.starteam.Label.update(Label.java:548)
        at
org.apache.tools.ant.taskdefs.optional.starteam.StarTeamLabel.execute(StarTe
amLabel.java:145)
        at org.apache.tools.ant.Task.perform(Task.java:317)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:334)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:610)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

Using the following ant:

    <target name="labelsource">
        <tstamp>
            <format property="sourcestamp" pattern="yyyyMMddHHmmss"
locale="en"/>
        </tstamp>
        <stlabel 
            description="autogenerated label for build number
${build.number} on ${sourcestamp}" 
            label="AutoBuild_Source_${build.number}"  
            lastbuild="${sourcestamp}" 
            username="username" 
            password="password" 
            servername="Server-StarTeam" 
            serverport="1024" 
            projectname="TestProject" 
            viewname="TestProject"/>
    </target>


I can apply labels through the starteam gui and stcmd command line call thus
the connection to the server seems to be fine.

Also I'm able to check in and check out using <stcheckin> and <stcheckout>

Using the -debug option on the command line sheds no light on the problem.

Any light shed on this would be greatly appreciated.

Cheers,
Gavin Simpson.


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message