You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by vm...@apache.org on 2002/08/28 00:25:28 UTC

cvs commit: jakarta-cactus/anttasks/src/java/org/apache/cactus/ant ArgListTask.java

vmassol     2002/08/27 15:25:28

  Modified:    anttasks/src/java/org/apache/cactus/ant ArgListTask.java
  Log:
  new coding conventions
  
  Revision  Changes    Path
  1.4       +14 -9     jakarta-cactus/anttasks/src/java/org/apache/cactus/ant/ArgListTask.java
  
  Index: ArgListTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-cactus/anttasks/src/java/org/apache/cactus/ant/ArgListTask.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ArgListTask.java	5 Aug 2002 17:59:24 -0000	1.3
  +++ ArgListTask.java	27 Aug 2002 22:25:28 -0000	1.4
  @@ -132,28 +132,33 @@
   
           // Build the arg list ("-D" separated string).
           Enumeration args = this.properties.elements();
  -        while (args.hasMoreElements()) {
   
  -            String propertyName =
  -                ((PropertyName) args.nextElement()).getName();
  +        while (args.hasMoreElements())
  +        {
  +            String propertyName = ((PropertyName) args.nextElement()).getName();
   
               // Check if this property is defined
               String value = getProject().getProperty(propertyName);
  -            if (value == null) {
  +
  +            if (value == null)
  +            {
                   continue;
               }
   
               // Yes, add the property the list of args
  -            if (isEmpty) {
  +            if (isEmpty)
  +            {
                   argBuffer.append("-D" + propertyName + "=" + value);
                   isEmpty = false;
  -            } else {
  +            }
  +            else
  +            {
                   argBuffer.append(" -D" + propertyName + "=" + value);
               }
           }
   
  +
           // Set the new property
           getProject().setProperty(this.newProperty, argBuffer.toString());
       }
  -
  -}
  +}
  \ No newline at end of file
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>