db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r382536 - /db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteSchemaSqlToFileCommand.java
Date Thu, 02 Mar 2006 22:44:24 GMT
Author: tomdz
Date: Thu Mar  2 14:44:23 2006
New Revision: 382536

URL: http://svn.apache.org/viewcvs?rev=382536&view=rev
Log:
Worked around a problem in Ant where the log method cannot deal with null messages

Modified:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteSchemaSqlToFileCommand.java

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteSchemaSqlToFileCommand.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteSchemaSqlToFileCommand.java?rev=382536&r1=382535&r2=382536&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteSchemaSqlToFileCommand.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/task/WriteSchemaSqlToFileCommand.java Thu
Mar  2 14:44:23 2006
@@ -140,7 +140,7 @@
             }
             else
             {
-                task.log(ex.getLocalizedMessage(), Project.MSG_ERR);
+                task.log(ex.getMessage() == null ? ex.toString() : ex.getMessage(), Project.MSG_ERR);
             }
         }
         finally



Mime
View raw message