2010-12-01 15 views
0

Ich möchte automatisieren, irgendwie halten meine Netbeans Daily Build mit was zur Verfügung steht.Holen Sie sich die Liste der Dateien von URL

ist im Prinzip wie folgt:

  1. Get Dateiliste von http://bits.netbeans.org/download/trunk/nightly/latest/zip/
  2. Datei herunterladen (sagen wir, ich in der java.zip interessiert bin)
  3. Dekomprimieren

Ich habe ein Ameisen-Skript, das in der Lage ist, 2 und 3 zu machen. Ich muss herausfinden, wie man das erste macht. Siehe unten:

<?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> 

Ich muss irgendwie herausfinden, den richtigen Dateinamen zum Download. Alles in einer Batch-Datei (ohne Ant) ist auch akzeptabel.

Vielen Dank im Voraus!

Antwort

0

Wie wäre es mit einem Blick auf die neueste Version mit Mercurial? Dies sollte Ihnen sagen, wie: http://netbeans.org/community/sources/hg.html

+0

Das hat mich erfordern würde die IDE als auch vor der Verwendung zu kompilieren, die länger als eine manuelle Download bereit. Ich ersetze nur einen manuellen Prozess durch einen automatisierten Prozess. – javydreamercsw

Verwandte Themen