Permalink
Browse files

Created new build targetsand fixed typo

  • Loading branch information...
1 parent dc1ea63 commit 2133ae21224773d85643e576fa92e839ec1f3928 Nicholas C. Zakas committed Nov 1, 2009
Showing with 19 additions and 2 deletions.
  1. +2 −1 ant.properties
  2. +16 −0 build.xml
  3. +1 −1 src/net/nczonline/web/datauri/DataURI.java
View
3 ant.properties
@@ -3,6 +3,7 @@ lib.dir = lib
doc.dir = doc
build.dir = build
product.name = datauri
-version.number = 0.0.2
+version.number = 0.1.1
jar.name = ${product.name}-${version.number}.jar
+core.jar.name = ${product.name}-core-${version.number}.jar
dist.package.name = ${product.name}-${version.number}
View
16 build.xml
@@ -40,6 +40,22 @@
</jar>
</target>
+ <!-- make sure to run "clean" before this if you've already run build.jar -->
+ <target name="build.core.jar" depends="build.classes">
+ <mkdir dir="${build.dir}/core-jar"/>
+ <copy todir="${build.dir}/core-jar">
+ <fileset dir="${build.dir}/classes" includes="**/*.class"/>
+ </copy>
+ <jar destfile="${build.dir}/${core.jar.name}" basedir="${build.dir}/core-jar">
+ <manifest>
+ <attribute name="Main-Class" value="net.nczonline.web.datauri.DataURI"/>
+ </manifest>
+ </jar>
+ </target>
+
+ <!-- build all jars -->
+ <target name="build.all.jars" depends="clean,build.core.jar,build.jar"></target>
+
<target name="build.dist.package" depends="build.jar">
<mkdir dir="${build.dir}/${dist.package.name}"/>
<mkdir dir="${build.dir}/${dist.package.name}/build"/>
View
2 src/net/nczonline/web/datauri/DataURI.java
@@ -136,7 +136,7 @@ public static void main(String[] args) {
*/
private static void usage() {
System.out.println(
- "\nUsage: java -jar datauri-x.y.z.jar [options] [input files]\n\n"
+ "\nUsage: java -jar datauri-x.y.z.jar [options] [input file]\n\n"
+ "Global Options\n"
+ " -h, --help Displays this information.\n"

0 comments on commit 2133ae2

Please sign in to comment.