sbailliez    02/01/08 14:36:47

  Modified:    src/main/org/apache/tools/ant/taskdefs Property.java
  Log:
  Fix bad coding style.
  then/else parts of if statement and loop body must always been enclosed
  in a block statement.
  
  Revision  Changes    Path
  1.41      +12 -4     
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Property.java
  
  Index: Property.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Property.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- Property.java     30 Dec 2001 19:39:23 -0000      1.40
  +++ Property.java     8 Jan 2002 22:36:47 -0000       1.41
  @@ -197,11 +197,17 @@
               addProperty(name, value);
           }
   
  -        if (file != null) loadFile(file);
  +        if (file != null) {
  +          loadFile(file);
  +        }
   
  -        if (resource != null) loadResource(resource);
  +        if (resource != null) {
  +          loadResource(resource);
  +        }
   
  -        if (env != null) loadEnvironment(env);
  +        if (env != null) {
  +          loadEnvironment(env);
  +        }
   
           if ((name != null) && (ref != null)) {
               Object obj = ref.getReferencedObject(getProject());
  @@ -266,7 +272,9 @@
   
       protected void loadEnvironment( String prefix ) {
           Properties props = new Properties();
  -        if (!prefix.endsWith(".")) prefix += ".";
  +        if (!prefix.endsWith(".")) {
  +          prefix += ".";
  +        }
           log("Loading Environment " + prefix, Project.MSG_VERBOSE);
           Vector osEnv = Execute.getProcEnvironment();
           for (Enumeration e = osEnv.elements(); e.hasMoreElements(); ) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to