Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
Changed revision to 15131 from svn wald
Browse files Browse the repository at this point in the history
  • Loading branch information
aerben committed Feb 21, 2013
1 parent d54e813 commit ecd5460
Show file tree
Hide file tree
Showing 11,357 changed files with 1,794,169 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
239 changes: 239 additions & 0 deletions build-test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
<?xml version="1.0"?>
<!--
Ant build file for deegree test suite. Tested with Ant 1.7.0.
This file is part of deegree.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
Copyright (C) 2001-2008 by:
EXSE, Department of Geography, University of Bonn
http://www.giub.uni-bonn.de/exse/
lat/lon GmbH, Bonn, Germany
http://www.lat-lon.de
$HeadURL: svn+ssh://[email protected]/deegree/base/trunk/build-test.xml $
$Revision: 14814 $, $Date: 2008-11-11 08:26:00 +0100 (Di, 11. Nov 2008) $
$Author: aschmitz $
-->
<!DOCTYPE project [
<!ENTITY global SYSTEM "global.xml">
]>

<project name="deegreeTest" default="all" basedir=".">

<!-- include global properties -->
&global;

<!-- test.properties containing the list of test classes -->
<!--property file="test.properties"/-->

<property name="test.home" value="${basedir}" />
<property name="test.src" value="${test.home}/test/junit" />
<property name="test.build" value="${test.home}/classes-test" />
<property name="test.lib" value="${test.home}/lib/junit" />
<property name="test.etc" value="${test.home}/etc" />
<property name="test.web" value="${test.home}/webapps/deegreeTest" />
<property name="test.webapp.name" value="${ant.project.name}" />
<property name="test.war" value="${ant.project.name}.war" />
<property name="test.doc" value="${doc.base}/testapi" />
<property name="master.project" value="${basedir}" />
<property name="junit.results" value="${doc.base}/junit" />

<property name="junit.ui" value="junit.swingui.TestRunner" />
<!-- property name="junit.ui" value="junit.textui.TestRunner" / -->
<!-- property name="junit.ui" value="junit.ui.TestRunner" / -->

<!-- set classpath for testing -->
<path id="test.path">
<pathelement location="${build}" />
<pathelement location="${test.build}" />
<fileset dir="${test.lib}">
<include name="*.jar" />
</fileset>
<pathelement location="${master.project}/${build}" />
<path refid="build.path" />
</path>

<target name="all" depends="guitest" />

<!-- =================================================================== -->
<!-- prints the environment -->
<!-- =================================================================== -->
<target name="env" description="prints the environment">

<echo message="java.home = ${java.home}" />
<echo message="user.home = ${user.home}" />
<echo message="user.dir = ${user.dir}" />
<echo message="java.class.path = ${java.class.path}" />
<echo message="tomcat.home = ${tomcat.home}" />
<echo message="application.name = ${ant.project.name}" />
<echo message="application.home = ${basedir}" />
<echo message="test.home = ${test.home}" />
<echo message="test.src = ${test.src}" />
<echo message="test.build = ${test.build}" />
<echo message="test.lib = ${test.lib}" />
<echo message="test.web = ${test.web}" />
<echo message="master.project = ${master.project}" />

</target>


<!-- ########################################################## -->

<target name="init">
<tstamp />
<mkdir dir="${test.build}" />
</target>

<!-- ########################################################## -->

<target name="junit_available">
<available property="junit.present" classname="junit.framework.TestCase">
<classpath refid="test.path" />
</available>
</target>

<!-- ########################################################## -->

<target name="javac">
<available property="javac.present" classname="com.sun.tools.javac.Main">
<classpath refid="test.path" />
</available>
<echo message="${javac.present}" />
</target>

<!-- ########################################################## -->

<target name="compile" depends="init,junit_available">

<ant antfile="build.xml" dir="." target="compile" inheritall="false" />

<condition property="oraclesdo.present">
<and>
<available classname="oracle.spatial.geometry.JGeometry" classpathref="build.path" />
</and>
</condition>
<if>
<equals arg1="${oraclesdo.present}" arg2="true" />
<then>
<property name="oracle.exclude.testclasses" value="" />
<echo message="Enabling JGeometryAdapterTest." />
</then>
<else>
<property name="oracle.exclude.testclasses" value="org/deegree/io/datastore/sql/oracle/JGeometryAdapterTest.java" />
<echo message="Disabling JGeometryAdapterTest." />
</else>
</if>

<javac srcdir="${test.src}" destdir="${test.build}" includes="**/*.java" excludes="${oracle.exclude.testclasses}" fork="true" memorymaximumsize="512M" source="${source.version}" target="${target.version}" debug="true">
<classpath>
<path refid="test.path" />
</classpath>
</javac>

<copy todir="${test.build}">
<fileset dir="${test.src}" includes="**/*.*" excludes="**/package.html, **/*.java" />
</copy>
</target>

<!-- ########################################################## -->

<!--target name="test" depends="compile" if="junit.present">
<junit fork="yes" printsummary="yes"
haltonfailure="no" haltonerror="no"
errorproperty="test.failed">
<sysproperty key="user.dir" value="${basedir}"/>
<classpath>
<path refid="test.path" />
</classpath>
<batchtest todir="${junit.results}" haltonfailure="no">
<fileset dir="${test.build}">
<include name="**/*Test.class" />
<exclude name="**/AllTests.class" />
</fileset>
</batchtest>
<formatter type="plain" />
</junit>
</target-->

<!-- ########################################################## -->

<target name="guitest" depends="compile" if="junit.present">
<java fork="yes" classname="${junit.ui}" taskname="junit" failonerror="true" dir="${test.build}">

<jvmarg value="-Djava.compiler=NONE" />
<jvmarg value="-Duser.dir=${user.dir}" />
<arg value="-noloading" />
<!-- arg value="alltests.AllTests"/ -->
<classpath>
<path refid="test.path" />
</classpath>
</java>
</target>

<!-- ########################################################## -->

<target name="cctest" depends="compile" if="junit.present" description="Run unit tests">
<delete dir="${junit.results}" />
<mkdir dir="${junit.results}" />
<echo message="Running unit tests in ${user.dir}" />
<junit maxmemory="1024m" fork="yes" haltonfailure="yes" haltonerror="yes">
<classpath>
<path refid="test.path" />
</classpath>
<sysproperty key="user.dir" value="${basedir}" />
<!--formatter type="plain" usefile="true"/-->
<formatter type="xml" />
<!--batchtest todir="${junit.results}">
<fileset dir="${test.build}" includes="">
</fileset>
</batchtest-->
<test name="alltests.AllTests" />
</junit>
<junitreport todir="${junit.results}">
<fileset dir="${junit.results}">
<include name="TEST-*.xml" />
</fileset>
<report format="frames" todir="${junit.results}/html" />
</junitreport>
</target>

<!-- ########################################################## -->

<target name="javadoc" depends="compile" description="Creates JavaDoc">
<mkdir dir="${doc}" />
<javadoc packagenames="org.*,de.*,alltests.*" sourcepath="${test.src}" destdir="${test.doc}" author="true" version="true" use="true" package="true" linksource="true" overview="${test.src}/overview.html" doctitle="deegree - Test Suite" windowtitle="deegree ${version.number}.${build.number} test suite 1.0" header="deegree ${version.number}.${build.number} test suite 1.0" footer="deegree ${version.number}.${build.number} test suite 1.0" maxmemory="128m">

<bottom>
<![CDATA[<p align="center">an open source project founded by <a href="http://www.latlon.de">lat/lon</a>, Bonn, Germany.<BR>
<i>For more information visit: <a href="http://www.deegree.org">http://www.deegree.org</a>
</i>
</p>]]>
</bottom>

<tag name="todo" scope="all" description="To do:" />
<tag name="TODO" scope="all" description="To do:" />
<tag name="bug" scope="all" description="Known bug:" />

