Changeset 22945


Ignore:
Timestamp:
2010-09-23T14:18:28+12:00 (14 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

File:
1 edited

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