bodewig     00/10/06 03:54:09

  Modified:    docs     index.html
               src/main/org/apache/tools/ant/taskdefs defaults.properties
               src/main/org/apache/tools/ant/taskdefs/optional/perforce
                        P4sync.java
  Added:       docs     P4desc.html
  Log:
  Documentation for the perforce task.
  Submitted by: Joe Walker <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.124     +1 -0      jakarta-ant/docs/index.html
  
  Index: index.html
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/docs/index.html,v
  retrieving revision 1.123
  retrieving revision 1.124
  diff -u -r1.123 -r1.124
  --- index.html        2000/10/06 07:32:49     1.123
  +++ index.html        2000/10/06 10:54:08     1.124
  @@ -4382,6 +4382,7 @@
     <li><a href="junit.html">JUnit</a></li>
     <li><a href="native2ascii.html">Native2Ascii</a></li>
     <li><a href="#netrexxc">NetRexxC</a></li>
  +  <li><a href="P4desc.html">Perforce</a></li>
     <li><a href="#renameexts">RenameExtensions</a></li>
     <li><a href="#script">Script</a></li>
     <li><a href="#vssget">VssGet</a></li>
  
  
  
  1.1                  jakarta-ant/docs/P4desc.html
  
  Index: P4desc.html
  ===================================================================
  <html>
  
  <body>
  
  <h2><a name="perforce">Perforce</a></h2>
  
  <h3>Description</h3>
  
  <p>Handles packages/modules retrieved from a <a 
href="http://www.perforce.com/";>Perforce</a> repository.</p>
  
  <h3>Parameters</h3>
  
  <table border="1" cellpadding="2" cellspacing="0">
      <tr>
          <td valign="top"><b>Attribute</b></td>
          <td valign="top"><b>Description</b></td>
          <td align="center" valign="top"><b>Required</b></td>
      </tr>
      <tr>
          <td valign="top">localpath</td>
          <td valign="top">The local path of the file/directory to
          write file(s) to.</td>
          <td align="center" valign="top">Yes</td>
      </tr>
      <tr>
          <td>user</td>
          <td>Specifies the user name, overriding the value of $P4USER,
          $USER, and $USERNAME in the environment.</td>
          <td><p align="center">No</p>
          </td>
      </tr>
      <tr>
          <td>port</td>
          <td>Specifies the server's listen address, overriding the
          value of $P4PORT in the environment and the default 
(perforce:1666).</td>
          <td><p align="center">No</p>
          </td>
      </tr>
      <tr>
          <td valign="top">version</td>
          <td valign="top">The revision number of the file being
          extracted.</td>
          <td align="center" valign="top">No</td>
      </tr>
      <tr>
          <td valign="top">date</td>
          <td valign="top">Get files as of this date. Either [yyyy/mm/dd]
          or [yyyy/mm/dd:hh:mm:ss]. Note that [yyyy/mm/dd] means 
