|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectprotoj.core.RetrieveFeature
public final class RetrieveFeature
Retrieves dependency artifacts and places them in the project lib directory. By default ivy is used to perform the download and requires an ivy xml file to be placed on the classpath that describes the project dependencies.
Alternatively maven can be used to perform the download, which requires a maven pom file to be placed on the classpath that describes the project dependencies.
The following options are supported:
When choosing between ivy and maven, be aware that transitive dependency downloading can be turned off with ivy but not with maven.
| Constructor Summary | |
|---|---|
RetrieveFeature(CoreProject parent)
Creates with the owning parent. |
|
| Method Summary | |
|---|---|
org.apache.tools.ant.taskdefs.Copy |
getCopyClasses()
The ant task used to copy the repository classes jar files to the lib directory. |
org.apache.tools.ant.taskdefs.Copy |
getCopyJavadocs()
The ant task used to copy the repository javadocs jar files to the lib directory. |
org.apache.tools.ant.taskdefs.Copy |
getCopySources()
The ant task used to copy the repository sources jar files to the lib directory. |
org.apache.maven.artifact.ant.DependenciesTask |
getDependencies()
The maven ant task used to update the repository with the project dependencies. |
java.io.File |
getIvyFile()
The ivy file used to define project dependencies. |
org.apache.ivy.ant.IvyRetrieve |
getIvyRetrieve()
The ivy ant task used to update the repository with the project dependencies. |
java.io.File |
getMavenFile()
The maven pom file used to define project dependencies. |
CoreProject |
getParent()
The parent of this feature. |
java.io.File |
getWorkingDir()
The directory where the ivy and maven files are extracted to. |
void |
initConfig(java.lang.String ivyConfig,
java.lang.String mavenConfig,
ArgRunnable<RetrieveFeature> config)
Configures with the classpath locations of the config files. |
void |
ivyRetrieve()
Downloads the dependencies described in the project ivy.xml file under the conf directory to the lib directory. |
void |
mavenRetrieve()
Downloads the dependencies described in the project pom.xml file under the conf directory to the lib directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RetrieveFeature(CoreProject parent)
parent - | Method Detail |
|---|
public void initConfig(java.lang.String ivyConfig,
java.lang.String mavenConfig,
ArgRunnable<RetrieveFeature> config)
ivyConfig - the resource path of the ivy config file, can be null if ivy
isn't used. For example "/acme/ivy.xml"mavenConfig - the resource path of the maven config file, can be null if ivy
isn't used. For example "/acme/pom.xml"config - the instance that gets called back when
mavenRetrieve() is invoked so that further
configuration of this feature may be applied.public void ivyRetrieve()
initConfig(String, String, ArgRunnable) will be called back so
that further configuration of this feature may be applied.
Hint: use this ivy based method when you don't want transitive dependencies since there doesn't seem to be a way to disable this when using maven.
public void mavenRetrieve()
initConfig(String, String, ArgRunnable) will be called back so
that further configuration of this feature may be applied.
public CoreProject getParent()
public org.apache.ivy.ant.IvyRetrieve getIvyRetrieve()
public org.apache.maven.artifact.ant.DependenciesTask getDependencies()
public org.apache.tools.ant.taskdefs.Copy getCopyClasses()
public org.apache.tools.ant.taskdefs.Copy getCopyJavadocs()
public org.apache.tools.ant.taskdefs.Copy getCopySources()
public java.io.File getIvyFile()
public java.io.File getMavenFile()
public java.io.File getWorkingDir()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||