[Smax-commit] SF.net SVN: smax: [4] trunk/smaxproto/build.xml
Status: Alpha
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-01-17 05:42:03
|
Revision: 4
http://smax.svn.sourceforge.net/smax/?rev=4&view=rev
Author: dbrosius
Date: 2008-01-16 21:41:50 -0800 (Wed, 16 Jan 2008)
Log Message:
-----------
Add ant build.xml file for smaxproto
Added Paths:
-----------
trunk/smaxproto/build.xml
Added: trunk/smaxproto/build.xml
===================================================================
--- trunk/smaxproto/build.xml (rev 0)
+++ trunk/smaxproto/build.xml 2008-01-17 05:41:50 UTC (rev 4)
@@ -0,0 +1,117 @@
+<!--
+/*
+ * smaxproto - A prototype of the Simple Mutated API for XML
+ * Copyright (C) 2008 Dave Brosius
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+ -->
+
+<project name="smaxproto" default="jar">
+
+ <property file="build.properties"/>
+
+ <property name="src.dir" value="${basedir}/src"/>
+ <property name="classes.dir" value="${basedir}/classes"/>
+ <property name="lib.dir" value="${basedir}/lib"/>
+ <property name="javadoc.dir" value="${basedir}/javadoc"/>
+ <property name="htdocs.dir" value="${basedir}/htdocs"/>
+ <property name="javac.source" value="1.5"/>
+ <property name="javac.target" value="1.5"/>
+ <property name="javac.deprecation" value="on"/>
+ <property name="javac.debug" value="on"/>
+
+ <property name="smaxproto.version" value="0.1.0"/>
+
+ <target name="clean" description="removes all generated collateral">
+ <delete dir="${classes.dir}"/>
+ <delete dir="${javadoc.dir}"/>
+ <delete file="${basedir}/smaxproto-${smaxproto.version}.jar"/>
+ <delete file="${basedir}/smaxproto-src-${smaxproto.version}.zip"/>
+ </target>
+
+ <target name="-init" description="prepares repository for a build">
+ <mkdir dir="${classes.dir}"/>
+ <mkdir dir="${javadoc.dir}"/>
+ <path id="smaxproto.classpath">
+ <pathelement location="${lib.dir}/serializer.jar"/>
+ <pathelement location="${lib.dir}/xalan.jar"/>
+ <pathelement location="${lib.dir}/junit.jar"/>
+ </path>
+ </target>
+
+ <target name="compile" depends="-init" description="compiles java files">
+ <javac srcdir="${src.dir}"
+ destdir="${classes.dir}"
+ source="${javac.source}"
+ target="${javac.target}"
+ deprecation="${javac.deprecation}"
+ debug="${javac.debug}">
+ <classpath refid="smaxproto.classpath"/>
+ </javac>
+ </target>
+
+ <target name="resources" depends="-init" description="copies required files">
+ <copy todir="${classes.dir}">
+ <fileset dir="${src.dir}">
+ <include name="**/*.xsl"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="jar" depends="compile, resources" description="produces the smaxproto jar file">
+ <jar destfile="${basedir}/smaxproto-${smaxproto.version}.jar">
+ <fileset dir="${classes.dir}">
+ <include name="**/*.class"/>
+ <include name="**/*.xsl"/>
+ </fileset>
+ <fileset dir="${basedir}">
+ <include name="license.txt"/>
+ </fileset>
+ <manifest>
+ <attribute name="smaxproto-version" value="${smaxproto.version}"/>
+ <attribute name="Main-Class" value="com.mebigfatguy.smaxproto.SmaxProto"/>
+ </manifest>
+ </jar>
+ </target>
+
+ <target name="srczip" description="builds the source distribution zip file">
+ <zip destfile="${basedir}/smaxproto-src-${smaxproto.version}.zip" basedir="${basedir}">
+ <fileset dir="${basedir}">
+ <include name="**/*.java"/>
+ <include name="**/*.xml"/>
+ <include name="**/*.xsl"/>
+ <include name="**/*.license"/>
+ <include name="lib/*.jar"/>
+ </fileset>
+ </zip>
+ </target>
+
+ <target name="javadoc" depends="-init" description="build the javadoc for the project">
+ <javadoc packagenames="com.mebigfatguy.*"
+ sourcepath="${src.dir}"
+ classpathref="smaxproto.classpath"
+ destdir="${javadoc.dir}"
+ windowtitle="smaxproto api">
+ <doctitle><![CDATA[<h1>smaxproto javadoc</h1>]]></doctitle>
+ <bottom><![CDATA[<i>Copyright © 2008 MeBigFatGuy.com. All Rights Reserved.</i>]]></bottom>
+ </javadoc>
+ </target>
+
+ <target name="build" depends="clean, -init, compile, resources, jar" description="builds the smaxproto jar"/>
+
+ <target name="release" depends="build, srczip, javadoc" description="prepares everything for a release"/>
+
+</project>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|