Package org.jboss.tools.runtime.core.model

Examples of org.jboss.tools.runtime.core.model.RuntimeDefinition


                String name = getDroolsRuntimeName(DROOLS_PREFIX + version);
                DroolsRuntime found = getRuntimeForLocation(root.getAbsolutePath());
                if( found != null) {
                  name = found.getName();
                }
                return new RuntimeDefinition(name, version, DROOLS,
                        root.getAbsoluteFile());
            }
        }
        return null;
    }
View Full Code Here


            return;
        }
        File droolsRoot = serverDefinition.getLocation(); //$NON-NLS-1$
        if (droolsRoot.isDirectory()) {
            String name = DROOLS_PREFIX_HYPHEN + serverDefinition.getName(); //$NON-NLS-1$
            RuntimeDefinition sd = new RuntimeDefinition(name,
                    serverDefinition.getVersion(), DROOLS, droolsRoot);
            sd.setParent(serverDefinition);
            serverDefinition.getIncludedRuntimeDefinitions().add(sd);
        }
    }
View Full Code Here

   
    ServerBeanLoader loader = new ServerBeanLoader(root);
    ServerBean serverBean = loader.getServerBean();
    ServerBeanType type = serverBean.getBeanType();
    if( Fabric8BeanProvider.FABRIC8_1x.equals(type)) {
      RuntimeDefinition runtimeDefinition = new RuntimeDefinition(serverBean.getName(),
          serverBean.getVersion(), type.getId(), new File(serverBean.getLocation()));
      return runtimeDefinition;
    }
    return null;
  }
View Full Code Here

   
    ServerBeanLoader loader = new ServerBeanLoader(root);
    ServerBean serverBean = loader.getServerBean();
    ServerBeanType type = serverBean.getBeanType();
    if( FuseBeanProvider.FUSE_6x.equals(type)) {
      RuntimeDefinition runtimeDefinition = new RuntimeDefinition(serverBean.getName(),
          serverBean.getVersion(), type.getId(), new File(serverBean.getLocation()));
      return runtimeDefinition;
    }
    return null;
  }
View Full Code Here

    ServerBeanLoader loader = new ServerBeanLoader(root);
    ServerBean serverBean = loader.getServerBean();
    ServerBeanType type = serverBean.getBeanType();
    if( KarafBeanProvider.KARAF_2x.equals(type) ||
      KarafBeanProvider.KARAF_3x.equals(type) ) {
      RuntimeDefinition runtimeDefinition = new RuntimeDefinition(serverBean.getName(),
          serverBean.getVersion(), type.getId(), new File(serverBean.getLocation()));
      return runtimeDefinition;
    }
    return null;
  }
View Full Code Here

    ServerBeanLoader loader = new ServerBeanLoader(root);
    ServerBean serverBean = loader.getServerBean();
    ServerBeanType type = serverBean.getBeanType();
    if( ServiceMixBeanProvider.SMX_4x.equals(type) ||
      ServiceMixBeanProvider.SMX_5x.equals(type) ) {
      RuntimeDefinition runtimeDefinition = new RuntimeDefinition(serverBean.getName(),
          serverBean.getVersion(), type.getId(), new File(serverBean.getLocation()));
      return runtimeDefinition;
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.jboss.tools.runtime.core.model.RuntimeDefinition

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.