Examples of IVirtualComponent


Examples of org.eclipse.wst.common.componentcore.resources.IVirtualComponent

  public String getName() {
    return "Rename project name related info in geronimo deployment plan";
  }

  protected IFile getDeploymentPlanFile(IProject project) {
    IVirtualComponent comp = ComponentCore.createComponent(project);
    IPath deployPlanPath = comp.getRootFolder().getUnderlyingFolder()
        .getProjectRelativePath().append(deploymentPlanName);
    return project.getFile(deployPlanPath);
  }
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualComponent

        .getProjectRelativePath().append(deploymentPlanName);
    return project.getFile(deployPlanPath);
  }

  protected String getDeploymentPlanFileUnderProjectPath(IProject project) {
    IVirtualComponent comp = ComponentCore.createComponent(project);
    IPath deployPlanPath = comp.getRootFolder().getUnderlyingFolder()
        .getProjectRelativePath().append(deploymentPlanName);
    return deployPlanPath.toString();
  }
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualComponent

     * @return WebApp
     */
    private JAXBElement<WebAppType> getWebDeploymentPlan(IModule module) {
        Trace.tracePoint("Enter", "DependencyHelper.getWebDeploymentPlan", module);

        IVirtualComponent comp = GeronimoUtils.getVirtualComponent(module);
        IFile file = GeronimoUtils.getWebDeploymentPlanFile(comp);
        if (file.getName().equals(GeronimoUtils.WEB_PLAN_NAME) && file.exists()) {
            try {
        Trace.tracePoint("Exit ", "DependencyHelper.getWebDeploymentPlan", JAXBUtils.unmarshalFilterDeploymentPlan(file));
         return JAXBUtils.unmarshalFilterDeploymentPlan(file);
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualComponent

     * @return OpenEjbJar
     */
    private JAXBElement<OpenejbJarType> getOpenEjbDeploymentPlan(IModule module) {
        Trace.tracePoint("Enter", "DependencyHelper.getOpenEjbDeploymentPlan", module);

        IVirtualComponent comp = GeronimoUtils.getVirtualComponent(module);
        IFile file = GeronimoUtils.getOpenEjbDeploymentPlanFile(comp);
        if (file.getName().equals(GeronimoUtils.OPENEJB_PLAN_NAME) && file.exists()) {
            try {
        Trace.tracePoint("Exit ", "DependencyHelper.getOpenEjbDeploymentPlan", JAXBUtils.unmarshalFilterDeploymentPlan(file));
      } catch (Exception e) {
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualComponent

     * @return ApplicationClient
     */
    private JAXBElement<ApplicationClientType> getAppClientDeploymentPlan(IModule module) {
        Trace.tracePoint("Enter", "DependencyHelper.getWebDeploymentPlan", module);

        IVirtualComponent comp = GeronimoUtils.getVirtualComponent(module);
        IFile file = GeronimoUtils.getApplicationClientDeploymentPlanFile(comp);
        if (file.getName().equals(GeronimoUtils.APP_CLIENT_PLAN_NAME) && file.exists()) {
            try {
        Trace.tracePoint("Exit ", "DependencyHelper.getWebDeploymentPlan", JAXBUtils.unmarshalFilterDeploymentPlan(file));
         return JAXBUtils.unmarshalFilterDeploymentPlan(file);
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualComponent

     * @return Application
     */
    private JAXBElement<ApplicationType> getApplicationDeploymentPlan(IModule module) {
        Trace.tracePoint("Enter", "DependencyHelper.getApplicationDeploymentPlan", module);

        IVirtualComponent comp = GeronimoUtils.getVirtualComponent(module);
        IFile file = GeronimoUtils.getApplicationDeploymentPlanFile(comp);
        if (file.getName().equals(GeronimoUtils.APP_PLAN_NAME) && file.exists()) {
            try {
        Trace.tracePoint("Exit ", "DependencyHelper.getApplicationDeploymentPlan", JAXBUtils.unmarshalFilterDeploymentPlan(file));
          return JAXBUtils.unmarshalFilterDeploymentPlan(file);
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualComponent

     * @return Application
     */
    private JAXBElement<ConnectorType> getConnectorDeploymentPlan(IModule module) {
        Trace.tracePoint("Enter", "DependencyHelper.getConnectorDeploymentPlan", module);

        IVirtualComponent comp = GeronimoUtils.getVirtualComponent(module);
        IFile file = GeronimoUtils.getConnectorDeploymentPlanFile(comp);
        if (file.getName().equals(GeronimoUtils.CONNECTOR_PLAN_NAME) && file.exists()) {
            try {
        Trace.tracePoint("Exit ", "DependencyHelper.getConnectorDeploymentPlan", JAXBUtils.unmarshalFilterDeploymentPlan(file));
         return JAXBUtils.unmarshalFilterDeploymentPlan(file);
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualComponent

    }
  }
 
  public static IFile getDeploymentPlanFile(IModule module) {
    IProject project = module.getProject();
    IVirtualComponent comp = ComponentCore.createComponent(project);
    String type = J2EEProjectUtilities.getJ2EEProjectType(project);
    if (IModuleConstants.JST_WEB_MODULE.equals(type)) {
      return getWebDeploymentPlanFile(comp);
    } else if (IModuleConstants.JST_EJB_MODULE.equals(type)) {
      return getOpenEjbDeploymentPlanFile(comp);
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualComponent

  public static File createJarFile(IModule module, IPath outputPath) {
    IDataModel model = getExportDataModel(module);

    if (model != null) {

      IVirtualComponent comp = ComponentCore.createComponent(module.getProject());

      //Here, specific extension name should be got, in case module has no standard JEE descriptor file included
      String extensionName = getModuleExtension(module);
     
      model.setProperty(J2EEComponentExportDataModelProvider.PROJECT_NAME, module.getProject());
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualComponent

    }
    return Status.OK_STATUS;
  }

  public void execute() throws Exception {
    IVirtualComponent comp = ComponentCore.createComponent(getProject());

    String type = J2EEProjectUtilities.getJ2EEProjectType(getProject());

    if (IModuleConstants.JST_WEB_MODULE.equals(type)) {
      createGeronimoWebDeploymentPlan(GeronimoUtils.getWebDeploymentPlanFile(comp));     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.