Author: dkulp
Date: Fri Jul 18 13:25:34 2008
New Revision: 678023
URL: http://svn.apache.org/viewvc?rev=678023&view=rev
Log:
Add some debugging to hopefully help diagnose CXF-1708
Modified:
cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
Modified:
cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
URL:
http://svn.apache.org/viewvc/cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java?rev=678023&r1=678022&r2=678023&view=diff
==============================================================================
---
cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
(original)
+++
cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
Fri Jul 18 13:25:34 2008
@@ -301,7 +301,6 @@
}
}
-
boolean doWork = cgtimestamp > doneFile.lastModified();
if (!doneFile.exists()) {
doWork = true;
@@ -328,11 +327,16 @@
getLog().debug("Calling wsdl2java with args: " + list);
try {
new WSDLToJava((String[])list.toArray(new
String[list.size()])).run(new ToolContext());
- doneFile.createNewFile();
} catch (Throwable e) {
getLog().debug(e);
throw new MojoExecutionException(e.getMessage(), e);
}
+ try {
+ doneFile.createNewFile();
+ } catch (Throwable e) {
+ getLog().warn("Could not create marker file " +
doneFile.getAbsolutePath());
+ getLog().debug(e);
+ }
}
}