本文整理了Java中org.apache.maven.model.Build.setTestSourceDirectory()
方法的一些代码示例,展示了Build.setTestSourceDirectory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Build.setTestSourceDirectory()
方法的具体详情如下:
包路径:org.apache.maven.model.Build
类名称:Build
方法名:setTestSourceDirectory
[英]Set this element specifies a directory containing the unit test source of the project. The generated build system will compile these directories when the project is being tested. The path given is relative to the project descriptor. The default value is src/test/java
.
[中]Set此元素指定包含项目的单元测试源的目录。生成的构建系统将在测试项目时编译这些目录。给定的路径是相对于项目描述符的。默认值为src/test/java
。
代码示例来源:origin: org.apache.maven/maven-project
public void setTestSourceDirectory( String testSourceDirectory )
{
build.setTestSourceDirectory( testSourceDirectory );
}
代码示例来源:origin: apache/maven
protected void mergeBuild_TestSourceDirectory( Build target, Build source, boolean sourceDominant,
Map<Object, Object> context )
{
String src = source.getTestSourceDirectory();
if ( src != null )
{
if ( sourceDominant || target.getTestSourceDirectory() == null )
{
target.setTestSourceDirectory( src );
target.setLocation( "testSourceDirectory", source.getLocation( "testSourceDirectory" ) );
}
}
}
代码示例来源:origin: org.apache.maven/maven-project
build.setTestSourceDirectory( alignToBaseDirectory( build.getTestSourceDirectory(), basedir ) );
代码示例来源:origin: org.apache.maven/maven-project
build.setTestSourceDirectory( unalignFromBaseDirectory( build.getTestSourceDirectory(), basedir ) );
代码示例来源:origin: org.apache.maven/maven-project
public static Build cloneBuild( Build src )
{
if ( src == null )
{
return null;
}
Build result = new Build();
cloneBuildBaseFields( src, result );
result.setExtensions( cloneList( src.getExtensions(), EXTENSION_CLONER ) );
result.setOutputDirectory( src.getOutputDirectory() );
result.setScriptSourceDirectory( src.getScriptSourceDirectory() );
result.setSourceDirectory( src.getSourceDirectory() );
result.setTestOutputDirectory( src.getTestOutputDirectory() );
result.setTestSourceDirectory( src.getTestSourceDirectory() );
return result;
}
代码示例来源:origin: apache/maven
build.setTestSourceDirectory( alignToBaseDirectory( build.getTestSourceDirectory(), basedir ) );
代码示例来源:origin: apache/maven
build.setTestSourceDirectory( alignToBaseDirectory( build.getTestSourceDirectory(), basedir ) );
代码示例来源:origin: apache/maven
build.setTestSourceDirectory( unalignFromBaseDirectory( build.getTestSourceDirectory(), basedir ) );
代码示例来源:origin: org.apache.maven/maven-project
childBuild.setTestSourceDirectory( parentBuild.getTestSourceDirectory() );
代码示例来源:origin: apache/maven
childBuild.setTestSourceDirectory( parentBuild.getTestSourceDirectory() );
代码示例来源:origin: apache/maven
build.setTestSourceDirectory( interpolatedTrimmed( parser.nextText(), "testSourceDirectory" ) );
代码示例来源:origin: takari/polyglot-maven
public BuildBuilder testSourceDirectory(String testSourceDirectory) {
if (testSourceDirectory != null) {
getBuild().setTestSourceDirectory(testSourceDirectory);
}
return this;
}
代码示例来源:origin: org.apache.maven/maven-project
debugMessages ) );
dynamicBuild.setTestSourceDirectory( restoreString( dynamicBuild.getTestSourceDirectory(),
originalInterpolatedBuild.getTestSourceDirectory(),
changedBuild.getTestSourceDirectory(),
代码示例来源:origin: apache/maven
build.setTestSourceDirectory( interpolatedTrimmed( parser.nextText(), "testSourceDirectory" ) );
代码示例来源:origin: takari/polyglot-maven
build.setTestSourceDirectory( getTrimmedValue( value ) );
代码示例来源:origin: takari/polyglot-maven
build.setTestSourceDirectory(testDir);
代码示例来源:origin: io.tesla.maven/maven-model
protected void mergeBuild_TestSourceDirectory( Build target, Build source, boolean sourceDominant,
Map<Object, Object> context )
{
String src = source.getTestSourceDirectory();
if ( src != null )
{
if ( sourceDominant || target.getTestSourceDirectory() == null )
{
target.setTestSourceDirectory( src );
target.setLocation( "testSourceDirectory", source.getLocation( "testSourceDirectory" ) );
}
}
}
代码示例来源:origin: net.jangaroo/jangaroo-maven-plugin
project.getBuild().setTestSourceDirectory(DEFAULT_JOO_TEST_SOURCE_DIR);
project.addTestCompileSourceRoot(DEFAULT_JOO_TEST_SOURCE_DIR);
代码示例来源:origin: org.apache.maven/maven-model-builder
build.setTestSourceDirectory( alignToBaseDirectory( build.getTestSourceDirectory(), basedir ) );
代码示例来源:origin: com.github.htfv.maven.plugins/build-configurator-core
build.setTestOutputDirectory(
interpolateString(build.getTestOutputDirectory()));
build.setTestSourceDirectory(
interpolateString(build.getTestSourceDirectory()));
内容来源于网络,如有侵权,请联系作者删除!