Skip to content
Permalink
Browse files
Using Files.createTempFile instead
  • Loading branch information
coheigea committed Jun 20, 2019
1 parent 069b82b commit 702614789a3f1c80f39b62b15e958632a1fb33a2
Showing 1 changed file with 2 additions and 1 deletion.
@@ -27,6 +27,7 @@
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLClassLoader;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
@@ -500,7 +501,7 @@ private int runForked(XsdOption option, String outputDir) throws Exception {
File file = null;
try {
//file = new File("Y:\\Users\\dkulp\\tmp\\test.jar");
file = File.createTempFile("cxf-xjc-plugin", ".jar");
file = Files.createTempFile("cxf-xjc-plugin", ".jar").toFile();
file.deleteOnExit();

JarArchiver jar = new JarArchiver();

0 comments on commit 7026147

Please sign in to comment.