org.apache.maven.artifact.ant
Class DeployTask

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
                  extended by org.apache.maven.artifact.ant.DeployTask

public class DeployTask
extends InstallDeployTaskSupport

Deploy task, using maven-artifact.

Version:
$Id: DeployTask.java 688561 2008-08-24 21:01:41Z hboutemy $
Author:
Brett Porter

Field Summary
 
Fields inherited from class org.apache.maven.artifact.ant.InstallDeployTaskSupport
attachedArtifacts, file
 
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
DeployTask()
           
 
Method Summary
 void addRemoteRepository(RemoteRepository remoteRepository)
           
 void addRemoteSnapshotRepository(RemoteRepository remoteSnapshotRepository)
           
protected  org.apache.maven.artifact.repository.ArtifactRepository createDeploymentArtifactRepository(RemoteRepository repository)
          Create a core-Maven deployment ArtifactRepository from a Maven Ant Tasks's RemoteRepository definition.
protected  void doExecute()
           
 RemoteRepository getRemoteRepository()
           
 boolean getUniqueVersion()
           
 void setUniqueVersion(boolean uniqueVersion)
           
 
Methods inherited from class org.apache.maven.artifact.ant.InstallDeployTaskSupport
buildPom, createAttach, getFile, setFile
 
Methods inherited from class org.apache.maven.artifact.ant.AbstractArtifactTask
addLocalRepository, addPom, 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
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
 

Constructor Detail

DeployTask

public DeployTask()
Method Detail

createDeploymentArtifactRepository

protected org.apache.maven.artifact.repository.ArtifactRepository createDeploymentArtifactRepository(RemoteRepository repository)
Create a core-Maven deployment ArtifactRepository from a Maven Ant Tasks's RemoteRepository definition.

Parameters:
repository - the remote repository as defined in Ant
Returns:
the corresponding ArtifactRepository

doExecute

protected void doExecute()
Specified by:
doExecute in class AbstractArtifactTask

getRemoteRepository

public RemoteRepository getRemoteRepository()

addRemoteSnapshotRepository

public void addRemoteSnapshotRepository(RemoteRepository remoteSnapshotRepository)

addRemoteRepository

public void addRemoteRepository(RemoteRepository remoteRepository)

setUniqueVersion

public void setUniqueVersion(boolean uniqueVersion)

getUniqueVersion

public boolean getUniqueVersion()


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