<link href="http://java.sun.com/j2se/1.4.2/docs/api/" />
<link href="http://java.sun.com/j2ee/sdk_1.3/techdocs/api/" />
<link href="http://www.junit.org/junit/javadoc/3.8/" />

<classpath>
<path refid="test.path" />
</classpath>
</javadoc>
</target>

<!-- ########################################################## -->

<target name="clean" depends="" description="clean source directory">
<delete dir="${test.doc}" />
<delete dir="${junit.results}" />
<delete dir="${test.build}" />
</target>

</project>
93 changes: 93 additions & 0 deletions build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# $HeadURL: svn+ssh://[email protected]/deegree/base/trunk/build.properties $
# deegree 2.x Ant build file properties
# $Id: build.properties 7662 2007-06-26 16:47:17Z mschneider $
# $Revision: 7662 $, $Date: 2007-06-26 18:47:17 +0200 (Di, 26. Jun 2007) $
#
# Local properties. Edit this file ONLY to apply the local environment values.

# don't change this
target.version=1.5
source.version=1.5

# adapt the following properties to your configuration
debug.true=true

# change this parameter to build components if they are in another tree
all.components.dir=

# change this parameter to build components if they are in another tree
ows.conf.dir=conf
ows.base.dir=

# excluding JARs from web application
exclude.dependency.jars=**/junit.jar,**/jboss-common.jar,**/optional/*,**/ermapperdoc.jar,**/servlet-api.jar,**/jsp-api.jar

# change this parameter to the class keeping the version info
version.class=org/deegree/framework/version/Version

# configure which version control system you are using
# can be [ cvs | vss ]
cvs=cvs

#
# CVS configuration
# - Anonymous CVS Access:
# cvs -d:pserver:[email protected]:/cvsroot/deegree ...
# or
# - CVS Access via SSH:
# cvs -z3 -d:ext:[email protected]:/cvsroot/deegree ...
#
# ENTER YOUR USERNAME
cvs.login=anonymous
# ENTER YOUR PASSWORD
cvs.password=
# set the connection type 'pserver' for anonymous, 'ext' for cvs via ssh
cvs.connectiontype=pserver
cvs.bin.dir=@cvs.bin.dir
cvs.ssh.dir=@cvs.ssh.dir
cvs.rsh=ssh
cvs.server=cvs.intevation.de
cvs.port=
# ENTER PATH TO CVS DIRECTORY
cvs.path=home/deegree/jail/deegreerepository
cvs.module=deegree
cvs.root=:${cvs.connectiontype}:${cvs.login}@${cvs.server}:${cvs.port}/${cvs.path}
cvs.checkout.dir=${src}
cvs.writable=false
cvs.src.changed=false
cvs.src.delete=false

# JBoss Server 3.2.x home
jboss.home=D:/java/jboss-3.2.6
# can be [ default | all | minimal ]
jboss.servername=all
jboss.path=${jboss.home}/server/${jboss.servername}/lib/*.jar
jboss.deploy.dir=${jboss.home}/server/${jboss.servername}/deploy
jboss.schema=http
jboss.host=localhost
jboss.port=8080

#BEA Weblogic Server home
wls.home=C:/bea/weblogic81/server
wls.path=${wls.home}/lib/weblogic.jar
# deploy destinations
wls.deploy.dir=C:/bea/user_projects/domains/mydomain/myserver
wls.schema=http
wls.host=localhost
wls.port=7001

# Database setting
# JDBC connection
# example using hsqldb
# jdbc.url=jdbc:hsqldb:file:/${database.dir}
# jdbc.driver=org.hsqldb.jdbcDriver
jdbc.driver.home=${lib}
jdbc.driver.jar=ojdbc14_10g.jar
jdbc.driver.type=oracle
jdbc.driver.class=oracle.jdbc.OracleDriver
jdbc.url=jdbc:oracle:thin:@hurricane.lat-lon:1521:devs
jdbc.username=persons4
jdbc.password=persons4
# only required for hsqldb
#database.home=D:\java\hsqldb
#database.dir=${basedir}/scripts/sql
Loading

0 comments on commit ecd5460

Please sign in to comment.