org.apache.maven.artifact.ant
Class DependenciesTask
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.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
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 |
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 |
DEFAULT_ANT_BUILD_FILE
public static final String DEFAULT_ANT_BUILD_FILE
- See Also:
- Constant Field Values
DependenciesTask
public DependenciesTask()
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.