Changeset 44498ca8 for installer/java


Ignore:
Timestamp:
Dec 31, 2012 6:00:42 PM (8 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
adfc224
Parents:
a40566e
Message:

installer: extra checks & add to findbugs target

Location:
installer/java
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • installer/java/build.xml

    ra40566e r44498ca8  
    4646        <!-- set if unset -->
    4747        <property name="workspace.changes.util.tr" value="" />
    48         <jar destfile="../../pkg-temp/utility.jar">
     48        <jar destfile="../../build/utility.jar">
    4949            <fileset dir="../../core/java/build/obj" includes="**/FileUtil.class"/>
    5050            <fileset dir="./build/obj" includes="**" />
  • installer/java/src/net/i2p/installer/FixWinPaths.java

    ra40566e r44498ca8  
    8383            }
    8484        }
    85         // Once everything is complete, delete the original wrapper.conf
     85        boolean successful = false;
    8686        File oldFile = new File(wConf);
    87         oldFile.delete();
    88 
    89         // ...and rename temp file's name to wrapper.conf
    9087        File newFile = new File(wConfTemp);
    91         newFile.renameTo(oldFile);
     88        // Once changes have been made, delete the original wrapper.conf
     89        successful = oldFile.delete();
     90        if (successful) {
     91            // ...and rename temp file's name to wrapper.conf
     92            successful = newFile.renameTo(oldFile);
     93            if (!successful) {
     94                System.err.println("ERROR: Problem processing " + wConf);
     95                System.exit(1);
     96            }
     97        }
    9298
    9399    }
Note: See TracChangeset for help on using the changeset viewer.