org.apache.maven.artifact.ant
Class InstallDeployTaskSupport

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.InstallDeployTaskSupport
Direct Known Subclasses:
DeployTask, InstallTask

public abstract class InstallDeployTaskSupport
extends AbstractArtifactTask

Support for install/deploy tasks.

Version:
$Id: InstallDeployTaskSupport.java 884304 2009-11-25 22:25:22Z pgier $
Author:
Jason Dillon

Field Summary
protected  java.util.List attachedArtifacts
          Additional attached artifacts to install/deploy
protected  java.io.File file
          The file to install/deploy.
 
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
InstallDeployTaskSupport()
           
 
Method Summary
 AttachedArtifact createAttach()
           
 java.io.File getFile()
           
 Pom initializePom(org.apache.maven.artifact.repository.ArtifactRepository localArtifactRepository)
          Tries to initialize the pom.
 void setFile(java.io.File file)
           
 
Methods inherited from class org.apache.maven.artifact.ant.AbstractArtifactTask
addLocalRepository, addPom, createAntRemoteRepository, createAntRemoteRepositoryBase, createDummyArtifact, createDummyPom, createLocalArtifactRepository, createMinimalProject, createRemoteArtifactRepository, diagnoseError, doExecute, execute, getArtifactRepositoryFactory, getContainer, getDefaultLocalRepository, getLocalRepository, getPom, getPomRefId, getProfileManager, getSettings, getSupportedProtocols, getSupportedProtocolsAsString, lookup, lookup, releaseArtifactRepositoryFactory, setPomRefId, setProfiles, setSettingsFile, showVersion, updateRepositoryWithSettings
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, 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
 

Field Detail

file

protected java.io.File file
The file to install/deploy.


attachedArtifacts

protected java.util.List attachedArtifacts
Additional attached artifacts to install/deploy

Constructor Detail

InstallDeployTaskSupport

public InstallDeployTaskSupport()
Method Detail

getFile

public java.io.File getFile()

setFile

public void setFile(java.io.File file)

initializePom

public Pom initializePom(org.apache.maven.artifact.repository.ArtifactRepository localArtifactRepository)
Description copied from class: AbstractArtifactTask
Tries to initialize the pom. If no pom has been configured, returns null.

Overrides:
initializePom in class AbstractArtifactTask
Returns:
An initialized pom or null.

createAttach

public AttachedArtifact createAttach()


Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.