Search in sources :

Example 1 with RuntimeType

use of org.eclipse.wst.server.core.internal.RuntimeType in project webtools.servertools by eclipse.

the class RuntimeBridge method initialize.

private static void initialize() {
    // add runtime mappings
    IRuntimeType[] runtimeTypes = ServerCore.getRuntimeTypes();
    int size = runtimeTypes.length;
    for (int i = 0; i < size; i++) {
        RuntimeType rt = (RuntimeType) runtimeTypes[i];
        String component = rt.getFacetRuntimeComponent();
        String version = rt.getFacetRuntimeVersion();
        if (component != null && !"".equals(component) && version != null && !"".equals(version))
            addMapping(rt.getId(), component, version);
    }
    // add extension mappings
    RuntimeFacetMapping[] rfms = FacetMappingUtil.getRuntimeFacetMapping();
    size = rfms.length;
    for (int i = 0; i < size; i++) addMapping(rfms[i].getRuntimeTypeId(), rfms[i].getRuntimeComponent(), rfms[i].getVersion());
    // generic runtimes
    addMapping("org.eclipse.jst.server.generic.runtime.jboss323", "org.eclipse.jst.server.generic.runtime.jboss", "3.2.3");
    addMapping("org.eclipse.jst.server.generic.runtime.jonas4", "org.eclipse.jst.server.generic.runtime.jonas", "4.0");
    addMapping("org.eclipse.jst.server.generic.runtime.oracle1013", "org.eclipse.jst.server.generic.runtime.oracle", "10.1.3");
}
Also used : IRuntimeType(org.eclipse.wst.server.core.IRuntimeType) RuntimeType(org.eclipse.wst.server.core.internal.RuntimeType) IRuntimeType(org.eclipse.wst.server.core.IRuntimeType)

Example 2 with RuntimeType

use of org.eclipse.wst.server.core.internal.RuntimeType in project webtools.servertools by eclipse.

the class ServerCreationTest method setUp.

/*
	 * @see TestCase#setUp()
	 */
protected void setUp() throws Exception {
    super.setUp();
    IRuntimeType[] listAll = ServerCore.getRuntimeTypes();
    if (listAll != null) {
        for (int i = 0; i < listAll.length; i++) {
            IRuntimeType runtimeType = listAll[i];
            if ("J2EE Runtime Library".equals(runtimeType.getName()))
                j2eeRuntimeType = (RuntimeType) runtimeType;
        }
    }
}
Also used : IRuntimeType(org.eclipse.wst.server.core.IRuntimeType) RuntimeType(org.eclipse.wst.server.core.internal.RuntimeType) IRuntimeType(org.eclipse.wst.server.core.IRuntimeType)

Aggregations

IRuntimeType (org.eclipse.wst.server.core.IRuntimeType)2 RuntimeType (org.eclipse.wst.server.core.internal.RuntimeType)2