Bug 450634 - Improve ajc.bat to pass >9 arguments
Summary: Improve ajc.bat to pass >9 arguments
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.8.4   Edit
Hardware: PC Windows 8
: P3 normal (vote)
Target Milestone: 1.8.5   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-08 07:01 EST by Alexander Kriegisch CLA
Modified: 2015-01-08 11:30 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kriegisch CLA 2014-11-08 07:01:46 EST
This bugs seems to be related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=341788 and re-occurs on my Win 8.1 machine. The fix is the same as mentioned in the other ticket: In the last batch file line which contains

... org.aspectj.tools.ajc.Main %1 %2 %3 %4 %5 %6 %7 %8 %9

just replace "%1 %2 %3 %4 %5 %6 %7 %8 %9" by "%*".
Comment 1 Andrew Clement CLA 2015-01-08 11:30:20 EST
I don't use windows myself so haven't fully tested this but I added Windows 8 as a prefix check (which I presume will also pick up Windows 8.1

To remind myself in future this involves modifying build/src/$installer$/org/aspectj/Main.java, then running 'ant build' to build the installer jar and finally copying that jar into lib/build/build.jar

Really it should be smarter and be doing the reverse check - only create the sub-optimal build file on old windows, but I don't have the cycles to sort that out...