本文整理了Java中org.apache.maven.model.Build.setScriptSourceDirectory()
方法的一些代码示例,展示了Build.setScriptSourceDirectory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Build.setScriptSourceDirectory()
方法的具体详情如下:
包路径:org.apache.maven.model.Build
类名称:Build
方法名:setScriptSourceDirectory
[英]Set this element specifies a directory containing the script sources of the project. This directory is meant to be different from the sourceDirectory, in that its contents will be copied to the output directory in most cases (since scripts are interpreted rather than compiled). The default value is src/main/scripts
.
[中]Set此元素指定包含项目脚本源的目录。此目录与sourceDirectory不同,因为在大多数情况下,它的内容将复制到输出目录(因为脚本是解释的,而不是编译的)。默认值为src/main/scripts
。
代码示例来源:origin: org.apache.maven/maven-project
public void setScriptSourceDirectory( String scriptSourceDirectory )
{
build.setScriptSourceDirectory( scriptSourceDirectory );
}
代码示例来源:origin: apache/maven
protected void mergeBuild_ScriptSourceDirectory( Build target, Build source, boolean sourceDominant,
Map<Object, Object> context )
{
String src = source.getScriptSourceDirectory();
if ( src != null )
{
if ( sourceDominant || target.getScriptSourceDirectory() == null )
{
target.setScriptSourceDirectory( src );
target.setLocation( "scriptSourceDirectory", source.getLocation( "scriptSourceDirectory" ) );
}
}
}
代码示例来源:origin: org.apache.maven/maven-project
build.setScriptSourceDirectory( unalignFromBaseDirectory( build.getScriptSourceDirectory(), 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.setScriptSourceDirectory( alignToBaseDirectory( build.getScriptSourceDirectory(), basedir ) );
代码示例来源:origin: org.apache.maven/maven-project
childBuild.setScriptSourceDirectory( parentBuild.getScriptSourceDirectory() );
代码示例来源:origin: apache/maven
childBuild.setScriptSourceDirectory( parentBuild.getScriptSourceDirectory() );
代码示例来源:origin: apache/maven
build.setScriptSourceDirectory( interpolatedTrimmed( parser.nextText(), "scriptSourceDirectory" ) );
代码示例来源:origin: takari/polyglot-maven
public BuildBuilder scriptSourceDirectory(String scriptSourceDirectory) {
if (scriptSourceDirectory != null) {
getBuild().setScriptSourceDirectory(scriptSourceDirectory);
}
return this;
}
代码示例来源:origin: org.apache.maven/maven-project
debugMessages ) );
dynamicBuild.setScriptSourceDirectory( restoreString( dynamicBuild.getScriptSourceDirectory(),
originalInterpolatedBuild.getScriptSourceDirectory(),
changedBuild.getScriptSourceDirectory(),
代码示例来源:origin: apache/maven
build.setScriptSourceDirectory( interpolatedTrimmed( parser.nextText(), "scriptSourceDirectory" ) );
代码示例来源:origin: takari/polyglot-maven
build.setScriptSourceDirectory( getTrimmedValue( value ) );
代码示例来源:origin: io.tesla.maven/maven-model
protected void mergeBuild_ScriptSourceDirectory( Build target, Build source, boolean sourceDominant,
Map<Object, Object> context )
{
String src = source.getScriptSourceDirectory();
if ( src != null )
{
if ( sourceDominant || target.getScriptSourceDirectory() == null )
{
target.setScriptSourceDirectory( src );
target.setLocation( "scriptSourceDirectory", source.getLocation( "scriptSourceDirectory" ) );
}
}
}
代码示例来源:origin: org.scala-tools/maven-scala-plugin
|| key.equals("script.source.directory")
|| key.equals("project.script.source.directory")) {
getBuild().setScriptSourceDirectory(value);
} else if (key.equals("source.directory")
|| key.equals("project.source.directory")
代码示例来源:origin: apache/maven-release
interpolatedSuperBuild.getSourceDirectory(),
rawSuperBuild.getSourceDirectory() ) );
currentBuild.setScriptSourceDirectory( resolvePath( basedir.toPath(), currentBuild.getScriptSourceDirectory(),
interpolatedSuperBuild.getScriptSourceDirectory(),
rawSuperBuild.getScriptSourceDirectory() ) );
代码示例来源:origin: org.apache.maven/maven-model-builder
build.setScriptSourceDirectory( alignToBaseDirectory( build.getScriptSourceDirectory(), basedir ) );
代码示例来源:origin: io.tesla.maven/maven-model
build.setScriptSourceDirectory( getTrimmedValue( parser.nextText() ) );
代码示例来源:origin: com.github.htfv.maven.plugins/build-configurator-core
build.setOutputDirectory(
interpolateString(build.getOutputDirectory()));
build.setScriptSourceDirectory(
interpolateString(build.getScriptSourceDirectory()));
build.setSourceDirectory(
代码示例来源:origin: io.tesla.maven/maven-model
build.setScriptSourceDirectory( getTrimmedValue( parser.nextText() ) );
内容来源于网络,如有侵权,请联系作者删除!