I am rewriting Ant scripts into Gradle. Below is a snippet of my scripts. My question is how do I rewrite references?
Ant Script Snippet
<path id="classpath">
<pathelement path="${dist.dir}/classes" />
<fileset dir="${hysterix.dir}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${spdb-publisher.dir}">
<include name="**/*.jar"/>
</fileset>
<pathelement path="${guava.dir}/guava-${guava.version}.jar" />
<pathelement path="${gson.dir}/gson-${gson.version}.jar" />
<taskdef name="jwsc" classpathref="classpath"
classname="weblogic.wsee.tools.anttasks.JwscTask" />
Gradle Script Snippet
ant.path(id: 'classpath') {
pathelement (path: project.'dist.dir' + '/classes')
fileset (dir: project.'hysterix.dir', includes: '**/*.jar')
fileset (dir: project.'spdb-publisher.dir', includes: '**/*.jar')
pathelement (path: project.'guava.dir' + '/guava-' + project.'guava.version' + '.jar')
pathelement (path: project.'gson.dir' + '/gson-' + project.gson.version' + '.jar')
//taskdef (don't know how to write)