public ProjectTester(Project project) throws Exception { this.project = project; launcher = project.getProjectLauncher(); launcher.addRunVM("-ea"); continuous = project.is(Constants.TESTCONTINUOUS); reportDir = new File(project.getTarget(), project.getProperty("test-reports", "test-reports")); }
public ProjectTester(Project project) throws Exception { this.project = project; launcher = project.getProjectLauncher(); testbundles = project.getTestpath(); for (Container c : testbundles) { launcher.addClasspath(c); } reportDir = new File(project.getTarget(), project.getProperty("test-reports", "test-reports")); }
public void run() throws Exception { ProjectLauncher pl = getProjectLauncher(); pl.setTrace(isTrace()); pl.launch(); }
public void run() throws Exception { ProjectLauncher pl = getProjectLauncher(); pl.setTrace(isTrace()); pl.launch(); }
public ProjectTester(Project project) throws Exception { this.project = project; launcher = project.getProjectLauncher(); testbundles = project.getTestpath(); for (Container c : testbundles) { launcher.addClasspath(c); } reportDir = new File(project.getTarget(), project.getProperty("test-reports", "test-reports")); }
public ProjectTester(Project project) throws Exception { this.project = project; launcher = project.getProjectLauncher(); launcher.addRunVM("-ea"); continuous = project.is(Constants.TESTCONTINUOUS); reportDir = new File(project.getTarget(), project.getProperty("test-reports", "test-reports")); }
public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { IJavaProject javaProject = getJavaProject(configuration); Project project = Activator.getDefault().getCentral().getModel(javaProject); try { launcher = project.getProjectLauncher(); super.launch(configuration, mode, launch, monitor); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }
@SuppressWarnings("resource") public void export(String runFilePath, boolean keep, File output) throws Exception { prepare(); OutputStream outStream = null; try { Project packageProject; if (runFilePath == null || runFilePath.length() == 0 || ".".equals(runFilePath)) { packageProject = this; } else { File runFile = new File(getBase(), runFilePath); if (!runFile.isFile()) throw new IOException(String.format("Run file %s does not exist (or is not a file).", runFile.getAbsolutePath())); packageProject = new Project(getWorkspace(), getBase(), runFile); packageProject.setParent(this); } packageProject.clear(); ProjectLauncher launcher = packageProject.getProjectLauncher(); launcher.setKeep(keep); Jar jar = launcher.executable(); outStream = new FileOutputStream(output); jar.write(outStream); } finally { IO.close(outStream); } }
public void run() throws Exception { try (ProjectLauncher pl = getProjectLauncher()) { pl.setTrace(isTrace() || isTrue(getProperty(RUNTRACE))); pl.launch(); } }
public void runLocal() throws Exception { try (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(); } }
public void run() throws Exception { ProjectLauncher pl = getProjectLauncher(); pl.setTrace(isTrace() || isTrue(getProperty(RUNTRACE))); pl.launch(); }
public void run() throws Exception { ProjectLauncher pl = getProjectLauncher(); pl.setTrace(isTrace() || isTrue(getProperty(RUNTRACE))); pl.launch(); }
public void runLocal() throws Exception { ProjectLauncher pl = getProjectLauncher(); pl.setTrace(isTrace() || isTrue(getProperty(RUNTRACE))); pl.start(null); }
public void runLocal() throws Exception { ProjectLauncher pl = getProjectLauncher(); pl.setTrace(isTrace() || isTrue(getProperty(RUNTRACE))); pl.start(null); }
public void runLocal() throws Exception { try (ProjectLauncher pl = getProjectLauncher()) { pl.setTrace(isTrace() || isTrue(getProperty(RUNTRACE))); pl.start(null); } }
@Override public Entry<String, Resource> export(String type, Project project, Map<String, String> options) throws Exception { Configuration configuration = Converter.cnv(Configuration.class, options); project.prepare(); try (ProjectLauncher launcher = project.getProjectLauncher()) { launcher.setKeep(configuration.keep()); Jar jar = launcher.executable(); project.getInfo(launcher); String name = jar.getName(); String[] baseext = Strings.extension(name); if (baseext != null && ("bnd".equals(baseext[1]) || "bndrun".equals(baseext[1]))) { name = baseext[0]; } name = name + Constants.DEFAULT_JAR_EXTENSION; return new SimpleEntry<>(name, new JarResource(jar, true)); } } }
public ProjectTester(Project project) throws Exception { this.project = project; launcher = project.getProjectLauncher(); launcher.setCwd(project.getBase()); launcher.addRunVM("-ea"); testbundles = project.getTestpath(); continuous = project.is(Constants.TESTCONTINUOUS); for (Container c : testbundles) { launcher.addClasspath(c); } reportDir = new File(project.getTarget(), project.getProperty("test-reports", "test-reports")); }
@Override public Entry<String, Resource> export(String type, Project project, Map<String, String> options) throws Exception { Configuration configuration = Converter.cnv(Configuration.class, options); project.prepare(); try (ProjectLauncher launcher = project.getProjectLauncher()) { launcher.setKeep(configuration.keep()); Jar jar = launcher.executable(); project.getInfo(launcher); String name = jar.getName(); String[] baseext = Strings.extension(name); if (baseext != null && ("bnd".equals(baseext[1]) || "bndrun".equals(baseext[1]))) { name = baseext[0]; } name = name + Constants.DEFAULT_JAR_EXTENSION; return new SimpleEntry<>(name, new JarResource(jar, true)); } } }
public ProjectTester(Project project) throws Exception { this.project = project; launcher = project.getProjectLauncher(); launcher.setCwd(project.getBase()); launcher.addRunVM("-ea"); testbundles = project.getTestpath(); continuous = project.is(Constants.TESTCONTINUOUS); for (Container c : testbundles) { launcher.addClasspath(c); } reportDir = new File(project.getTarget(), project.getProperty("test-reports", "test-reports")); }