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
,ExtensionAware
,Task
,org.gradle.util.Configurable<Task>
public class CopyJarsUsingProductFile extends DefaultTask
THIS CLASS IS EXPERIMENTAL AND SUBJECT TO CHANGE. Copies jars into a folder, using a product file and anExplicitVersionPolicy
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 Constructor Description CopyJarsUsingProductFile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
action()
void
explicitVersionPolicy(Action<ExplicitVersionPolicy> action)
void
extra(String extra)
void
from(Object from)
void
into(Object dest)
void
productFile(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, usesService
-
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.gradle.api.Task
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
-
-
-
-
Method Detail
-
from
public void from(Object from)
-
productFile
public void productFile(Object file)
-
explicitVersionPolicy
public void explicitVersionPolicy(Action<ExplicitVersionPolicy> action)
-
into
public void into(Object dest)
-
extra
public void extra(String extra)
-
action
public void action() throws IOException
- Throws:
IOException
-
-