Thread: [Smax-commit] SF.net SVN: smax: [15] trunk/smaxproto/build.xml
Status: Alpha
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-01-17 06:57:52
|
Revision: 15
http://smax.svn.sourceforge.net/smax/?rev=15&view=rev
Author: dbrosius
Date: 2008-01-16 22:57:36 -0800 (Wed, 16 Jan 2008)
Log Message:
-----------
build javadoc to htdocs folder
Modified Paths:
--------------
trunk/smaxproto/build.xml
Modified: trunk/smaxproto/build.xml
===================================================================
--- trunk/smaxproto/build.xml 2008-01-17 06:51:32 UTC (rev 14)
+++ trunk/smaxproto/build.xml 2008-01-17 06:57:36 UTC (rev 15)
@@ -26,8 +26,8 @@
<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="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"/>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
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.
|
|
From: <dbr...@us...> - 2008-01-17 06:09:50
|
Revision: 7
http://smax.svn.sourceforge.net/smax/?rev=7&view=rev
Author: dbrosius
Date: 2008-01-16 22:09:44 -0800 (Wed, 16 Jan 2008)
Log Message:
-----------
add test target
Modified Paths:
--------------
trunk/smaxproto/build.xml
Modified: trunk/smaxproto/build.xml
===================================================================
--- trunk/smaxproto/build.xml 2008-01-17 06:06:50 UTC (rev 6)
+++ trunk/smaxproto/build.xml 2008-01-17 06:09:44 UTC (rev 7)
@@ -110,8 +110,31 @@
</javadoc>
</target>
- <target name="build" depends="clean, -init, compile, resources, jar" description="builds the smaxproto jar"/>
+ <target name="test" depends="-init, compile, resources" description="runs unit tests">
+ <path id="smaxprototest.classpath">
+ <pathelement location="${classes.dir}"/>
+ <pathelement location="${lib.dir}/serializer.jar"/>
+ <pathelement location="${lib.dir}/xalan.jar"/>
+ <pathelement location="${lib.dir}/junit.jar"/>
+ </path>
+ <junit
+ printsummary="true"
+ haltonfailure="true"
+ haltonerror="true"
+ showoutput="true"
+ fork="true">
+
+ <classpath><path refid="smaxprototest.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 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.
|
|
From: <dbr...@us...> - 2008-01-17 06:14:48
|
Revision: 8
http://smax.svn.sourceforge.net/smax/?rev=8&view=rev
Author: dbrosius
Date: 2008-01-16 22:14:41 -0800 (Wed, 16 Jan 2008)
Log Message:
-----------
fix javadoc target
Modified Paths:
--------------
trunk/smaxproto/build.xml
Modified: trunk/smaxproto/build.xml
===================================================================
--- trunk/smaxproto/build.xml 2008-01-17 06:09:44 UTC (rev 7)
+++ trunk/smaxproto/build.xml 2008-01-17 06:14:41 UTC (rev 8)
@@ -100,7 +100,7 @@
</target>
<target name="javadoc" depends="-init" description="build the javadoc for the project">
- <javadoc packagenames="com.mebigfatguy.*"
+ <javadoc packagenames="com.mebigfatguy.*,javax.xml.parsers.smax.*,org.xml.smax.*"
sourcepath="${src.dir}"
classpathref="smaxproto.classpath"
destdir="${javadoc.dir}"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <dbr...@us...> - 2008-01-18 04:07:58
|
Revision: 21
http://smax.svn.sourceforge.net/smax/?rev=21&view=rev
Author: dbrosius
Date: 2008-01-17 20:07:57 -0800 (Thu, 17 Jan 2008)
Log Message:
-----------
update to 0.1.1
Modified Paths:
--------------
trunk/smaxproto/build.xml
Modified: trunk/smaxproto/build.xml
===================================================================
--- trunk/smaxproto/build.xml 2008-01-18 04:06:28 UTC (rev 20)
+++ trunk/smaxproto/build.xml 2008-01-18 04:07:57 UTC (rev 21)
@@ -33,7 +33,7 @@
<property name="javac.deprecation" value="on"/>
<property name="javac.debug" value="on"/>
- <property name="smaxproto.version" value="0.1.0"/>
+ <property name="smaxproto.version" value="0.1.1"/>
<target name="clean" description="removes all generated collateral">
<delete dir="${classes.dir}"/>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|