create property for groovy version

master
melvin 2013-08-31 11:59:37 +08:00
parent 7006651a7f
commit 680a131871
1 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@
<property name="target" value="1.6"/>
<property name="source" value="1.6"/>
<property name="lib" value="release/lib" />
<property name="groovy-version" value="2.1.6" />
<path id="classpath">
<fileset dir="${lib}">
@ -17,7 +18,7 @@
<!-- deps - Download dependencies -->
<target name="deps" unless="skip.download">
<echo message="downloading groovy to ${lib}"/>
<get src="http://repo1.maven.org/maven2/org/codehaus/groovy/groovy-all/2.1.6/groovy-all-2.1.6.jar" dest="${lib}" skipexisting="true" />
<get src="http://repo1.maven.org/maven2/org/codehaus/groovy/groovy-all/${groovy-version}/groovy-all-${groovy-version}.jar" dest="${lib}" skipexisting="true" />
</target>
<!-- init - Create temporary directory to build the program -->
@ -51,7 +52,7 @@
<manifest>
<attribute name="Main-Class" value="magic.MagicMain" />
<attribute name="SplashScreen-Image" value="magic/data/textures/logo.jpg" />
<attribute name="Class-Path" value="lib/groovy-all-2.1.1.jar" />
<attribute name="Class-Path" value="lib/groovy-all-${groovy-version}.jar" />
</manifest>
</jar>
</target>