Bug 238035

Summary: ajc compile ends batch file
Product: [Tools] AspectJ Reporter: Larry Barowski <lbarowski>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: aclement
Version: 1.6.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Larry Barowski CLA 2008-06-21 20:10:41 EDT
I'm running ajc from a batch file as follows:
ajc -classpath "usual_stuff" -inpath somepackage.jar -aspectpath . -outjar somepackage2.jar

After this executes (successfully), the batch file and any calling batch files immediately end. Running with  cmd  does not help. -noExit flag does not help. For now I am splitting my deployment script in two to work around the problem.
Comment 1 Andrew Clement CLA 2008-06-22 00:34:01 EDT
can you just embed what the ajc.bat file does into your script for now?

java -classpath "%ASPECTJ_HOME%\lib\aspectjtools.jar;%JAVA_HOME%\lib\tools.jar;%CLASSPATH%" org.aspectj.tools.ajc.Main <real options here>

sometimes that is worth doing just to override the default Xmx.