public void execute() throws BuildException { try { ProGuard proGuard = new ProGuard(configuration); proGuard.execute(); } catch (IOException ex) { throw new BuildException(ex.getMessage()); } }
public void execute() throws BuildException { try { ProGuard proGuard = new ProGuard(configuration); proGuard.execute(); } catch (IOException e) { throw new BuildException(e.getMessage(), e); } }
public void runProguard() throws IOException { new ProGuard(configuration).execute(); }
private static File executeProguard(File inputFile, String name, String replacement, List<URL> additionalUrls, boolean addToClasspath) throws MalformedURLException, URISyntaxException, IOException, ParseException { String outFilename= inputFile.getAbsolutePath().replace(".jar", replacement); File outputFile= new File(outFilename); Properties properties= System.getProperties(); properties.put("in-jar-filename", inputFile.getAbsolutePath()); properties.put("out-jar-filename", outputFile.getAbsolutePath()); ConfigurationParser parser= new ConfigurationParser(DragomeCompilerLauncher.class.getResource(name).toURI().toURL(), properties); Configuration configuration= new Configuration(); parser.parse(configuration); ArrayList<URL> urls= new ArrayList<URL>(additionalUrls); for (URL url : urls) { ConfigurationParser parserForAdditionalKeepCodeConfigFile= new ConfigurationParser(url, properties); parserForAdditionalKeepCodeConfigFile.parse(configuration); } if (addToClasspath) System.setProperty("java.class.path", outFilename + ";" + System.getProperty("java.class.path")); new ProGuard(configuration).execute(); return outputFile; } }
new ProGuard(configuration).execute();
new ProGuard(configuration).execute();
@TaskAction public void proguard() throws ParseException, IOException { // Let the logging manager capture the standard output and errors from // ProGuard. LoggingManager loggingManager = getLogging(); loggingManager.captureStandardOutput(LogLevel.INFO); loggingManager.captureStandardError(LogLevel.WARN); // Run ProGuard with the collected configuration. new ProGuard(getConfiguration()).execute(); }
new ProGuard(configuration).execute();
new ProGuard(configuration).execute();
@TaskAction public void proguard() throws ParseException, IOException { // Let the logging manager capture the standard output and errors from // ProGuard. LoggingManager loggingManager = getLogging(); loggingManager.captureStandardOutput(LogLevel.INFO); loggingManager.captureStandardError(LogLevel.WARN); // Run ProGuard with the collected configuration. new ProGuard(getConfiguration()).execute(); }
proGuard.execute();
proGuard.execute();