ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Sequential.java SignJar.java Sleep.java StreamPumper.java
Date Fri, 12 Apr 2002 12:11:11 GMT
bodewig     02/04/12 05:11:11

  Modified:    src/main/org/apache/tools/ant/taskdefs Sequential.java
                        SignJar.java Sleep.java StreamPumper.java
  Log:
  Cosmetics
  
  Revision  Changes    Path
  1.6       +1 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Sequential.java
  
  Index: Sequential.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Sequential.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Sequential.java	3 Mar 2002 01:46:20 -0000	1.5
  +++ Sequential.java	12 Apr 2002 12:11:11 -0000	1.6
  @@ -66,7 +66,7 @@
    * Implements a single threaded task execution.
    * <p>
    * @author Thomas Christen <a href="mailto:chr@active.ch">chr@active.ch</a>
  - *
  + * @since Ant 1.4
    * @ant.task category="control"
    */
   public class Sequential extends Task
  
  
  
  1.18      +10 -5     jakarta-ant/src/main/org/apache/tools/ant/taskdefs/SignJar.java
  
  Index: SignJar.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/SignJar.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- SignJar.java	3 Mar 2002 01:46:20 -0000	1.17
  +++ SignJar.java	12 Apr 2002 12:11:11 -0000	1.18
  @@ -71,7 +71,7 @@
    *
    * @author Peter Donald <a href="mailto:donaldp@apache.org">donaldp@apache.org</a>
    * @author Nick Fortescue <a href="mailto:nick@ox.compsoc.net">nick@ox.compsoc.net</a>
  - *
  + * @since Ant 1.1
    * @ant.task category="java"
    */
   public class SignJar extends Task {
  @@ -160,6 +160,7 @@
   
       /**
        * Adds a set of files (nested fileset attribute).
  +     * @since Ant 1.4
        */
       public void addFileset(final FileSet set) {
           filesets.addElement(set);
  @@ -168,7 +169,8 @@
   
       public void execute() throws BuildException {
           if (null == jar && null == filesets) {
  -            throw new BuildException("jar must be set through jar attribute or nested filesets");
  +            throw new BuildException("jar must be set through jar attribute "
  +                                     + "or nested filesets");
           }
           if( null != jar ) {
               doOneJar(jar, signedjar);
  @@ -182,15 +184,18 @@
                   DirectoryScanner ds = fs.getDirectoryScanner(project);
                   String[] jarFiles = ds.getIncludedFiles();
                   for(int j=0; j<jarFiles.length; j++) {
  -                    doOneJar( new File( fs.getDir(project), jarFiles[j] ), null);
  +                    doOneJar( new File( fs.getDir(project), jarFiles[j] ), 
  +                              null);
                   }
               }
           }
       }
   
  -    private void doOneJar(File jarSource, File jarTarget) throws BuildException {
  +    private void doOneJar(File jarSource, File jarTarget) 
  +        throws BuildException {
           if (Project.getJavaVersion().equals(Project.JAVA_1_1)) {
  -            throw new BuildException("The signjar task is only available on JDK versions
1.2 or greater");
  +            throw new BuildException("The signjar task is only available on "
  +                                     + "JDK versions 1.2 or greater");
           }
   
           if (null == alias) {
  
  
  
  1.7       +5 -3      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Sleep.java
  
  Index: Sleep.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Sleep.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Sleep.java	3 Mar 2002 01:46:20 -0000	1.6
  +++ Sleep.java	12 Apr 2002 12:11:11 -0000	1.7
  @@ -62,7 +62,7 @@
    * A task to sleep for a period of time
    *
    * @author steve_l@iseran.com steve loughran
  - *
  + * @since Ant 1.4
    * @ant.task category="utility"
    */
   
  @@ -169,7 +169,8 @@
        */
   
       private long getSleepTime() {
  -        return ((((long) hours * 60) + minutes) * 60 + seconds) * 1000 + milliseconds;
  +        return ((((long) hours * 60) + minutes) * 60 + seconds) * 1000 
  +            + milliseconds;
       }
   
   
  @@ -181,7 +182,8 @@
       public void validate() 
           throws BuildException {
           if (getSleepTime() < 0) {
  -            throw new BuildException("Negative sleep periods are not supported");
  +            throw new BuildException("Negative sleep periods are not "
  +                                     + "supported");
           }
       }
   
  
  
  
  1.4       +1 -0      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/StreamPumper.java
  
  Index: StreamPumper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/StreamPumper.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StreamPumper.java	19 Feb 2002 17:29:32 -0000	1.3
  +++ StreamPumper.java	12 Apr 2002 12:11:11 -0000	1.4
  @@ -62,6 +62,7 @@
    * Copies all data from an input stream to an output stream.
    *
    * @author thomas.haas@softwired-inc.com
  + * @since Ant 1.2
    */
   public class StreamPumper implements Runnable {
   
  
  
  

--
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