equal
deleted
inserted
replaced
27 |
27 |
28 import java.io.FileNotFoundException; |
28 import java.io.FileNotFoundException; |
29 import java.io.IOException; |
29 import java.io.IOException; |
30 import java.io.PrintWriter; |
30 import java.io.PrintWriter; |
31 import java.net.URL; |
31 import java.net.URL; |
|
32 import java.nio.file.NoSuchFileException; |
32 import java.security.DigestInputStream; |
33 import java.security.DigestInputStream; |
33 import java.security.MessageDigest; |
34 import java.security.MessageDigest; |
34 import java.security.NoSuchAlgorithmException; |
35 import java.security.NoSuchAlgorithmException; |
35 |
|
36 import java.util.Set; |
36 import java.util.Set; |
37 |
37 |
38 import javax.tools.JavaFileManager; |
38 import javax.tools.JavaFileManager; |
39 |
39 |
40 import com.sun.tools.javac.api.BasicJavacTask; |
40 import com.sun.tools.javac.api.BasicJavacTask; |
164 return Result.CMDERR; |
164 return Result.CMDERR; |
165 } |
165 } |
166 |
166 |
167 try { |
167 try { |
168 argv = CommandLine.parse(argv); |
168 argv = CommandLine.parse(argv); |
169 } catch (FileNotFoundException e) { |
169 } catch (FileNotFoundException | NoSuchFileException e) { |
170 warning("err.file.not.found", e.getMessage()); |
170 warning("err.file.not.found", e.getMessage()); |
171 return Result.SYSERR; |
171 return Result.SYSERR; |
172 } catch (IOException ex) { |
172 } catch (IOException ex) { |
173 log.printLines(PrefixKind.JAVAC, "msg.io"); |
173 log.printLines(PrefixKind.JAVAC, "msg.io"); |
174 ex.printStackTrace(log.getWriter(WriterKind.NOTICE)); |
174 ex.printStackTrace(log.getWriter(WriterKind.NOTICE)); |