Changeset 22945

Show
Ignore:
Timestamp:
23.09.2010 14:18:28 (9 years ago)
Author:
sjm84
Message:

ant-installer will now use the temp directory rather than the current directory when trying to extract files on a Mac

Files:
1 modified

Legend:

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

    r20045 r22945  
    124124    protected File makeTempDir(){ 
    125125        // String tempDir = System.getProperty("java.io.tmpdir"); 
    126         File curDir = new File("t.tmp").getParentFile(); 
     126        File curDir = null; 
     127        if(System.getProperty("os.name").toLowerCase().indexOf("mac") >= 0){ 
     128            curDir = new File(System.getProperty("java.io.tmpdir") + "/t.tmp").getParentFile(); 
     129        } 
     130        else{ 
     131            curDir = new File("t.tmp").getParentFile(); 
     132        } 
    127133        extractDir = new File(curDir, "antinstall"); 
    128134        for ( int i=0; extractDir.exists(); i++) {