geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r1098626 - /geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/XmlUtil.java
Date Mon, 02 May 2011 15:26:05 GMT
Author: dblevins
Date: Mon May  2 15:26:04 2011
New Revision: 1098626

URL: http://svn.apache.org/viewvc?rev=1098626&view=rev
Log:
delete the tmp xmp file on exit

Modified:
    geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/XmlUtil.java

Modified: geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/XmlUtil.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/XmlUtil.java?rev=1098626&r1=1098625&r2=1098626&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/XmlUtil.java
(original)
+++ geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/XmlUtil.java
Mon May  2 15:26:04 2011
@@ -97,6 +97,7 @@ public final class XmlUtil {
             FileOutputStream out = null;
             try {
                 File tempFile = File.createTempFile("openejb-jar-", ".xml");
+                tempFile.deleteOnExit();
                 out = new FileOutputStream(tempFile);
                 out.write(xml.getBytes());
                 filePath = tempFile.getAbsolutePath();



Mime
View raw message