<build>
1248124912501251125212531254125512561257125812591260
public PluginManagement getPluginManagement() { PluginManagement pluginMgmt = null; Build build = getModel().getBuild(); if ( build != null ) { pluginMgmt = build.getPluginManagement(); } return pluginMgmt; }
125912601261126212631264126512661267126812691270127112721273
return pluginMgmt; } private Build getModelBuild() { Build build = getModel().getBuild(); if ( build == null ) { build = new Build(); getModel().setBuild( build ); } return build;
127312741275127612771278127912801281128212831284128512861287
return build; } public void addPlugin( Plugin plugin ) { Build build = getModelBuild(); if ( !build.getPluginsAsMap().containsKey( plugin.getKey() ) ) { injectPluginManagementInfo( plugin ); build.addPlugin( plugin ); build.flushPluginMap(); } }
155315541555155615571558155915601561156215631564156515661567
return getId().hashCode(); } public List getBuildExtensions() { Build build = getBuild(); if ( build == null || build.getExtensions() == null ) { return Collections.EMPTY_LIST; } else { return build.getExtensions(); } }
832833834835836837838839840841842843844
{ MavenProject project = getMavenProject(); File pomFile = new File( "src/test/resources/pom.xml" ); pomFile.setLastModified( System.currentTimeMillis() - 60000L ); project.setFile( pomFile ); Build build = new Build(); build.setDirectory( "target" ); build.setOutputDirectory( "target" ); project.setBuild( build ); project.setName( "archiver test" ); Organization organization = new Organization(); organization.setName( "Apache" ); project.setOrganization( organization );
889890891892893894895896897898899900901
239240241242243244245246247248249250
} public void testShouldInterpolateMultiDotProjectExpression() throws AssemblyInterpolationException { final Build build = new Build(); build.setFinalName( "final-name" ); final Model model = new Model(); model.setBuild( build ); final Assembly assembly = new Assembly();
172173174175176177178179180181182183184185
public void testShouldFilterExpressionInPropertiesFileWithWindowsEscapes() throws Exception { final File sourceDir = fileManager.createTempDir(); final MavenProject project = createBasicMavenProject(); final Build build = new Build(); // project.build.outputDirectory = C:\out\deeper build.setOutputDirectory( "C:\\out\\deeper" ); project.setBuild( build ); enableBasicFilteringConfiguration( project, sourceDir ); final File file = fileManager.createFile( sourceDir, "one.properties", "out=${project.build.outputDirectory}" );
197198199200201202203204205206207208
public void testShouldFilterExpressionInPropertiesFileWithoutWindowsEscapes() throws Exception { final File sourceDir = fileManager.createTempDir(); final MavenProject project = createBasicMavenProject(); final Build build = new Build(); build.setOutputDirectory( "C:\\out\\deeper" ); project.setBuild( build ); enableBasicFilteringConfiguration( project, sourceDir ); final File file =
651652653654655656657658659660661662
{ final MavenProject project = createProject( groupId, artifactId, version, properties ); if ( projectFinalName != null ) { final Build build = new Build(); build.setFinalName( projectFinalName ); project.getModel().setBuild( build ); } final MavenProject mainProject = project;