Package org.erlide.runtime.runtimeinfo

Examples of org.erlide.runtime.runtimeinfo.RuntimeVersion$Serializer


        assertThat(test1.isCompatible(test2), is(true));
    }

    @Test
    public void compare_11b() {
        final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("R15B");
        final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("R14");
        assertThat(test1.isCompatible(test2), is(true));
    }
View Full Code Here


        assertThat(test1.isCompatible(test2), is(true));
    }

    @Test
    public void compare_11c() {
        final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("R14");
        final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("R15B");
        assertThat(test1.isCompatible(test2), is(false));
    }
View Full Code Here

    // assertThat(test1.compareTo(test2), is(lessThan(0)));
    // }

    @Test
    public void compare_12a() {
        final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("R14");
        final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("R15");
        assertThat(test1.isReleaseCompatible(test2), is(false));
    }
View Full Code Here

        assertThat(test1.isReleaseCompatible(test2), is(false));
    }

    @Test
    public void compare_12a1() {
        final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("R14");
        final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("17");
        assertThat(test1.isReleaseCompatible(test2), is(false));
    }
View Full Code Here

        assertThat(test1.isReleaseCompatible(test2), is(false));
    }

    @Test
    public void compare_12b() {
        final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("R15B");
        final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("R15");
        assertThat(test2.isReleaseCompatible(test1), is(true));
    }
View Full Code Here

        assertThat(test2.isReleaseCompatible(test1), is(true));
    }

    @Test
    public void compare_12b1() {
        final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("R14");
        final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("R14B");
        assertThat(test2.isReleaseCompatible(test1), is(true));
    }
View Full Code Here

        final Collection<IPath> srcDirs = props.getSourceDirs();
        final Collection<IPath> incDirs = props.getIncludeDirs();
        final IPath outDir = props.getOutputDir();
        IProject _workspaceProject_1 = project.getWorkspaceProject();
        final OtpErlangList opts = CompilerOptions.get(_workspaceProject_1);
        RuntimeVersion _requiredRuntimeVersion = props.getRequiredRuntimeVersion();
        final RuntimeVersion minOtpVsn = _requiredRuntimeVersion.asMajor();
        final Collection<String> libs = CollectionLiterals.<String>newArrayList();
        final Collection<String> libIncs = CollectionLiterals.<String>newArrayList();
        File _createTempDir = Files.createTempDir();
        final String tmpDir = _createTempDir.getAbsolutePath();
        final Function1<IPath, OtpErlangString> _function = new Function1<IPath, OtpErlangString>() {
          public OtpErlangString apply(final IPath it) {
            String _portableString = it.toPortableString();
            return new OtpErlangString(_portableString);
          }
        };
        Iterable<OtpErlangString> _map = IterableExtensions.<IPath, OtpErlangString>map(srcDirs, _function);
        final Function1<IPath, OtpErlangString> _function_1 = new Function1<IPath, OtpErlangString>() {
          public OtpErlangString apply(final IPath it) {
            String _portableString = it.toPortableString();
            return new OtpErlangString(_portableString);
          }
        };
        Iterable<OtpErlangString> _map_1 = IterableExtensions.<IPath, OtpErlangString>map(incDirs, _function_1);
        final Function1<String, OtpErlangString> _function_2 = new Function1<String, OtpErlangString>() {
          public OtpErlangString apply(final String it) {
            return new OtpErlangString(it);
          }
        };
        Iterable<OtpErlangString> _map_2 = IterableExtensions.<String, OtpErlangString>map(libIncs, _function_2);
        Iterable<OtpErlangString> _plus = Iterables.<OtpErlangString>concat(_map_1, _map_2);
        String _portableString = outDir.toPortableString();
        String _string = minOtpVsn.toString();
        final Function1<String, OtpErlangString> _function_3 = new Function1<String, OtpErlangString>() {
          public OtpErlangString apply(final String it) {
            return new OtpErlangString(it);
          }
        };
View Full Code Here

    this.testDirs = props.testDirs;
    Collection<IPath> _sourceDirs = props.getSourceDirs();
    this.setSourceDirs(_sourceDirs);
    IPath _ebinDir = props.getEbinDir();
    this.setEbinDir(_ebinDir);
    RuntimeVersion _requiredRuntimeVersion = props.getRequiredRuntimeVersion();
    this.setRequiredRuntimeVersion(_requiredRuntimeVersion);
    String _externalIncludesFile = props.getExternalIncludesFile();
    this.setExternalIncludesFile(_externalIncludesFile);
    String _externalModulesFile = props.getExternalModulesFile();
    this.setExternalModulesFile(_externalModulesFile);
View Full Code Here

        ILaunchConfigurationWorkingCopy workingCopy;
        try {
            final RuntimeInfo info = getRuntimeInfo();
            final String name = getNodeName();
            workingCopy = type.newInstance(null, name);
            if (info.getVersion().isReleaseCompatible(new RuntimeVersion(17))) {
                workingCopy.setAttribute(DebugPlugin.ATTR_CONSOLE_ENCODING,
                        Charsets.UTF_8.name());
            } else {
                workingCopy.setAttribute(DebugPlugin.ATTR_CONSOLE_ENCODING,
                        Charsets.ISO_8859_1.name());
View Full Code Here

        final String pluginId = extension.getContributor().getName();
        final Bundle plugin = Platform.getBundle(pluginId);

        final Multimap<CodeContext, String> paths = HashMultimap.create();
        final List<Pair<String, String>> inits = Lists.newArrayList();
        RuntimeVersion ver = RuntimeVersion.NO_VERSION;

        for (final IConfigurationElement el : extension.getConfigurationElements()) {
            if ("beam_dir".equals(el.getName())) {
                final String dir = el.getAttribute("path");
                final String t = el.getAttribute("context").toUpperCase();
View Full Code Here

TOP

Related Classes of org.erlide.runtime.runtimeinfo.RuntimeVersion$Serializer

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.