Changed name to DeleteOnUnlock
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ import java.util.concurrent.TimeUnit;
|
||||
*
|
||||
* @author coolgi
|
||||
*/
|
||||
public class UpdateJarRun
|
||||
public class DeleteOnUnlock
|
||||
{
|
||||
/**
|
||||
* @param args Takes whatever the first argument is, treats it as a file, and deletes it once a process lock is lifted from it
|
||||
@@ -322,7 +322,7 @@ public class SelfUpdater
|
||||
*/
|
||||
|
||||
// Execute the new jar, to delete the old jar once it detects the lock has been lifted
|
||||
Runtime.getRuntime().exec("java -cp "+ newFileLocation.getAbsolutePath() +" com.seibel.distanthorizons.coreapi.util.jar.UpdateJarRun "+ JarUtils.jarFile.getAbsolutePath());
|
||||
Runtime.getRuntime().exec("java -cp "+ newFileLocation.getAbsolutePath() +" com.seibel.distanthorizons.coreapi.util.jar.DeleteOnUnlock "+ JarUtils.jarFile.getAbsolutePath());
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
||||
Reference in New Issue
Block a user