public void testDS00032554() throws Exception { Project testProject = getTestProject(); MemoryLeakVerifier verifier = new MemoryLeakVerifier(new RuntimeTestAction(getTestClassMap())); testProject.close(); verifier.assertGarbageCollected("RuntimeTestAction should be garbage collected when project closed"); }
public void run() throws Exception { try (ProjectLauncher pl = getProjectLauncher()) { pl.setTrace(isTrace() || isTrue(getProperty(RUNTRACE))); pl.launch(); } }
/** * Add the specification for a set of bundles the runpath if it does not * already is included. This can be used by subclasses to ensure the proper * jars are on the classpath. * * @param defaultSpec The default spec for default jars */ public void addDefault(String defaultSpec) throws Exception { Collection<Container> deflts = project.getBundles(Strategy.HIGHEST, defaultSpec, null); for (Container c : deflts) addClasspath(c); }
public void runLocal() throws Exception { try (ProjectLauncher pl = getProjectLauncher()) { pl.setTrace(isTrace() || isTrue(getProperty(RUNTRACE))); pl.start(null); } }
/** * Get a list of the sub builders. A bnd.bnd file can contain the -sub * option. This will generate multiple deliverables. This method returns the * builders for each sub file. If no -sub option is present, the list will * contain a builder for the bnd.bnd file. * * @return A list of builders. * @throws Exception */ public Collection< ? extends Builder> getSubBuilders() throws Exception { return getBuilder(null).getSubBuilders(); }
public void run() throws Exception { ProjectLauncher pl = getProjectLauncher(); pl.setTrace(isTrace()); pl.launch(); }
protected void addClasspath(Collection<Container> path) throws Exception { for (Container c : Container.flatten(path)) { addClasspath(c); } }
@Override protected void changedFile(File f) { project.getWorkspace() .changedFile(f); }
@Override public boolean isInteractive() { return getProject().isInteractive(); } }
@Override public boolean isInteractive() { return getWorkspace().isInteractive(); } }
public void runLocal() throws Exception { ProjectLauncher pl = getProjectLauncher(); pl.setTrace(isTrace() || isTrue(getProperty(RUNTRACE))); pl.start(null); }
public void run() throws Exception { try (ProjectLauncher pl = getProjectLauncher()) { pl.setTrace(isTrace() || isTrue(getProperty(RUNTRACE))); pl.launch(); } }
/** * Get a list of the sub builders. A bnd.bnd file can contain the -sub * option. This will generate multiple deliverables. This method returns the * builders for each sub file. If no -sub option is present, the list will * contain a builder for the bnd.bnd file. * * @return A list of builders. * @throws Exception */ public Collection<? extends Builder> getSubBuilders() throws Exception { return getBuilder(null).getSubBuilders(); }
protected void addClasspath(Collection<Container> path) throws Exception { for ( Container c : Container.flatten(path)) { addClasspath(c); } }
@Override protected void changedFile(File f) { project.getWorkspace() .changedFile(f); }
public void runLocal() throws Exception { ProjectLauncher pl = getProjectLauncher(); pl.setTrace(isTrace() || isTrue(getProperty(RUNTRACE))); pl.start(null); }
/** * Get a list of the sub builders. A bnd.bnd file can contain the -sub * option. This will generate multiple deliverables. This method returns the * builders for each sub file. If no -sub option is present, the list will * contain a builder for the bnd.bnd file. * * @return A list of builders. * @throws Exception */ public Collection< ? extends Builder> getSubBuilders() throws Exception { return getBuilder(null).getSubBuilders(); }
protected void addClasspath(Collection<Container> path) throws Exception { for ( Container c : Container.flatten(path)) { addClasspath(c); } }
/** * Get a list of the sub builders. A bnd.bnd file can contain the -sub * option. This will generate multiple deliverables. This method returns the * builders for each sub file. If no -sub option is present, the list will * contain a builder for the bnd.bnd file. * * @return A list of builders. * @throws Exception */ public Collection< ? extends Builder> getSubBuilders() throws Exception { return getBuilder(null).getSubBuilders(); }
protected void addClasspath(Collection<Container> path) throws Exception { for (Container c : Container.flatten(path)) { addClasspath(c); } }