Summary: | ajc with -sourceroots does not support many dirs | ||
---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | rajesh_pv <raora> |
Component: | Compiler | Assignee: | Adrian Colyer <adrian.colyer> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 1.2 | ||
Target Milestone: | 1.2.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
rajesh_pv
2004-08-26 15:04:32 EDT
If you put quotes round the path it will work: ajc -sourceroots "C:\self\a;C:\self\b;" However - the quotes should not be necessary if you are on Windows XP. Please can you check in your c:\aspectj1.2\bin\ajc.bat file. You should find that the last line (which invokes ajc) looks like this: "%JAVA_HOME%\bin\java" -classpath "%ASPECTJ_HOME%\lib\aspectjtools.jar;%JAVA_HOM E%\lib\tools.jar;%CLASSPATH%" -Xmx64M org.aspectj.tools.ajc.Main %* If it doesn't look like that, but looks like this: "%JAVA_HOME%\bin\java" -classpath "%ASPECTJ_HOME%\lib\aspectjtools.jar;%JAVA_HOM E%\lib\tools.jar;%CLASSPATH%" -Xmx64M org.aspectj.tools.ajc.Main %1 %2 %3 %4 %5 %6 %7 %8 %9 then you need quotes around paths you pass to ajc. Can you confirm the operating system you are on? and which of the above versions of ajc.bat you have? I can't quite remember when we fixed this but it was around the time 1.2 was shipped. I presume you are running 1.2 final rather than any of the development builds we have been producing lately? thanks. Have you had a chance to check the contents of your ajc.bat file to see if it uses the "%*" or "%1 %2 etc" notation? I've just retried this with the latest 1.2.1 development build and the installed batch file looks correct. I'm going to close this bug - please reopen if you continue to have problems... Latest build is here: BUILD COMPLETE - build.371 Date of build: 09/07/2004 12:33:43 Time to build: 101 minutes 39 seconds Last changed: 09/07/2004 11:47:45 Latest good AspectJ jar available at: download.eclipse.org/technology/ajdt/dev/aspectj-DEVELOPMENT.jar Fix released as part of AspectJ 1.2.1 |