slobokot commented on issue #98: Use commandline argument file for all options, but -J, for case javac… URL: https://github.com/apache/ant/pull/98#issuecomment-545595029 Reproduced issue using following build.xml ``` <project name="MyProject" default="dist" basedir="."> <property name="class_path" value="4000 characters long"/> <target name="compile"> <javac srcdir="src" destdir="build" classpath="${class_path}" fork="true"> <compilerarg value="@c:\tmp\test-ant\args-file"/> </javac> </target> </project> ``` produces ``` [javac] File to be compiled: [javac] C:\tmp\test-ant\src\com\Program.java [javac] javac: invalid flag: @c:\tmp\test-ant\args-file [javac] Usage: javac <options> <source files> [javac] use -help for a list of possible options ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org