java - multiple copyspecs in a single copytask in gradle (nested copyspecs) -
I have an ear file containing root deployment (deployed configuration), leib deployment (earlibs configuration) and an additional custom usage The configuration that I want to put in the root of the ear in the utiljars
folder I know that the first two configurations are automatically controlled by the ear function.
How can I add an additional CopySpec
to ears
function (or to handle the third configuration >
I understand that the glimpses of any sarcopitus
copy were wrong instead copyspecs in the existing side, they Hierachy exists in, as explained in the gradle User Guide.
Thus the additional copy specs can be 'nested' within the root specification of the task. Unless otherwise specified, these nested specs are the heirs of guardian glasses:
For example, in the following spec, in the original imagery, in a in
, Exclude
and to
spec. to
in device, nested is included
spec. This device overwrites anything from the root device Does not, and the original imagery does not see it; in
spec though to
overwrite copyspec And thus the 'runtime'
folder libs
will copy everything in code> but src / dist
nothing folder.
Tasks NestedSpecs (Type: Cc) {'' '**' / * Exclude Staging * '(' Src / dist ') in' Build / Explosion '(' '/ / In HTML *} ('libs') {configurations.runtime}}
I hope that it helps someone Else :)
Comments
Post a Comment