org.apache.maven.artifact.ant
Class DependenciesTask

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.DependenciesTask
All Implemented Interfaces:
Cloneable

public class DependenciesTask
extends AbstractArtifactWithRepositoryTask

Dependencies task, using maven-artifact.

Version:
$Id: DependenciesTask.html 806929 2012-03-01 18:57:40Z hboutemy $
Author:
Brett Porter, Herve Boutemy

Field Summary
static String DEFAULT_ANT_BUILD_FILE
           
 
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
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
DependenciesTask()
           
 
Method Summary
 void addDependency(org.apache.maven.model.Dependency dependency)
           
protected  void doExecute()
          Main task execution.
protected  org.apache.maven.artifact.resolver.ArtifactResolutionResult doExecuteResolution()
           
 List<org.apache.maven.model.Dependency> getDependencies()
           
 String getDependencyRefsBuildFile()
           
 String getFilesetId()
           
 String getJavadocFilesetId()
           
 String getPathId()
           
 String getScopes()
           
 String getSourcesFilesetId()
           
 String getVersionsId()
           
 boolean isCacheDependencyRefs()
           
 void setAddArtifactFileSetRefs(boolean addArtifactFileSetRefs)
          Deprecated.  
 void setCacheDependencyRefs(boolean cacheDependencyRefs)
           
 void setDependencyRefsBuildFile(String dependencyRefsBuildFile)
           
 void setFilesetId(String filesetId)
           
 void setJavadocFilesetId(String filesetId)
           
 void setPathId(String pathId)
           
 void setPathType(String pathType)
           
 void setScopes(String scopes)
          Only include artifacts that fall under one of the specified scopes.
 void setSourcesFilesetId(String filesetId)
           
 void setType(String type)
           
 void setUseScope(String useScope)
          Use the Maven artifact filtering for a particular scope.
 void setVerbose(boolean verbose)
           
 void setVersionsId(String versionsId)
           
 
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, createAntRemoteRepository, createAntRemoteRepositoryBase, createDummyArtifact, createDummyPom, createLocalArtifactRepository, createMinimalProject, createRemoteArtifactRepository, diagnoseError, execute, getAntReactorPoms, getArtifactRepositoryFactory, getContainer, getDefaultLocalRepository, getLocalRepository, getPom, getPomRefId, getProfileManager, getSettings, getSupportedProtocols, getSupportedProtocolsAsString, initializePom, lookup, lookup, releaseArtifactRepositoryFactory, setPomRefId, setProfiles, setSettingsFile, showVersion, updateRepositoryWithSettings
 
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, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ANT_BUILD_FILE

public static final String DEFAULT_ANT_BUILD_FILE
See Also:
Constant Field Values
Constructor Detail

DependenciesTask

public DependenciesTask()
Method Detail

doExecute

protected void doExecute()
Main task execution. Called by parent execute().

Specified by:
doExecute in class AbstractArtifactTask

doExecuteResolution

protected org.apache.maven.artifact.resolver.ArtifactResolutionResult doExecuteResolution()

getDependencies

public List<org.apache.maven.model.Dependency> getDependencies()

addDependency

public void addDependency(org.apache.maven.model.Dependency dependency)

getPathId

public String getPathId()

setPathId

public void setPathId(String pathId)

getFilesetId

public String getFilesetId()

setSourcesFilesetId

public void setSourcesFilesetId(String filesetId)

getSourcesFilesetId

public String getSourcesFilesetId()

setJavadocFilesetId

public void setJavadocFilesetId(String filesetId)

getJavadocFilesetId

public String getJavadocFilesetId()

setFilesetId

public void setFilesetId(String filesetId)

getVersionsId

public String getVersionsId()

setVersionsId

public void setVersionsId(String versionsId)

setVerbose

public void setVerbose(boolean verbose)

setUseScope

public void setUseScope(String useScope)
Use the Maven artifact filtering for a particular scope. This uses the standard Maven ScopeArtifactFilter.

Parameters:
useScope -

setType

public void setType(String type)

setPathType

public void setPathType(String pathType)

getScopes

public String getScopes()

setScopes

public void setScopes(String scopes)
Only include artifacts that fall under one of the specified scopes.


setAddArtifactFileSetRefs

public void setAddArtifactFileSetRefs(boolean addArtifactFileSetRefs)
Deprecated. 

Parameters:
addArtifactFileSetRefs -

getDependencyRefsBuildFile

public String getDependencyRefsBuildFile()

setDependencyRefsBuildFile

public void setDependencyRefsBuildFile(String dependencyRefsBuildFile)

isCacheDependencyRefs

public boolean isCacheDependencyRefs()

setCacheDependencyRefs

public void setCacheDependencyRefs(boolean cacheDependencyRefs)


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