Examples of RuntimeInfo


Examples of org.apache.maven.settings.RuntimeInfo

        return settings;
    }

    private static RuntimeInfo createRuntimeInfo( CommandLine commandLine, Settings settings )
    {
        RuntimeInfo runtimeInfo = new RuntimeInfo( settings );

        if ( commandLine.hasOption( CLIManager.FORCE_PLUGIN_UPDATES ) ||
            commandLine.hasOption( CLIManager.FORCE_PLUGIN_UPDATES2 ) )
        {
            runtimeInfo.setPluginUpdateOverride( Boolean.TRUE );
        }
        else if ( commandLine.hasOption( CLIManager.SUPPRESS_PLUGIN_UPDATES ) )
        {
            runtimeInfo.setPluginUpdateOverride( Boolean.FALSE );
        }

        return runtimeInfo;
    }
View Full Code Here

Examples of org.apache.tuscany.host.RuntimeInfo

     */
    public void testResolveArtifact() throws Exception {

        final URL BASE_URL = new File(System.getProperty("user.home") + File.separator + ".m2").toURL();
        String remoteRepoUrl = "http://repo1.maven.org/maven2/";
        MavenArtifactRepository repository = new MavenArtifactRepository(remoteRepoUrl, new RuntimeInfo() {
            public File getApplicationRootDirectory() {
                return null;
            }

            public URL getBaseURL() {
View Full Code Here

Examples of org.apache.tuscany.host.RuntimeInfo

        runtime = bootstrapper.createRuntime();
        runtime.start(); // REVIEW: is this redundant w/ the composite.start() call below?

        // initialize the runtime info
        CompositeComponent parent = runtime.getSystemComponent();
        RuntimeInfo runtimeInfo = new LauncherRuntimeInfo(getInstallDirectory(), getApplicationRootDirectory(), true);
        parent.registerJavaObject("RuntimeInfo", RuntimeInfo.class, runtimeInfo);

        // registory the monitor factory
        parent.registerJavaObject("MonitorFactory", MonitorFactory.class, monitor);
View Full Code Here

Examples of org.apache.tuscany.host.RuntimeInfo

        runtime = bootstrapper.createRuntime();
        runtime.start();
        systemComponent = runtime.getSystemComponent();

        // register the runtime info provided by the host
        RuntimeInfo runtimeInfo = getRuntimeInfo();
        systemComponent.registerJavaObject(RuntimeInfo.COMPONENT_NAME, RuntimeInfo.class, runtimeInfo);
        systemComponent.registerJavaObject(StandaloneRuntimeInfo.COMPONENT_NAME,
                                           StandaloneRuntimeInfo.class,
                                           (StandaloneRuntimeInfo) runtimeInfo);
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

    public long getStartIndex() {
        return startIndex;
    }

    private IBackend createBackend() {
        final RuntimeInfo erlideRuntime = BackendCore.getRuntimeInfoCatalog()
                .getErlideRuntime();
        if (erlideRuntime == null) {
            return null;
        }
        final RuntimeInfo info = new RuntimeInfo(erlideRuntime);
        try {
            final BackendData data = getBackendData(info);
            data.setUseStartShell(true);
            final IBackend b = BackendCore.getBackendManager().createExecutionBackend(
                    data);
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

    public void setInternal(final boolean internal) {
        this.internal = internal;
    }

    public String[] getCmdLine() {
        final RuntimeInfo r = getRuntimeInfo();
        final List<String> result = new ArrayList<String>();

        if (hasDetachedConsole() && !isInternal()) {
            if (SystemConfiguration.getInstance().isOnWindows()) {
                result.add("cmd.exe");
                result.add("/c");
                result.add("start");
            } else {
                final String command = System.getenv().get("TERM");
                result.add(command);
                result.add("-e");
            }
        }

        String erl = r.getOtpHome() + "/bin/erl";
        if (erl.indexOf(' ') >= 0) {
            erl = "\"" + erl + "\"";
        }
        result.add(erl);
        for (final String path : r.getCodePath()) {
            if (!Strings.isNullOrEmpty(path)) {
                result.add("-pa");
                result.add(path);
            }
        }
        if (!useStartShell()) {
            result.add("-noshell");
        }

        if (!getNodeName().equals("")) {
            final String nameTag = hasLongName() ? "-name" : "-sname";
            String nameOption = getNodeName();
            if (!nameOption.contains("@")) {
                nameOption += "@" + HostnameUtils.getErlangHostName(hasLongName());
            }
            result.add(nameTag);
            result.add(nameOption);
            final String cky = getCookie();
            if (!Strings.isNullOrEmpty(cky)) {
                result.add("-setcookie");
                result.add(cky);
            }
        }
        final String gotArgs = r.getArgs();
        if (!Strings.isNullOrEmpty(gotArgs)) {
            result.addAll(splitQuoted(gotArgs));
        }
        return result.toArray(new String[result.size()]);
    }
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

    @Override
    public String getText(final Object element) {
        final IBackend b = (IBackend) element;
        final BackendData data = b.getData();
        final RuntimeInfo info = data.getRuntimeInfo();
        final String s = info != null ? info.getName() : "<none>";
        return s + ": " + data.getNodeName();
    }
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

                    return it.toString();
                  }
                };
                List<String> _map = ListExtensions.<RuntimeVersion, String>map(((List<RuntimeVersion>)Conversions.doWrapArray(runtimeVersions)), _function);
                it.setItems(((String[])Conversions.unwrapArray(_map, String.class)));
                RuntimeInfo _bestRuntime = ErlangProjectBuilderPage.this.info.bestRuntime();
                RuntimeVersion _version = _bestRuntime.getVersion();
                RuntimeVersion _asMajor = _version.asMajor();
                String _string = _asMajor.toString();
                it.setText(_string);
                String _text = it.getText();
                RuntimeVersion _parse = RuntimeVersion.Serializer.parse(_text);
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

        return cachedRuntimeInfo;
    }

    @Override
    public RuntimeVersion getRuntimeVersion() {
        final RuntimeInfo runtimeInfo = getRuntimeInfo();
        if (runtimeInfo != null) {
            return runtimeInfo.getVersion();
        }
        // should not happen
        return null;
    }
View Full Code Here

Examples of org.erlide.runtime.runtimeinfo.RuntimeInfo

        final List<String> rtl = new ArrayList<String>();
        for (final RuntimeInfo r : runtimes) {
            rtl.add(r.getName());
        }
        final String[] rts = rtl.toArray(new String[] {});
        final RuntimeInfo defaultRuntime = BackendCore.getRuntimeInfoCatalog()
                .getDefaultRuntime();
        final int db = defaultRuntime == null ? 0 : Arrays.binarySearch(rts,
                defaultRuntime.getName());

        runtimesCombo = new Combo(comp, SWT.READ_ONLY);
        final GridData gd_runtimesCombo = new GridData(174, SWT.DEFAULT);
        gd_runtimesCombo.horizontalAlignment = SWT.FILL;
        runtimesCombo.setLayoutData(gd_runtimesCombo);
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.