本文整理了Java中org.apache.maven.model.Build.getTestResources()
方法的一些代码示例,展示了Build.getTestResources()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Build.getTestResources()
方法的具体详情如下:
包路径:org.apache.maven.model.Build
类名称:Build
方法名:getTestResources
暂无
代码示例来源:origin: org.apache.maven/maven-project
public List getTestResources()
{
return getBuild().getTestResources();
}
代码示例来源:origin: apache/maven
public List<Resource> getTestResources()
{
return getBuild().getTestResources();
}
代码示例来源:origin: org.apache.maven/maven-project
public BuildOverlay( Build build )
{
if ( build == null )
{
this.build = new Build();
this.resources = new ArrayList();
this.testResources = new ArrayList();
}
else
{
this.build = build;
this.resources = new ArrayList( build.getResources() );
this.testResources = new ArrayList( build.getTestResources() );
}
}
代码示例来源:origin: org.apache.maven/maven-project
for ( Iterator i = build.getTestResources().iterator(); i.hasNext(); )
代码示例来源:origin: org.apache.maven/maven-project
for ( Iterator i = build.getTestResources().iterator(); i.hasNext(); )
代码示例来源:origin: org.apache.maven/maven-project
for ( Iterator it = build.getTestResources().iterator(); it.hasNext(); )
代码示例来源:origin: apache/maven
if ( ( build.getTestResources() != null ) && ( build.getTestResources().size() > 0 ) )
for ( Iterator iter = build.getTestResources().iterator(); iter.hasNext(); )
代码示例来源:origin: org.apache.maven/maven-project
resources = childBuild.getTestResources();
if ( ( resources == null ) || resources.isEmpty() )
childBuild.setTestResources( parentBuild.getTestResources() );
代码示例来源:origin: apache/maven
resources = childBuild.getTestResources();
if ( ( resources == null ) || resources.isEmpty() )
childBuild.setTestResources( parentBuild.getTestResources() );
代码示例来源:origin: org.apache.maven/maven-project
debugMessages ) );
dynamicBuild.setTestResources( restoreResources( dynamicBuild.getTestResources(),
originalInterpolatedBuild.getTestResources(),
changedBuild.getTestResources(),
project,
config,
代码示例来源:origin: apache/maven
for ( Resource resource : build.getTestResources() )
代码示例来源:origin: apache/maven
for ( Resource resource : build.getTestResources() )
代码示例来源:origin: apache/maven
for ( Resource resource : build.getTestResources() )
代码示例来源:origin: org.apache.maven/maven-project
initResourceMergeIds( build.getTestResources() );
代码示例来源:origin: apache/maven
validate20RawResources( problems, build.getTestResources(), "build.testResources.testResource",
request );
代码示例来源:origin: org.apache.maven/maven-project
ModelUtils.mergeResourceLists( modelBuild.getTestResources(), profileBuild.getTestResources() );
代码示例来源:origin: takari/polyglot-maven
if ( ( build.getTestResources() != null ) && ( build.getTestResources().size() > 0 ) )
for ( Iterator iter = build.getTestResources().iterator(); iter.hasNext(); )
代码示例来源:origin: paypal/SeLion
String resourcesDir() {
List<Resource> res = project.getBuild().getTestResources();
if (res != null && res.size() >= 1) {
return res.get(0).getDirectory();
}
return "";
}
}
代码示例来源:origin: takari/takari-lifecycle
@Override
protected void executeMojo() throws MojoExecutionException {
process(testResources != null ? testResources : project.getBuild().getTestResources(), testOutputDirectory);
}
}
代码示例来源:origin: errai/errai
private void addTestResourcesFromMainBuild(final Model pom, final Map<String, Resource> resourcesByDirectory) {
if (pom.getBuild() != null && pom.getBuild().getTestResources() != null) {
for (final Resource resource : pom.getBuild().getTestResources()) {
resourcesByDirectory.put(resource.getDirectory(), resource);
}
}
else {
final Resource testRes = new Resource();
testRes.setDirectory("src/test/resources");
resourcesByDirectory.put(testRes.getDirectory(), testRes);
}
}
内容来源于网络,如有侵权,请联系作者删除!