[p4] p4label task of ANT - owner was not created

Greg Pan Greg.Pan at excapsa.ca
Fri Dec 1 07:48:27 PST 2006


It turned out the fix to this issue was straight forward. Please see the
following added codes as compared to the original one. 

 

Thanks,

Greg Pan

 

 

--- P4Label.java

+++ new/P4Label.java    

 

 

***************

*** 47,52 ****

--- 47,53 ----

      protected String name;

      protected String desc;

      protected String lock;

+     protected String user;

  

      /**

       * The name of the label; optional, default "AntLabel"

***************

*** 73,78 ****

--- 74,88 ----

      }

  

      /**

+      *Label Owner; optional

+      * @param creator of the label

+      */

+     public void setUser(String user) {

+         this.user = user;

+     }

+ 

+ 

+     /**

       * do the work

       * @throws BuildException if failonerror has been set to true and
Perforce fails

       */

***************

*** 111,116 ****

--- 121,127 ----

                  "Label: " + name

                  + "\nDescription: " + desc

                  + "\nOptions: unlocked"

+                 + "\nOwner: " + user

                  + "\nView: \n\t" + P4View;

  

          P4Handler handler = new P4HandlerAdapter() {



More information about the perforce-user mailing list