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.AbstractArtifactWithRepositoryTask
org.apache.maven.artifact.ant.Pom
public class Pom
- extends AbstractArtifactWithRepositoryTask
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 773075 2009-05-08 20:16:17Z pgier $
- Author:
- Brett Porter, Nicola Ken Barozzi
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary |
Pom()
|
Methods inherited from class org.apache.maven.artifact.ant.AbstractArtifactTask |
addLocalRepository, addPom, buildPom, createAntRemoteRepository, createAntRemoteRepositoryBase, createDummyArtifact, createDummyPom, createLocalArtifactRepository, createRemoteArtifactRepository, diagnoseError, execute, getArtifactRepositoryFactory, getContainer, getDefaultLocalRepository, getLocalRepository, getPomRefId, getProfileManager, getSettings, getSupportedProtocols, getSupportedProtocolsAsString, lookup, lookup, releaseArtifactRepositoryFactory, setPomRefId, setProfiles, setSettingsFile, updateRepositoryWithSettings |
Methods inherited from class org.apache.tools.ant.Task |
getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
getProfiles
public List getProfiles()
addProfile
public void addProfile(Profile activeProfile)
getArtifact
public org.apache.maven.artifact.Artifact getArtifact()
attach
public void attach(AttachedArtifact attached)
getAttachedArtifacts
public List getAttachedArtifacts()
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.Task
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 © 2002-2009 The Apache Software Foundation. All Rights Reserved.