Package com.diffplug.gradle.pde
Class CopyJarsUsingProductFile
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
com.diffplug.gradle.pde.CopyJarsUsingProductFile
- All Implemented Interfaces:
Comparable<Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,Named,ExtensionAware,Task,org.gradle.util.Configurable<Task>
THIS CLASS IS EXPERIMENTAL AND SUBJECT TO CHANGE.
Copies jars into a folder, using a product file and an
ExplicitVersionPolicy to decide which jars to copy.
Useful for passing jars to analysis tools.
```groovy
task copyJars(type: CopyJarsUsingProductFile) {
// uses jars from the given folders / installations
from TARGETMAVEN_PLUGINS_DIR
from TARGETP2_RUNNABLE_DIR
// uses the given product file to determine which jars to copy
productFile rootProject.file('com.diffplug.rcpdemo/rcpdemo.product')
// adds plugins which aren't included by the productFile
extra('org.jsr-305')
// destination for the copied jars
into COPY_PRODUCT_JARS
// determines which version to use when multiple versions are available
explicitVersionPolicy {
resolve('com.jcraft.jsch', '0.1.53.autowrapped', '0.1.53.v201508180515').withFirst()
resolve('org.apache.commons.codec', '1.6.0', '1.6.0.v201305230611').withFirst()
resolve('org.apache.commons.logging', '1.1.3', '1.1.1.v201101211721').withFirst()
resolve('org.apache.httpcomponents.httpclient', '4.3.6.autowrapped', '4.3.6.v201411290715').withFirst()
resolve('org.apache.httpcomponents.httpcore', '4.3.3.autowrapped', '4.3.3.v201411290715').withFirst()
resolve('org.hamcrest.core', '1.3.0.autowrapped', '1.3.0.v201303031735').withFirst()
resolve('org.tukaani.xz', '1.4.0', '1.3.0.v201308270617').withFirst()
}
}
```-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Task
Task.Namer -
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaction()voidvoidvoidvoidvoidproductFile(Object file) Methods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceMethods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.Task
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
-
Constructor Details
-
CopyJarsUsingProductFile
public CopyJarsUsingProductFile()
-
-
Method Details
-
from
-
productFile
-
explicitVersionPolicy
-
into
-
extra
-
action
- Throws:
IOException
-