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/MainProxy.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/MainProxy.java')
-rw-r--r-- | java/src/IceGridGUI/MainProxy.java | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/java/src/IceGridGUI/MainProxy.java b/java/src/IceGridGUI/MainProxy.java deleted file mode 100644 index dd681dcb9ba..00000000000 --- a/java/src/IceGridGUI/MainProxy.java +++ /dev/null @@ -1,96 +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 MainProxy -{ - public static void main(final String[] args) - { - // - // Save main arguments for later usage. - // - _args = java.util.Arrays.copyOf(args, args.length); - - String version = System.getProperty("java.version"); - - Class<?> cls = IceInternal.Util.findClass("com.javafx.main.Main", null); - if(cls != null) - { - try - { - java.lang.reflect.Method main = cls.getMethod("main", new Class[]{String[].class}); - main.invoke(null, new Object[]{args}); - return; - } - catch(NoSuchMethodException ex) - { - ex.printStackTrace(); - JOptionPane.showMessageDialog(null, - "Unable to find method `main(String[] args)' in class `com.javafx.main.Main'", - "IceGrid Admin Error", - JOptionPane.ERROR_MESSAGE); - } - catch(IllegalAccessException ex) - { - ex.printStackTrace(); - JOptionPane.showMessageDialog(null, - "IllegalAccessException invoking method `main(String[] args)' in class `com.javafx.main.Main'", - "IceGrid Admin Error", - JOptionPane.ERROR_MESSAGE); - } - catch(java.lang.reflect.InvocationTargetException ex) - { - } - } - cls = IceInternal.Util.findClass("IceGridGUI.Main", null); - if(cls == null) - { - JOptionPane.showMessageDialog(null, - "Unable to find class `IceGridGUI.Main'", - "IceGrid Admin Error", - JOptionPane.ERROR_MESSAGE); - return; - } - try - { - java.lang.reflect.Method main = cls.getMethod("main", new Class[]{String[].class}); - main.invoke(null, new Object[]{args}); - return; - } - catch(NoSuchMethodException ex) - { - ex.printStackTrace(); - JOptionPane.showMessageDialog(null, - "Unable to find method `main(String[] args)' in class `com.javafx.main.Main'", - "IceGrid Admin Error", - JOptionPane.ERROR_MESSAGE); - } - catch(IllegalAccessException ex) - { - ex.printStackTrace(); - JOptionPane.showMessageDialog(null, - "IllegalAccessException invoking method `main(String[] args)' in class `com.javafx.main.Main'", - "IceGrid Admin Error", - JOptionPane.ERROR_MESSAGE); - } - catch(java.lang.reflect.InvocationTargetException ex) - { - } - } - - public static String[] args() - { - return _args; - } - - private static String[] _args = new String[]{}; -}
\ No newline at end of file |