ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r470130 - in /ant/core/trunk/src/main/org/apache/tools/ant: ./ launch/ listener/ loader/ taskdefs/
Date Wed, 01 Nov 2006 23:00:56 GMT
Author: peterreilly
Date: Wed Nov  1 15:00:52 2006
New Revision: 470130

URL: http://svn.apache.org/viewvc?view=rev&rev=470130
Log:
checkstyle

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/ProjectHelper.java
    ant/core/trunk/src/main/org/apache/tools/ant/Task.java
    ant/core/trunk/src/main/org/apache/tools/ant/launch/Locator.java
    ant/core/trunk/src/main/org/apache/tools/ant/listener/TimestampedLogger.java
    ant/core/trunk/src/main/org/apache/tools/ant/loader/AntClassLoader2.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Ant.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AntStructure.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Apt.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Available.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/BUnzip2.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/BZip2.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Checksum.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Concat.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/CopyPath.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/DefBase.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Definer.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Delete.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/DiagnosticsTask.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Ear.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Echo.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Exec.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecTask.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecuteJava.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecuteOn.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecuteWatchdog.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/GZip.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Get.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ImportTask.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Jar.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Java.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Javac.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/JikesOutputParser.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LoadResource.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/MacroDef.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Manifest.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestClassPath.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Mkdir.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Pack.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PreSetDef.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ProcessDestroyer.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Property.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/ProjectHelper.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/ProjectHelper.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/ProjectHelper.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/ProjectHelper.java Wed Nov  1 15:00:52 2006
@@ -267,7 +267,7 @@
      * JDK1.1 compatible access to the context class loader.
      * Cut&paste from JAXP.
      *
-     * @deprecated since 1.6.x. 
+     * @deprecated since 1.6.x.
      *             Use LoaderUtils.getContextClassLoader()
      *
      * @return the current context class loader, or <code>null</code>
@@ -293,7 +293,7 @@
      * @param project The project containing the target.
      *                Must not be <code>null</code>.
      *
-     * @deprecated since 1.6.x. 
+     * @deprecated since 1.6.x.
      *             Use IntrospectionHelper for each property.
      *
      * @exception BuildException if any of the attributes can't be handled by
@@ -435,7 +435,7 @@
      *                           <code>}</code>
      * @return the original string with the properties replaced, or
      *         <code>null</code> if the original string is <code>null</code>.
