/** * Invoked after the maven has finished running, and in the master, not in the maven process. */ void end(Launcher launcher) throws IOException, InterruptedException { for (Map.Entry<ModuleName,ProxyImpl2> e : sourceProxies.entrySet()) { ProxyImpl2 p = e.getValue(); for (MavenReporter r : reporters.get(e.getKey())) { // we'd love to do this when the module build ends, but doing so requires // we know how many task segments are in the current build. r.end(p.owner(),launcher,listener); p.appendLastLog(); } p.close(); } }
public void end() { if(result==null) setResult(Result.SUCCESS); if(!blockBuildEvents) onEndBuilding(); duration += System.currentTimeMillis()- startTime; parentBuild.notifyModuleBuild(MavenBuild.this); try { sync(); listener.setSideOutputStream(null); save(); } catch (IOException e) { e.printStackTrace(); } try { updateSymlinks(listener); } catch (InterruptedException x) { Logger.getLogger(MavenBuild.class.getName()).log(Level.WARNING, null, x); } RunListener.fireCompleted(MavenBuild.this, listener); }
proxies.put(moduleName, mb.new ProxyImpl2(MavenModuleSetBuild.this,slistener)); r = process.call(builder); for (ProxyImpl2 proxy : proxies.values()) { proxy.performArchiving(launcher, listener);
proxies.put(m.getModuleName(), mb.new ProxyImpl2(MavenModuleSetBuild.this,slistener));
if (mavenBuildInformation.isMaven3OrLater()) ProxyImpl2 proxy2 = new ProxyImpl2(mms.getLastCompletedBuild(), slistener); proxy2.setBlockBuildEvents(true); proxy = proxy2; builder = new Maven3Builder(createRequest(proxy2,
sync(); log.close(); } catch (IOException e) { rememberModulesToBuildAgainNextTime();
/** * Invoked after the maven has finished running, and in the master, not in the maven process. */ void end(Launcher launcher) throws IOException, InterruptedException { for (Map.Entry<ModuleName,ProxyImpl2> e : sourceProxies.entrySet()) { ProxyImpl2 p = e.getValue(); for (MavenReporter r : reporters.get(e.getKey())) { // we'd love to do this when the module build ends, but doing so requires // we know how many task segments are in the current build. r.end(p.owner(),launcher,listener); p.appendLastLog(); } p.close(); } }
/** * Invoked after the maven has finished running, and in the master, not in the maven process. */ void end(Launcher launcher) throws IOException, InterruptedException { for (Map.Entry<ModuleName,ProxyImpl2> e : sourceProxies.entrySet()) { ProxyImpl2 p = e.getValue(); for (MavenReporter r : reporters.get(e.getKey())) { // we'd love to do this when the module build ends, but doing so requires // we know how many task segments are in the current build. r.end(p.owner(),launcher,listener); p.appendLastLog(); } p.close(); } }
public void end() { if(result==null) setResult(Result.SUCCESS); onEndBuilding(); duration += System.currentTimeMillis()- startTime; parentBuild.notifyModuleBuild(MavenBuild.this); try { listener.setSideOutputStream(null); save(); } catch (IOException e) { e.printStackTrace(); } }
/** * Sends the accumulated log in {@link SplittableBuildListener} to the log of this build. */ public void appendLastLog() { try { sync(); listener.setSideOutputStream(log); listener.setSideOutputStream(null); } catch (IOException e) { e.printStackTrace(); } }
public void start() { if(!blockBuildEvents) onStartBuilding(); startTime = System.currentTimeMillis(); try { sync(); listener.setSideOutputStream(log); } catch (IOException e) { e.printStackTrace(); } RunListener.fireStarted(MavenBuild.this, listener); }