Bug 58681

Summary: -X should output available -X options
Product: [Tools] AspectJ Reporter: Wes Isberg <wes>
Component: CompilerAssignee: Adrian Colyer <adrian.colyer>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.2   
Target Milestone: 1.2.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Wes Isberg CLA 2004-04-15 12:19:15 EDT
ajc should emit the available -X options on -help or -X request (the latter like
java) to get more traffic and feedback on the experimental options.
Comment 1 Adrian Colyer CLA 2004-07-27 11:56:40 EDT
Fixed following java compiler conventions.


==> ajc -?

AspectJ Compiler

	Usage: <options> <source file | @argfile>..

AspectJ-specific options:
	-inpath <list>      use classes in dirs and jars/zips in <list> as source
	                    (<list> uses platform-specific path delimiter)
	-injars <jarList>   use classes in <jarList> zip files as source
	                    (<jarList> uses classpath delimiter)
	                    deprecated - use inpath instead.
	-aspectpath <list>  weave aspects from <list> zip files into sources
	                    (<list> uses classpath delimiter)
	-outjar <file>      put output classes in zip file <file>
	-argfile <file>     specify line-delimited list of source files
	-incremental        continuously-running compiler, needs -sourceroots
	                    (reads stdin: enter to recompile and 'q' to quit)
	-sourceroots <dirs> compile all .aj and .java files in <dirs>
	                    (<dirs> uses classpath delimiter)
	-emacssym           generate .ajesym symbol files for emacs support
	-Xlint              same as '-Xlint:warning'
	-Xlint:<level>      set default level for crosscutting messages
	                    (<level> may be ignore, warning, or error)
	-Xlintfile <file>   specify properties file to set per-message levels
	                    (cf org/aspectj/weaver/XlintDefault.properties)
	-X                  print help on non-standard options

Standard Eclipse compiler options:
 Options enabled by default are prefixed with '+'
... 


==> ajc -X

AspectJ Compiler non-standard options:

	-XnoInline          don't inline advice
	-XlazyTjp           create thisJoinPoint objects lazily
	-Xreweavable        create class files that can be subsequently rewoven
	                    by AspectJ
	-Xreweavable:compress as above, but also compress the reweaving information
	-XnoWeave           compile classes but do not weave. Deprecated, use
	                    reweavable instead.

	
Comment 2 Adrian Colyer CLA 2004-07-27 12:09:29 EDT
and I even managed to mess it up. -XserializableAspects now added too...
Comment 3 Adrian Colyer CLA 2004-10-21 04:31:43 EDT
Fix released as part of AspectJ 1.2.1