117118119120121122123124125126127
if (target == null) { target = project.getDefaultTarget(); } project.executeTarget(target); } catch (BuildException e) { error = e; throw new ExecutionException(e); } finally { project.fireBuildFinished(error);
115116117118119120121122123124125
397398399400401402403404405406407
try { runtime.addShutdownHook(shutdownHook); } catch (NoSuchMethodError nsme) { // Early JVMs do not support this method } project.executeTarget(target); } catch (Throwable t) { // Log any errors returnValue = 1; String message = t.getMessage();
12781279128012811282128312841285128612871288
Project project = new Project(); project.init(); project.setUserProperty("ant.file", buildFile.getAbsolutePath()); ProjectHelper.configureProject(project, buildFile); project.executeTarget(target); } /** * Serialize and deserialize the object. *
81828384858687888990
if (!t.trim().isEmpty()) { System.out.println(); if (Boolean.parseBoolean(buildVerboseStr)) { System.out.println("Executing Target: " + t); } p.executeTarget(t.trim()); } } } }
164165166167168169170171172173174
} // Execute task Message.verbose("performing packager resolver build in " + this.dir); try { project.executeTarget("build"); this.built = true; } catch (BuildException e) { Message.verbose("packager resolver build failed: " + e); throw e; }
120121122123124125126127128129130
121122123124125126127128129130131
PrintStream err = System.err; System.setOut(new PrintStream(new DemuxOutputStream(project, false))); System.setErr(new PrintStream(new DemuxOutputStream(project, true))); try { project.executeTarget("testDemux"); } finally { System.setOut(out); System.setErr(err); } }
142143144145146147148149150151152