ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r809806 - /ant/sandbox/antlibs/compress/trunk/src/main/org/apache/ant/compress/taskdefs/PackBase.java
Date Tue, 01 Sep 2009 03:06:27 GMT
Author: bodewig
Date: Tue Sep  1 03:06:26 2009
New Revision: 809806

URL: http://svn.apache.org/viewvc?rev=809806&view=rev
Log:
whitespace

Modified:
    ant/sandbox/antlibs/compress/trunk/src/main/org/apache/ant/compress/taskdefs/PackBase.java

Modified: ant/sandbox/antlibs/compress/trunk/src/main/org/apache/ant/compress/taskdefs/PackBase.java
URL: http://svn.apache.org/viewvc/ant/sandbox/antlibs/compress/trunk/src/main/org/apache/ant/compress/taskdefs/PackBase.java?rev=809806&r1=809805&r2=809806&view=diff
==============================================================================
--- ant/sandbox/antlibs/compress/trunk/src/main/org/apache/ant/compress/taskdefs/PackBase.java
(original)
+++ ant/sandbox/antlibs/compress/trunk/src/main/org/apache/ant/compress/taskdefs/PackBase.java
Tue Sep  1 03:06:26 2009
@@ -133,14 +133,15 @@
         }
 
         if (src !=  null) {
-        if (src.isDirectory()) {
-            throw new BuildException("source resource must not "
-                                     + "represent a directory!", getLocation());
-        }
-
-        if (!src.isExists()) {
-            throw new BuildException("source resource must exist.");
-        }
+            if (src.isDirectory()) {
+                throw new BuildException("source resource must not "
+                                         + "represent a directory!",
+                                         getLocation());
+            }
+
+            if (!src.isExists()) {
+                throw new BuildException("source resource must exist.");
+            }
         }
 
         if (dest == null) {
@@ -166,8 +167,8 @@
             srcTask.setDest(wrapper.wrap(dest));
             srcTask.setTaskName(getTaskName());
             srcTask.execute();
-        } else
-        if (dest.isExists() && dest.getLastModified() > src.getLastModified())
{
+        } else if (dest.isExists()
+                   && dest.getLastModified() > src.getLastModified()) {
             log("Nothing to do: " + dest.getName() + " is up to date.");
         } else {
             log("Building: " + dest.getName());



Mime
View raw message