summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-03-16 14:10:31 +0000
committeracolyer <acolyer>2004-03-16 14:10:31 +0000
commite7e39213279572e5315f5a24883f8a16c84f9c8b (patch)
treee7217a146444f8ada1d96666c0e6b26ba948d250 /testing
parent9fca6d2c418cf886f060fb0eaff1c64fc647a8cf (diff)
downloadaspectj-e7e39213279572e5315f5a24883f8a16c84f9c8b.tar.gz
aspectj-e7e39213279572e5315f5a24883f8a16c84f9c8b.zip
fix for Bugzilla Bug 43714
weaving from an input jar into that same jar. fully qualify outjar location in sandbox, and don't specify both -d and outjar.
Diffstat (limited to 'testing')
-rw-r--r--testing/src/org/aspectj/testing/harness/bridge/CompilerRun.java27
1 files changed, 14 insertions, 13 deletions
diff --git a/testing/src/org/aspectj/testing/harness/bridge/CompilerRun.java b/testing/src/org/aspectj/testing/harness/bridge/CompilerRun.java
index 76d340126..e50dd8174 100644
--- a/testing/src/org/aspectj/testing/harness/bridge/CompilerRun.java
+++ b/testing/src/org/aspectj/testing/harness/bridge/CompilerRun.java
@@ -338,7 +338,7 @@ public class CompilerRun implements IAjcRun {
}
if (spec.outjar != null) {
arguments.add("-outjar");
- arguments.add(spec.outjar);
+ arguments.add(new File(sandbox.classesDir,spec.outjar).getPath());
}
if (!LangUtil.isEmpty(extdirFiles)) {
arguments.add("-extdirs");
@@ -438,18 +438,19 @@ public class CompilerRun implements IAjcRun {
ArrayList argList = new ArrayList();
final Spec.TestSetup setupResult = spec.testSetup;
try {
- argList.add("-d");
- String outputDirPath = sandbox.classesDir.getAbsolutePath();
- try { // worth it to try for canonical?
- outputDirPath = sandbox.classesDir.getCanonicalPath();
- } catch (IOException e) {
- MessageUtil.abort(
- status,
- "canonical " + sandbox.classesDir,
- e);
- }
- argList.add(outputDirPath);
-
+ if (spec.outjar == null) {
+ argList.add("-d");
+ String outputDirPath = sandbox.classesDir.getAbsolutePath();
+ try { // worth it to try for canonical?
+ outputDirPath = sandbox.classesDir.getCanonicalPath();
+ } catch (IOException e) {
+ MessageUtil.abort(
+ status,
+ "canonical " + sandbox.classesDir,
+ e);
+ }
+ argList.add(outputDirPath);
+ }
String path = sandbox.classpathToString(this);
if (!LangUtil.isEmpty(path)) {
argList.add("-classpath");