本文整理汇总了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()]);
}