本文整理匯總了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;
}