MCPcopy Index your code
hub / github.com/apache/tomcat / install

Method install

java/org/apache/jasper/compiler/SmapUtil.java:162–174  ·  view source on GitHub ↗
(File classFile, byte[] smap)

Source from the content-addressed store, hash-verified

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()) {

Callers 1

installSmapMethod · 0.95

Calls 6

getMessageMethod · 0.95
addSDEMethod · 0.95
getPathMethod · 0.65
deleteMethod · 0.65
writeMethod · 0.65
getAbsolutePathMethod · 0.45

Tested by

no test coverage detected