如何将ant脚本转换为gradle脚本?嗨,你能帮我把ant脚本转换成gradle脚本吗?我是gradle的新用户.
<property name="pm-dir" value="${PM-DIR}/${BUILD_NUM}" />
<property name="leis-dir" value="${LEIS_DIR}/${BUILD_NUM}" />
<property name="proxy-name" value="${PROXY_JAR_NAME}"/>
<property name="proxy-client-name" value="${PROXY_CLIENT_JAR_NAME}"/>
<property environment="env"/>
<property name="java-home" value="${env.JAVA_HOME}"/>
<condition property="build-pm">
<equals arg1="True" arg2="${BUILD_PM}" />
</condition>
<condition property="build-LEIS">
<equals arg1="True" arg2="${BUILD_LEIS}" />
</condition>
<target name="build-LEIS-components" if="build-LEIS">
<ant antfile="build.xml"
target="clean"
dir="${leis-dir}/LEIS"
inheritAll="false"/>
<ant antfile="build.xml"
target="ejbdoclet"
dir="${leis-dir}/LEIS/BusinessServices"
inheritAll="false"/>
<ant antfile="build.xml"
target="jar"
dir="${leis-dir}/LEIS"
inheritAll="false"/>
<ant antfile="build.xml"
target="clean"
dir="${leis-dir}/ETS/trunk/Entitlements"
inheritAll="false"/>
<ant antfile="build.xml"
target="build"
dir="${leis-dir}/ETS/trunk/Entitlements"
inheritAll="false"/>
<mkdir dir="${leis-dir}/JARS/APP-INF/lib/"/>
<jar jarfile="${leis-dir}/JARS/APP-INF/lib/LEISConfig.jar">
<fileset dir="LEIS/" includes="datetime.properties"/>
<fileset dir="LEIS/" includes="log4j.properties"/>
<manifest>
<attribute name="Built-By" value="${user.name}"/>
</manifest>
</jar>
</target>
<!--======================================================================== …
Run Code Online (Sandbox Code Playgroud)