Examples of substituteMultiple()


Examples of com.izforge.izpack.util.VariableSubstitutor.substituteMultiple()

            }
            else
            {
                if (value != null) {
                    VariableSubstitutor vs = new VariableSubstitutor(installdata.getVariables());
                    value = vs.substituteMultiple(value, null);
                    val = vs.substituteMultiple(val, null);
                } else {
                    value = "";
                }
                return val.equals(value);
View Full Code Here

Examples of com.izforge.izpack.util.VariableSubstitutor.substituteMultiple()

            else
            {
                if (value != null) {
                    VariableSubstitutor vs = new VariableSubstitutor(installdata.getVariables());
                    value = vs.substituteMultiple(value, null);
                    val = vs.substituteMultiple(val, null);
                } else {
                    value = "";
                }
                return val.equals(value);
            }
View Full Code Here

Examples of com.izforge.izpack.util.VariableSubstitutor.substituteMultiple()

            } else {
                variables.setProperty(VAR_EXECD_SPOOL_DIR_LOCAL, "");
            }

            // Fill up template file
            String checkHostTempFile = vs.substituteMultiple(variables.getProperty(VAR_CHECK_HOST_TEMP_FILE), null);
            String checkHostFile = vs.substituteMultiple(variables.getProperty(VAR_CHECK_HOST_FILE), null);
            String remoteFile = "";

            checkHostFile = "/tmp/" + checkHostFile + "." + host.getHostname() + ".tmp";
            Debug.trace("Generating check_host file: '" + checkHostFile + "'.");
View Full Code Here

Examples of com.izforge.izpack.util.VariableSubstitutor.substituteMultiple()

                variables.setProperty(VAR_EXECD_SPOOL_DIR_LOCAL, "");
            }

            // Fill up template file
            String checkHostTempFile = vs.substituteMultiple(variables.getProperty(VAR_CHECK_HOST_TEMP_FILE), null);
            String checkHostFile = vs.substituteMultiple(variables.getProperty(VAR_CHECK_HOST_FILE), null);
            String remoteFile = "";

            checkHostFile = "/tmp/" + checkHostFile + "." + host.getHostname() + ".tmp";
            Debug.trace("Generating check_host file: '" + checkHostFile + "'.");
View Full Code Here

Examples of com.izforge.izpack.util.VariableSubstitutor.substituteMultiple()

                    } else {
                        variables.setProperty(VAR_EXECD_SPOOL_DIR_LOCAL, "");
                    }
                }

                String autoConfTempFile = vs.substituteMultiple(variables.getProperty(VAR_AUTO_INSTALL_COMPONENT_TEMP_FILE), null);
                autoConfFile = vs.substituteMultiple(variables.getProperty(VAR_AUTO_INSTALL_COMPONENT_FILE), null);

                //Appended CELL_NAME prevents a race in case of parallel multiple cell installations
                String taskName = isSpecialTask == true ? (Boolean.valueOf(variables.getProperty(VAR_FIRST_TASK, "false")).booleanValue() == true ? "first_task" : "last_task") : host.getComponentString();
                autoConfFile = "/tmp/" + autoConfFile + "." + host.getHostname() + "." + taskName + "." + variables.getProperty(VAR_SGE_CELL_NAME) + ".tmp";               
View Full Code Here

Examples of com.izforge.izpack.util.VariableSubstitutor.substituteMultiple()

                        variables.setProperty(VAR_EXECD_SPOOL_DIR_LOCAL, "");
                    }
                }

                String autoConfTempFile = vs.substituteMultiple(variables.getProperty(VAR_AUTO_INSTALL_COMPONENT_TEMP_FILE), null);
                autoConfFile = vs.substituteMultiple(variables.getProperty(VAR_AUTO_INSTALL_COMPONENT_FILE), null);

                //Appended CELL_NAME prevents a race in case of parallel multiple cell installations
                String taskName = isSpecialTask == true ? (Boolean.valueOf(variables.getProperty(VAR_FIRST_TASK, "false")).booleanValue() == true ? "first_task" : "last_task") : host.getComponentString();
                autoConfFile = "/tmp/" + autoConfFile + "." + host.getHostname() + "." + taskName + "." + variables.getProperty(VAR_SGE_CELL_NAME) + ".tmp";               
                Debug.trace("Generating auto_conf file: '" + autoConfFile + "'.");
View Full Code Here

Examples of com.izforge.izpack.util.VariableSubstitutor.substituteMultiple()

     */
    private void buildPanel() {
        VariableSubstitutor vs = new VariableSubstitutor(idata.getVariables());

        // Draw the "Please wait..." text
        JLabel textLabel = new JLabel(vs.substituteMultiple(parent.langpack.getString("title.please.wait"), null));
        textLabel.setHorizontalAlignment(JLabel.CENTER);

        // Center the text
        IzPanelConstraints ipc = new IzPanelConstraints();
        ipc.setXStretch(1.0);
View Full Code Here

Examples of com.izforge.izpack.util.VariableSubstitutor.substituteMultiple()

                idata.setVariable(VAR_LOCALHOST_ARCH, Host.localHostArch);
                Debug.trace("localhost.arch='" + idata.getVariable(VAR_LOCALHOST_ARCH) + "'");
            }

            // Check user
            if (vs.substituteMultiple(idata.getVariable(VAR_CONNECT_USER), null).equals(vs.substituteMultiple(idata.getVariable(VAR_USER_NAME), null))) {
                String sgeRoot = vs.substitute(idata.getVariable(VAR_SGE_ROOT), null);
                String userName = vs.substitute(idata.getVariable(VAR_USER_NAME), null);

                ExtendedFile sgeRootDir = new ExtendedFile(sgeRoot);
View Full Code Here

Examples of com.izforge.izpack.util.VariableSubstitutor.substituteMultiple()

                idata.setVariable(VAR_LOCALHOST_ARCH, Host.localHostArch);
                Debug.trace("localhost.arch='" + idata.getVariable(VAR_LOCALHOST_ARCH) + "'");
            }

            // Check user
            if (vs.substituteMultiple(idata.getVariable(VAR_CONNECT_USER), null).equals(vs.substituteMultiple(idata.getVariable(VAR_USER_NAME), null))) {
                String sgeRoot = vs.substitute(idata.getVariable(VAR_SGE_ROOT), null);
                String userName = vs.substitute(idata.getVariable(VAR_USER_NAME), null);

                ExtendedFile sgeRootDir = new ExtendedFile(sgeRoot);
View Full Code Here

Examples of com.izforge.izpack.util.VariableSubstitutor.substituteMultiple()

                Debug.trace(sgeRootDir.getPermissions() + " " + sgeRootDir.getOwner() + " " + sgeRootDir.getGroup() + " " + sgeRoot);

                if (!userName.equals("root")) {
                    if (userName.equals(sgeRootDir.getOwner())) {
                        Debug.trace("You are not installing as user 'root'! This will allow you to run Grid Engine only under your user id for testing a limited functionality of Grid Engine!");
                        if (!silentMode && JOptionPane.NO_OPTION == JOptionPane.showOptionDialog(parent, vs.substituteMultiple(idata.langpack.getString(WARNING_USER_NOT_ROOT), null),
                                idata.langpack.getString("installer.warning"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, null,
                                new Object[]{idata.langpack.getString("installer.yes"), idata.langpack.getString("installer.no")}, idata.langpack.getString("installer.yes"))) {
                            parent.exit(true);
                        }
                    } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.