Changeset 15144


Ignore:
Timestamp:
2008-03-28T12:49:26+13:00 (16 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 edited

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();
Note: See TracChangeset for help on using the changeset viewer.