RFR 8054461: Add @file support to sjavac

Jonathan Gibbons jonathan.gibbons at oracle.com
Thu Aug 7 01:32:56 UTC 2014


On 08/06/2014 12:59 PM, Fredrik Öhrström wrote:
> The command line for building the jdk using sjavac is near the 
> Windows/Cygwin limits. Even though the OpenJDK is being cleaned up and 
> the command line is getting shorter, there are other projects that 
> could need long command lines due to their irregular source 
> organization. Javac already supports @files.
>
> Please review the addition of @file support to sjavac.
>
> http://cr.openjdk.java.net/~ohrstrom/webrev-8054461-atfile/ 
> <http://cr.openjdk.java.net/%7Eohrstrom/webrev-8054461-atfile/>
>
> https://bugs.openjdk.java.net/browse/JDK-8054461
>
> //Fredrik
>
>

OptionHelper.java

  118         try {
  119             args = CommandLine.parse(args); // Detect @file and load it as a command line.
  120         } catch (java.io.IOException e) {
  121             Log.warn("Problem reading @file: "+e.getMessage());
  122             return;
  123         }

If you can't read the @-file, that should be an error, not a warning.

-- Jon


More information about the compiler-dev mailing list