cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r405572 - /incubator/cayenne/main/trunk/cayenne/cayenne-other/src/tools/java/org/objectstyle/cayenne/tools/ant/docgen/DocGenTask.java
Date Wed, 10 May 2006 00:23:57 GMT
Author: aadamchik
Date: Tue May  9 17:23:52 2006
New Revision: 405572

URL: http://svn.apache.org/viewcvs?rev=405572&view=rev
Log:
counterintuitively rethrowing the exception with no explicit message parameter shows the message
in the ant log; otherwise the message is shown as "null"

Modified:
    incubator/cayenne/main/trunk/cayenne/cayenne-other/src/tools/java/org/objectstyle/cayenne/tools/ant/docgen/DocGenTask.java

Modified: incubator/cayenne/main/trunk/cayenne/cayenne-other/src/tools/java/org/objectstyle/cayenne/tools/ant/docgen/DocGenTask.java
URL: http://svn.apache.org/viewcvs/incubator/cayenne/main/trunk/cayenne/cayenne-other/src/tools/java/org/objectstyle/cayenne/tools/ant/docgen/DocGenTask.java?rev=405572&r1=405571&r2=405572&view=diff
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/cayenne-other/src/tools/java/org/objectstyle/cayenne/tools/ant/docgen/DocGenTask.java
(original)
+++ incubator/cayenne/main/trunk/cayenne/cayenne-other/src/tools/java/org/objectstyle/cayenne/tools/ant/docgen/DocGenTask.java
Tue May  9 17:23:52 2006
@@ -57,6 +57,7 @@
 
 import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.Task;
+import org.objectstyle.cayenne.util.Util;
 
 /**
  * Wraps DocGenerator in an ant task
@@ -77,9 +78,11 @@
 
     public void execute() {
         try {
-            new DocGenerator(spaceKey, docBase, startPage, username, password, template).generateDocs();
-        } catch (Exception e) {
-            throw new BuildException(e.getMessage(), e);
+            new DocGenerator(spaceKey, docBase, startPage, username, password, template)
+                    .generateDocs();
+        }
+        catch (Exception e) {
+            throw new BuildException(e);
         }
     }
     



Mime
View raw message