diff options
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/ConfigParser.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/ConfigParser.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/ConfigParser.java index 4c7873df0..1bbd3327b 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/ConfigParser.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/ConfigParser.java @@ -45,7 +45,15 @@ public class ConfigParser { for (int i = 0; i < argsArray.length; i++) { args.add(new Arg(argsArray[i], location)); } - String aspectjOptions = System.getProperty("ASPECTJ_OPTS"); + String aspectjOptions = null; + try { + aspectjOptions = System.getenv("ASPECTJ_OPTS"); + if (aspectjOptions == null) { + aspectjOptions = System.getProperty("ASPECTJ_OPTS"); + } + } catch (Throwable t) { + aspectjOptions = null; + } if (aspectjOptions != null) { StringTokenizer st = new StringTokenizer(aspectjOptions); while (st.hasMoreElements()) { |