本文整理汇总了Java中org.jboss.shrinkwrap.descriptor.api.jbossmodule13.ResourcesType类的典型用法代码示例。如果您正苦于以下问题:Java ResourcesType类的具体用法?Java ResourcesType怎么用?Java ResourcesType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ResourcesType类属于org.jboss.shrinkwrap.descriptor.api.jbossmodule13包,在下文中一共展示了ResourcesType类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getDependencies
import org.jboss.shrinkwrap.descriptor.api.jbossmodule13.ResourcesType; //导入依赖的package包/类
public List<ArtifactSpec> getDependencies() {
if (this.module == null) {
return Collections.emptyList();
}
List<ArtifactType<ResourcesType<ModuleDescriptor>>> artifacts = this.module.getOrCreateResources().getAllArtifact();
List<ArtifactSpec> dependencies = new ArrayList<>();
String localRepo = System.getProperty("maven.repo.local", DEFAULT_LOCAL_REPO);
for (ArtifactType<ResourcesType<ModuleDescriptor>> artifact : artifacts) {
ArtifactSpec dep = ArtifactSpec.fromMscGav(artifact.getName());
File file = Paths.get(localRepo, dep.jarRepoPath()).toFile();
if (!file.exists()) {
dep.shouldGather = true;
} else {
dep.file = file;
dep.shouldGather = false;
}
dependencies.add(dep);
}
return dependencies;
}
示例2: getDependencies
import org.jboss.shrinkwrap.descriptor.api.jbossmodule13.ResourcesType; //导入依赖的package包/类
public List<DependencyMetadata> getDependencies() {
if (this.module == null) {
return Collections.emptyList();
}
List<ArtifactType<ResourcesType<ModuleDescriptor>>> artifacts = this.module.getOrCreateResources().getAllArtifact();
List<DependencyMetadata> dependencies = new ArrayList<>();
for (ArtifactType<ResourcesType<ModuleDescriptor>> artifact : artifacts) {
String name = artifact.getName();
if (!name.contains("$")) {
DependencyMetadata dep = DependencyMetadata.fromMscGav(artifact.getName());
dependencies.add(dep);
}
}
return dependencies;
}
示例3: getDependencies
import org.jboss.shrinkwrap.descriptor.api.jbossmodule13.ResourcesType; //导入依赖的package包/类
public List<ArtifactSpec> getDependencies() {
if (this.module == null) {
return Collections.emptyList();
}
List<ArtifactType<ResourcesType<ModuleDescriptor>>> artifacts = this.module.getOrCreateResources().getAllArtifact();
List<ArtifactSpec> dependencies = new ArrayList<>();
for (ArtifactType<ResourcesType<ModuleDescriptor>> artifact : artifacts) {
ArtifactSpec dep = ArtifactSpec.fromMscGav(artifact.getName());
dep.shouldGather = true;
dependencies.add(dep);
}
return dependencies;
}