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