chameria-launcher/src/main/java/de/akquinet/chameria/launcher/Launcher.java
private static void configureApplication() {
        // Try to load the file.
        File file = new File("chameria.props");
        if (file.exists()) {
            Properties props = new Properties();
            InputStream is = null;
            try {
                is = new FileInputStream(file);
                props.load(is);

                String n = props.getProperty("application.name");
                if (n != null) {
                    QApplication.setApplicationName(n);
                } else {
                    QApplication.setApplicationName("akquinet ChameRIA");
                }

                n = props.getProperty("application.version");
                if (n != null) {
                    QApplication.setApplicationVersion(n);
                }

                n = props.getProperty("application.icon");
                if (n != null) {
                    QIcon icon = new QIcon(n);
                    QApplication.setWindowIcon(icon);
                }

            } catch (Exception e) {
                System.err.println("Cannot read the application configuration "
                        + e.getMessage());
                e.printStackTrace();
            } finally {
                if (is != null) {
                    try {
                        is.close();
                    } catch (IOException e) {
                        // Ignored
                    }
                }
            }
        }

        QApplication.setOrganizationName("akquinet A.G.");
    }
private static void configureApplication() {
        // Try to load the file.
        File file = new File("chameria.props");
        if (file.exists()) {
            Properties props = new Properties();
            InputStream is = null;
            try {
                is = new FileInputStream(file);
                props.load(is);

                String n = props.getProperty("application.name");
                if (n != null) {
                    QApplication.setApplicationName(n);
                } else {
                    QApplication.setApplicationName("akquinet ChameRIA");
                }

                n = props.getProperty("application.version");
                if (n != null) {
                    QApplication.setApplicationVersion(n);
                }

                n = props.getProperty("application.icon");
                if (n != null) {
                    QIcon icon = new QIcon(n);
                    QApplication.setWindowIcon(icon);
                }

            } catch (Exception e) {
                System.err.println("Cannot read the application configuration "
                        + e.getMessage());
                e.printStackTrace();
            } finally {
                if (is != null) {
                    try {
                        is.close();
                    } catch (IOException e) {
                        // Ignored
                    }
                }
            }
        }

        QApplication.setOrganizationName("akquinet A.G.");
    }
private static void configureApplication ( ) { // Try to load the file. File file = new File ( "chameria.props" ) ; if ( file . exists ( ) ) { Properties props = new Properties ( ) ; InputStream is = null ; try { is = new FileInputStream ( file ) ; props . load ( is ) ; String n = props . getProperty ( "application.name" ) ; if ( n != null ) { QApplication . setApplicationName ( n ) ; } else { QApplication . setApplicationName ( "akquinet ChameRIA" ) ; } n = props . getProperty ( "application.version" ) ; if ( n != null ) { QApplication . setApplicationVersion ( n ) ; } n = props . getProperty ( "application.icon" ) ; if ( n != null ) { QIcon icon = new QIcon ( n ) ; QApplication . setWindowIcon ( icon ) ; } } catch ( Exception e ) { System . err . println ( "Cannot read the application configuration " + e . getMessage ( ) ) ; e . printStackTrace ( ) ; } finally { if ( is != null ) { try { is . close ( ) ; } catch ( IOException e ) { // Ignored } } } } QApplication . setOrganizationName ( "akquinet A.G." ) ; }
Configures the application.
Configures the application .