Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19888

How to replace the file insize zip in Gradle

$
0
0
  1. First I have tried to delete the existing file in Zip using exclude as below. But it do not remove the file
    task alterZip(type: Zip) {
    from zipTree(’$buildDir/zip/abc.zip’).matching {
    exclude ‘application/configuration_files/abc.list’
    }
    }

  2. I have a doubt, what is the somepath in the below section.Is it full path to the file inside zip file ? I tried to use relative path inside zip file, but it did not copy any files to the given folder?

into(‘somepath’) {
from ‘overridepath/replaceme.xml’
}


Viewing all articles
Browse latest Browse all 19888

Trending Articles