Advertisement
JetSerge

Untitled

Nov 19th, 2013
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. private static String getCatalinaTempDirectory(final TomcatLocalModel tomcatModel) throws RuntimeConfigurationException {
  2. File tempDir = new File(tomcatModel.getSourceBaseDirectoryPath(), TEMP_FILE_NAME);
  3. if (!tempDir.exists()) {
  4. tempDir = new File(tomcatModel.getBaseDirectoryPath(), TEMP_FILE_NAME);
  5. if (!tempDir.exists()) {
  6. FileUtil.createDirectory(tempDir);
  7. }
  8. }
  9. return tempDir.getAbsolutePath();
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement