aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2009-11-02 21:00:39 +0000
committeraclement <aclement>2009-11-02 21:00:39 +0000
commitd1d9f290938ad852b274ac2b2699fad29bb84426 (patch)
treeadc252f17b6c4f18fcba854245789490be2a730a /org.aspectj.ajdt.core
parent94abbb3464643e8aa52484ae69d9013290f54cee (diff)
downloadaspectj-d1d9f290938ad852b274ac2b2699fad29bb84426.tar.gz
aspectj-d1d9f290938ad852b274ac2b2699fad29bb84426.zip
timing
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java17
1 files changed, 10 insertions, 7 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java
index cf10534e1..47089d172 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java
@@ -136,10 +136,11 @@ public class BuildArgParser extends Main {
// Now jump through firey hoops to turn them on/off
if (handler instanceof CountingMessageHandler) {
IMessageHandler delegate = ((CountingMessageHandler) handler).delegate;
- if (swi)
+ if (swi) {
delegate.dontIgnore(IMessage.WEAVEINFO);
- else
+ } else {
delegate.ignore(IMessage.WEAVEINFO);
+ }
}
boolean incrementalMode = buildConfig.isIncrementalMode() || buildConfig.isIncrementalFileMode();
@@ -405,9 +406,9 @@ public class BuildArgParser extends Main {
} else {
if (file.isDirectory()) {
inPath.add(file);
- } else
-
+ } else {
showWarning("skipping missing, empty or corrupt inpath entry: " + filename);
+ }
}
}
buildConfig.setInPath(inPath);
@@ -428,9 +429,9 @@ public class BuildArgParser extends Main {
File dirFile = makeFile(filename);
if (dirFile.isDirectory()) {
buildConfig.getInJars().add(dirFile);
- } else
-
+ } else {
showWarning("skipping missing, empty or corrupt injar: " + filename);
+ }
}
}
@@ -669,6 +670,7 @@ public class BuildArgParser extends Main {
showError("-Xajruntimetarget:<level> only supports a target level of 1.2 or 1.5");
}
} else if (arg.equals("-timers")) {
+ buildConfig.setTiming(true);
// swallow - it is dealt with in Main.runMain()
} else if (arg.equals("-1.5")) {
buildConfig.setBehaveInJava5Way(true);
@@ -738,8 +740,9 @@ public class BuildArgParser extends Main {
protected File makeFile(File dir, String name) {
name = name.replace('/', File.separatorChar);
File ret = new File(name);
- if (dir == null || ret.isAbsolute())
+ if (dir == null || ret.isAbsolute()) {
return ret;
+ }
try {
dir = dir.getCanonicalFile();
} catch (IOException ioe) {