diff options
author | Matthew Newhook <matthew@zeroc.com> | 2014-10-20 11:40:05 -0230 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2014-10-20 11:40:05 -0230 |
commit | b51469b41167fb86ae2059a15cf0475c53fdda7b (patch) | |
tree | fc85d6ca2efd89c67e1e4e7438f437c3e08313f4 /java/src/IceGridGUI/Fallback.java | |
parent | Fixed (ICE-5695) - IceSSL: misleading exception (diff) | |
download | ice-b51469b41167fb86ae2059a15cf0475c53fdda7b.tar.bz2 ice-b51469b41167fb86ae2059a15cf0475c53fdda7b.tar.xz ice-b51469b41167fb86ae2059a15cf0475c53fdda7b.zip |
Down with ant. From the gradle to the grave.
Diffstat (limited to 'java/src/IceGridGUI/Fallback.java')
-rw-r--r-- | java/src/IceGridGUI/Fallback.java | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/java/src/IceGridGUI/Fallback.java b/java/src/IceGridGUI/Fallback.java deleted file mode 100644 index d1d93ff35b3..00000000000 --- a/java/src/IceGridGUI/Fallback.java +++ /dev/null @@ -1,78 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -package IceGridGUI; - -import javax.swing.JOptionPane; - -public class Fallback extends javax.swing.JApplet -{ - @Override - public void start() - { - try - { - java.net.URL jar = Fallback.class.getProtectionDomain().getCodeSource().getLocation(); - - java.util.List<String> command = new java.util.ArrayList<String>(); - command.add("java"); - command.add("-cp"); - command.add(jar.getPath()); - command.add("IceGridGUI.Main"); - - String[] args = MainProxy.args(); - for(String arg : args) - { - command.add(arg); - } - - ProcessBuilder pb = new ProcessBuilder(command); - - final Process p = pb.start(); - if(p != null) - { - Runtime.getRuntime().addShutdownHook(new Thread() - { - @Override - public void run() - { - while(true) - { - try - { - p.waitFor(); - break; - } - catch(InterruptedException ex) - { - } - } - } - }); - } - - // - // Exit from the JApplet after we have lauch IceGridGUI - // - System.exit(0); - } - catch(java.io.IOException ex) - { - ex.printStackTrace(); - JOptionPane.showMessageDialog(null, - "IOException trying to start IceGrid Admin from Fallback class", - "IceGrid Admin Error", - JOptionPane.ERROR_MESSAGE); - // - // Exit from the JApplet after we have lauch IceGridGUI - // - System.exit(1); - } - } -}
\ No newline at end of file |