Bug 5448

Summary: Major refactoring of starteam tasks
Product: Ant Reporter: Steve Cohen <stevec>
Component: Optional TasksAssignee: Ant Notifications List <notifications>
Status: RESOLVED FIXED    
Severity: enhancement CC: dash86
Priority: P3    
Version: 1.5   
Target Milestone: ---   
Hardware: All   
OS: other   
Attachments: changed files for this bug
new file org/apache/tools/ant/taskdefs/optional/starteam/StarTeamTask.java
new file org/apache/tools/ant/taskdefs/optional/starteam/TreeBasedTask.java
new file /org/apache/tools/ant/taskdefs/optional/starteam/StarTeamCheckout.java
new file org/apache/tools/ant/taskdefs/optional/starteam/StarTeamLabel.java
defaults.properties had wrong class names for new tasks

Description Steve Cohen 2001-12-16 14:52:26 UTC
This is a major refactoring of the Star Team tasks, based on some code that was contributed by the Cruise Control team.  It deprecates the old <starteam> task, replacing it with a much simpler <starteamcheckout> task.  It also features a <starteamlabel> task.  The enhancements in the old task were backported into the Cruise Control code.  This framework implements a visitor pattern which should enable a checkin task to be written in short order.  New documentation reflecting these changes
Comment 1 Steve Cohen 2001-12-16 15:07:17 UTC
I am trying to attach files but there seem to be problems.  I am trying to attach four files:

patches.txt - contains all changes
Four new java files intended to go into org.apache.tools.ant.taskdefs.optional.starteam:
StarTeamTask.java
TreeBasedTask.java
StarTeamCheckout.java
StarTeamLabel.java

If I cannot attach these, I will get them in somehow.

Comment 2 Steve Cohen 2001-12-16 15:09:46 UTC
Created attachment 903 [details]
changed files for this bug
Comment 3 Steve Cohen 2001-12-16 15:11:05 UTC
Created attachment 904 [details]
new file org/apache/tools/ant/taskdefs/optional/starteam/StarTeamTask.java
Comment 4 Steve Cohen 2001-12-16 15:11:44 UTC
Created attachment 905 [details]
new file org/apache/tools/ant/taskdefs/optional/starteam/TreeBasedTask.java
Comment 5 Steve Cohen 2001-12-16 15:12:45 UTC
Created attachment 906 [details]
new file /org/apache/tools/ant/taskdefs/optional/starteam/StarTeamCheckout.java
Comment 6 Steve Cohen 2001-12-16 15:13:25 UTC
Created attachment 907 [details]
new file org/apache/tools/ant/taskdefs/optional/starteam/StarTeamLabel.java
Comment 7 Steve Cohen 2001-12-16 15:14:30 UTC
OK, I got the files in.  This enhancement is now complete in bugzilla
Comment 8 Stephane Bailliez 2001-12-18 14:24:19 UTC
Thanks a lot for all your work ! It has been committed to CVS HEAD.

I changed the taskdefs to the one specified in the docs, that is stcheckout and 
stlabel and set the <startteam> task as deprecated.
Comment 9 Steve Cohen 2001-12-18 16:40:20 UTC
Created attachment 920 [details]
defaults.properties had wrong class names for new tasks
Comment 10 Steve Cohen 2001-12-18 16:41:53 UTC
class names in defaults.properties did not match class names in file.
Comment 11 Steve Cohen 2001-12-19 06:43:20 UTC
I tried to reopen this last night, but I see that it is still marked "resolved
fixed".  Perhaps I do not have the rights to reopen a bug?

The small patch of 12/18/01 must be applied or neither of the new tasks will work.
Comment 12 Stephane Bailliez 2001-12-20 13:51:40 UTC
Fixed in CVS HEAD