Ant 从URL获取文件列表

Ant 从URL获取文件列表,ant,download,Ant,Download,我想以某种方式自动化我的Netbeans每日构建,并保持可用性 基本情况如下: 从中获取文件列表 下载文件,假设我对java.zip感兴趣 解压 我有一个蚂蚁脚本,可以做2和3。我需要弄清楚第一步怎么做。见下文: <?xml version="1.0" encoding="UTF-8"?> <project name="Netbeans Daily Build" basedir="."> <description>Updates the daily build

我想以某种方式自动化我的Netbeans每日构建,并保持可用性

基本情况如下:

从中获取文件列表 下载文件,假设我对java.zip感兴趣 解压 我有一个蚂蚁脚本,可以做2和3。我需要弄清楚第一步怎么做。见下文:

<?xml version="1.0" encoding="UTF-8"?>
<project name="Netbeans Daily Build" basedir=".">
<description>Updates the daily build</description>
<property name="zip.name" value="netbeans-6.9.1-201007282301-ml-javase.zip"/>
<property name="dist" value="Z:/Program Files/Netbeans 7.0/"/>
<property name="zip.url"    value="http://bits.netbeans.org/download/trunk/nightly/latest/zip/"/>
<fileset id="ant-contrib-jar" dir="./">
    <include name="ant-contrib-*.jar" />
</fileset>
<pathconvert property="ant-contrib-jar" refid="ant-contrib-jar" pathsep="," />
<basename property="ant-contrib-filename" file="${ant-contrib-jar}"/>
<property name="ant-contrib-loc" value="./${ant-contrib-filename}"/>
<available file="${ant-contrib-loc}" property="ant-contrib.present"/>
<fail unless="ant-contrib.present" message="The ant-contrib jar doesn't exist at: ${ant-contrib-loc}, can't build. Check your settings!" />
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
    <classpath>
        <pathelement location="${ant-contrib-loc}"/>
    </classpath>
</taskdef>
<!--Delete old copies of platforms-->
<delete>
    <fileset dir="${dist}" includes="**/*.zip" excludes="${zip.name}"/>
</delete>
<available file="${zip.url}${zip.name}" property="file.exists"/>
<if> 
    <not>
        <isset property="file.exists"/>
    </not>
    <then>
        <get src="${zip.url}${zip.name}" dest="./" skipexisting="true" verbose="true"/>
        <!--Only overwrite if newer
        <unzip src="${dist}/${zip.name}" dest="${dist}" overwrite="false"/>-->
    </then>
</if>
</project>
我需要找出正确的文件名来下载。 不使用ant在批处理文件中执行所有操作也是可以接受的


提前谢谢

使用mercurial查看最新版本怎么样?这应该会告诉你:

看起来有一个这样的项目。看来我要加入球队了


这就要求我在使用IDE之前也要编译它,这比手动下载要花费更长的时间。我只是用一个自动化的流程来代替手工流程。