org.apache.maven.artifact.ant
Class Pom
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.maven.artifact.ant.AbstractArtifactTask
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
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()
|
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 |
Pom
public Pom()
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.