com.partnersoft.update.app
Class UpdateRuntimeLogic

java.lang.Object
  extended by com.partnersoft.update.app.UpdateRuntimeLogic

public class UpdateRuntimeLogic
extends java.lang.Object

Update logic pertaining to exiting this program and running other programs.

Much of these method are copied from com.partnersoft.system.RuntimeLib; they are duplicated here so that the Update subsystem doesn't depend on Java 1.6 or the rest of the Partner platform.

Copyright 2010 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Constructor Summary
UpdateRuntimeLogic(UpdateApp app)
           
 
Method Summary
 void die(java.lang.String message, java.lang.Throwable oopsie)
           
 void execAndHalt(java.lang.String command)
          Executes the given OS-specific command; then halts the current Java session.
 void execAndHalt(java.lang.String command, java.io.File currentDir)
          Executes the given OS-specific command; then halts the current Java session.
 void execAndWait(java.lang.String command, java.io.File currentDir)
           
 java.lang.Process execNoWait(java.lang.String command)
          Same as execNoWait(command, currentDir) but defaulted to the install directory.
 java.lang.Process execNoWait(java.lang.String command, java.io.File currentDir)
          Same as execAndWait(command, currentDir) but does not wait - the process continues in a separate thread.
 void exit()
           
 void finishInstall()
           
 void makeShortcuts()
           
 void migrate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateRuntimeLogic

public UpdateRuntimeLogic(UpdateApp app)
Method Detail

migrate

public void migrate()
             throws java.io.IOException
Throws:
java.io.IOException

finishInstall

public void finishInstall()
                   throws java.io.IOException
Throws:
java.io.IOException

makeShortcuts

public void makeShortcuts()
                   throws java.io.IOException
Throws:
java.io.IOException

exit

public void exit()

execAndWait

public void execAndWait(java.lang.String command,
                        java.io.File currentDir)
                 throws java.io.IOException
Throws:
java.io.IOException

execNoWait

public java.lang.Process execNoWait(java.lang.String command)
                             throws java.io.IOException
Same as execNoWait(command, currentDir) but defaulted to the install directory.

Throws:
java.io.IOException

execNoWait

public java.lang.Process execNoWait(java.lang.String command,
                                    java.io.File currentDir)
                             throws java.io.IOException
Same as execAndWait(command, currentDir) but does not wait - the process continues in a separate thread.

Throws:
java.io.IOException

execAndHalt

public void execAndHalt(java.lang.String command)
                 throws java.io.IOException
Executes the given OS-specific command; then halts the current Java session.

Throws:
java.io.IOException

execAndHalt

public void execAndHalt(java.lang.String command,
                        java.io.File currentDir)
                 throws java.io.IOException
Executes the given OS-specific command; then halts the current Java session.

Throws:
java.io.IOException

die

public void die(java.lang.String message,
                java.lang.Throwable oopsie)