/** * Entry point for phase 1. This class tries to remove all files given in the Vector. * * @param temporaryFileNames * @throws IOException */ public static void invoke(List<String> temporaryFileNames) throws IOException { LibraryRemover self = new LibraryRemover(1); self.invoke1(temporaryFileNames); }
public static void main(String[] args) { // Phase 2 removes given path list, sandbox and spec file. // Phase 3 as used in SelfModifier will be not needed here because // this class do not use a GUI which can call exit like the // one in SelfModifier. try { // all it's attributes are retrieved from system properties LibraryRemover librianRemover = new LibraryRemover(2); librianRemover.invoke2(); } catch (IOException ioe) { System.err.println("Error invoking a secondary phase"); System.err.println("Note that this program is only intended as a secondary process"); ioe.printStackTrace(); } }