Permalink
Browse files

Updated javac to properly compile to 1.5

  • Loading branch information...
1 parent 175cf9f commit 2e2f81c72977acd31e477861861448e5247164c4 Nicholas C. Zakas committed Nov 8, 2009
Showing with 8 additions and 5 deletions.
  1. +4 −2 ant.properties
  2. +4 −3 build.xml
View
@@ -3,7 +3,9 @@ lib.dir = lib
doc.dir = doc
build.dir = build
product.name = datauri
-version.number = 0.2.0
+version.number = 0.2.1
jar.name = ${product.name}-${version.number}.jar
core.jar.name = ${product.name}-core-${version.number}.jar
-dist.package.name = ${product.name}-${version.number}
+dist.package.name = ${product.name}-${version.number}
+class.version = 1.5
+main.class = net.nczonline.web.datauri.DataURI
View
@@ -20,7 +20,8 @@
includes="**/*.java"
deprecation="off"
debug="on"
- source="1.4">
+ target="${class.version}"
+ source="${class.version}">
<classpath>
<pathelement location="${lib.dir}/jargs-1.0.jar"/>
</classpath>
@@ -35,7 +36,7 @@
</copy>
<jar destfile="${build.dir}/${jar.name}" basedir="${build.dir}/jar">
<manifest>
- <attribute name="Main-Class" value="net.nczonline.web.datauri.DataURI"/>
+ <attribute name="Main-Class" value="${main.class}"/>
</manifest>
</jar>
</target>
@@ -48,7 +49,7 @@
</copy>
<jar destfile="${build.dir}/${core.jar.name}" basedir="${build.dir}/core-jar">
<manifest>
- <attribute name="Main-Class" value="net.nczonline.web.datauri.DataURI"/>
+ <attribute name="Main-Class" value="${main.class}"/>
</manifest>
</jar>
</target>

0 comments on commit 2e2f81c

Please sign in to comment.