本文整理匯總了Java中org.apache.maven.model.Build.setLocation方法的典型用法代碼示例。如果您正苦於以下問題:Java Build.setLocation方法的具體用法?Java Build.setLocation怎麽用?Java Build.setLocation使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.maven.model.Build
的用法示例。
在下文中一共展示了Build.setLocation方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: mergeBuild_SourceDirectory
import org.apache.maven.model.Build; //導入方法依賴的package包/類
protected void mergeBuild_SourceDirectory( Build target, Build source, boolean sourceDominant,
Map<Object, Object> context )
{
String src = source.getSourceDirectory();
if ( src != null )
{
if ( sourceDominant || target.getSourceDirectory() == null )
{
target.setSourceDirectory( src );
target.setLocation( "sourceDirectory", source.getLocation( "sourceDirectory" ) );
}
}
}
示例2: mergeBuild_ScriptSourceDirectory
import org.apache.maven.model.Build; //導入方法依賴的package包/類
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" ) );
}
}
}
示例3: mergeBuild_TestSourceDirectory
import org.apache.maven.model.Build; //導入方法依賴的package包/類
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" ) );
}
}
}
示例4: mergeBuild_OutputDirectory
import org.apache.maven.model.Build; //導入方法依賴的package包/類
protected void mergeBuild_OutputDirectory( Build target, Build source, boolean sourceDominant,
Map<Object, Object> context )
{
String src = source.getOutputDirectory();
if ( src != null )
{
if ( sourceDominant || target.getOutputDirectory() == null )
{
target.setOutputDirectory( src );
target.setLocation( "outputDirectory", source.getLocation( "outputDirectory" ) );
}
}
}
示例5: mergeBuild_TestOutputDirectory
import org.apache.maven.model.Build; //導入方法依賴的package包/類
protected void mergeBuild_TestOutputDirectory( Build target, Build source, boolean sourceDominant,
Map<Object, Object> context )
{
String src = source.getTestOutputDirectory();
if ( src != null )
{
if ( sourceDominant || target.getTestOutputDirectory() == null )
{
target.setTestOutputDirectory( src );
target.setLocation( "testOutputDirectory", source.getLocation( "testOutputDirectory" ) );
}
}
}