build.xml
author Markus Bröker <mbroeker@largo.homelinux.org>
Fri, 17 Dec 2010 22:30:33 +0100
changeset 13 f83884cc7d2f
parent 9 506c7ab82d39
child 16 55b0d5006e7b
permissions -rw-r--r--
Source Code re-formatted
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" />
9
506c7ab82d39 ant build file improved
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 8
diff changeset
     9
	<property name="manifest" value="${project}.manifest" />
2
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    10
	<property name="docs.dir" value="doc/" />
0
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    11
	<property name="debug" value="simu" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    12
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    13
	<property name="distributable.exts"
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    14
		value="**/*.class,**/*.gif,**/*.html,**/*.jar,**/*.jnlp,**/*.jpg,**/*.png" />
9
506c7ab82d39 ant build file improved
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 8
diff changeset
    15
	<path id="classpath">
0
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    16
		<pathelement location="." />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    17
	</path>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    18
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    19
	<!-- Targets -->
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    20
	<target name="clean">
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    21
		<echo
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    22
			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
    23
		<delete>
6
ad18534e08fd Default Ant Rule for cleanup
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 2
diff changeset
    24
			<fileset dir="${package.dir}" includes="**/*.class" />
ad18534e08fd Default Ant Rule for cleanup
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 2
diff changeset
    25
			<fileset dir="." includes="**/*.*~" defaultexcludes="no" />
0
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    26
		</delete>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    27
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    28
		<delete file="${jar.file}" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    29
	</target>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    30
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    31
	<target name="docs"
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    32
	    depends="compile,docs-init"
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    33
    	description="Generate JavaDocs.">
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    34
2
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    35
	    <javadoc destdir="${docs.dir}"
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    36
    	    author="true"
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    37
        	version="true"
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    38
	        use="true"
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    39
    	    windowtitle="${ant.project.name}"
9
506c7ab82d39 ant build file improved
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 8
diff changeset
    40
            sourcepathref="classpath"
506c7ab82d39 ant build file improved
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 8
diff changeset
    41
	    packagenames="org.*"
2
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    42
    	    verbose="false">
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    43
        	<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
    44
	        <bottom>
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    45
    	        <![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
    46
        	</bottom>
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    47
	    </javadoc>
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    48
	</target>
0
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    49
2
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    50
	<target name="docs-init">
f4add19ab159 I changed the ant rule for javadoc.
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 0
diff changeset
    51
	    <mkdir dir="${docs.dir}"/>
0
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    52
	</target>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    53
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    54
	<target name="docs-clean">
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    55
    	<delete dir="${docs.dir}"/>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    56
	</target>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    57
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    58
	<target name="compile">
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    59
		<echo message="compiling ${package.dir} tree." />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    60
		<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
    61
			sourcepath="${basedir}" debug="on">
9
506c7ab82d39 ant build file improved
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 8
diff changeset
    62
			<classpath refid="classpath" />
0
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    63
		</javac>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    64
	</target>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    65
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    66
	<target name="jar" depends="compile">
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    67
		<property environment="env" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    68
		<jar destfile="${jar.file}" basedir="${basedir}"
6
ad18534e08fd Default Ant Rule for cleanup
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 2
diff changeset
    69
			includes="org/ images/"
9
506c7ab82d39 ant build file improved
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 8
diff changeset
    70
			manifest="${manifest}" />
0
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    71
	</target>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    72
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    73
	<target name="post" depends="jar">
8
34a247829246 NEW SSL Certificate
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 6
diff changeset
    74
		<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
    75
		<copy file="${jar.file}" todir="${www.dir}"/>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    76
	</target>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    77
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    78
	<target name="debug" depends="compile">
9
506c7ab82d39 ant build file improved
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 8
diff changeset
    79
		<java classname="${package.name}.schach.Schach"
0
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    80
			failonerror="true" fork="yes">
9
506c7ab82d39 ant build file improved
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 8
diff changeset
    81
			<classpath refid="classpath" />
0
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    82
			<arg line="${debug}" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    83
		</java>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    84
	</target>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    85
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    86
	<target name="checkers" depends="compile">
9
506c7ab82d39 ant build file improved
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 8
diff changeset
    87
		<java classname="${package.name}.checkers.Checkers"
0
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    88
			failonerror="true" fork="yes">
9
506c7ab82d39 ant build file improved
Markus Bröker <mbroeker@largo.homelinux.org>
parents: 8
diff changeset
    89
			<classpath refid="classpath" />
0
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    90
			<arg line="${debug}" />
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    91
		</java>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    92
	</target>
e0dbaef72362 svn copy of the chess engine
Markus Bröker <mbroeker@largo.homelinux.org>
parents:
diff changeset
    93
</project>