[yyyy/mm/dd:00:00:00],
          so if you want to include all events on that day refer to
          the next day.</td>
          <td align="center" valign="top">No</td>
      </tr>
      <tr>
          <td valign="top">label</td>
          <td valign="top">A label from which to check out files.</td>
          <td align="center" valign="top">No</td>
      </tr>
      <tr>
          <td valign="top">force</td>
          <td valign="top">&quot;[true|false]&quot;. Forces
          resynchronization even if the client already has the
          file, and clobbers writable files. This flag doesn't
          affect open files.</td>
          <td align="center" valign="top">No, default &quot;false&quot;</td>
      </tr>
      <tr>
          <td>change</td>
          <td>Gets the file(s) as they were when a specified change
          number was applied.</td>
          <td><p align="center">No</p>
          </td>
      </tr>
  </table>
  
  <h3>Examples</h3>
  
  <pre>  &lt;perforce localpath=&quot;//path/to/source/...&quot;
         force=&quot;true&quot;
         change=&quot;4513&quot;
    /&gt;</pre>
  
  <p>syncs the files in the source directory that are in the
  Perforce repository, as of change number 4513, overwriting any
  modified files in the current source tree is needed.</p>
  
  <pre>  &lt;perforce localpath=&quot;//path/to/source/...&quot; /&gt;</pre>
  
  <p>Syncs with the latest version of the file in the repository.</p>
  </body>
  </html>
  
  
  
  1.46      +1 -1      
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/defaults.properties
  
  Index: defaults.properties
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/defaults.properties,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- defaults.properties       2000/10/06 07:57:42     1.45
  +++ defaults.properties       2000/10/06 10:54:09     1.46
  @@ -63,7 +63,7 @@
   wljspc=org.apache.tools.ant.taskdefs.optional.jsp.WLJspc
   jlink=org.apache.tools.ant.taskdefs.optional.jlink.JlinkTask
   native2ascii=org.apache.tools.ant.taskdefs.optional.Native2Ascii
  -p4sync=org.apache.tools.ant.taskdefs.optional.perforce.P4sync
  +perforce=org.apache.tools.ant.taskdefs.optional.perforce.P4sync
   
   # deprecated ant tasks (kept for back compatibility)
   javadoc2=org.apache.tools.ant.taskdefs.Javadoc
  
  
  
  1.2       +81 -18    
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/perforce/P4sync.java
  
  Index: P4sync.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/perforce/P4sync.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- P4sync.java       2000/10/06 07:57:44     1.1
  +++ P4sync.java       2000/10/06 10:54:09     1.2
  @@ -59,24 +59,87 @@
   import org.apache.tools.ant.Task;
   
   /**
  - * A Perforce checkout utility.
  - * Implements the ability to write:
  - * <pre>
  - *  &gt;p4sync dir="src"
  - *      force="no"
  - *      date="2000/04/01"
  - *      time="14:15:29"
  - *      label="labelname"
  - *      revision="#have"
  - *      viewonly="true"
  - *   />
  - * </pre>
  - * Where:
  - *  1. "dir" is mandatory, the rest are optional;
  - *  2. If you specify time, you have to specify date.
  - *  2a. If you specify date but not time, midnight is implied.
  - *  3. You cannot specify more than one of (date, label, revision).
  - *  4. Any "sync" error is considered a fatal error, and a BuildException is 
returned.
  + * <h2><a name="perforce">Perforce</a></h2>
  + * <h3>Description</h3>
  + * <p>Handles packages/modules retrieved from a <a 
href="http://www.perforce.com/";>Perforce</a> repository.</p>
  + * <h3>Parameters</h3>
  + * <table border="1" cellpadding="2" cellspacing="0">
  + *     <tr>
  + *         <td valign="top"><b>Attribute</b></td>
  + *         <td valign="top"><b>Description</b></td>
  + *         <td align="center" valign="top"><b>Required</b></td>
  + *     </tr>
  + *     <tr>
  + *         <td valign="top">localpath</td>
  + *         <td valign="top">The local path of the file/directory to
  + *         write file(s) to.</td>
  + *         <td align="center" valign="top">Yes</td>
  + *     </tr>
  + *     <tr>
  + *         <td>user</td>
  + *         <td>Specifies the user name, overriding the value of $P4USER,
  + *         $USER, and $USERNAME in the environment.</td>
  + *         <td><p align="center">No</p>
  + *         </td>
  + *     </tr>
  + *     <tr>
  + *         <td>port</td>
  + *         <td>Specifies the server's listen address, overriding the
  + *         value of $P4PORT in the environment and the default 
(perforce:1666).</td>
  + *         <td><p align="center">No</p>
  + *         </td>
  + *     </tr>
  + *     <tr>
  + *         <td valign="top">version</td>
  + *         <td valign="top">The revision number of the file being
  + *         extracted.</td>
  + *         <td align="center" valign="top">No</td>
  + *     </tr>
  + *     <tr>
  + *         <td valign="top">date</td>
  + *         <td valign="top">Get files as of this date. Either [yyyy/mm/dd]
  + *         or [yyyy/mm/dd:hh:mm:ss]. Note that [yyyy/mm/dd] means 
[yyyy/mm/dd:00:00:00],
  + *         so if you want to include all events on that day refer to
  + *         the next day.</td>
  + *         <td align="center" valign="top">No</td>
  + *     </tr>
  + *     <tr>
  + *         <td valign="top">label</td>
  + *         <td valign="top">A label from which to check out files.</td>
  + *         <td align="center" valign="top">No</td>
  + *     </tr>
  + *     <tr>
  + *         <td valign="top">force</td>
  + *         <td valign="top">&quot;[true|false]&quot;. Forces
  + *         resynchronization even if the client already has the
  + *         file, and clobbers writable files. This flag doesn't
  + *         affect open files.</td>
  + *         <td align="center" valign="top">No, default &quot;false&quot;</td>
  + *     </tr>
  + *     <tr>
  + *         <td>change</td>
  + *         <td>Gets the file(s) as they were when a specified change
  + *         number was applied.</td>
  + *         <td><p align="center">No</p>
  + *         </td>
  + *     </tr>
  + * </table>
  + *
  + * <h3>Examples</h3>
  + *
  + * <pre>  &lt;perforce localpath=&quot;//path/to/source/...&quot;
  + *        force=&quot;true&quot;
  + *        change=&quot;4513&quot;
  + *   /&gt;</pre>
  + *
  + * <p>syncs the files in the source directory that are in the
  + * Perforce repository, as of change number 4513, overwriting any
  + * modified files in the current source tree is needed. You cannot
  + * specify more than one of (date, label, revision).</p>
  + *
  + * <pre>  &lt;perforce localpath=&quot;//path/to/source/...&quot; /&gt;</pre>
  + *
  + * <p>Syncs with the latest version of the file in the repository.</p>
    */
   public class P4sync extends Exec {
       private String p4user;
  
  
  

Reply via email to