Is it possible to call Ant or NSIS scripts from Java code?
You can call ant scripts from Java code. See this article (scroll down to the “Running Ant via Java” section) and this article: File buildFile = new File(“build.xml”); Project p = new Project(); p.setUserProperty(“ant.file”, buildFile.getAbsolutePath()); p.init(); ProjectHelper helper = ProjectHelper.getProjectHelper(); p.addReference(“ant.projectHelper”, helper); helper.parse(p, buildFile); p.executeTarget(p.getDefaultTarget()); Update I tried with the following ant file , it … Read more