Changeset 15144

Show
Ignore:
Timestamp:
28.03.2008 12:49:26 (11 years ago)
Author:
oranfry
Message:

use the current directory to work in, not the system temp directory

Location:
release-kits/shared/ant-installer
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • release-kits/shared/ant-installer/src/org/tp23/antinstaller/selfextract/SelfExtractor.java

    r14982 r15144  
    122122     */ 
    123123    protected File makeTempDir(){ 
    124         String tempDir = System.getProperty("java.io.tmpdir"); 
    125         extractDir = new File(tempDir, "antinstall"); 
     124        // String tempDir = System.getProperty("java.io.tmpdir"); 
     125        File curDir = new File("t.tmp").getParentFile(); 
     126        extractDir = new File(curDir, "antinstall"); 
    126127        int idx = 0; 
    127128        while (extractDir.exists()) { 
    128             extractDir = new File(tempDir, "antinstall" + (idx++)); 
    129         } 
     129            extractDir = new File(curDir, "antinstall" + (idx++)); 
     130    } 
    130131        extractDir.mkdirs(); 
    131132        extractDir.deleteOnExit();