# HG changeset patch
# User robcast
# Date 1303328438 -7200
# Node ID 12b5a3e04b1366c871c979618b2f07417951f9bc
# Parent 64f2cb1061a458799823f39c9ed4bce04b8c4995
clean up
diff -r 64f2cb1061a4 -r 12b5a3e04b13 client/pom.xml
--- a/client/pom.xml Wed Apr 20 15:25:59 2011 +0200
+++ b/client/pom.xml Wed Apr 20 21:40:38 2011 +0200
@@ -23,7 +23,6 @@
digilib
digilib-servlet
- 2.0-SNAPSHOT
jar
compile
diff -r 64f2cb1061a4 -r 12b5a3e04b13 client/src/main/webapp/META-INF/MANIFEST.MF
--- a/client/src/main/webapp/META-INF/MANIFEST.MF Wed Apr 20 15:25:59 2011 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-
diff -r 64f2cb1061a4 -r 12b5a3e04b13 config/build.xml
--- a/config/build.xml Wed Apr 20 15:25:59 2011 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,93 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff -r 64f2cb1061a4 -r 12b5a3e04b13 config/tomcat/bin/catalina.sh
--- a/config/tomcat/bin/catalina.sh Wed Apr 20 15:25:59 2011 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,237 +0,0 @@
-#!/bin/sh
-# -----------------------------------------------------------------------------
-# catalina.sh - Start/Stop Script for the CATALINA Server
-#
-# Environment Variable Prequisites
-#
-# CATALINA_BASE (Optional) Base directory for resolving dynamic portions
-# of a Catalina installation. If not present, resolves to
-# the same directory that CATALINA_HOME points to.
-#
-# CATALINA_HOME (Optional) May point at your Catalina "build" directory.
-# If not present, the current working directory is assumed.
-#
-# CATALINA_OPTS (Optional) Java runtime options used when the "start",
-# "stop", or "run" command is executed.
-#
-# JAVA_HOME Must point at your Java Development Kit installation.
-#
-# JPDA_OPTS (Optional) Java runtime options used when the "jpda start"
-# command is executed. Defaults to
-# "-classic -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
-#
-# JSSE_HOME (Optional) May point at your Java Secure Sockets Extension
-# (JSSE) installation, whose JAR files will be added to the
-# system class path used to start Tomcat.
-#
-# $Id$
-# -----------------------------------------------------------------------------
-
-export JAVA_HOME=/usr/local/lib/IBMJava2-13
-export CATALINA_OPTS="-mx512m"
-
-
-# ----- Verify and Set Required Environment Variables -------------------------
-
-if [ -z "$CATALINA_HOME" ] ; then
- ## resolve links - $0 may be a link to home
- PRG=$0
- progname=`basename $0`
-
- while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '.*/.*' > /dev/null; then
- PRG="$link"
- else
- PRG="`dirname $PRG`/$link"
- fi
- done
-
- CATALINA_HOME_1=`dirname "$PRG"`/..
- echo "Guessing CATALINA_HOME from catalina.sh to ${CATALINA_HOME_1}"
- if [ -d ${CATALINA_HOME_1}/conf ] ; then
- CATALINA_HOME=${CATALINA_HOME_1}
- echo "Setting CATALINA_HOME to $CATALINA_HOME"
- fi
-fi
-
-if [ -z "$CATALINA_OPTS" ] ; then
- CATALINA_OPTS=""
-fi
-
-if [ -z "$JPDA_OPTS" ] ; then
- JPDA_OPTS="-classic -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
-fi
-
-if [ -z "$JAVA_HOME" ] ; then
- echo You must set JAVA_HOME to point at your Java Development Kit installation
- exit 1
-fi
-
-
-# ----- Cygwin Unix Paths Setup -----------------------------------------------
-
-# Cygwin support. $cygwin _must_ be set to either true or false.
-case "`uname`" in
- CYGWIN*) cygwin=true ;;
- *) cygwin=false ;;
-esac
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
- [ -n "$CATALINA_HOME" ] &&
- CATALINA_HOME=`cygpath --unix "$CATALINA_HOME"`
- [ -n "$JAVA_HOME" ] &&
- JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
-fi
-
-
-# ----- Set Up The System Classpath -------------------------------------------
-
-CP="$CATALINA_HOME/bin/bootstrap.jar"
-
-if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then
- CP=$CP:"$JAVA_HOME/lib/tools.jar"
-fi
-if [ -f "$JSSE_HOME/lib/jsse.jar" ] ; then
- CP=$CP:"$JSSE_HOME/lib/jcert.jar":"$JSSE_HOME/lib/jnet.jar":"$JSSE_HOME/lib/jsse.jar"
-fi
-
-
-# ----- Cygwin Windows Paths Setup --------------------------------------------
-
-# convert the existing path to windows
-if $cygwin ; then
- CP=`cygpath --path --windows "$CP"`
- CATALINA_HOME=`cygpath --path --windows "$CATALINA_HOME"`
- JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
-fi
-
-
-# ----- Set Up CATALINA_BASE If Necessary -------------------------------------
-
-if [ -z "$CATALINA_BASE" ] ; then
- CATALINA_BASE=$CATALINA_HOME
-fi
-
-
-# ----- Execute The Requested Command -----------------------------------------
-
-echo "Using CLASSPATH: $CP"
-echo "Using CATALINA_BASE: $CATALINA_BASE"
-echo "Using CATALINA_HOME: $CATALINA_HOME"
-echo "Using JAVA_HOME: $JAVA_HOME"
-
-if [ "$1" = "jpda" ] ; then
- CATALINA_OPTS="${CATALINA_OPTS} ${JPDA_OPTS}"
- shift
-fi
-
-if [ "$1" = "debug" ] ; then
-
- shift
- if [ "$1" = "-security" ] ; then
- shift
- $JAVA_HOME/bin/jdb \
- $CATALINA_OPTS \
- -sourcepath $CATALINA_HOME/../../jakarta-tomcat-4.0/catalina/src/share \
- -classpath $CP \
- -Dcatalina.base=$CATALINA_BASE \
- -Dcatalina.home=$CATALINA_HOME \
- org.apache.catalina.startup.Bootstrap "$@" start
- else
- $JAVA_HOME/bin/jdb \
- $CATALINA_OPTS \
- -sourcepath $CATALINA_HOME/../../jakarta-tomcat-4.0/catalina/src/share \
- -classpath $CP \
- -Dcatalina.base=$CATALINA_BASE \
- -Dcatalina.home=$CATALINA_HOME \
- org.apache.catalina.startup.Bootstrap "$@" start
- fi
-
-elif [ "$1" = "embedded" ] ; then
-
- shift
- for i in ${CATALINA_HOME}/server/lib/*.jar ; do
- CP=$i:${CP}
- done
- for i in ${CATALINA_HOME}/common/lib/*.jar ; do
- CP=$i:${CP}
- done
- echo Embedded Classpath: $CP
- $JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP \
- -Dcatalina.base=$CATALINA_BASE \
- -Dcatalina.home=$CATALINA_HOME \
- org.apache.catalina.startup.Embedded "$@"
-
-elif [ "$1" = "env" ] ; then
-
- export BP CATALINA_HOME CP
- exit 0
-
-elif [ "$1" = "run" ] ; then
-
- shift
- if [ "$1" = "-security" ] ; then
- echo Using Security Manager
- shift
- $JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP \
- -Djava.security.manager \
- -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy \
- -Dcatalina.base=$CATALINA_BASE \
- -Dcatalina.home=$CATALINA_HOME \
- org.apache.catalina.startup.Bootstrap "$@" start
- else
- $JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP \
- -Dcatalina.base=$CATALINA_BASE \
- -Dcatalina.home=$CATALINA_HOME \
- org.apache.catalina.startup.Bootstrap "$@" start
- fi
-
-elif [ "$1" = "start" ] ; then
-
- shift
- touch $CATALINA_BASE/logs/catalina.out
- if [ "$1" = "-security" ] ; then
- echo Using Security Manager
- shift
- $JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP \
- -Djava.security.manager \
- -Djava.security.policy==$CATALINA_BASE/conf/catalina.policy \
- -Dcatalina.base=$CATALINA_BASE \
- -Dcatalina.home=$CATALINA_HOME \
- org.apache.catalina.startup.Bootstrap "$@" start \
- >> $CATALINA_BASE/logs/catalina.out 2>&1 &
- else
- $JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP \
- -Dcatalina.base=$CATALINA_BASE \
- -Dcatalina.home=$CATALINA_HOME \
- org.apache.catalina.startup.Bootstrap "$@" start \
- >> $CATALINA_BASE/logs/catalina.out 2>&1 &
- fi
-
-elif [ "$1" = "stop" ] ; then
-
- shift
- $JAVA_HOME/bin/java $CATALINA_OPTS -classpath $CP \
- -Dcatalina.base=$CATALINA_BASE \
- -Dcatalina.home=$CATALINA_HOME \
- org.apache.catalina.startup.Bootstrap "$@" stop
-
-else
-
- echo "Usage: catalina.sh ( env | run | start | stop)"
- echo "Commands:"
- echo " debug Start Catalina in a debugger"
- echo " debug -security Debug Catalina with a security manager"
- echo " env Set up environment variables that would be used"
- echo " jpda start Start Catalina under JPDA debugger"
- echo " run Start Catalina in the current window"
- echo " run -security Start in the current window with security manager"
- echo " start Start Catalina in a separate window"
- echo " start -security Start in a separate window with security manager"
- echo " stop Stop Catalina"
- exit 1
-
-fi
diff -r 64f2cb1061a4 -r 12b5a3e04b13 config/tomcat/bin/rctomcat
--- a/config/tomcat/bin/rctomcat Wed Apr 20 15:25:59 2011 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,87 +0,0 @@
-#! /bin/sh
-#
-
-. /etc/rc.config
-
-# Determine the base and follow a runlevel link name.
-base=${0##*/}
-link=${base#*[SK][0-9][0-9]}
-
-# Force execution if not called by a runlevel directory.
-#test $link = $base && START_XNTPD=yes
-#test "$START_XNTPD" = yes || exit 0
-
-#
-# docuservers tomcat (ROC 2.11.01)
-#
-TOMCATLOG=/usr/local/httpd/logs/tomcat-err.log
-TOMCATDIR=/opt/tomcat
-
-TOMCAT_PID="";
-
-function tomcat_runs() {
-# we're looking at java vms executing org.apache.catalina.startup.Bootstrap
-#ALL_TOMS=$( ps xa | grep org.apache.catalina.startup | grep -v grep )
-#ALL_TOM_IDS=$( echo $ALL_TOMS | cut -d " " -f 1 )
-ALL_TOMS=$( pgrep -u wwwrun java )
-TOMCAT_PID=$( echo $ALL_TOMS | head -1 )
-test -n "$TOMCAT_PID"
-}
-
-return="$rc_done"
-
-case "$1" in
- start)
- echo -n "Starting Tomcat Servlet server "
- su - wwwrun -c "$TOMCATDIR/bin/startup.sh" >> $TOMCATLOG 2>&1 || return=$rc_failed
- echo -e "$return"
- ;;
- stop)
- echo -n "Stopping Tomcat Servlet server "
- if su - wwwrun -c "$TOMCATDIR/bin/shutdown.sh" >> $TOMCATLOG 2>&1
- then
- for i in 1 2 3 4 5
- do
- if tomcat_runs
- then
- return=$rc_failed
- echo -n "."
- sleep 2
- else
- return=$rc_done
- break
- fi
- done
- if tomcat_runs
- then
- echo -n " killing."
- kill $TOMCAT_PID
- sleep 2
- fi
- if tomcat_runs
- then
- return=$rc_failed
- else
- return=$rc_done
- fi
- else
- return=$rc_failed
- fi
-
- echo -e "$return"
- ;;
- reload|restart)
- $0 stop && $0 start || return=$rc_failed
- ;;
- status)
- echo -n "Checking for service tomcat: "
- tomcat_runs && echo OK || echo No process
- ;;
- *)
- echo "Usage: $0 {start|stop|status|reload|restart}"
- exit 1
-esac
-
-# Inform the caller not only verbosely and set an exit status.
-test "$return" = "$rc_done" || exit 1
-exit 0
diff -r 64f2cb1061a4 -r 12b5a3e04b13 config/tomcat/conf/server.xml
--- a/config/tomcat/conf/server.xml Wed Apr 20 15:25:59 2011 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff -r 64f2cb1061a4 -r 12b5a3e04b13 pom.xml
--- a/pom.xml Wed Apr 20 15:25:59 2011 +0200
+++ b/pom.xml Wed Apr 20 21:40:38 2011 +0200
@@ -8,12 +8,116 @@
pom
digilib
+ The Digital Image Library
http://digilib.berlios.de
+
+
+ itextpdf.com
+ Maven Repository for iText
+ http://maven.itextpdf.com/
+
+
+
+ geotools.osgeo.org
+ Geotools repository
+ http://download.osgeo.org/webdav/geotools/
+
+
+
+
+
+
+ digilib
+ digilib-servlet
+ 2.0-SNAPSHOT
+ jar
+ compile
+
+
+ digilib
+ digilib-webapp
+ 2.0-SNAPSHOT
+ war
+ compile
+
+
+ javax.media
+ jai_imageio
+ 1.1
+
+
+ javax.media
+ jai_codec
+ 1.1.3
+
+
+ javax.media
+ jai_core
+ 1.1.3
+
+
+ org.devlib.schmidt
+ imageinfo
+ 1.9
+ jar
+ compile
+
+
+ org.jdom
+ jdom
+ 1.1
+ jar
+ compile
+
+
+ log4j
+ log4j
+ 1.2.14
+ jar
+ compile
+
+
+ com.itextpdf
+ itextpdf
+ 5.0.4
+ compile
+
+
+ org.mortbay.jetty
+ servlet-api
+ 3.0.20100224
+ jar
+ provided
+
+
+
UTF-8
+ 2001
+
+
+ robcast
+ Robert Casties
+ robcast@berlios.de
+ Max Planck Institute for the History of Science
+ http://www.mpiwg-berlin.mpg.de
+
+
+
+
+ hertzhaft
+ Martin Raspe
+ hertzhaft@berlios.de
+ Bibliotheca Hertziana
+ http://www.biblhertz.it
+
+
+
+ http://hg.berlios.de/repos/digilib
+
diff -r 64f2cb1061a4 -r 12b5a3e04b13 servlet/pom.xml
--- a/servlet/pom.xml Wed Apr 20 15:25:59 2011 +0200
+++ b/servlet/pom.xml Wed Apr 20 21:40:38 2011 +0200
@@ -19,67 +19,51 @@
UTF-8
-
-
- itextpdf.com
- Maven Repository for iText
- http://maven.itextpdf.com/
-
-
-
- geotools.osgeo.org
- Geotools repository
- http://download.osgeo.org/webdav/geotools/
-
-
-
javax.media
jai_imageio
- 1.1
+ jar
+ compile
javax.media
jai_codec
- 1.1.3
+ jar
+ compile
javax.media
jai_core
- 1.1.3
+ jar
+ compile
org.devlib.schmidt
imageinfo
- 1.9
jar
compile
org.jdom
jdom
- 1.1
jar
compile
log4j
log4j
- 1.2.14
jar
compile
com.itextpdf
itextpdf
- 5.0.4
compile
org.mortbay.jetty
servlet-api
- 3.0.20100224
jar
provided
diff -r 64f2cb1061a4 -r 12b5a3e04b13 servlet/src/META-INF/MANIFEST.MF
--- a/servlet/src/META-INF/MANIFEST.MF Wed Apr 20 15:25:59 2011 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-