build.xml
author Markus Bröker <mbroeker@largo.homelinux.org>
Tue, 12 May 2009 21:20:30 +0200
changeset 8 34a247829246
parent 6 ad18534e08fd
child 9 506c7ab82d39
permissions -rw-r--r--
NEW SSL Certificate
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
     1
<?xml version="1.0"?>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
     2
<project name="Schach" basedir="." default="jar">
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
     3
	<property name="project" value="Schach" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
     4
	<property name="package.name" value="org.homelinux.largo" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
     5
	<property name="package.dir" value="org/homelinux/largo" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
     6
	<property name="jar.file" value="bin/games.jar" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
     7
	<property name="classpath.dir" value="/usr/local/lib/classes" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
     8
	<property name="www.dir" value="/var/www/localhost/htdocs/classes" />
2
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
     9
	<property name="docs.dir" value="doc/" />
0
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    10
	<property name="debug" value="simu" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    11
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    12
	<property name="distributable.exts"
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    13
		value="**/*.class,**/*.gif,**/*.html,**/*.jar,**/*.jnlp,**/*.jpg,**/*.png" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    14
	<path id="Schach.classpath">
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    15
		<pathelement location="." />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    16
	</path>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    17
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    18
	<!-- Targets -->
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    19
	<target name="clean">
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    20
		<echo
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    21
			message="deleting all class- and jar-files  in ${package.dir} tree" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    22
		<delete>
6
ad18534e08fd Default Ant Rule for cleanup
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 2
diff changeset
    23
			<fileset dir="${package.dir}" includes="**/*.class" />
ad18534e08fd Default Ant Rule for cleanup
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 2
diff changeset
    24
			<fileset dir="." includes="**/*.*~" defaultexcludes="no" />
0
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    25
		</delete>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    26
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    27
		<delete file="${jar.file}" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    28
	</target>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    29
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    30
	<target name="docs"
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    31
	    depends="compile,docs-init"
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    32
    	description="Generate JavaDocs.">
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    33
2
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    34
	    <javadoc destdir="${docs.dir}"
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    35
    	    author="true"
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    36
        	version="true"
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    37
	        use="true"
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    38
    	    windowtitle="${ant.project.name}"
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    39
        	sourcepathref="Schach.classpath"
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    40
	        packagenames="org.*"
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    41
    	    verbose="false">
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    42
        	<doctitle><![CDATA[<h1>${ant.project.name}</h1>]]></doctitle>
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    43
	        <bottom>
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    44
    	        <![CDATA[<i>Developed by Largo Enterprises in 2008</i>]]>
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    45
        	</bottom>
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    46
	    </javadoc>
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    47
	</target>
0
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    48
2
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    49
	<target name="docs-init">
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    50
	    <mkdir dir="${docs.dir}"/>
0
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    51
	</target>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    52
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    53
	<target name="docs-clean">
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    54
    	<delete dir="${docs.dir}"/>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    55
	</target>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    56
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    57
	<target name="compile">
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    58
		<echo message="compiling ${package.dir} tree." />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    59
		<javac source="1.5" target="1.5" srcdir="${package.dir}"
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    60
			sourcepath="${basedir}" debug="on">
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    61
			<classpath refid="Schach.classpath" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    62
		</javac>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    63
	</target>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    64
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    65
	<target name="jar" depends="compile">
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    66
		<property environment="env" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    67
		<jar destfile="${jar.file}" basedir="${basedir}"
6
ad18534e08fd Default Ant Rule for cleanup
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 2
diff changeset
    68
			includes="org/ images/"
0
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    69
			manifest="schach.manifest" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    70
	</target>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    71
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    72
	<target name="post" depends="jar">
8
34a247829246 NEW SSL Certificate
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 6
diff changeset
    73
		<signjar jar="${jar.file}" alias="spectre" storepass="${env.jsp}" />
0
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    74
		<copy file="${jar.file}" todir="${www.dir}"/>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    75
	</target>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    76
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    77
	<target name="debug" depends="compile">
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    78
		<java classname="org.homelinux.largo.schach.Schach"
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    79
			failonerror="true" fork="yes">
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    80
			<classpath refid="Schach.classpath" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    81
			<arg line="${debug}" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    82
		</java>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    83
	</target>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    84
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    85
	<target name="checkers" depends="compile">
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    86
		<java classname="org.homelinux.largo.checkers.Checkers"
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    87
			failonerror="true" fork="yes">
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    88
			<classpath refid="Schach.classpath" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    89
			<arg line="${debug}" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    90
		</java>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    91
	</target>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    92
</project>