當前位置: 首頁>>代碼示例>>Java>>正文


Java Build.setLocation方法代碼示例

本文整理匯總了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" ) );
        }
    }
}
 
開發者ID:gems-uff,項目名稱:oceano,代碼行數:14,代碼來源:ModelMerger.java

示例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" ) );
        }
    }
}
 
開發者ID:gems-uff,項目名稱:oceano,代碼行數:14,代碼來源:ModelMerger.java

示例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" ) );
        }
    }
}
 
開發者ID:gems-uff,項目名稱:oceano,代碼行數:14,代碼來源:ModelMerger.java

示例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" ) );
        }
    }
}
 
開發者ID:gems-uff,項目名稱:oceano,代碼行數:14,代碼來源:ModelMerger.java

示例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" ) );
        }
    }
}
 
開發者ID:gems-uff,項目名稱:oceano,代碼行數:14,代碼來源:ModelMerger.java


注:本文中的org.apache.maven.model.Build.setLocation方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。