ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs CVSPass.java
Date Sat, 26 Jan 2002 19:09:05 GMT
sbailliez    02/01/26 11:09:05

  Modified:    src/main/org/apache/tools/ant/taskdefs CVSPass.java
  Log:
  Fixed array declarator and static member access
  
  Revision  Changes    Path
  1.6       +8 -6      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/CVSPass.java
  
  Index: CVSPass.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/CVSPass.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- CVSPass.java	8 Jan 2002 20:14:46 -0000	1.5
  +++ CVSPass.java	26 Jan 2002 19:09:05 -0000	1.6
  @@ -56,6 +56,8 @@
   
   import org.apache.tools.ant.Task;
   import org.apache.tools.ant.BuildException;
  +import org.apache.tools.ant.Project;
  +
   import java.io.File;
   import java.io.BufferedReader;
   import java.io.FileReader;
  @@ -69,7 +71,7 @@
    * Adds an new entry to a CVS password file
    *
    * @author <a href="jeff@custommonkey.org">Jeff Martin</a>
  - * @version $Revision: 1.5 $
  + * @version $Revision: 1.6 $
    */
   public class CVSPass extends Task {
       /** CVS Root */
  @@ -82,7 +84,7 @@
       private final String EOL = System.getProperty("line.separator");
   
       /** Array contain char conversion data */
  -   private final char shifts[] = {
  +   private final char[] shifts = {
       0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15,
      16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
     114,120, 53, 79, 96,109, 72,108, 70, 64, 76, 67,116, 74, 68, 87,
  @@ -117,9 +119,9 @@
            throw new BuildException("password is required");
           }
   
  -        log("cvsRoot: " + cvsRoot, project.MSG_DEBUG);
  -        log("password: " + password, project.MSG_DEBUG);
  -        log("passFile: " + passFile, project.MSG_DEBUG);
  +        log("cvsRoot: " + cvsRoot, Project.MSG_DEBUG);
  +        log("password: " + password, Project.MSG_DEBUG);
  +        log("passFile: " + passFile, Project.MSG_DEBUG);
   
           try{
               StringBuffer buf = new StringBuffer();
  @@ -141,7 +143,7 @@
   
               String pwdfile = buf.toString() + cvsRoot + " A" + mangle(password);
   
  -            log("Writing -> " + pwdfile , project.MSG_DEBUG);
  +            log("Writing -> " + pwdfile , Project.MSG_DEBUG);
   
               PrintWriter writer = new PrintWriter(new FileWriter(passFile));
   
  
  
  

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


Mime
View raw message