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:
- java.lang.Cloneable
public class DependenciesTask
- extends AbstractArtifactWithRepositoryTask
Dependencies task, using maven-artifact.
- Version:
- $Id: DependenciesTask.java 965614 2010-07-19 20:16:16Z 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, 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 |
DEFAULT_ANT_BUILD_FILE
public static final java.lang.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 java.util.List<org.apache.maven.model.Dependency> getDependencies()
addDependency
public void addDependency(org.apache.maven.model.Dependency dependency)
getPathId
public java.lang.String getPathId()
setPathId
public void setPathId(java.lang.String pathId)
getFilesetId
public java.lang.String getFilesetId()
setSourcesFilesetId
public void setSourcesFilesetId(java.lang.String filesetId)
getSourcesFilesetId
public java.lang.String getSourcesFilesetId()
setJavadocFilesetId
public void setJavadocFilesetId(java.lang.String filesetId)
getJavadocFilesetId
public java.lang.String getJavadocFilesetId()
setFilesetId
public void setFilesetId(java.lang.String filesetId)
getVersionsId
public java.lang.String getVersionsId()
setVersionsId
public void setVersionsId(java.lang.String versionsId)
setVerbose
public void setVerbose(boolean verbose)
setUseScope
public void setUseScope(java.lang.String useScope)
- Use the Maven artifact filtering for a particular scope. This
uses the standard Maven ScopeArtifactFilter.
- Parameters:
useScope
-
setType
public void setType(java.lang.String type)
getScopes
public java.lang.String getScopes()
setScopes
public void setScopes(java.lang.String scopes)
- Only include artifacts that fall under one of the specified scopes.
setAddArtifactFileSetRefs
public void setAddArtifactFileSetRefs(boolean addArtifactFileSetRefs)
- Deprecated.
- Parameters:
addArtifactFileSetRefs
-
getDependencyRefsBuildFile
public java.lang.String getDependencyRefsBuildFile()
setDependencyRefsBuildFile
public void setDependencyRefsBuildFile(java.lang.String dependencyRefsBuildFile)
isCacheDependencyRefs
public boolean isCacheDependencyRefs()
setCacheDependencyRefs
public void setCacheDependencyRefs(boolean cacheDependencyRefs)
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.