Hey, so Im new to both Ant and Gradle and would really appreciate if someone could help me to show how to write custom Ant target for “dist-b4b” to be implemented as Gradle task to prepare .zip archives in build.gradle
Here is the build.xml
<target name=“dist-b4b” description=“Prepares archive of B4B tester”>
<delete file=“gate-b4b.zip”/>
<zip destfile=“gate-b4b.zip” update=“true” basedir=""
includes=“dist/, src/, client-certs/, XML-files/, lib/native/, cacerts.astra.jks, run-b4b.cmd, run-b4b-appreq.cmd”
excludes=“src/storm/webservice/GateTesterCli.java”
>
</zip>
</target>
This is what I came up with but its not working can someone please help
task makeZipB4B(type: Zip) {
from ‘gate-tester-cli/’
include ‘dist/’
include 'src/’
include ‘client-certs/’
include 'XML-files/’
include ‘lib/native**’
include ‘cacerts.astra.jks’
include ‘run-b4b.cmd’
include ‘run-b4b-appreq.cmd’
exclude ‘src/storm/webservice/GateTesterCli.java’
archiveName ‘gate-b4b-gradle.zip’
destinationDir(file(’/gate-tester-cli/xml-resources/’))
}