当前位置: 首页>>代码示例>>Java>>正文


Java PublishOperation类代码示例

本文整理汇总了Java中org.eclipse.wst.server.core.model.PublishOperation的典型用法代码示例。如果您正苦于以下问题:Java PublishOperation类的具体用法?Java PublishOperation怎么用?Java PublishOperation使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PublishOperation类属于org.eclipse.wst.server.core.model包,在下文中一共展示了PublishOperation类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getTasks

import org.eclipse.wst.server.core.model.PublishOperation; //导入依赖的package包/类
@Override
@SuppressWarnings("rawtypes")
public PublishOperation[] getTasks(IServer server, int kind, List/* <IModule[]> */ modules,
    List/* <Integer> */ kindList) {
  if (modules == null || modules.isEmpty()) {
    return null;
  }

  LocalAppEngineServerBehaviour gaeServer =
      (LocalAppEngineServerBehaviour) server.loadAdapter(LocalAppEngineServerBehaviour.class, null);

  List<PublishOperation> tasks = Lists.newArrayList();
  for (int i = 0; i < modules.size(); i++) {
    IModule[] module = (IModule[]) modules.get(i);
    tasks.add(new LocalAppEnginePublishOperation(gaeServer, kind, module, (Integer) kindList.get(i)));
  }

  return tasks.toArray(new PublishOperation[tasks.size()]);
}
 
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-eclipse,代码行数:20,代码来源:LocalAppEnginePublishTaskDelegate.java

示例2: getTasks

import org.eclipse.wst.server.core.model.PublishOperation; //导入依赖的package包/类
public PublishOperation[] getTasks(IServer server, int kind, List modules, List kindList)
{
    if (modules == null)
        return null;

    JettyServerBehaviour jettyServer = (JettyServerBehaviour)server.loadAdapter(JettyServerBehaviour.class,null);
    if (!jettyServer.getJettyServer().isTestEnvironment())
        return null;

    List<PublishOperation> tasks = new ArrayList<PublishOperation>();
    int size = modules.size();
    for (int i = 0; i < size; i++)
    {
        IModule[] module = (IModule[])modules.get(i);
        Integer in = (Integer)kindList.get(i);
        tasks.add(new PublishOperation2(jettyServer,kind,module,in.intValue()));
    }

    return (PublishOperation[])tasks.toArray(new PublishOperation[tasks.size()]);
}
 
开发者ID:bengalaviz,项目名称:JettyWTPPlugin,代码行数:21,代码来源:PublishTask.java


注:本文中的org.eclipse.wst.server.core.model.PublishOperation类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。