本文整理了Java中org.apache.maven.model.Build.getDefaultGoal()
方法的一些代码示例,展示了Build.getDefaultGoal()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Build.getDefaultGoal()
方法的具体详情如下:
包路径:org.apache.maven.model.Build
类名称:Build
方法名:getDefaultGoal
暂无
代码示例来源:origin: org.apache.maven/maven-project
public String getDefaultGoal()
{
return build.getDefaultGoal();
}
代码示例来源:origin: org.apache.maven/maven-project
public String getDefaultGoal()
{
return getBuild() != null ? getBuild().getDefaultGoal() : null;
}
代码示例来源:origin: apache/maven
public String getDefaultGoal()
{
return getBuild() != null ? getBuild().getDefaultGoal() : null;
}
代码示例来源:origin: apache/maven
if ( build.getDefaultGoal() != null )
serializer.startTag( NAMESPACE, "defaultGoal" ).text( build.getDefaultGoal() ).endTag( NAMESPACE, "defaultGoal" );
代码示例来源:origin: org.apache.maven/maven-project
if ( childBuild.getDefaultGoal() == null )
childBuild.setDefaultGoal( parentBuild.getDefaultGoal() );
代码示例来源:origin: apache/maven
if ( childBuild.getDefaultGoal() == null )
childBuild.setDefaultGoal( parentBuild.getDefaultGoal() );
代码示例来源:origin: org.apache.maven/maven-project
debugMessages ) );
dynamicBuild.setDefaultGoal( restoreString( dynamicBuild.getDefaultGoal(),
originalInterpolatedBuild.getDefaultGoal(),
changedBuild.getDefaultGoal(),
project,
config,
代码示例来源:origin: takari/polyglot-maven
if ( build.getDefaultGoal() != null )
serializer.attribute( NAMESPACE, "defaultGoal", build.getDefaultGoal() );
代码示例来源:origin: org.codehaus.mevenide/nb-project
Build bld = project.getOriginalMavenProject().getBuild();
if (bld != null) {
String goal = bld.getDefaultGoal();
if (goal != null && goal.trim().length() > 0) {
return true;
代码示例来源:origin: maven/maven-model
if ( build.getDefaultGoal() != null )
serializer.writeCharacters( build.getDefaultGoal() );
serializer.writeEndElement();
代码示例来源:origin: org.codehaus.mevenide/nb-project
Build bld = project.getOriginalMavenProject().getBuild();
if (bld != null) {
String goal = bld.getDefaultGoal();
if (goal != null && goal.trim().length() > 0) {
BeanRunConfig brc = new BeanRunConfig();
代码示例来源:origin: maven/maven-model
if ( build.getDefaultGoal() != null )
element.addElement( "defaultGoal" ).setText( build.getDefaultGoal() );
代码示例来源:origin: maven/maven-model
if ( build.getDefaultGoal() != null )
serializer.startTag( NAMESPACE, "defaultGoal" ).text( build.getDefaultGoal() ).endTag( NAMESPACE, "defaultGoal" );
代码示例来源:origin: org.codehaus.mevenide/nb-mvn-embedder
/**
* Method updateBuild
*
* @param value
* @param element
* @param counter
* @param xmlTag
*/
protected void updateBuild(Build value, String xmlTag, Counter counter, Element element)
{
boolean shouldExist = value != null;
Element root = updateElement(counter, element, xmlTag, shouldExist);
if (shouldExist) {
Counter innerCount = new Counter(counter.getDepth() + 1);
findAndReplaceSimpleElement(innerCount, root, "sourceDirectory", value.getSourceDirectory(), null);
findAndReplaceSimpleElement(innerCount, root, "scriptSourceDirectory", value.getScriptSourceDirectory(), null);
findAndReplaceSimpleElement(innerCount, root, "testSourceDirectory", value.getTestSourceDirectory(), null);
findAndReplaceSimpleElement(innerCount, root, "outputDirectory", value.getOutputDirectory(), null);
findAndReplaceSimpleElement(innerCount, root, "testOutputDirectory", value.getTestOutputDirectory(), null);
iterateExtension(innerCount, root, value.getExtensions(),"extensions","extension");
findAndReplaceSimpleElement(innerCount, root, "defaultGoal", value.getDefaultGoal(), null);
iterateResource(innerCount, root, value.getResources(),"resources","resource");
iterateResource(innerCount, root, value.getTestResources(),"testResources","testResource");
findAndReplaceSimpleElement(innerCount, root, "directory", value.getDirectory(), null);
findAndReplaceSimpleElement(innerCount, root, "finalName", value.getFinalName(), null);
findAndReplaceSimpleLists(innerCount, root, value.getFilters(), "filters", "filter");
updatePluginManagement( value.getPluginManagement(), "pluginManagement", innerCount, root);
iteratePlugin(innerCount, root, value.getPlugins(),"plugins","plugin");
}
} //-- void updateBuild(Build, String, Counter, Element)
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-maven-embedder
/**
* Method updateBuild.
*
* @param value
* @param element
* @param counter
* @param xmlTag
*/
protected void updateBuild(Build value, String xmlTag, Counter counter, Element element)
{
boolean shouldExist = value != null;
Element root = updateElement(counter, element, xmlTag, shouldExist);
if (shouldExist) {
Counter innerCount = new Counter(counter.getDepth() + 1);
findAndReplaceSimpleElement(innerCount, root, "sourceDirectory", value.getSourceDirectory(), null);
findAndReplaceSimpleElement(innerCount, root, "scriptSourceDirectory", value.getScriptSourceDirectory(), null);
findAndReplaceSimpleElement(innerCount, root, "testSourceDirectory", value.getTestSourceDirectory(), null);
findAndReplaceSimpleElement(innerCount, root, "outputDirectory", value.getOutputDirectory(), null);
findAndReplaceSimpleElement(innerCount, root, "testOutputDirectory", value.getTestOutputDirectory(), null);
iterateExtension(innerCount, root, value.getExtensions(),"extensions","extension");
findAndReplaceSimpleElement(innerCount, root, "defaultGoal", value.getDefaultGoal(), null);
iterateResource(innerCount, root, value.getResources(),"resources","resource");
iterateResource(innerCount, root, value.getTestResources(),"testResources","testResource");
findAndReplaceSimpleElement(innerCount, root, "directory", value.getDirectory(), null);
findAndReplaceSimpleElement(innerCount, root, "finalName", value.getFinalName(), null);
findAndReplaceSimpleLists(innerCount, root, value.getFilters(), "filters", "filter");
updatePluginManagement( value.getPluginManagement(), "pluginManagement", innerCount, root);
iteratePlugin(innerCount, root, value.getPlugins(),"plugins","plugin");
}
} //-- void updateBuild(Build, String, Counter, Element)
代码示例来源:origin: org.jboss.forge.addon/maven-impl
findAndReplaceSimpleElement(innerCount, root, "testOutputDirectory", value.getTestOutputDirectory(), null);
iterateExtension(innerCount, root, value.getExtensions(), "extensions", "extension");
findAndReplaceSimpleElement(innerCount, root, "defaultGoal", value.getDefaultGoal(), null);
iterateResource(innerCount, root, value.getResources(), "resources", "resource");
iterateResource(innerCount, root, value.getTestResources(), "testResources", "testResource");
代码示例来源:origin: apache/maven-archetype
null );
iterateExtension( innerCount, root, value.getExtensions(), "extensions", "extension" );
findAndReplaceSimpleElement( innerCount, root, "defaultGoal", value.getDefaultGoal(), null );
iterateResource( innerCount, root, value.getResources(), "resources", "resource" );
iterateResource( innerCount, root, value.getTestResources(), "testResources", "testResource" );
代码示例来源:origin: org.apache.maven.plugins/maven-shade-plugin
findAndReplaceSimpleElement( innerCount, root, "testOutputDirectory", value.getTestOutputDirectory(), null );
iterateExtension( innerCount, root, value.getExtensions(), "extensions", "extension" );
findAndReplaceSimpleElement( innerCount, root, "defaultGoal", value.getDefaultGoal(), null );
iterateResource( innerCount, root, value.getResources(), "resources", "resource" );
iterateResource( innerCount, root, value.getTestResources(), "testResources", "testResource" );
代码示例来源:origin: org.apache.felix/maven-bundle-plugin
findAndReplaceSimpleElement( innerCount, root, "testOutputDirectory", value.getTestOutputDirectory(), null );
iterateExtension( innerCount, root, value.getExtensions(), "extensions", "extension" );
findAndReplaceSimpleElement( innerCount, root, "defaultGoal", value.getDefaultGoal(), null );
iterateResource( innerCount, root, value.getResources(), "resources", "resource" );
iterateResource( innerCount, root, value.getTestResources(), "testResources", "testResource" );
代码示例来源:origin: com.github.htfv.maven.plugins/build-configurator-core
interpolateString(build.getDefaultGoal()));
build.setDirectory(
interpolateString(build.getDirectory()));
内容来源于网络,如有侵权,请联系作者删除!