Author: max.andersen(a)jboss.com
Date: 2006-11-08 07:03:54 -0500 (Wed, 08 Nov 2006)
New Revision: 10772
Modified:
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/ant/JavaFormatterTask.java
Log:
only log if something goes wrong
Modified:
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/ant/JavaFormatterTask.java
===================================================================
---
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/ant/JavaFormatterTask.java 2006-11-08
12:00:28 UTC (rev 10771)
+++
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/ant/JavaFormatterTask.java 2006-11-08
12:03:54 UTC (rev 10772)
@@ -75,12 +75,13 @@
JavaFormatter formatter = new JavaFormatter(settings);
for (int i = 0; i < files.length; i++) {
- File file = files[i];
- getProject().log(this, "Formatting " + file, Project.MSG_INFO);
+ File file = files[i];
try {
boolean ok = formatter.formatFile( file );
if(!ok) {
getProject().log(this, "Formatting failed - skipping " + file,
Project.MSG_WARN);
+ } else {
+ getProject().log(this, "Formatted " + file, Project.MSG_VERBOSE);
}
} catch(ExporterException ee) {
if(failOnError) {
Show replies by date