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.AbstractArtifactWithRepositoryTask
                  extended by 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

Field Summary
 
Fields inherited from class org.apache.maven.artifact.ant.AbstractArtifactWithRepositoryTask
MD5_ALGO_NAME, UTF_ENC_NAME
 
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()
           
 
Method Summary
 void addProfile(Profile activeProfile)
           
 void attach(AttachedArtifact attached)
           
protected  void doExecute()
          Registers POMPropertyHelper as a property interceptor
 org.apache.maven.artifact.Artifact getArtifact()
           
 String getArtifactId()
           
 List getAttachedArtifacts()
           
 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()
           
 List getProfiles()
           
 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.AbstractArtifactWithRepositoryTask
addConfiguredRemoteRepository, createRemoteArtifactRepositories, createRemoteArtifactRepositories, generateDefaultRepositoryId, getRemoteRepositories
 
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
 

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)

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.