]> source.dussan.org Git - aspectj.git/commitdiff
improved handling of optional joinpoints argument processing. and updated usage...
authoraclement <aclement>
Thu, 1 Jun 2006 15:52:05 +0000 (15:52 +0000)
committeraclement <aclement>
Thu, 1 Jun 2006 15:52:05 +0000 (15:52 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java
org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/messages.properties

index 8231494828890a31f0c512b230ff2b32ee4c681b..dde7e8b6266adce81af4202d37d04419162573bc 100644 (file)
@@ -537,8 +537,8 @@ public class BuildArgParser extends Main {
                                buildConfig.setAddSerialVerUID(true);
                } else if (arg.equals("-Xdev:Pinpoint")) { 
                                buildConfig.setXdevPinpointMode(true);
-               } else if (arg.equals("-Xjoinpoints:arrayconstruction")) {
-                       buildConfig.setXJoinpoints("arrayconstruction");
+               } else if (arg.startsWith("-Xjoinpoints:")) {
+                       buildConfig.setXJoinpoints(arg.substring(13));
                } else if (arg.equals("-noWeave") || arg.equals( "-XnoWeave")) {
                                showWarning("the noweave option is no longer required and is being ignored");
                } else if (arg.equals( "-XterminateAfterCompilation")) {
index 4f43c0de0a60f278c0c52ef98aa17a0a8cb80bc6..7c7c146cd21d4d05169d358979142b6da497d7ec 100644 (file)
@@ -134,10 +134,13 @@ xoption.usage = {0} non-standard options:\n\
 \t-XterminateAfterCompilation compile classes then terminate before weaving\n\
 \t-XaddSerialVersionUID calculates and adds the serialVersionUID to any\n\
 \t                    serializable type woven by an aspect\n\
-\t-Xajruntimelevel:<level> allows code to be generated that targets\n\
+\t-Xajruntimetarget:<level> allows code to be generated that targets\n\
 \t                    a 1.2 or a 1.5 level AspectJ runtime (default 1.5)\n\
 \t-XhasMember         allow hasmethod() and hasfield type patterns in\n\
-\t                    declare parents and declare @type\n
+\t                    declare parents and declare @type\n\
+\t-Xjoinpoints:       supply a comma separated list of new joinpoints\n\
+\t                    that can be identified by pointcuts.  Values are:\n\
+\t                    arrayconstruction, synchronization\n
 ## options not documented above (per ..ajdt.ajc.BuildArgParser.java):
 # -XincrementalFile, -XjavadocsInModel