Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- InputStream is = (this.getClass().getClassLoader().getResourceAsStream("InterWebApp.py"));
- File script = File.createTempFile("script", ".py");
- Files.copy(is, script.toPath(), StandardCopyOption.REPLACE_EXISTING);
- InputStream is1 = (this.getClass().getClassLoader().getResourceAsStream("setup.xml"));
- File xml = File.createTempFile("config", ".xml");
- Files.copy(is1, xml.toPath(), StandardCopyOption.REPLACE_EXISTING);
- Process p = Runtime.getRuntime().exec("." + script.getAbsolutePath());
- p.waitFor();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement