public void initWithJobStatus() { JobStatus jobStatus = this.getInspector().getJobStatus(); this.setClassPath(jobStatus.getRepairClassPath()); this.setSources(jobStatus.getRepairSourceDir()); }
JobStatus jobStatus = this.getInspector().getJobStatus(); List<URL> classPath = jobStatus.getRepairClassPath(); File[] sources = jobStatus.getRepairSourceDir(); File[] tests = jobStatus.getTestDir();
File[] sources = this.getInspector().getJobStatus().getRepairSourceDir(); astorArgs.add(jobStatus.getFailingModulePath()); String relativeSourcePath = new File(jobStatus.getFailingModulePath()).toURI().relativize(jobStatus.getRepairSourceDir()[0].toURI()).getPath(); astorArgs.add("-srcjavafolder"); astorArgs.add(relativeSourcePath);
protected StepStatus businessExecute() { this.getLogger().debug("Checking out the source code of the buggy build candidate..."); if (this.getInspector().getJobStatus().getRepairSourceDir() == null) { this.addStepError("Source code dir is null: it is therefore impossible to continue."); return StepStatus.buildError(this, PipelineState.SOURCEDIRNOTCOMPUTED); } super.setCheckoutType(CheckoutType.CHECKOUT_PATCHED_BUILD); StepStatus stepStatus = super.businessExecute(); if (stepStatus.isSuccess()) { super.setCheckoutType(CheckoutType.CHECKOUT_BUGGY_BUILD_SOURCE_CODE); stepStatus = super.businessExecute(); } this.getInspector().setCheckoutType(getCheckoutType()); return stepStatus; }
paths = this.getPaths(this.getInspector().getJobStatus().getRepairSourceDir(), git); } else if (checkoutType == CheckoutType.CHECKOUT_BUGGY_BUILD_TEST_CODE) { paths = this.getPaths(this.getInspector().getJobStatus().getTestDir(), git); List<String> paths; if (checkoutType == CheckoutType.CHECKOUT_BUGGY_BUILD_SOURCE_CODE) { paths = this.getPaths(this.getInspector().getJobStatus().getRepairSourceDir(), git); } else { paths = this.getPaths(this.getInspector().getJobStatus().getTestDir(), git);