[Patchanim-commit] SF.net SVN: patchanim: [6] trunk/patchanim/build.xml
Brought to you by:
dbrosius
From: <dbr...@us...> - 2008-01-25 04:43:39
|
Revision: 6 http://patchanim.svn.sourceforge.net/patchanim/?rev=6&view=rev Author: dbrosius Date: 2008-01-24 20:43:08 -0800 (Thu, 24 Jan 2008) Log Message: ----------- initial ant project build file Added Paths: ----------- trunk/patchanim/build.xml Added: trunk/patchanim/build.xml =================================================================== --- trunk/patchanim/build.xml (rev 0) +++ trunk/patchanim/build.xml 2008-01-25 04:43:08 UTC (rev 6) @@ -0,0 +1,131 @@ +<!-- +/* + * patchanim - Bezier Blend Batch Animation Builder + * 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="patchanim" default="jar"> + + <property file="build.properties"/> + + <property name="src.dir" value="${basedir}/src"/> + <property name="classes.dir" value="${basedir}/classes"/> + <property name="htdocs.dir" value="${basedir}/htdocs"/> + <property name="javadoc.dir" value="${htdocs.dir}/javadoc"/> + <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="patchanim.version" value="0.1.0"/> + + <target name="clean" description="removes all generated collateral"> + <delete dir="${classes.dir}"/> + <delete dir="${javadoc.dir}"/> + <delete file="${basedir}/patchanim-${patchanim.version}.jar"/> + <delete file="${basedir}/patchanim-src-${patchanim.version}.zip"/> + </target> + + <target name="-init" description="prepares repository for a build"> + <mkdir dir="${classes.dir}"/> + <mkdir dir="${javadoc.dir}"/> + <path id="patchanim.classpath"> + </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="patchanim.classpath"/> + </javac> + </target> + + <target name="resources" depends="-init" description="copies required files"> + <copy todir="${classes.dir}"> + <fileset dir="${src.dir}"> + <include name="**/*.properties"/> + </fileset> + </copy> + </target> + + <target name="jar" depends="compile, resources" description="produces the patchanim jar file"> + <jar destfile="${basedir}/patchanim-${patchanim.version}.jar"> + <fileset dir="${classes.dir}"> + <include name="**/*.class"/> + <include name="**/*.properties"/> + </fileset> + <fileset dir="${basedir}"> + <include name="license.txt"/> + </fileset> + <manifest> + <attribute name="patchanim-version" value="${patchanim.version}"/> + <attribute name="Main-Class" value="com.mebigfatguy.patchanim.main.PatchMain"/> + </manifest> + </jar> + </target> + + <target name="srczip" description="builds the source distribution zip file"> + <zip destfile="${basedir}/patchanim-src-${patchanim.version}.zip" basedir="${basedir}"> + <fileset dir="${basedir}"> + <include name="**/*.java"/> + <include name="**/*.properties"/> + <include name="**/*.property"/> + </fileset> + </zip> + </target> + + <target name="javadoc" depends="-init" description="build the javadoc for the project"> + <javadoc packagenames="com.mebigfatguy.*" + sourcepath="${src.dir}" + classpathref="patchanim.classpath" + destdir="${javadoc.dir}" + windowtitle="patchanim api"> + <doctitle><![CDATA[<h1>patchanim javadoc</h1>]]></doctitle> + <bottom><![CDATA[<i>Copyright © 2008 MeBigFatGuy.com. All Rights Reserved.</i>]]></bottom> + </javadoc> + </target> + + <target name="test" depends="-init, compile, resources" description="runs unit tests"> + <path id="patchanimtest.classpath"> + <pathelement location="${classes.dir}"/> + </path> + <junit + printsummary="true" + haltonfailure="true" + haltonerror="true" + showoutput="true" + fork="true"> + + <classpath><path refid="patchanimtest.classpath"/></classpath> + <batchtest fork="true"> + <fileset dir="${classes.dir}" + excludes="test/*$*" + includes="test/*"/> + </batchtest> + </junit> + </target> + + <target name="build" depends="clean, -init, compile, resources, test, jar" description="builds the patchanim jar"/> + + <target name="release" depends="build, srczip, javadoc" description="prepares everything for a release"/> + +</project> \ No newline at end of file Property changes on: trunk/patchanim/build.xml ___________________________________________________________________ Name: svn:mime-type + text/xml Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |