Lines 132-138
Link Here
|
132 |
} |
132 |
} |
133 |
|
133 |
|
134 |
// Create the new document base directory |
134 |
// Create the new document base directory |
135 |
docBase.mkdir(); |
135 |
if(!docBase.mkdir() && !docBase.isDirectory()) |
|
|
136 |
throw new IOException(sm.getString("expandWar.createFailed", docBase)); |
136 |
|
137 |
|
137 |
// Expand the WAR into the new document base directory |
138 |
// Expand the WAR into the new document base directory |
138 |
String canonicalDocBasePrefix = docBase.getCanonicalPath(); |
139 |
String canonicalDocBasePrefix = docBase.getCanonicalPath(); |
Lines 162-168
Link Here
|
162 |
if (last >= 0) { |
163 |
if (last >= 0) { |
163 |
File parent = new File(docBase, |
164 |
File parent = new File(docBase, |
164 |
name.substring(0, last)); |
165 |
name.substring(0, last)); |
165 |
parent.mkdirs(); |
166 |
if(!parent.mkdirs() && !parent.isDirectory()) |
|
|
167 |
throw new IOException(sm.getString("expandWar.createFailed", parent)); |
166 |
} |
168 |
} |
167 |
if (name.endsWith("/")) { |
169 |
if (name.endsWith("/")) { |
168 |
continue; |
170 |
continue; |