Examples of TomcatServerOsgiModel


Examples of com.dynamic.model.project.model.TomcatServerOsgiModel

  @Override
  public void run(IAction arg0) {
    // TODO Auto-generated method stub
    IServer tamcatServer=TomcatServerOsgiModel.getTomcatServer();
    TomcatServerOsgiModel serverModel = new TomcatServerOsgiModel(tamcatServer);
    if(tamcatServer.getLaunch()==null){
      Console.println("Begin Eliminate Work Directory:"+serverModel.getCatalinaPath());
      File bundelFile=new File(serverModel.getCatalinaPath());
      deleteFile(bundelFile);
      //bundel clean
      IProject hostWeb = serverModel.getHostModule().getProject();
      cleanBundel(serverModel,hostWeb);
    }else{
      Shell shell= PlatformUI.getWorkbench().getDisplay().getActiveShell();
      MessageDialog.openInformation (shell,
                    "��ʾ��Ϣ",
View Full Code Here

Examples of com.dynamic.model.project.model.TomcatServerOsgiModel

        IServer tamcatServer=TomcatServerOsgiModel.getTomcatServer();
        //buidler processing
        if(tamcatServer==null||tamcatServer.getLaunch()==null){
          return;
        }else if(BuiderParameter.contains(resource.getName())){
          TomcatServerOsgiModel serverModel = new TomcatServerOsgiModel(tamcatServer);
          PluginDeployEngine deployEngine=new PluginDeployEngine();
          deployEngine.setServerModel(serverModel);
          deployEngine.syncBundelJar(resource.getProject());
        }
      }
View Full Code Here

Examples of com.dynamic.model.project.model.TomcatServerOsgiModel

    //event.getState()==ServerEvent.PUBLISH_STATE_CHANGE
    if(event.getState()==ServerEvent.PUBLISH_STATE_CHANGE){
      RELEASE_STATUS=true;
    }else if(RELEASE_STATUS && event.getState()==ServerEvent.STATE_CHANGE){
      RELEASE_STATUS=false;
      TomcatServerOsgiModel serverModel = new TomcatServerOsgiModel(
          event.getServer());
      //��ʼ����Ŀ����
      BuiderParameter buiderParameter=new BuiderParameter();
      buiderParameter.initialize(serverModel.getHostModule().getProject());
      //����������
      Set<String> dependSet = BuiderParameter.getDependModel();
      if(dependSet==null){
        return;
      }else{
View Full Code Here

Examples of com.dynamic.model.project.model.TomcatServerOsgiModel

   */
  private void cleanHistory(IServer server,Set<String> dependSet){
    if(server==null||dependSet.size()==0){
      return;
    }
    TomcatServerOsgiModel tomcatServerModel = new TomcatServerOsgiModel(server);
    String launchPath=  BuilderProperty.getLaunchPath();
    if(launchPath.endsWith(Constants.JAR_FILE_EXTENSION_NAME)){
      return;
    }else{
      launchPath=launchPath.substring(0, launchPath.lastIndexOf("/"));
    }
    File bundelPath=new File(tomcatServerModel.getContextPath(),launchPath);
    IWorkspaceRoot spaceRoot=ResourcesPlugin.getWorkspace().getRoot();
    for(String modul : dependSet){
      IProject project=spaceRoot.getProject(modul);
      if(project==null){
        continue;
View Full Code Here

Examples of com.dynamic.model.project.model.TomcatServerOsgiModel

    if(ProjectUtil.isPluginProject(resource)){
      IServer tomcatServer=TomcatServerOsgiModel.getTomcatServer();
      if(tomcatServer==null||tomcatServer.getLaunch()==null){
        return;
      }else if(BuiderParameter.contains(resource.getProject().getName())){
        TomcatServerOsgiModel tomcatServerModel = new TomcatServerOsgiModel(tomcatServer);
        ResourceChangeEngine resourceChangeEngine=new ResourceChangeEngine(resource,changeMode);
        resourceChangeEngine.resourceChangedJob(tomcatServerModel);
      }
    }
  }
View Full Code Here

Examples of com.dynamic.model.project.model.TomcatServerOsgiModel

      IServer tamcatServer = TomcatServerOsgiModel.getTomcatServer();
      // buidler processing
      if (tamcatServer == null || tamcatServer.getLaunch() == null) {
        MessageDialog.openInformation(shell, "��ʾ��Ϣ", "ϵͳ���ķ�����δ������");
      } else if (BuiderParameter.contains(selectProject.getName())) {
        TomcatServerOsgiModel serverModel = new TomcatServerOsgiModel(
            tamcatServer);
        PluginDeployEngine deployEngine = new PluginDeployEngine();
        deployEngine.setServerModel(serverModel);
        deployEngine.syncBundelJar(selectProject.getProject());
        MessageDialog.openInformation(shell, "��ʾ��Ϣ", "ģ����Ŀ["
View Full Code Here

Examples of com.dynamic.model.project.model.TomcatServerOsgiModel

public class ModelOpenAction extends PluginDeployBase implements IWorkbenchWindowActionDelegate{
  @Override
  public void run(IAction arg0) {
    // TODO Auto-generated method stub
    IServer tamcatServer=TomcatServerOsgiModel.getTomcatServer();
    TomcatServerOsgiModel serverModel = new TomcatServerOsgiModel(tamcatServer);
    String directory= serverModel.getDeployPath();
    if (directory == null) {
      return;
    }
    try {
      Runtime.getRuntime()
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.