Author: jim.ma
Date: 2012-09-29 05:24:43 -0400 (Sat, 29 Sep 2012)
New Revision: 16781
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java
Log:
[JBPAPP-9860]:Fix the concurrent issue in tmp xsd file change
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java 2012-09-27
16:45:37 UTC (rev 16780)
+++
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java 2012-09-29
09:24:43 UTC (rev 16781)
@@ -267,7 +267,7 @@
{
for (File current : tempFiles)
{
- current.delete();
+ current.deleteOnExit();
}
}
@@ -580,7 +580,7 @@
}
}
- if (tmpFile != null)
+ if (tmpFile != null && !tmpFile.exists())
{
FileWriter fwrite = new FileWriter(tmpFile);
new DOMWriter(fwrite).setPrettyprint(true).print(schemaEl);
Show replies by date