示例#1
0
  public static IPath getPortalDir(
      org.eclipse.wst.common.project.facet.core.runtime.IRuntime facetRuntime) {
    ILiferayRuntime runtime =
        (ILiferayRuntime) getRuntimeAdapter(facetRuntime, ILiferayRuntime.class);

    return runtime != null ? runtime.getPortalDir() : null;
  }
示例#2
0
  public static Map<String, String> configureAppServerProperties(ILiferayRuntime appServer) {
    Map<String, String> properties = new HashMap<String, String>();

    String type = appServer.getAppServerType();

    String dir = appServer.getAppServerDir().toOSString();

    String deployDir = appServer.getDeployDir().toOSString();

    String libGlobalDir = appServer.getLibGlobalDir().toOSString();

    String portalDir = appServer.getPortalDir().toOSString();

    properties.put(ISDKConstants.PROPERTY_APP_SERVER_TYPE, type);
    properties.put(ISDKConstants.PROPERTY_APP_SERVER_DIR, dir);
    properties.put(ISDKConstants.PROPERTY_APP_SERVER_DEPLOY_DIR, deployDir);
    properties.put(ISDKConstants.PROPERTY_APP_SERVER_LIB_GLOBAL_DIR, libGlobalDir);
    properties.put(ISDKConstants.PROPERTY_APP_SERVER_PORTAL_DIR, portalDir);

    return properties;
  }