@@ -220,8 +220,8 @@ has been modified on the server since the last download <em>(default:
220
220
be applied to each source URL before it is downloaded. The action is called
221
221
with a <a href =" #downloaddetails " >DownloadDetails</a > object and can modify
222
222
some aspects of the target file in the destination directory (e.g. the
223
- filename). If only one download source has been given, adding an
224
- <code >eachFile</code > action will make the plugin fail.</dd >
223
+ filename or relative path ). If only one download source has been given, adding
224
+ an <code >eachFile</code > action will make the plugin fail.</dd >
225
225
</dl >
226
226
227
227
<em >Tip!</em > You may provide Groovy Closures or Kotlin Lambdas to the ` src `
@@ -373,7 +373,7 @@ DownloadDetails
373
373
If you specify an [ ` eachFile ` ] ( #general ) action, it will be called with an
374
374
instance of the ` DownloadDetails ` class, which provides details about a
375
375
download source and its target file. It can be used to change some aspects of
376
- the target file (e.g. its name).
376
+ the target file (e.g. its name or relative path ).
377
377
378
378
The ` DownloadDetails ` class provides the following methods:
379
379
@@ -384,6 +384,16 @@ The `DownloadDetails` class provides the following methods:
384
384
<dd >Get the name of the target file</dd >
385
385
<dt >void setName(String)</dt >
386
386
<dd >Set the name of the target file</dd >
387
+ <dt >String getPath()</dt >
388
+ <dd >Get the path of the target file (including the filename), relative to
389
+ download directory</dd >
390
+ <dt >void setPath(String)</dt >
391
+ <dd >Set the path of the target file (including the filename)</dd >
392
+ <dt ><a href =" https://docs.gradle.org/current/javadoc/org/gradle/api/file/RelativePath.html " >RelativePath</a > getRelativePath()</dt >
393
+ <dd >Get the path of the target file (including the filename), relative to
394
+ download directory</dd >
395
+ <dt >void setRelativePath(<a href =" https://docs.gradle.org/current/javadoc/org/gradle/api/file/RelativePath.html " >RelativePath</a > path)</dt >
396
+ <dd >Set the path of the target file (including the filename)</dd >
387
397
</dl >
388
398
389
399
Proxy configuration
0 commit comments