Package org.jnode.util

Examples of org.jnode.util.Version


        Version a = new Version("1.2.3.-4");
    }

    @Test(expected = NumberFormatException.class)
    public void testError6a() throws Exception {
        @SuppressWarnings("unused")
        Version a = new Version("jon");
    }
View Full Code Here


        Version a = new Version("jon");
    }

    @Test(expected = NumberFormatException.class)
    public void testError6b() throws Exception {
        @SuppressWarnings("unused")
        Version a = new Version("1.jon");
    }
View Full Code Here

        Version a = new Version("1.jon");
    }

    @Test(expected = NumberFormatException.class)
    public void testError6c() throws Exception {
        @SuppressWarnings("unused")
        Version a = new Version("1.2.jon");
    }
View Full Code Here

        Version a = new Version("1.2.jon");
    }

    @Test(expected = NumberFormatException.class)
    public void testError6d() throws Exception {
        @SuppressWarnings("unused")
        Version a = new Version("1.2.3.jon");
    }
View Full Code Here

        Version a = new Version("1.2.3.jon");
    }

    @Test(expected = IllegalArgumentException.class)
    public void testError7a() throws Exception {
        @SuppressWarnings("unused")
        Version a = new Version("1.2.3.4.5");
    }
View Full Code Here

        name = getAttribute(rootElement, "name", true);
        providerName = getAttribute(rootElement, "provider-name", false);
        providerUrl = getAttribute(rootElement, "provider-url", false);
        licenseName = getAttribute(rootElement, "license-name", true);
        licenseUrl = getAttribute(rootElement, "license-url", false);
        version = new Version(getAttribute(rootElement, "version", true));
        className = getAttribute(rootElement, "class", false);
        system = getBooleanAttribute(rootElement, "system", false);
        autoStart = getBooleanAttribute(rootElement, "auto-start", false);
        priority = Math.min(MAX_PRIORITY, Math.max(MIN_PRIORITY,
            getIntAttribute(rootElement, "priority", DEFAULT_PRIORITY)));
View Full Code Here

    private void doRun()
        throws NameNotFoundException, SyntaxMultiplicityException, PluginException, MalformedURLException {
        mgr = InitialNaming.lookup(PluginManager.NAME);
        final String version = argVersion.isSet() ? argVersion.getValue() : VmUtils.getVm().getVersion();
        final String pluginId = argPluginID.getValue();
        final PluginReference pluginRef = new PluginReference(pluginId, new Version(version));
        if (argLoaderUrl.isSet()) {
            addPluginLoader(argLoaderUrl.getValue());
        } else if (argLoad.isSet()) {
            loadPlugin(pluginRef);
        } else if (argReload.isSet()) {
View Full Code Here

TOP

Related Classes of org.jnode.util.Version

Copyright © 2018 www.massapicom. 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.