org.apache.maven.artifact.ant
Class Pom

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.maven.artifact.ant.AbstractArtifactTask
              extended by org.apache.maven.artifact.ant.Pom
All Implemented Interfaces:
Cloneable

public class Pom
extends AbstractArtifactTask

A POM typedef. Also an Ant Task that registers a handler called POMPropertyHelper that intercepts all calls to property value resolution and replies instead of Ant to properties that start with the id of the pom. Example: ${maven.project.artifactId}

Version:
$Id: Pom.java 357237 2005-12-16 21:27:43Z jdcasey $
Author:
Brett Porter, Nicola Ken Barozzi

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
Pom()
           
 
Method Summary
protected  void doExecute()
          Registers POMPropertyHelper as a property interceptor
 String getArtifactId()
           
 org.apache.maven.model.Build getBuild()
           
 org.apache.maven.model.CiManagement getCiManagement()
           
 List getContributors()
           
 List getDependencies()
           
 org.apache.maven.model.DependencyManagement getDependencyManagement()
           
 String getDescription()
           
 List getDevelopers()
           
 org.apache.maven.model.DistributionManagement getDistributionManagement()
           
 File getFile()
           
 String getGroupId()
           
 String getId()
           
 String getInceptionYear()
           
protected  Pom getInstance()
           
 org.apache.maven.model.IssueManagement getIssueManagement()
           
 List getLicenses()
           
 List getMailingLists()
           
protected  org.apache.maven.project.MavenProject getMavenProject()
           
 String getModelVersion()
           
 List getModules()
           
 String getName()
           
 org.apache.maven.model.Organization getOrganization()
           
 String getPackaging()
           
 List getPluginRepositories()
           
 String getRefid()
           
 org.apache.maven.model.Reporting getReporting()
           
 List getRepositories()
           
 org.apache.maven.model.Scm getScm()
           
 String getUrl()
           
 String getVersion()
           
 void setFile(File file)
           
 void setId(String id)
           
 void setMavenProject(org.apache.maven.project.MavenProject mavenProject)
           
 void setRefid(String refid)
           
 
Methods inherited from class org.apache.maven.artifact.ant.AbstractArtifactTask
addLocalRepository, addPom, buildPom, createAntRemoteRepository, createAntRemoteRepositoryBase, createArtifact, createDummyPom, createLocalArtifactRepository, createRemoteArtifactRepository, diagnoseError, execute, getDefaultLocalRepository, getDefaultRemoteRepository, getEmbedder, getLocalRepository, getPomRefId, getSettings, lookup, lookup, setPomRefId, setProfiles
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pom

public Pom()
Method Detail

getRefid

public String getRefid()

setRefid

public void setRefid(String refid)

setId

public void setId(String id)

getInstance

protected Pom getInstance()

setMavenProject

public void setMavenProject(org.apache.maven.project.MavenProject mavenProject)

getFile

public File getFile()

setFile

public void setFile(File file)

getMavenProject

protected org.apache.maven.project.MavenProject getMavenProject()

getArtifactId

public String getArtifactId()

getBuild

public org.apache.maven.model.Build getBuild()

getCiManagement

public org.apache.maven.model.CiManagement getCiManagement()

getContributors

public List getContributors()

getDependencies

public List getDependencies()

getDependencyManagement

public org.apache.maven.model.DependencyManagement getDependencyManagement()

getDescription

public String getDescription()
Overrides:
getDescription in class org.apache.tools.ant.ProjectComponent

getDevelopers

public List getDevelopers()

getDistributionManagement

public org.apache.maven.model.DistributionManagement getDistributionManagement()

getGroupId

public String getGroupId()

getInceptionYear

public String getInceptionYear()

getIssueManagement

public org.apache.maven.model.IssueManagement getIssueManagement()

getLicenses

public List getLicenses()

getMailingLists

public List getMailingLists()

getModelVersion

public String getModelVersion()

getModules

public List getModules()

getName

public String getName()

getOrganization

public org.apache.maven.model.Organization getOrganization()

getPackaging

public String getPackaging()

getPluginRepositories

public List getPluginRepositories()

getReporting

public org.apache.maven.model.Reporting getReporting()

getRepositories

public List getRepositories()

getScm

public org.apache.maven.model.Scm getScm()

getUrl

public String getUrl()

getVersion

public String getVersion()

getId

public String getId()

doExecute

protected void doExecute()
Registers POMPropertyHelper as a property interceptor

Specified by:
doExecute in class AbstractArtifactTask


Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved.