javadb/build.xml
changeset 100 a6d2add085d7
child 135 f837cf975e95
equal deleted inserted replaced
99:d99503984cd5 100:a6d2add085d7
       
     1 <?xml version="1.0"?>
       
     2 <project name="App" basedir="." default="debug">
       
     3 	<property name="project" value="App" />
       
     4 	<property name="package.name" value="org.homelinux.largo" />
       
     5 	<property name="package.dir" value="org/homelinux/largo" />
       
     6 	<property name="jar.file" value="bin/app.jar" />
       
     7 	<property name="app.host" value="-Dorg.omg.CORBA.ORBInitialHost=largo.homelinux.org" />
       
     8 	<property file="targets/${os.name}.properties" />
       
     9 
       
    10 	<path id="classpath">
       
    11 		<pathelement location="${app.server}/lib/javaee.jar" />
       
    12 		<pathelement location="${app.server}/lib/appserv-rt.jar" />
       
    13 		<pathelement location="${app.server}/lib/appserv-admin.jar" />
       
    14 		<pathelement location="${app.server}/lib/install/applications/jmsra/imqjmsra.jar" />
       
    15 		<pathelement location="${app.server}/javadb/lib/derbyrun.jar" />
       
    16 		<pathelement location="." />
       
    17 	</path>
       
    18 
       
    19 	<!-- Targets -->
       
    20 	<target name="clean">
       
    21 		<echo message="deleting all class- and jar-files in ${package.dir} tree" />
       
    22 		<delete>
       
    23 			<fileset dir="${package.dir}" includes="**/*.class" />
       
    24 			<fileset dir="." includes="**/*.*~" defaultexcludes="no" />
       
    25 			<fileset dir="." includes="**/*.log" />
       
    26 		</delete>
       
    27 		<delete  dir="clubstatistik" />
       
    28 	</target>
       
    29 
       
    30 	<target name="init" >
       
    31 		<echo message="creating initial database" />
       
    32 		<exec executable="${native.shell}">
       
    33 			<env key="DERBY_HOME" value="${app.server}/javadb/" />
       
    34 			<arg line="${native.switch} ${app.server}/javadb/bin/ij sql/euroleague.sql" />
       
    35 		</exec>
       
    36 		<mkdir dir="clubstatistik" />
       
    37 	</target>
       
    38 
       
    39 	<target name="compile">
       
    40 		<echo message="compiling ${package.dir} tree." />
       
    41 		<javac source="1.5" target="1.5" srcdir="${package.dir}"
       
    42 			sourcepath="${basedir}" debug="on">
       
    43 			<classpath refid="classpath" />
       
    44 		</javac>
       
    45 	</target>
       
    46 
       
    47 	<target name="debug" depends="init, compile">
       
    48 		<java classname="${package.name}.app.App"
       
    49 			failonerror="true" fork="yes">
       
    50 			<classpath refid="classpath" />
       
    51 			<arg line="${app.host}" />
       
    52 		</java>
       
    53 	</target>
       
    54 </project>