(File classFile, byte[] smap)
| 160 | int sdeIndex; |
| 161 | |
| 162 | static void install(File classFile, byte[] smap) throws IOException { |
| 163 | File tmpFile = new File(classFile.getPath() + "tmp"); |
| 164 | SDEInstaller installer = new SDEInstaller(classFile, smap); |
| 165 | installer.install(tmpFile); |
| 166 | if (!classFile.delete()) { |
| 167 | throw new IOException( |
| 168 | Localizer.getMessage("jsp.error.unable.deleteClassFile", classFile.getAbsolutePath())); |
| 169 | } |
| 170 | if (!tmpFile.renameTo(classFile)) { |
| 171 | throw new IOException(Localizer.getMessage("jsp.error.unable.renameClassFile", |
| 172 | tmpFile.getAbsolutePath(), classFile.getAbsolutePath())); |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | SDEInstaller(File inClassFile, byte[] sdeAttr) throws IOException { |
| 177 | if (!inClassFile.exists()) { |
no test coverage detected