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:
- java.lang.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 |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Pom
public Pom()
getRefid
public java.lang.String getRefid()
setRefid
public void setRefid(java.lang.String refid)
setId
public void setId(java.lang.String id)
getInstance
protected Pom getInstance()
setMavenProject
public void setMavenProject(org.apache.maven.project.MavenProject mavenProject)
getFile
public java.io.File getFile()
setFile
public void setFile(java.io.File file)
getMavenProject
protected org.apache.maven.project.MavenProject getMavenProject()
getArtifactId
public java.lang.String getArtifactId()
getBuild
public org.apache.maven.model.Build getBuild()
getCiManagement
public org.apache.maven.model.CiManagement getCiManagement()
getContributors
public java.util.List getContributors()
getDependencies
public java.util.List getDependencies()
getDependencyManagement
public org.apache.maven.model.DependencyManagement getDependencyManagement()
getDescription
public java.lang.String getDescription()
- Overrides:
getDescription
in class org.apache.tools.ant.ProjectComponent
getDevelopers
public java.util.List getDevelopers()
getDistributionManagement
public org.apache.maven.model.DistributionManagement getDistributionManagement()
getGroupId
public java.lang.String getGroupId()
getInceptionYear
public java.lang.String getInceptionYear()
getIssueManagement
public org.apache.maven.model.IssueManagement getIssueManagement()
getLicenses
public java.util.List getLicenses()
getMailingLists
public java.util.List getMailingLists()
getModelVersion
public java.lang.String getModelVersion()
getModules
public java.util.List getModules()
getName
public java.lang.String getName()
getOrganization
public org.apache.maven.model.Organization getOrganization()
getPackaging
public java.lang.String getPackaging()
getPluginRepositories
public java.util.List getPluginRepositories()
getReporting
public org.apache.maven.model.Reporting getReporting()
getRepositories
public java.util.List getRepositories()
getScm
public org.apache.maven.model.Scm getScm()
getUrl
public java.lang.String getUrl()
getVersion
public java.lang.String getVersion()
getId
public java.lang.String getId()
doExecute
protected void doExecute()
- Registers POMPropertyHelper as a property interceptor
- Specified by:
doExecute
in class AbstractArtifactTask
Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.