Changed name to DeleteOnUnlock

This commit is contained in:
coolGi
2023-10-06 17:24:31 +10:30
parent ffb1ce4355
commit 820683783b
2 changed files with 2 additions and 2 deletions
@@ -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)