-     * @deprecated since 1.6.x. 
+     * @deprecated since 1.6.x.
      *             Use PropertyHelper.
      */
      public static String replaceProperties(Project project, String value,

Modified: ant/core/trunk/src/main/org/apache/tools/ant/Task.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/Task.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/Task.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/Task.java Wed Nov  1 15:00:52 2006
@@ -72,7 +72,7 @@
     /**
      * Wrapper for this object, used to configure it at runtime.
      *
-     * @deprecated since 1.6.x. 
+     * @deprecated since 1.6.x.
      *             You should not be accessing this variable directly.
      *             Please use the {@link #getWrapper()} method.
      */

Modified: ant/core/trunk/src/main/org/apache/tools/ant/launch/Locator.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/launch/Locator.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/launch/Locator.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/launch/Locator.java Wed Nov  1 15:00:52 2006
@@ -42,11 +42,11 @@
     // stolen from org.apache.xerces.impl.XMLEntityManager#getUserDir()
     // of the Xerces-J team
     // which ASCII characters need to be escaped
-    private static boolean gNeedEscaping[] = new boolean[128];
+    private static boolean[] gNeedEscaping = new boolean[128];
     // the first hex character if a character needs to be escaped
-    private static char gAfterEscaping1[] = new char[128];
+    private static char[] gAfterEscaping1 = new char[128];
     // the second hex character if a character needs to be escaped
-    private static char gAfterEscaping2[] = new char[128];
+    private static char[] gAfterEscaping2 = new char[128];
     private static char[] gHexChs = {'0', '1', '2', '3', '4', '5', '6', '7',
                                      '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
     // initialize the above 3 arrays
@@ -157,16 +157,18 @@
         // things when the path is not absolute, and fall back to the old parsing behavior.
         if (uriClazz != null && uri.startsWith("file:/")) {
             try {
-                java.lang.reflect.Method createMethod = uriClazz.getMethod("create", new Class[] {String.class});
+                java.lang.reflect.Method createMethod
+                    = uriClazz.getMethod("create", new Class[] {String.class});
                 Object uriObj = createMethod.invoke(null, new Object[] {uri});
-                java.lang.reflect.Constructor fileConst = File.class.getConstructor(new Class[] {uriClazz});
-                File f = (File)fileConst.newInstance(new Object[] {uriObj});
+                java.lang.reflect.Constructor fileConst
+                    = File.class.getConstructor(new Class[] {uriClazz});
+                File f = (File) fileConst.newInstance(new Object[] {uriObj});
                 return f.getAbsolutePath();
             } catch (java.lang.reflect.InvocationTargetException e) {
                 Throwable e2 = e.getTargetException();
                 if (e2 instanceof IllegalArgumentException) {
                     // Bad URI, pass this on.
-                    throw (IllegalArgumentException)e2;
+                    throw (IllegalArgumentException) e2;
                 } else {
                     // Unexpected target exception? Should not happen.
                     e2.printStackTrace();
@@ -262,8 +264,9 @@
         for (; i < len; i++) {
             ch = path.charAt(i);
             // if it's not an ASCII character, break here, and use UTF-8 encoding
-            if (ch >= 128)
+            if (ch >= 128) {
                 break;
+            }
             if (gNeedEscaping[ch]) {
                 if (sb == null) {
                     sb = new StringBuffer(path.substring(0, i));
@@ -272,8 +275,7 @@
                 sb.append(gAfterEscaping1[ch]);
                 sb.append(gAfterEscaping2[ch]);
                 // record the fact that it's escaped
-            }
-            else if (sb != null) {
+            } else if (sb != null) {
                 sb.append((char) ch);
             }
         }
@@ -302,8 +304,7 @@
                     sb.append('%');
                     sb.append(gAfterEscaping1[b]);
                     sb.append(gAfterEscaping2[b]);
-                }
-                else {
+                } else {
                     sb.append((char) b);
                 }
             }

Modified: ant/core/trunk/src/main/org/apache/tools/ant/listener/TimestampedLogger.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/listener/TimestampedLogger.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/listener/TimestampedLogger.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/listener/TimestampedLogger.java Wed Nov  1 15:00:52 2006
@@ -51,7 +51,7 @@
      * @return The classic "BUILD SUCCESSFUL"
      */
     protected String getBuildSuccessfulMessage() {
-        return super.getBuildSuccessfulMessage()+SPACER +getTimestamp();
+        return super.getBuildSuccessfulMessage() + SPACER + getTimestamp();
     }
 
     protected String getTimestamp() {

Modified: ant/core/trunk/src/main/org/apache/tools/ant/loader/AntClassLoader2.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/loader/AntClassLoader2.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/loader/AntClassLoader2.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/loader/AntClassLoader2.java Wed Nov  1 15:00:52 2006
@@ -21,7 +21,7 @@
 import org.apache.tools.ant.AntClassLoader;
 
 /**
- * @deprecated since 1.7 
+ * @deprecated since 1.7
  *             Just use {@link AntClassLoader} itself.
  */
 public class AntClassLoader2 extends AntClassLoader {

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java Wed Nov  1 15:00:52 2006
@@ -22,7 +22,6 @@
 import java.util.Enumeration;
 import java.util.Vector;
 
-import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.Task;
 import org.apache.tools.ant.types.Environment;
 import org.apache.tools.ant.types.FileSet;
@@ -84,7 +83,7 @@
     /**
      * Java declarations -J-Dname=value
      */
-    private Environment sysProperties=new Environment();
+    private Environment sysProperties = new Environment();
 
     /**
      * error string for unit test verification: {@value}
@@ -98,7 +97,7 @@
      * @since Ant 1.7
      */
     private Path path = null;
-    
+
     /**
      * Set the maximum memory to be used by the jarsigner process
      *
@@ -226,7 +225,7 @@
      */
     private RedirectorElement createRedirector() {
         RedirectorElement result = new RedirectorElement();
-        if(storepass!=null) {
+        if (storepass != null) {
             StringBuffer input = new StringBuffer(storepass).append('\n');
             if (keypass != null) {
                 input.append(keypass).append('\n');
@@ -252,19 +251,19 @@
      */
     protected void setCommonOptions(final ExecTask cmd) {
         if (maxMemory != null) {
-            addValue(cmd,"-J-Xmx" + maxMemory);
+            addValue(cmd, "-J-Xmx" + maxMemory);
         }
 
         if (verbose) {
-            addValue(cmd,"-verbose");
+            addValue(cmd, "-verbose");
         }
 
         //now patch in all system properties
-        Vector props=sysProperties.getVariablesVector();
-        Enumeration e=props.elements();
+        Vector props = sysProperties.getVariablesVector();
+        Enumeration e = props.elements();
         while (e.hasMoreElements()) {
             Environment.Variable variable = (Environment.Variable) e.nextElement();
-            declareSysProperty(cmd,variable);
+            declareSysProperty(cmd, variable);
         }
     }
 
@@ -274,8 +273,9 @@
      * @param property property to set
      * @throws BuildException if the property is not correctly defined.
      */
-    protected void declareSysProperty(ExecTask cmd,Environment.Variable property) {
-        addValue(cmd, "-J-D"+property.getContent());
+    protected void declareSysProperty(
+        ExecTask cmd, Environment.Variable property) {
+        addValue(cmd, "-J-D" + property.getContent());
     }
 
 
@@ -286,7 +286,7 @@
     protected void bindToKeystore(final ExecTask cmd) {
         if (null != keystore) {
             // is the keystore a file
-            addValue(cmd,"-keystore");
+            addValue(cmd, "-keystore");
             String loc;
             File keystoreFile = getProject().resolveFile(keystore);
             if (keystoreFile.exists()) {
@@ -323,7 +323,7 @@
      * @return a vector of FileSet instances
      */
     protected Vector createUnifiedSources() {
-        Vector sources = (Vector)filesets.clone();
+        Vector sources = (Vector) filesets.clone();
         if (jar != null) {
             //we create a fileset with the source file.
             //this lets us combine our logic for handling output directories,
@@ -356,6 +356,7 @@
 
     /**
      * Has either a path or a fileset been specified?
+     * @return true if a path or fileset has been specified.
      * @since Ant 1.7
      */
     protected boolean hasResources() {

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Ant.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Ant.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Ant.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Ant.java Wed Nov  1 15:00:52 2006
@@ -362,9 +362,9 @@
                                              + "its own parent target.");
                 }
                 boolean circular = false;
-                for (Iterator it = locals.iterator(); 
+                for (Iterator it = locals.iterator();
                      !circular && it.hasNext();) {
-                    Target other = 
+                    Target other =
                         (Target) (getProject().getTargets().get(it.next()));
                     circular |= (other != null
                                  && other.dependsOn(owningTargetName));
@@ -381,7 +381,7 @@
 
             addReferences();
 
-            if (locals.size() > 0 && !(locals.size() == 1 
+            if (locals.size() > 0 && !(locals.size() == 1
                                        && "".equals(locals.get(0)))) {
                 BuildException be = null;
                 try {

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AntStructure.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AntStructure.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AntStructure.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/AntStructure.java Wed Nov  1 15:00:52 2006
@@ -46,7 +46,8 @@
  */
 public class AntStructure extends Task {
 
-    private static final String lSep = System.getProperty("line.separator");
+    private static final String LINE_SEP
+        = System.getProperty("line.separator");
 
     private File output;
     private StructurePrinter printer = new DTDPrinter();
@@ -61,6 +62,7 @@
 
     /**
      * The StructurePrinter to use.
+     * @param p the printer to use.
      * @since Ant 1.7
      */
     public void add(StructurePrinter p) {
@@ -101,8 +103,9 @@
             Enumeration dataTypes = getProject().getDataTypeDefinitions().keys();
             while (dataTypes.hasMoreElements()) {
                 String typeName = (String) dataTypes.nextElement();
-                printer.printElementDecl(out, getProject(), typeName,
-                                         (Class) getProject().getDataTypeDefinitions().get(typeName));
+                printer.printElementDecl(
+                    out, getProject(), typeName,
+                    (Class) getProject().getDataTypeDefinitions().get(typeName));
             }
 
             Enumeration tasks = getProject().getTaskDefinitions().keys();
@@ -282,11 +285,11 @@
             sb.append(name).append(" ");
 
             if (org.apache.tools.ant.types.Reference.class.equals(element)) {
-                sb.append("EMPTY>").append(lSep);
+                sb.append("EMPTY>").append(LINE_SEP);
                 sb.append("<!ATTLIST ").append(name);
-                sb.append(lSep).append("          id ID #IMPLIED");
-                sb.append(lSep).append("          refid IDREF #IMPLIED");
-                sb.append(">").append(lSep);
+                sb.append(LINE_SEP).append("          id ID #IMPLIED");
+                sb.append(LINE_SEP).append("          refid IDREF #IMPLIED");
+                sb.append(">").append(LINE_SEP);
                 out.println(sb);
                 return;
             }
@@ -326,7 +329,7 @@
 
             sb = new StringBuffer("<!ATTLIST ");
             sb.append(name);
-            sb.append(lSep).append("          id ID #IMPLIED");
+            sb.append(LINE_SEP).append("          id ID #IMPLIED");
 
             e = ih.getAttributes();
             while (e.hasMoreElements()) {
@@ -335,7 +338,8 @@
                     continue;
                 }
 
-                sb.append(lSep).append("          ").append(attrName).append(" ");
+                sb.append(LINE_SEP).append("          ")
+                    .append(attrName).append(" ");
                 Class type = ih.getAttributeType(attrName);
                 if (type.equals(java.lang.Boolean.class)
                     || type.equals(java.lang.Boolean.TYPE)) {
@@ -371,7 +375,7 @@
                 }
                 sb.append("#IMPLIED");
             }
-            sb.append(">").append(lSep);
+            sb.append(">").append(LINE_SEP);
             out.println(sb);
 
             final int count = v.size();

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Apt.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Apt.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Apt.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Apt.java Wed Nov  1 15:00:52 2006
@@ -51,7 +51,7 @@
     /** A warning message if used with java < 1.5. */
     public static final String ERROR_WRONG_JAVA_VERSION
         = "Apt task requires Java 1.5+";
- 
+
     /**
      * exposed for debug messages
      */
@@ -140,7 +140,7 @@
      */
     public void setFork(boolean fork) {
         if (!fork) {
-            log(WARNING_IGNORING_FORK,Project.MSG_WARN);
+            log(WARNING_IGNORING_FORK, Project.MSG_WARN);
         }
     }
 

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Available.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Available.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Available.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Available.java Wed Nov  1 15:00:52 2006
@@ -173,7 +173,7 @@
     }
 
     /**
-     * @deprecated since 1.5.x. 
+     * @deprecated since 1.5.x.
      *             setType(String) is deprecated and is replaced with
      *             setType(Available.FileDir) to make Ant's Introspection
      *             mechanism do the work and also to encapsulate operations on

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/BUnzip2.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/BUnzip2.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/BUnzip2.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/BUnzip2.java Wed Nov  1 15:00:52 2006
@@ -100,7 +100,7 @@
      * support non-file resources needs to override this method.  We
      * need to do so for backwards compatibility reasons since we
      * can't expect subclasses to support resources.</p>
-     *
+     * @return true if this class supports non file resources.
      * @since Ant 1.7
      */
     protected boolean supportsNonFileResources() {

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/BZip2.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/BZip2.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/BZip2.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/BZip2.java Wed Nov  1 15:00:52 2006
@@ -61,7 +61,7 @@
      * support non-file resources needs to override this method.  We
      * need to do so for backwards compatibility reasons since we
      * can't expect subclasses to support resources.</p>
-     *
+     * @return true if this task support non file resources.
      * @since Ant 1.7
      */
     protected boolean supportsNonFileResources() {

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Checksum.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Checksum.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Checksum.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Checksum.java Wed Nov  1 15:00:52 2006
@@ -449,13 +449,13 @@
         if (todir != null) {
             // A separate directory was explicitly declared
             String path = (String) relativeFilePaths.get(file);
-            if(path==null) {
+            if (path == null) {
                 //bug 37386. this should not occur, but it has, once.
-                throw new BuildException("Internal error: " +
-                        "relativeFilePaths could not match file"+
-                        file+
-                        "\n" +
-                        "please file a bug report on this");
+                throw new BuildException(
+                    "Internal error: "
+                    + "relativeFilePaths could not match file"
+                    + file + "\n"
+                    + "please file a bug report on this");
             }
             directory = new File(todir, path).getParentFile();
             // Create the directory, as it might not exist.
@@ -631,7 +631,7 @@
         } catch (ParseException e) {
             throw new BuildException("Couldn't read checksum file " + f, e);
         } finally {
-        	FileUtils.close(diskChecksumReader);
+            FileUtils.close(diskChecksumReader);
         }
     }
 

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Concat.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Concat.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Concat.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Concat.java Wed Nov  1 15:00:52 2006
@@ -432,8 +432,9 @@
             if (!outofdate) {
                 for (Iterator i = existRc.iterator(); !outofdate && i.hasNext();) {
                     Resource r = (Resource) i.next();
-                    outofdate = (r.getLastModified() == 0L || 
-                        r.getLastModified() > destinationFile.lastModified());
+                    outofdate =
+                        (r.getLastModified() == 0L
+                         || r.getLastModified() > destinationFile.lastModified());
                 }
             }
             if (!outofdate) {
@@ -493,6 +494,7 @@
                 try {
                     t.join();
                 } catch (InterruptedException ee) {
+                    // Empty
                 }
             }
         } finally {

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Copy.java Wed Nov  1 15:00:52 2006
@@ -156,7 +156,7 @@
     /**
      * Give the copied files the same last modified time as the original files.
      * @param preserve a boolean string.
-     * @deprecated since 1.5.x. 
+     * @deprecated since 1.5.x.
      *             setPreserveLastModified(String) has been deprecated and
      *             replaced with setPreserveLastModified(boolean) to
      *             consistently let the Introspection mechanism work.
@@ -289,7 +289,7 @@
     public void addFileset(FileSet set) {
         add(set);
     }
-    
+
     /**
      * Add a collection of files to copy.
      * @param res a resource collection to copy.
@@ -298,7 +298,7 @@
     public void add(ResourceCollection res) {
         rcs.add(res);
     }
-    
+
     /**
      * Define the mapper to map source to destination files.
      * @return a mapper to be configured.
@@ -423,7 +423,7 @@
 
             /* for historical and performance reasons we have to do
                things in a rather complex way.
-            
+
                (1) Move is optimized to move directories if a fileset
                has been included completely, therefore FileSets need a
                special treatment.  This is also required to support
@@ -498,7 +498,7 @@
                         // files.
                         if (r.isDirectory() || r instanceof FileResource) {
                             add(baseDir, name,
-                                r.isDirectory() ? dirsByBasedir 
+                                r.isDirectory() ? dirsByBasedir
                                                 : filesByBasedir);
                             baseDirs.add(baseDir);
                         } else { // a not-directory file resource
@@ -912,7 +912,7 @@
      * support non-file resources needs to override this method.  We
      * need to do so for backwards compatibility reasons since we
      * can't expect subclasses to support resources.</p>
-     *
+     * @return true if this task supports non file resources.
      * @since Ant 1.7
      */
     protected boolean supportsNonFileResources() {
@@ -977,7 +977,7 @@
     private String getMessage(Exception ex) {
         return ex.getMessage() == null ? ex.toString() : ex.getMessage();
     }
-    
+
     /**
      * Returns a reason for failure based on
      * the exception thrown.

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/CopyPath.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/CopyPath.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/CopyPath.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/CopyPath.java Wed Nov  1 15:00:52 2006
@@ -31,9 +31,9 @@
 
 /**
  * Copy the contents of a path to a destination, using the mapper of choice
- * 
+ *
  * @since Ant 1.7
- * 
+ *
  * @ant.task category="filesystem"
  */
 
@@ -69,8 +69,8 @@
 
     /**
      * add a mapper
-     * 
-     * @param newmapper
+     *
+     * @param newmapper the mapper to add.
      */
     public void add(FileNameMapper newmapper) {
         if (mapper != null) {
@@ -81,7 +81,7 @@
 
     /**
      * Set the path to be used when running the Java class.
-     * 
+     *
      * @param s
      *            an Ant Path object containing the path.
      */
@@ -91,7 +91,7 @@
 
     /**
      * Set the path to use by reference.
-     * 
+     *
      * @param r
      *            a reference to an existing path.
      */
@@ -101,7 +101,7 @@
 
     /**
      * Create a path.
-     * 
+     *
      * @return a path to be configured.
      */
     public Path createPath() {
@@ -122,7 +122,7 @@
     /**
      * Ensure we have a consistent and legal set of attributes, and set any
      * internal flags necessary based on different combinations of attributes.
-     * 
+     *
      * @throws BuildException
      *             if an error occurs.
      */
@@ -140,7 +140,7 @@
 
     /**
      * This is a very minimal derivative of the nomal copy logic.
-     * 
+     *
      * @throws BuildException
      *             if something goes wrong with the build.
      */

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/DefBase.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/DefBase.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/DefBase.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/DefBase.java Wed Nov  1 15:00:52 2006
@@ -38,7 +38,7 @@
     /**
      * @param reverseLoader if true a delegated loader will take precedence over
      *                      the parent
-     * @deprecated since 1.6.x. 
+     * @deprecated since 1.6.x.
      *             stop using this attribute
      * @ant.attribute ignore="true"
      */

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Definer.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Definer.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Definer.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Definer.java Wed Nov  1 15:00:52 2006
@@ -290,7 +290,8 @@
 
     /**
      * This is where the logic to map from a URI to an antlib resource
-     * is kept. 
+     * is kept.
+     * @param uri the xml namespace uri that to convert.
      * @return the name of a resource. It may not exist
      */
 
@@ -298,8 +299,8 @@
         String path = uri.substring(MagicNames.ANTLIB_PREFIX.length());
         String resource;
         if (path.startsWith("//")) {
-            //handle new style full paths to an antlib, in which 
-            //all but the forward slashes are allowed. 
+            //handle new style full paths to an antlib, in which
+            //all but the forward slashes are allowed.
             resource = path.substring("//".length());
             if (!resource.endsWith(".xml")) {
                 //if we haven't already named an XML file, it gets antlib.xml
@@ -313,11 +314,11 @@
     }
 
     /**
-     * Convert a file to a file: URL. 
-     * 
+     * Convert a file to a file: URL.
+     *
      * @return the URL, or null if it isn't valid and the active error policy
      * is not to raise a fault
-     * @throws BuildException if the file is missing/not a file and the 
+     * @throws BuildException if the file is missing/not a file and the
      * policy requires failure at this point.
      */
     private URL fileToURL() {
@@ -480,7 +481,7 @@
                 "Invalid antlib attribute - it must start with antlib:");
         }
         setURI(antlib);
-        this.resource = antlib.substring("antlib:".length()).replace('.','/')
+        this.resource = antlib.substring("antlib:".length()).replace('.', '/')
             + "/antlib.xml";
         definerSet = true;
     }

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Delete.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Delete.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Delete.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Delete.java Wed Nov  1 15:00:52 2006
@@ -600,10 +600,10 @@
         } catch (Exception e) {
             handle(e);
         } finally {
-	    if (implicit != null) {
-		filesets.remove(implicit);
-	    }
-	}
+            if (implicit != null) {
+                filesets.remove(implicit);
+            }
+        }
     }
 
 //************************************************************************
@@ -693,7 +693,7 @@
                 + d.getAbsolutePath(), quiet ? Project.MSG_VERBOSE : verbosity);
             for (int j = 0; j < files.length; j++) {
                 File f = new File(d, files[j]);
-                log("Deleting " + f.getAbsolutePath(), 
+                log("Deleting " + f.getAbsolutePath(),
                         quiet ? Project.MSG_VERBOSE : verbosity);
                 if (!delete(f)) {
                     handle("Unable to delete file " + f.getAbsolutePath());
@@ -707,7 +707,7 @@
                 File currDir = new File(d, dirs[j]);
                 String[] dirFiles = currDir.list();
                 if (dirFiles == null || dirFiles.length == 0) {
-                    log("Deleting " + currDir.getAbsolutePath(), 
+                    log("Deleting " + currDir.getAbsolutePath(),
                             quiet ? Project.MSG_VERBOSE : verbosity);
                     if (!delete(currDir)) {
                         handle("Unable to delete directory "
@@ -722,7 +722,7 @@
                 log("Deleted "
                      + dirCount
                      + " director" + (dirCount == 1 ? "y" : "ies")
-                     + " form " + d.getAbsolutePath(), 
+                     + " form " + d.getAbsolutePath(),
                      quiet ? Project.MSG_VERBOSE : verbosity);
             }
         }

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/DiagnosticsTask.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/DiagnosticsTask.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/DiagnosticsTask.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/DiagnosticsTask.java Wed Nov  1 15:00:52 2006
@@ -1,9 +1,3 @@
-package org.apache.tools.ant.taskdefs;
-
-import org.apache.tools.ant.Task;
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Diagnostics;
-
 /*
  *  Licensed to the Apache Software Foundation (ASF) under one or more
  *  contributor license agreements.  See the NOTICE file distributed with
@@ -21,6 +15,12 @@
  *  limitations under the License.
  *
  */
+package org.apache.tools.ant.taskdefs;
+
+import org.apache.tools.ant.Task;
+import org.apache.tools.ant.BuildException;
+import org.apache.tools.ant.Diagnostics;
+
 
 /**
  * This is a task that hands off work to the Diagnostics module.
@@ -28,10 +28,10 @@
  */
 public class DiagnosticsTask extends Task {
 
-    private static final String[] args=new String[0];
-    
+    private static final String[] ARGS = new String[0];
+
     public void execute() throws BuildException {
-        Diagnostics.main(args);
+        Diagnostics.main(ARGS);
     }
 
 

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Ear.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Ear.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Ear.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Ear.java Wed Nov  1 15:00:52 2006
@@ -50,7 +50,7 @@
     /**
      * Set the destination file.
      * @param earFile the destination file
-     * @deprecated since 1.5.x. 
+     * @deprecated since 1.5.x.
      *             Use setDestFile(destfile) instead.
      */
     public void setEarfile(File earFile) {

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Echo.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Echo.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Echo.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Echo.java Wed Nov  1 15:00:52 2006
@@ -61,12 +61,12 @@
             Writer out = null;
             try {
                 String filename = file.getAbsolutePath();
-                if(encoding==null || encoding.length()==0) {
+                if(encoding == null || encoding.length() == 0) {
                     out = new FileWriter(filename, append);
                 } else {
                     out = new BufferedWriter(
                             new OutputStreamWriter(
-                                new FileOutputStream(filename, append),encoding));
+                                new FileOutputStream(filename, append), encoding));
                 }
                 out.write(message, 0, message.length());
             } catch (IOException ioe) {
@@ -132,7 +132,7 @@
     /**
      * Declare the encoding to use when outputting to a file;
      * Use "" for the platform's default encoding.
-     * @param encoding
+     * @param encoding the character encoding to use.
      * @since 1.7
      */
     public void setEncoding(String encoding) {

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Exec.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Exec.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Exec.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Exec.java Wed Nov  1 15:00:52 2006
@@ -39,7 +39,7 @@
  * dead code by the Ant developers and is unmaintained.  Don't use
  * it.</strong></p>
  *
- * @deprecated since 1.2. 
+ * @deprecated since 1.2.
  *             delegate to {@link org.apache.tools.ant.taskdefs.Execute Execute}
  *             instead.
  */

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecTask.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecTask.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecTask.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecTask.java Wed Nov  1 15:00:52 2006
@@ -388,7 +388,7 @@
 
     /**
      * Restrict this execution to a single OS Family
-     * @param osFamily
+     * @param osFamily the family to restrict to.
      */
     public void setOsFamily(String osFamily) {
         this.osFamily = osFamily.toLowerCase(Locale.US);
@@ -543,7 +543,7 @@
      */
     protected boolean isValidOs() {
         //hand osfamily off to Os class, if set
-        if(osFamily!=null && !Os.isOs(osFamily,null,null,null)) {
+        if (osFamily != null && !Os.isOs(osFamily, null, null, null)) {
             return false;
         }
         //the Exec OS check is different from Os.isOs(), which

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java Wed Nov  1 15:00:52 2006
@@ -49,7 +49,7 @@
  */
 public class Execute {
 
-    /** Invalid exit code. 
+    /** Invalid exit code.
      * set to {@link Integer#MAX_VALUE}
      */
     public static final int INVALID = Integer.MAX_VALUE;
@@ -1033,8 +1033,8 @@
                 throw new IOException("Cannot locate antRun script: "
                     + "Property '" + MagicNames.ANT_HOME + "' not found");
             }
-            String antRun = 
-                FILE_UTILS.resolveFile(project.getBaseDir(), 
+            String antRun =
+                FILE_UTILS.resolveFile(project.getBaseDir(),
                         antHome + File.separator + myScript).toString();
 
             // Build the command
@@ -1092,8 +1092,8 @@
                 throw new IOException("Cannot locate antRun script: "
                     + "Property '" + MagicNames.ANT_HOME + "' not found");
             }
-            String antRun = 
-                FILE_UTILS.resolveFile(project.getBaseDir(), 
+            String antRun =
+                FILE_UTILS.resolveFile(project.getBaseDir(),
                         antHome + File.separator + myScript).toString();
 
             // Build the command
@@ -1210,8 +1210,7 @@
                 public void run() {
                     try {
                         p.waitFor();
-                    }
-                    catch (InterruptedException e) {
+                    } catch (InterruptedException e) {
                         //ignore
                     }
                     FileUtils.delete(f);

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecuteJava.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecuteJava.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecuteJava.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecuteJava.java Wed Nov  1 15:00:52 2006
@@ -92,7 +92,7 @@
      * Set the stream to which all output (System.out as well as System.err)
      * will be written.
      * @param out the PrintStream where output should be sent.
-     * @deprecated since 1.4.x. 
+     * @deprecated since 1.4.x.
      *             manage output at the task level.
      */
     public void setOutput(PrintStream out) {

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecuteOn.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecuteOn.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecuteOn.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecuteOn.java Wed Nov  1 15:00:52 2006
@@ -417,7 +417,7 @@
                     baseDirs.removeAllElements();
                 }
             }
-        
+
             if (resources != null) {
                 Iterator iter = resources.iterator();
                 while (iter.hasNext()) {

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecuteWatchdog.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecuteWatchdog.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecuteWatchdog.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ExecuteWatchdog.java Wed Nov  1 15:00:52 2006
@@ -69,7 +69,7 @@
 
     /**
      * @see #ExecuteWatchdog(long)
-     * @deprecated since 1.5.x. 
+     * @deprecated since 1.5.x.
      *             Use constructor with a long type instead.
      * (1.4.x compatibility)
      */

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java Wed Nov  1 15:00:52 2006
@@ -174,7 +174,7 @@
      * <li>remove: remove all CR characters
      * </ul>
      *
-     * @deprecated since 1.4.x. 
+     * @deprecated since 1.4.x.
      *             Use {@link #setEol setEol} instead.
      */
     public void setCr(AddAsisRemove attr) {
@@ -277,7 +277,7 @@
     public void execute() throws BuildException {
         // first off, make sure that we've got a srcdir and destdir
         validate();
-        
+
         // log options used
         String enc = encoding == null ? "default" : encoding;
         log("options:"
@@ -326,7 +326,7 @@
             }
         }
     }
-    
+
     private void processFile(String file) throws BuildException {
         File srcFile = new File(srcDir, file);
         long lastModified = srcFile.lastModified();

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/GZip.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/GZip.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/GZip.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/GZip.java Wed Nov  1 15:00:52 2006
@@ -58,7 +58,7 @@
      * support non-file resources needs to override this method.  We
      * need to do so for backwards compatibility reasons since we
      * can't expect subclasses to support resources.</p>
-     *
+     * @return true if this case supports non file resources.
      * @since Ant 1.7
      */
     protected boolean supportsNonFileResources() {

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Get.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Get.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Get.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Get.java Wed Nov  1 15:00:52 2006
@@ -339,9 +339,9 @@
     /**
      * Provide this for Backward Compatibility.
      */
-        
     protected static class Base64Converter
-        extends org.apache.tools.ant.util.Base64Converter {}
+        extends org.apache.tools.ant.util.Base64Converter {
+    }
 
     public interface DownloadProgress {
         /**

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ImportTask.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ImportTask.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ImportTask.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ImportTask.java Wed Nov  1 15:00:52 2006
@@ -94,12 +94,12 @@
         ProjectHelper helper =
                 (ProjectHelper) getProject().
                     getReference(ProjectHelper.PROJECTHELPER_REFERENCE);
-        
+
         if (helper == null) {
             // this happens if the projecthelper was not registered with the project.
             throw new BuildException("import requires support in ProjectHelper");
         }
-        
+
         Vector importStack = helper.getImportStack();
 
         if (importStack.size() == 0) {

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Jar.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Jar.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Jar.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Jar.java Wed Nov  1 15:00:52 2006
@@ -147,7 +147,7 @@
     private ZipExtraField[] JAR_MARKER = new ZipExtraField[] {
         JarMarker.getInstance()
     };
-    
+
     protected String emptyBehavior = "create";
 
     /** constructor */
@@ -183,7 +183,6 @@
         emptyBehavior = we.getValue();
     }
 
-    
     /**
      * Set the destination file.
      * @param jarFile the destination file
@@ -390,12 +389,12 @@
     private void writeServices(ZipOutputStream zOut) throws IOException {
         Iterator serviceIterator;
         Service service;
-        
+
         serviceIterator = serviceList.iterator();
-        while(serviceIterator.hasNext()){
+        while(serviceIterator.hasNext()) {
            service = (Service) serviceIterator.next();
            //stolen from writeManifest
-           super.zipFile(service.getAsStream(), zOut, 
+           super.zipFile(service.getAsStream(), zOut,
                          "META-INF/service/" + service.getType(),
                          System.currentTimeMillis(), null,
                          ZipFileSet.DEFAULT_FILE_MODE);
@@ -708,7 +707,8 @@
                     }
                 }
             } catch (Throwable t) {
-                log("error while reading original manifest in file: " + zipFile.toString() + t.getMessage(),
+                log("error while reading original manifest in file: "
+                    + zipFile.toString() + t.getMessage(),
                     Project.MSG_WARN);
                 needsUpdate = true;
             }
@@ -744,7 +744,7 @@
                                      + ": no files were included.",
                                      getLocation());
         }
-        
+
         ZipOutputStream zOut = null;
         try {
             log("Building MANIFEST-only jar: "

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Java.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Java.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Java.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Java.java Wed Nov  1 15:00:52 2006
@@ -138,7 +138,8 @@
             throw new BuildException("Cannot spawn a java process in non-forked mode."
                                      + " Please set fork='true'. ");
         }
-        if (getCommandLine().getClasspath()!=null && getCommandLine().getJar()!=null) {
+        if (getCommandLine().getClasspath() != null
+            && getCommandLine().getJar() != null) {
             log("When using 'jar' attribute classpath-settings are ignored. "
                 + "See the manual for more information.", Project.MSG_VERBOSE);
         }
@@ -933,4 +934,4 @@
     public CommandlineJava.SysProperties getSysProperties() {
         return getCommandLine().getSystemProperties();
     }
-}
\ No newline at end of file
+}

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Javac.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Javac.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Javac.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Javac.java Wed Nov  1 15:00:52 2006
@@ -28,7 +28,6 @@
 import org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory;
 import org.apache.tools.ant.types.Path;
 import org.apache.tools.ant.types.Reference;
-import org.apache.tools.ant.util.FileUtils;
 import org.apache.tools.ant.util.GlobPatternMapper;
 import org.apache.tools.ant.util.JavaEnvUtils;
 import org.apache.tools.ant.util.SourceFileScanner;

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/JikesOutputParser.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/JikesOutputParser.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/JikesOutputParser.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/JikesOutputParser.java Wed Nov  1 15:00:52 2006
@@ -34,7 +34,7 @@
  * by the Ant developers and is unmaintained.  Don't use
  * it.</strong></p>
  *
- * @deprecated since 1.2. 
+ * @deprecated since 1.2.
  *             Use Jikes' exit value to detect compilation failure.
  */
 public class JikesOutputParser implements ExecuteStreamHandler {

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LoadResource.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LoadResource.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LoadResource.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LoadResource.java Wed Nov  1 15:00:52 2006
@@ -133,7 +133,7 @@
         try {
             final long len = src.getSize();
             log("resource size = "
-                + (len != Resource.UNKNOWN_SIZE ? String.valueOf(len) 
+                + (len != Resource.UNKNOWN_SIZE ? String.valueOf(len)
                    : "unknown"), Project.MSG_DEBUG);
             //discard most of really big resources
             final int size = (int) len;

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/LogOutputStream.java Wed Nov  1 15:00:52 2006
@@ -84,6 +84,7 @@
      * Logs a line to the log system of ant.
      *
      * @param line the line to log.
+     * @param level the logging level to use.
      */
     protected void processLine(String line, int level) {
         pc.log(line, level);
@@ -93,4 +94,4 @@
         return level;
     }
 
-}
\ No newline at end of file
+}

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/MacroDef.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/MacroDef.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/MacroDef.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/MacroDef.java Wed Nov  1 15:00:52 2006
@@ -345,7 +345,7 @@
             getProject());
 
         helper.addDataTypeDefinition(def);
-        log("creating macro  " + name,Project.MSG_VERBOSE);
+        log("creating macro  " + name, Project.MSG_VERBOSE);
     }
 
     /**
@@ -426,7 +426,7 @@
          * @return a <code>boolean</code> value
          */
         protected boolean equals(Member m) {
-            return (name == null)? m.name == null: name.equals(m.name);
+            return (name == null) ? m.name == null : name.equals(m.name);
         }
 
         /**
@@ -576,7 +576,7 @@
          * This is not allowed for the define nested element.
          *
          * @param defaultValue not used
-         * @throws BuildException, always
+         * @throws BuildException always
          */
         public void setDefault(String defaultValue) {
             throw new BuildException(
@@ -585,7 +585,7 @@
 
         /**
          * Gets the default value for this attibute.
-         * 
+         *
          * @return the generated <em>unique</em> name, of the form
          *         "prefix#this classname#&lt;aCounter&gt;".
          */

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Manifest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Manifest.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Manifest.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Manifest.java Wed Nov  1 15:00:52 2006
@@ -86,7 +86,7 @@
 
     /** Encoding to be used for JAR files. */
     public static final String JAR_ENCODING = "UTF-8";
-    
+
     /**
      * An attribute for the manifest.
      * Those attributes that are not nested into a section will be added to the "Main" section.
@@ -105,7 +105,7 @@
          * In this case the first line will have 74 bytes total line length
          * (including CRLF). This conflicts with the 72 bytes total line length
          * max, but is the only possible conclusion from the manifest specification, if
-         * names with 70 bytes length are allowed, have to be on the first line, and 
+         * names with 70 bytes length are allowed, have to be on the first line, and
          * have to be followed by ": ".
          */
         private static final int MAX_NAME_LENGTH = 70;
@@ -326,25 +326,20 @@
              throws IOException {
             String line = null;
             int nameLength = name.getBytes(JAR_ENCODING).length;
-            if (nameLength > MAX_NAME_VALUE_LENGTH)
-            {
-                if (nameLength > MAX_NAME_LENGTH)
-                {
+            if (nameLength > MAX_NAME_VALUE_LENGTH) {
+                if (nameLength > MAX_NAME_LENGTH) {
                     throw new IOException("Unable to write manifest line "
                             + name + ": " + value);
                 }
                 writer.print(name + ": " + EOL);
                 line = " " + value;
-            }
-            else
-            {
+            } else {
                 line = name + ": " + value;
             }
             while (line.getBytes(JAR_ENCODING).length > MAX_SECTION_LENGTH) {
                 // try to find a MAX_LINE_LENGTH byte section
                 int breakIndex = MAX_SECTION_LENGTH;
-                if (breakIndex >= line.length())
-                {
+                if (breakIndex >= line.length()) {
                     breakIndex = line.length() - 1;
                 }
                 String section = line.substring(0, breakIndex);

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestClassPath.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestClassPath.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestClassPath.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ManifestClassPath.java Wed Nov  1 15:00:52 2006
@@ -36,16 +36,16 @@
 public class ManifestClassPath extends Task {
 
     /** The property name to hold the classpath value. */
-    private String _name;
+    private String name;
 
     /** The directory the classpath will be relative from. */
-    private File _dir;
+    private File dir;
 
     /** The maximum parent directory level to traverse. */
-    private int _maxParentLevels = 2;
+    private int maxParentLevels = 2;
 
     /** The classpath to convert. */
-    private Path _path;
+    private Path path;
 
     /**
      * Sets a property, which must not already exist, with a space
@@ -53,37 +53,37 @@
      * file's parent directory.
      */
     public void execute() {
-        if (_name == null) {
+        if (name == null) {
           throw new BuildException("Missing 'property' attribute!");
         }
-        if (_dir == null) {
+        if (dir == null) {
           throw new BuildException("Missing 'jarfile' attribute!");
         }
-        if (getProject().getProperty(_name) != null) {
-          throw new BuildException("Property '" + _name + "' already set!");
+        if (getProject().getProperty(name) != null) {
+          throw new BuildException("Property '" + name + "' already set!");
         }
-        if (_path == null) {
+        if (path == null) {
             throw new BuildException("Missing nested <classpath>!");
         }
 
         // Normalize the reference directory (containing the jar)
         final FileUtils fileUtils = FileUtils.getFileUtils();
-        _dir = fileUtils.normalize(_dir.getAbsolutePath());
+        dir = fileUtils.normalize(dir.getAbsolutePath());
 
         // Create as many directory prefixes as parent levels to traverse,
         // in addition to the reference directory itself
-        File currDir = _dir;
-        String[] dirs = new String[_maxParentLevels + 1];
-        for (int i = 0; i < _maxParentLevels + 1; ++i) {
+        File currDir = dir;
+        String[] dirs = new String[maxParentLevels + 1];
+        for (int i = 0; i < maxParentLevels + 1; ++i) {
             dirs[i] = currDir.getAbsolutePath() + File.separatorChar;
             currDir = currDir.getParentFile();
             if (currDir == null) {
-                _maxParentLevels = i + 1;
+                maxParentLevels = i + 1;
                 break;
             }
         }
 
-        String[] elements = _path.list();
+        String[] elements = path.list();
         StringBuffer buffer = new StringBuffer();
         StringBuffer element = new StringBuffer();
         for (int i = 0; i < elements.length; ++i) {
@@ -95,7 +95,7 @@
             // Find the longest prefix shared by the current file
             // and the reference directory.
             String relPath = null;
-            for (int j = 0; j <= _maxParentLevels; ++j) {
+            for (int j = 0; j <= maxParentLevels; ++j) {
                 String dir = dirs[j];
                 if (!fullPath.startsWith(dir)) {
                     continue;
@@ -115,8 +115,9 @@
 
             // No match, so bail out!
             if (relPath == null) {
-                throw new BuildException("No suitable relative path from " +
-                                         _dir + " to " + fullPath);
+                throw new BuildException(
+                    "No suitable relative path from "
+                    + dir + " to " + fullPath);
             }
 
             // Manifest's ClassPath: attribute always uses forward
@@ -138,7 +139,7 @@
         }
 
         // Finally assign the property with the manifest classpath
-        getProject().setNewProperty(_name, buffer.toString().trim());
+        getProject().setNewProperty(name, buffer.toString().trim());
     }
 
     /**
@@ -147,7 +148,7 @@
      * @param  name the property name
      */
     public void setProperty(String name) {
-        _name = name;
+        this.name = name;
     }
 
     /**
@@ -161,7 +162,7 @@
         if (!parent.isDirectory()) {
             throw new BuildException("Jar's directory not found: " + parent);
         }
-        _dir = parent;
+        this.dir = parent;
     }
 
     /**
@@ -171,7 +172,7 @@
      * @param  levels the max level. Defaults to 2.
      */
     public void setMaxParentLevels(int levels) {
-        _maxParentLevels = levels;
+        this.maxParentLevels = levels;
     }
 
     /**
@@ -180,7 +181,7 @@
      * @param  path the classpath to convert.
      */
     public void addClassPath(Path path) {
-        _path = path;
+        this.path = path;
     }
 
 }

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Mkdir.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Mkdir.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Mkdir.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Mkdir.java Wed Nov  1 15:00:52 2006
@@ -65,7 +65,8 @@
             }
             log("Created dir: " + dir.getAbsolutePath());
         } else {
-            log("Skipping " + dir.getAbsolutePath() + " because it already exists.", Project.MSG_VERBOSE);
+            log("Skipping " + dir.getAbsolutePath()
+                + " because it already exists.", Project.MSG_VERBOSE);
         }
     }
 

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Pack.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Pack.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Pack.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Pack.java Wed Nov  1 15:00:52 2006
@@ -183,7 +183,7 @@
 
     /**
      * The source resource.
-     *
+     * @return the source.
      * @since Ant 1.7
      */
     public Resource getSrcResource() {
@@ -194,7 +194,7 @@
      * Whether this task can deal with non-file resources.
      *
      * <p>This implementation returns false.</p>
-     *
+     * @return false.
      * @since Ant 1.7
      */
     protected boolean supportsNonFileResources() {

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PreSetDef.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PreSetDef.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PreSetDef.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PreSetDef.java Wed Nov  1 15:00:52 2006
@@ -96,7 +96,7 @@
         newDef.setName(name);
 
         helper.addDataTypeDefinition(newDef);
-        log("defining preset "+name,Project.MSG_VERBOSE);
+        log("defining preset " + name, Project.MSG_VERBOSE);
     }
 
     /**

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ProcessDestroyer.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ProcessDestroyer.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ProcessDestroyer.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ProcessDestroyer.java Wed Nov  1 15:00:52 2006
@@ -144,7 +144,8 @@
             // Cf.: http://developer.java.sun.com/developer/bugParade/bugs/4533087.html
             destroyProcessThread.setShouldDestroy(false);
             if (!destroyProcessThread.getThreadGroup().isDestroyed()) {
-                // start() would throw IllegalThreadStateException from ThreadGroup.add if it were destroyed
+                // start() would throw IllegalThreadStateException from
+                // ThreadGroup.add if it were destroyed
                 destroyProcessThread.start();
             }
             // this should return quickly, since it basically is a NO-OP.

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Property.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Property.java?view=diff&rev=470130&r1=470129&r2=470130
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Property.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Property.java Wed Nov  1 15:00:52 2006
@@ -606,8 +606,9 @@
         String propertyValue = props.getProperty(name);
         Vector fragments = new Vector();
         Vector propertyRefs = new Vector();
-        PropertyHelper.getPropertyHelper(this.getProject()).parsePropertyString(propertyValue, fragments,
-                propertyRefs);
+        PropertyHelper.getPropertyHelper(
+            this.getProject()).parsePropertyString(
+                propertyValue, fragments, propertyRefs);
 
         if (propertyRefs.size() != 0) {
             referencesSeen.push(name);



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


Mime
View raw message