aboutsummaryrefslogtreecommitdiff
path: root/id.server/build.xml
diff options
context:
space:
mode:
authorrudolf <rudolf@d688527b-c9ab-4aba-bd8d-4036d912da1d>2003-10-24 08:34:56 +0000
committerrudolf <rudolf@d688527b-c9ab-4aba-bd8d-4036d912da1d>2003-10-24 08:34:56 +0000
commitdd45e938564249a5e6897bd92dd29808d8990868 (patch)
tree372d8a4b128cff09262ad09d6a4cf5765d672d61 /id.server/build.xml
parent59f78a67d7357fd31de68fc2b623f95b3d654ebc (diff)
downloadmoa-id-spss-dd45e938564249a5e6897bd92dd29808d8990868.tar.gz
moa-id-spss-dd45e938564249a5e6897bd92dd29808d8990868.tar.bz2
moa-id-spss-dd45e938564249a5e6897bd92dd29808d8990868.zip
MOA-ID version 1.1 (initial)
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@19 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id.server/build.xml')
-rw-r--r--id.server/build.xml359
1 files changed, 359 insertions, 0 deletions
diff --git a/id.server/build.xml b/id.server/build.xml
new file mode 100644
index 000000000..708eab22f
--- /dev/null
+++ b/id.server/build.xml
@@ -0,0 +1,359 @@
+<?xml version="1.0"?>
+<!--
+
+ Ant Buildfile for MOA ID Auth and Proxy components
+
+ $Id$
+
+-->
+<project name="moa.id.server" default="dist-all" basedir=".">
+ <property environment="env"/>
+ <property name="version" value="1.1"/>
+ <property name="src" value="src"/>
+ <property name="res" value="res"/>
+ <property name="data" value="data"/>
+ <property name="doc" value="doc"/>
+ <property name="html" value="html"/>
+ <property name="html.auth" value="${html}/auth"/>
+ <property name="webinf.auth" value="${html.auth}/WEB-INF"/>
+ <property name="html.proxy" value="${html}/proxy"/>
+ <property name="webinf.proxy" value="${html.proxy}/WEB-INF"/>
+ <property name="tmp" value="tmp"/>
+ <property name="compile" value="${tmp}/compile"/>
+ <property name="api-doc" value="${tmp}/api-doc"/>
+ <property name="api-doc.internal" value="${tmp}/api-doc-internal"/>
+ <property name="dist" value="${tmp}/dist"/>
+ <property name="dist.auth" value="${dist}/auth"/>
+ <property name="dist.auth-zip" value="${dist}/auth-zip"/>
+ <property name="dist.proxy" value="${dist}/proxy"/>
+ <property name="dist.proxy-zip" value="${dist}/proxy-zip"/>
+ <property name="dist.src" value="${dist}/src"/>
+ <property name="dist.src-zip" value="${dist}/src-zip"/>
+ <property name="prj.build" value="../build"/>
+ <property name="prj.common" value="../common"/>
+ <property name="prj.oa" value="../id.oa"/>
+ <property name="lib" value="lib"/>
+ <property name="lib.axis" value="${lib}/axis-1.1rc2"/>
+ <property name="lib.commons-logging" value="${lib}/commons-logging-1.0.2"/>
+ <property name="lib.iaik-moa" value="${lib}/iaik-moa-1.06"/>
+ <property name="lib.jaxen" value="${lib}/jaxen-1.0"/>
+ <property name="lib.jaxp" value="${lib}/jaxp-1.2_01"/>
+ <property name="lib.jsse" value="${lib}/jsse-1.0.3_01"/>
+ <property name="lib.junit" value="${lib}/junit-3.8.1"/>
+ <property name="lib.log4j" value="${lib}/log4j-1.2.7"/>
+ <property name="lib.moa-spss" value="${lib}/moa-spss-1.0.8a"/>
+ <property name="lib.postgres-jdbc" value="${lib}/postgres-jdbc2-7.3"/>
+ <property name="lib.servlet" value="${lib}/servlet-2.3"/>
+ <property name="lib.xalan" value="${lib}/xalan-j-2.2"/>
+ <property name="lib.xerces" value="${lib}/xerces-j-2.0.2"/>
+
+ <path id="compile.classpath">
+ <pathelement location="${lib.axis}/axis.jar"/>
+ <pathelement location="${lib.axis}/jaxrpc.jar"/>
+ <pathelement location="${lib.axis}/saaj.jar"/>
+ <pathelement location="${lib.jaxp}/jaxp-api.jar"/>
+ <pathelement location="${lib.jaxp}/dom.jar"/>
+ <pathelement location="${lib.jaxp}/sax.jar"/>
+ <pathelement location="${lib.xerces}/xerces.jar"/>
+ <pathelement location="${lib.jaxen}/jaxen-core.jar"/>
+ <pathelement location="${lib.jaxen}/jaxen-dom.jar"/>
+ <pathelement location="${lib.jaxen}/saxpath.jar"/>
+ <pathelement location="${lib.xalan}/xalan.jar"/>
+ <pathelement location="${lib.junit}/junit.jar"/>
+ <fileset dir="${lib.jsse}" />
+ <pathelement location="${lib.commons-logging}/commons-logging-api.jar"/>
+ <pathelement location="${lib.commons-discovery}/commons-discovery.jar"/>
+ <pathelement location="${lib.servlet}/servlet-2_3-fcs-classfiles.zip"/>
+ <pathelement location="${lib.iaik-moa}/iaik-moa-full.jar"/>
+ <pathelement location="${lib.iaik-moa}/ixsil.jar"/>
+ <pathelement location="${lib.iaik-moa}/iaik_ecc.jar"/>
+ <pathelement location="${lib.iaik-moa}/iaik_ldap.jar"/>
+ <pathelement location="${lib.iaik-moa}/iaik_X509TrustManager.jar"/>
+ <pathelement location="${lib.iaik-moa}/iaik_jce_full.jar"/>
+ <pathelement location="${lib.moa-spss}/moa-common.jar"/>
+ <pathelement location="${lib.moa-spss}/moa-spss.jar"/>
+ <pathelement location="${env.MOA_COMMON_TEST_JAR}"/>
+ </path>
+
+ <!-- set up directories etc. -->
+ <target name="init">
+ <tstamp/>
+ <echo>Time (hhmm): ${TSTAMP}</echo>
+ <mkdir dir="${tmp}"/>
+ <mkdir dir="${compile}"/>
+ <mkdir dir="${api-doc.internal}"/>
+ <mkdir dir="${dist.auth}"/>
+ <mkdir dir="${dist.auth-zip}"/>
+ <mkdir dir="${dist.proxy}"/>
+ <mkdir dir="${dist.proxy-zip}"/>
+ <mkdir dir="${dist.src}"/>
+ <mkdir dir="${dist.src-zip}"/>
+ </target>
+
+ <!-- compile everything -->
+ <target name="compile" depends="init">
+ <fail message="env.MOA_COMMON_TEST_JAR not set" unless="env.MOA_COMMON_TEST_JAR"/>
+ <javac srcdir= "${src}" destdir="${compile}" classpathref="compile.classpath" debug="on"/>
+ </target>
+
+ <!-- package moa-id-auth.war -->
+ <target name="package-auth" depends="compile">
+ <war warfile="${dist.auth}/moa-id-auth.war" webxml="${webinf.auth}/web.xml">
+ <fileset dir="${html.auth}" includes="errorpage.jsp,WEB-INF/server-config.wsdd"/>
+ <lib dir="${lib.axis}"/>
+ <lib dir="${lib.jaxen}"/>
+ <lib dir="${lib.iaik-moa}" excludes="iaik_jce_full.jar,iaik_ldap.jar"/>
+ <lib dir="${lib.moa-spss}"/>
+ <lib dir="${lib.postgres-jdbc}"/>
+ <lib dir="${lib.commons-logging}" includes="commons-logging.jar"/>
+ <lib dir="${lib.xalan}"/>
+ <lib dir="${lib.jaxp}"/>
+ <lib dir="${lib.log4j}"/>
+ <classes dir="${compile}">
+ <exclude name="**/proxy/**"/>
+ <exclude name="test/**"/>
+ </classes>
+ <classes dir="${res}"/>
+ </war>
+ </target>
+
+ <!-- package moa-id-proxy.war -->
+ <target name="package-proxy" depends="compile">
+ <war warfile="${dist.proxy}/moa-id-proxy.war" webxml="${webinf.proxy}/web.xml">
+ <lib dir="${lib.axis}"/>
+ <lib dir="${lib.jaxen}"/>
+ <lib dir="${lib.iaik-moa}" excludes="iaik_jce_full.jar,iaik_ldap.jar"/>
+ <lib dir="${lib.moa-spss}" includes="moa-common.jar"/>
+ <lib dir="${lib.commons-logging}" includes="commons-logging.jar"/>
+ <lib dir="${lib.xalan}"/>
+ <lib dir="${lib.jaxp}"/>
+ <lib dir="${lib.log4j}"/>
+ <lib dir="${lib.postgres-jdbc}"/>
+ <classes dir="${compile}">
+ <exclude name="**/auth/**"/>
+ <exclude name="test/**"/>
+ </classes>
+ <classes dir="${res}"/>
+ </war>
+ </target>
+
+ <!-- create JavaDoc for the MOA-ID API -->
+ <target name="api-doc" depends="init">
+ <javadoc defaultexcludes="yes"
+ destdir="${api-doc}"
+ author="false"
+ version="false"
+ use="true"
+ windowtitle="MOA ID API"
+ sourcefiles=
+ "src/at/gv/egovernment/moa/id/auth/AuthenticationServer.java,src/at/gv/egovernment/moa/id/AuthenticationException.java,src/at/gv/egovernment/moa/id/data/AuthenticationData.java,src/at/gv/egovernment/moa/id/proxy/ConnectionBuilder.java,src/at/gv/egovernment/moa/id/config/proxy/OAConfiguration.java,src/at/gv/egovernment/moa/id/proxy/LoginParameterResolver.java"
+ >
+ <link offline="false" href="http://java.sun.com/j2se/1.3/docs/api/"/>
+ <doctitle><![CDATA[<h1>MOA ID API</h1>]]></doctitle>
+ <classpath refid="compile.classpath"/>
+ </javadoc>
+ </target>
+
+ <!-- create JavaDoc for the server internal classes -->
+ <target name="api-doc-internal" depends="init">
+ <javadoc defaultexcludes="yes"
+ destdir="${api-doc.internal}"
+ author="true"
+ version="true"
+ use="true"
+ windowtitle="MOA ID Server Internal API">
+ <packageset dir="${prj.common}/src">
+ <exclude name="test/**"/>
+ </packageset>
+ <packageset dir="src">
+ <exclude name="test/**"/>
+ </packageset>
+ <group title="MOA ID Exception Classes"
+ packages="at.gv.egovernment.moa.id">
+ </group>
+ <group title="MOA ID Configuration">
+ <package name="at.gv.egovernment.moa.id.config"/>
+ <package name="at.gv.egovernment.moa.id.config.auth"/>
+ <package name="at.gv.egovernment.moa.id.config.proxy"/>
+ </group>
+ <group title="MOA ID Authentication Server">
+ <package name="at.gv.egovernment.moa.id.auth"/>
+ <package name="at.gv.egovernment.moa.id.auth.builder"/>
+ <package name="at.gv.egovernment.moa.id.auth.data"/>
+ <package name="at.gv.egovernment.moa.id.auth.invoke"/>
+ <package name="at.gv.egovernment.moa.id.auth.parser"/>
+ <package name="at.gv.egovernment.moa.id.auth.validator"/>
+ </group>
+ <group title="MOA ID Authentication Servlets and Web Services">
+ <package name="at.gv.egovernment.moa.id.auth.servlet"/>
+ </group>
+ <group title="MOA ID Data Classes">
+ <package name="at.gv.egovernment.moa.id.data"/>
+ </group>
+ <group title="MOA ID TrustManager">
+ <package name="at.gv.egovernment.moa.id.iaik.pki.jsse"/>
+ <package name="at.gv.egovernment.moa.id.iaik.pki"/>
+ <package name="at.gv.egovernment.moa.id.iaik.config"/>
+ <package name="at.gv.egovernment.moa.id.iaik.servertools.observer"/>
+ </group>
+ <group title="MOA ID Proxy Server">
+ <package name="at.gv.egovernment.moa.id.proxy"/>
+ <package name="at.gv.egovernment.moa.id.proxy.builder"/>
+ <package name="at.gv.egovernment.moa.id.proxy.invoke"/>
+ <package name="at.gv.egovernment.moa.id.proxy.parser"/>
+ </group>
+ <group title="MOA ID Proxy Servlet">
+ <package name="at.gv.egovernment.moa.id.proxy.servlet"/>
+ </group>
+ <group title="Utilities">
+ <package name="at.gv.egovernment.moa.util"/>
+ <package name="at.gv.egovernment.moa.id.util"/>
+ </group>
+ <group title="Logging">
+ <package name="at.gv.egovernment.moa.logging"/>
+ </group>
+ <link offline="false" href="http://java.sun.com/j2se/1.3/docs/api/"/>
+ <link offline="false" href="http://java.sun.com/j2ee/sdk_1.3/techdocs/api/"/>
+ <doctitle><![CDATA[<h1>MOA ID Server Internal API</h1>]]></doctitle>
+ <classpath refid="compile.classpath"/>
+ </javadoc>
+ </target>
+
+ <!-- create the moa-id-auth distributable -->
+ <target name="dist-auth" depends="package-auth">
+ <copy toDir="${dist.auth}/conf">
+ <fileset dir="${data}/deploy/conf" excludes="moa-id/oa/**"/>
+ </copy>
+ <mkdir dir="${dist.auth}/conf/moa-id/certs/certstore"/>
+ <mkdir dir="${dist.auth}/conf/moa-id/certs/ca-certs"/>
+ <mkdir dir="${dist.auth}/conf/moa-id/certs/server-certs"/>
+ <copy todir="${dist.auth}/doc">
+ <fileset dir="${doc}"/>
+ </copy>
+ <copy toDir="${dist.auth}/ext13">
+ <fileset dir="${lib.iaik-moa}" includes="iaik_jce_full.jar,iaik_ldap.jar"/>
+ <fileset dir="${lib.jsse}"/>
+ </copy>
+ <copy toDir="${dist.auth}/ext14">
+ <fileset dir="${lib.iaik-moa}" includes="iaik_jce_full.jar,iaik_ldap.jar"/>
+ </copy>
+ <copy toDir="${dist.auth}/endorsed">
+ <fileset dir="${lib.xerces}"/>
+ </copy>
+ <copy todir="${dist.auth}/tomcat">
+ <fileset dir="${data}/deploy/tomcat"/>
+ </copy>
+ </target>
+
+ <!-- create the zipped moa-id-auth distributable -->
+ <target name="dist-auth-zip" depends="dist-auth">
+ <zip zipfile="${dist.auth-zip}/moa-id-auth-${version}.zip">
+ <zipfileset dir="${dist.auth}" prefix="moa-id-auth-${version}"/>
+ </zip>
+ </target>
+
+ <!-- create the moa-id-proxy distributable -->
+ <target name="dist-proxy" depends="package-proxy">
+ <copy toDir="${dist.proxy}/conf">
+ <fileset dir="${data}/deploy/conf" excludes="moa-spss/**,moa-id/transforms/**"/>
+ </copy>
+ <mkdir dir="${dist.proxy}/conf/moa-id/certs/certstore"/>
+ <mkdir dir="${dist.proxy}/conf/moa-id/certs/ca-certs"/>
+ <mkdir dir="${dist.proxy}/conf/moa-id/certs/server-certs"/>
+ <copy todir="${dist.proxy}/doc">
+ <fileset dir="${doc}"/>
+ </copy>
+ <copy toDir="${dist.proxy}/ext13">
+ <fileset dir="${lib.iaik-moa}" includes="iaik_jce_full.jar,iaik_ldap.jar"/>
+ <fileset dir="${lib.jsse}"/>
+ </copy>
+ <copy toDir="${dist.proxy}/ext14">
+ <fileset dir="${lib.iaik-moa}" includes="iaik_jce_full.jar,iaik_ldap.jar"/>
+ </copy>
+ <copy toDir="${dist.proxy}/endorsed">
+ <fileset dir="${lib.xerces}"/>
+ </copy>
+ <copy todir="${dist.proxy}/tomcat">
+ <fileset dir="${data}/deploy/tomcat"/>
+ </copy>
+ </target>
+
+ <!-- create the zipped moa-id-proxy distributable -->
+ <target name="dist-proxy-zip" depends="dist-proxy">
+ <zip zipfile="${dist.proxy-zip}/moa-id-proxy-${version}.zip">
+ <zipfileset dir="${dist.proxy}" prefix="moa-id-proxy-${version}"/>
+ </zip>
+ </target>
+
+ <!-- create the source distributable -->
+ <target name="dist-src" depends="init">
+ <copy toDir="${dist.src}/build">
+ <fileset dir="${prj.build}"/>
+ </copy>
+ <copy toDir="${dist.src}/common">
+ <fileset dir="${prj.common}" excludes="tmp/**, bin/**"/>
+ </copy>
+ <copy toDir="${dist.src}/id.server">
+ <fileset dir="." excludes="tmp/**, bin/**"/>
+ </copy>
+ <copy toDir="${dist.src}/id.oa">
+ <fileset dir="${prj.oa}" excludes="tmp/**"/>
+ </copy>
+ </target>
+
+ <!-- create the source distributable, including javadoc -->
+ <target name="dist-src-doc" depends="dist-src,api-doc-internal">
+ <copy toDir="${dist.src}/doc/api-doc-internal">
+ <fileset dir="${api-doc.internal}"/>
+ </copy>
+ </target>
+
+ <!-- create the zipped source distributable -->
+ <target name="dist-src-zip" depends="init,dist-src-doc">
+ <zip zipfile="${dist.src-zip}/moa-id-${version}-src.zip">
+ <zipfileset dir="${dist.src}" prefix="moa-id-${version}-src"/>
+ </zip>
+ </target>
+
+ <!-- create all the distributables -->
+ <target name="dist-all" depends="dist-auth-zip,dist-proxy-zip,dist-src-zip"/>
+
+ <!-- deploy moa-id-auth to catalina (needs MOA_AUTH_DEPLOY defined) -->
+ <target name="deploy-auth" depends="dist-auth">
+ <fail message="env.MOA_AUTH_DEPLOY not set" unless="env.MOA_AUTH_DEPLOY"/>
+ <property name="deploy" value="${env.MOA_AUTH_DEPLOY}"/>
+ <property name="deploy.webapps" value="${deploy}/webapps"/>
+ <delete dir="${deploy.webapps}/moa-id-auth"/>
+ <copy file="${dist.auth}/moa-id-auth.war" todir="${deploy.webapps}"/>
+ <!-- copy sample configuration -->
+ <copy toDir="${deploy}/conf">
+ <fileset dir="${dist.auth}/conf"/>
+ </copy>
+ <!-- copy libraries to MOA_AUTH_DEPLOY/common/endorsed -->
+ <copy toDir="${deploy}/common/endorsed">
+ <fileset dir="${dist.auth}/endorsed"/>
+ </copy>
+ </target>
+
+ <!-- deploy moa-id-proxy to catalina (needs MOA_PROXY_DEPLOY defined) -->
+ <target name="deploy-proxy" depends="dist-proxy">
+ <fail message="env.MOA_PROXY_DEPLOY not set" unless="env.MOA_PROXY_DEPLOY"/>
+ <property name="deploy.proxy" value="${env.MOA_PROXY_DEPLOY}"/>
+ <property name="deploy.proxy.webapps" value="${deploy.proxy}/webapps"/>
+ <delete dir="${deploy.proxy.webapps}/moa-id-proxy"/>
+ <copy file="${dist.proxy}/moa-id-proxy.war" todir="${deploy.proxy.webapps}"/>
+ <!-- copy sample configuration -->
+ <copy toDir="${deploy.proxy}/conf">
+ <fileset dir="${dist.proxy}/conf"/>
+ </copy>
+ <!-- copy libraries to MOA_PROXY_DEPLOY/common/endorsed -->
+ <copy toDir="${deploy.proxy}/common/endorsed">
+ <fileset dir="${dist.proxy}/endorsed"/>
+ </copy>
+ </target>
+
+ <!-- clean temporary files -->
+ <target name="clean">
+ <delete dir="${tmp}"/>
+ </target>
+</project>