[Cherbot-commit] SF.net SVN: cherbot: [5] trunk
Status: Alpha
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2006-10-28 21:50:06
|
Revision: 5
http://svn.sourceforge.net/cherbot/?rev=5&view=rev
Author: christianhujer
Date: 2006-10-28 14:49:50 -0700 (Sat, 28 Oct 2006)
Log Message:
-----------
Simplified build.xml.
Removed build.number from build system.
Modified Paths:
--------------
trunk/build.xml
Removed Paths:
-------------
trunk/build.number
Property Changed:
----------------
trunk/
Property changes on: trunk
___________________________________________________________________
Name: svn:ignore
+ classes
Deleted: trunk/build.number
===================================================================
--- trunk/build.number 2006-10-27 08:49:54 UTC (rev 4)
+++ trunk/build.number 2006-10-28 21:49:50 UTC (rev 5)
@@ -1,3 +0,0 @@
-#Build Number for ANT. Do not edit!
-#Wed Oct 26 22:02:15 CEST 2005
-build.number=1638
Modified: trunk/build.xml
===================================================================
--- trunk/build.xml 2006-10-27 08:49:54 UTC (rev 4)
+++ trunk/build.xml 2006-10-28 21:49:50 UTC (rev 5)
@@ -1,56 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Header: /home/rpgroot/CherBot/build.xml,v 1.4 2005/11/09 20:30:00 chris Exp $ -->
-<!DOCTYPE project [
- <!ENTITY w3ccatalog SYSTEM "/usr/local/share/dtds/w3c/w3c.catalog">
-]>
<project default="createJar">
- &w3ccatalog;
- <xmlcatalog id="xmlcatalog">
- <!--xmlcatalog refid="itcqiscatalog"/-->
- <xmlcatalog refid="w3ccatalog"/>
- </xmlcatalog>
-
- <property file="ftp.properties" />
- <property file="project.properties" />
- <taskdef name="megaxslt" classname="com.hujer.ant.tasks.megaxslt.MegaXsltTask" />
<description>
CherBot
</description>
- &w3ccatalog;
+ <property file="ftp.properties" />
+ <property file="project.properties" />
- <target
- name = "full"
- description = "Build the whole thing"
- depends = "init, compile"
- />
+ <tstamp><format property="build.tstamp" pattern="yyyy-MM-dd HH:mm:ss z" timezone="UTC"/></tstamp>
+ <exec executable="svnversion" outputproperty="build.number" />
<target
- name = "init"
- description = "Prepare sandbox for work"
- >
- <buildnumber/>
- <tstamp>
- <format property="build.time" pattern="yyyyMMddHHmmss" />
- </tstamp>
- <!--exec executable="ctags">
- <arg line="-R src" />
- </exec-->
- </target>
-
- <target
name = "compile"
description = "Compile sandbox"
- depends = "init"
>
<mkdir dir="classes" />
<javac
- source="1.5"
- srcdir="src"
- destdir="classes"
- debug="yes"
- encoding="utf-8"
+ source = "1.5"
+ target = "1.5"
+ srcdir = "src"
+ destdir = "classes"
+ debug = "yes"
+ encoding = "utf-8"
>
<compilerarg line="-Xlint:all"/>
<compilerarg line="-Xmaxerrs 400"/>
@@ -61,93 +33,17 @@
<target
name = "clean"
description = "Cleanup sandbox all"
- depends = "cleanCode, cleanDoc"
>
- <parallel>
- <delete dir="classes" />
- <delete dir="doc/api" />
- </parallel>
+ <delete dir="classes" />
</target>
<target
- name = "cleanCode"
- description = "Cleanup sandbox generated code"
- >
- <parallel>
- <delete dir="classes" />
- </parallel>
- </target>
-
- <target
- name = "cleanDoc"
- description = "Cleanup sandbox generated doc"
- >
- <parallel>
- <delete dir="doc/api" />
- </parallel>
- </target>
-
- <target
- name = "doc"
- description = "Create API documentation"
- >
- <mkdir dir="doc/api/html" />
- <javadoc
- destdir = "doc/api/html"
- locale = "de_DE"
- encoding = "utf-8"
- version = "yes"
- author = "yes"
- use = "yes"
- splitindex = "yes"
- windowtitle = "CherBot — API Documentation"
- doctitle = "CherBot<br />API Documentation"
- header = "CherBot<br />API Documentation"
- footer = "CherBot<br />API Documentation"
- bottom = "<div style="text-align:center;">© 2005 Christian Hujer. All rights reserved.</div>"
- serialwarn = "yes"
- charset = "utf-8"
- docencoding = "utf-8"
- source = "1.5"
- linksource = "yes"
- private = "yes"
- >
- <!--
- stylesheetfile = "src/stylesheet.css"
- overview = "src/overview.html"
- -->
- <sourcepath path="src" />
- <sourcepath path="/dist/opt/sun/j2sdk/se/latest/src" />
- <packageset
- dir="src"
- defaultexcludes="yes"
- >
- <include name="**" />
- </packageset>
- <tag
- name="todo"
- description="Todo:"
- />
- <tag
- name="fixme"
- description="Fixme:"
- />
- <link href="/dist/opt/sun/j2sdk/se/latest/docs/api" />
- </javadoc>
- </target>
-
- <target
name = "createJar"
description = "creates a jar archive containing the CherBot"
depends = "compile"
>
<copy todir="classes">
<fileset dir="src">
- <include name="icons/**/*.gif"/>
- </fileset>
- </copy>
- <copy todir="classes">
- <fileset dir="src">
<include name="**/*.properties"/>
</fileset>
</copy>
@@ -155,9 +51,7 @@
<manifest>
<attribute name="Main-Class" value="cherbot.CherBot" />
</manifest>
- <fileset dir="classes">
- <!--exclude name="**/Test.class" /-->
- </fileset>
+ <fileset dir="classes" />
</jar>
</target>
@@ -186,94 +80,4 @@
</junit>
</target>
- <target
- name = "publish"
- description = "publishes Cherbot documentation on the net"
- depends = "createJar"
- >
- <java
- fork="true"
- classpath="classes"
- classname="cherbot.ManagerDocumenter"
- >
- <arg value="src/doc/commands.xml" />
- </java>
- <xslt in="src/doc/commands.xml" out="src/doc/commands.xhtml" style="src/doc/commands.xslt" />
- <mkdir dir="doc"/>
- <copy todir="doc">
- <fileset dir="src/doc">
- <include name="**/*.css" />
- </fileset>
- </copy>
- <megaxslt srcdir="src/doc" destdir="doc" includes="**/*.xhtml" validateSource="yes" validateDest="yes">
- <xmlcatalog refid="xmlcatalog" />
- <transformation stylesheet="src/doc/transform.xslt" />
- <!--transformation stylesheet="libs/common/xslt/cleanupXhtml11.xslt" /-->
- </megaxslt>
- <megaxslt srcdir="doc" destdir="doc" includes="**/*.xhtml" ending="html" validateSource="yes" validateDest="no">
- <xmlcatalog refid="xmlcatalog" />
- <transformation stylesheet="src/doc/xhtml2html.xslt" />
- <!--transformation stylesheet="libs/common/xslt/cleanupXhtml11.xslt" /-->
- </megaxslt>
- <ftp
- server="${ftp.server}"
- userid="${ftp.userid}"
- password="${ftp.password}"
- remotedir="daimonin"
- depends="yes"
- passive="yes"
- ignoreNoncriticalErrors="yes"
- >
- <fileset dir="doc" />
- </ftp>
- <!--exec executable="bash">
- <arg value="-c" />
- <arg value="LC_ALL=C tar -cvz -C doc -f htdocs.tgz "`test -e ts_upload && (echo -n '-N ' ; cat ts_upload 2>/dev/null)`" ."/>
- </exec-->
- <!--ftp
- server="${ftp.server}"
- userid="${ftp.userid}"
- password="${ftp.password}"
- depends="no"
- passive="yes"
- ignoreNoncriticalErrors="yes"
- -->
- <!--remotedir="${ftp.remotedir}"-->
- <!--fileset dir=".">
- <include name="htdocs.tgz" />
- </fileset>
- </ftp>
- <exec executable="bash">
- <arg value="-c" />
- <arg value="LC_ALL=C date >ts_upload" />
- </exec-->
- <!--telnet userid="${ftp.userid}" password="${ftp.password}" server="${ftp.server}"-->
- <!--telnet server="${ftp.server}">
- <read string="Login: "/>
- <write string="${ftp.userid}" />
- <read string="Password: "/>
- <write string="${ftp.password}"/>
- <read string="${ftp.server}> " />
- <write string="cd ${ftp.remotedir}"/>
- <read string="${ftp.server}> " />
- <write>tar xzvf ../htdocs.tgz</write>
- <read string="${ftp.server}> " />
- </telnet-->
- </target>
-
</project>
-<!--
- - $Log: build.xml,v $
- - Revision 1.4 2005/11/09 20:30:00 chris
- - Changed player access to allow players with - in their names. Now all non-whitespace chars are allowed for players.
- -
- - Revision 1.3 2005/10/20 06:17:27 chris
- - *** empty log message ***
- -
- - Revision 1.2 2005/03/01 10:09:37 chris
- - Enabled API documentation.
- -
- - Revision 1.1 2005/03/01 09:14:02 chris
- - First import to version control.
- -
- -->
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|