Daniel Quathamer
2 years ago
25 changed files with 363 additions and 439 deletions
@ -1,197 +0,0 @@
@@ -1,197 +0,0 @@
|
||||
#! /bin/sh |
||||
|
||||
# Copyright (c) 2001-2003 The Apache Software Foundation. All rights |
||||
# reserved. |
||||
|
||||
# load system-wide ant configuration |
||||
if [ -f "/etc/ant.conf" ] ; then |
||||
. /etc/ant.conf |
||||
fi |
||||
|
||||
# provide default values for people who don't use RPMs |
||||
if [ -z "$rpm_mode" ] ; then |
||||
rpm_mode=false; |
||||
fi |
||||
if [ -z "$usejikes" ] ; then |
||||
usejikes=false; |
||||
fi |
||||
|
||||
# load user ant configuration |
||||
if [ -f "$HOME/.antrc" ] ; then |
||||
. "$HOME/.antrc" |
||||
fi |
||||
|
||||
# OS specific support. $var _must_ be set to either true or false. |
||||
cygwin=false; |
||||
darwin=false; |
||||
case "`uname`" in |
||||
CYGWIN*) cygwin=true ;; |
||||
Darwin*) darwin=true |
||||
if [ -z "$JAVA_HOME" ] ; then |
||||
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home |
||||
fi |
||||
;; |
||||
esac |
||||
|
||||
if [ -z "$ANT_HOME" ] ; then |
||||
# try to find ANT |
||||
if [ -d /opt/ant ] ; then |
||||
ANT_HOME=/opt/ant |
||||
fi |
||||
|
||||
if [ -d "${HOME}/opt/ant" ] ; then |
||||
ANT_HOME="${HOME}/opt/ant" |
||||
fi |
||||
|
||||
## resolve links - $0 may be a link to ant's home |
||||
PRG="$0" |
||||
progname=`basename "$0"` |
||||
saveddir=`pwd` |
||||
|
||||
# need this for relative symlinks |
||||
dirname_prg=`dirname "$PRG"` |
||||
cd "$dirname_prg" |
||||
|
||||
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 |
||||
|
||||
ANT_HOME=`dirname "$PRG"`/.. |
||||
|
||||
cd "$saveddir" |
||||
|
||||
# make it fully qualified |
||||
ANT_HOME=`cd "$ANT_HOME" && pwd` |
||||
fi |
||||
|
||||
# For Cygwin, ensure paths are in UNIX format before anything is touched |
||||
if $cygwin ; then |
||||
[ -n "$ANT_HOME" ] && |
||||
ANT_HOME=`cygpath --unix "$ANT_HOME"` |
||||
[ -n "$JAVA_HOME" ] && |
||||
JAVA_HOME=`cygpath --unix "$JAVA_HOME"` |
||||
[ -n "$CLASSPATH" ] && |
||||
CLASSPATH=`cygpath --path --unix "$CLASSPATH"` |
||||
fi |
||||
|
||||
# set ANT_LIB location |
||||
ANT_LIB="${ANT_HOME}/lib" |
||||
|
||||
if [ -z "$JAVACMD" ] ; then |
||||
if [ -n "$JAVA_HOME" ] ; then |
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then |
||||
# IBM's JDK on AIX uses strange locations for the executables |
||||
JAVACMD="$JAVA_HOME/jre/sh/java" |
||||
else |
||||
JAVACMD="$JAVA_HOME/bin/java" |
||||
fi |
||||
else |
||||
JAVACMD=`which java 2> /dev/null ` |
||||
if [ -z "$JAVACMD" ] ; then |
||||
JAVACMD=java |
||||
fi |
||||
fi |
||||
fi |
||||
|
||||
if [ ! -x "$JAVACMD" ] ; then |
||||
echo "Error: JAVA_HOME is not defined correctly." |
||||
echo " We cannot execute $JAVACMD" |
||||
exit 1 |
||||
fi |
||||
|
||||
if [ -n "$CLASSPATH" ] ; then |
||||
LOCALCLASSPATH="$CLASSPATH" |
||||
fi |
||||
|
||||
# in rpm_mode get ant/optional/xml parser&api from JAVALIBDIR |
||||
if $rpm_mode; then |
||||
JAVALIBDIR=/usr/share/java |
||||
for i in ant ant-optional jaxp_parser xml_apis |
||||
do |
||||
if [ -z "$LOCALCLASSPATH" ] ; then |
||||
LOCALCLASSPATH="$JAVALIBDIR/$i.jar" |
||||
else |
||||
LOCALCLASSPATH="$JAVALIBDIR/$i.jar":"$LOCALCLASSPATH" |
||||
fi |
||||
done |
||||
|
||||
# in rpm mode ant/lib is in /usr/share/java/ant |
||||
ANT_LIB="${JAVALIBDIR}/ant" |
||||
fi |
||||
|
||||
# add in the dependency .jar files in non-RPM mode (the default) |
||||
for i in "${ANT_LIB}"/*.jar |
||||
do |
||||
# if the directory is empty, then it will return the input string |
||||
# this is stupid, so case for it |
||||
if [ -f "$i" ] ; then |
||||
if [ -z "$LOCALCLASSPATH" ] ; then |
||||
LOCALCLASSPATH="$i" |
||||
else |
||||
LOCALCLASSPATH="$i":"$LOCALCLASSPATH" |
||||
fi |
||||
fi |
||||
done |
||||
|
||||
if [ -n "$JAVA_HOME" ] ; then |
||||
if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then |
||||
LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/tools.jar" |
||||
fi |
||||
|
||||
if [ -f "$JAVA_HOME/lib/classes.zip" ] ; then |
||||
LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/classes.zip" |
||||
fi |
||||
|
||||
# OSX hack to make Ant work with jikes |
||||
if $darwin ; then |
||||
OSXHACK="${JAVA_HOME}/../Classes" |
||||
if [ -d "${OSXHACK}" ] ; then |
||||
for i in "${OSXHACK}"/*.jar |
||||
do |
||||
JIKESPATH="$JIKESPATH:$i" |
||||
done |
||||
fi |
||||
fi |
||||
else |
||||
echo "Warning: JAVA_HOME environment variable is not set (or not exported)." |
||||
echo " If build fails because sun.* classes could not be found" |
||||
echo " you will need to set the JAVA_HOME environment variable" |
||||
echo " to the installation directory of java." |
||||
fi |
||||
|
||||
# Allow Jikes support (off by default) |
||||
if $usejikes; then |
||||
ANT_OPTS="$ANT_OPTS -Dbuild.compiler=jikes" |
||||
fi |
||||
|
||||
# For Cygwin, switch paths to Windows format before running java |
||||
if $cygwin; then |
||||
ANT_HOME=`cygpath --windows "$ANT_HOME"` |
||||
JAVA_HOME=`cygpath --windows "$JAVA_HOME"` |
||||
CLASSPATH=`cygpath --path --windows "$CLASSPATH"` |
||||
LOCALCLASSPATH=`cygpath --path --windows "$LOCALCLASSPATH"` |
||||
CYGHOME=`cygpath --windows "$HOME"` |
||||
fi |
||||
|
||||
if [ -n "$CYGHOME" ]; then |
||||
if [ -n "$JIKESPATH" ]; then |
||||
JIKESPATH=`cygpath --path --windows "$JIKESPATH"` |
||||
"$JAVACMD" $ANT_OPTS -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" -Djikes.class.path="$JIKESPATH" -Dcygwin.user.home="$CYGHOME" org.apache.tools.ant.Main $ANT_ARGS "$@" |
||||
else |
||||
"$JAVACMD" $ANT_OPTS -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" -Dcygwin.user.home="$CYGHOME" org.apache.tools.ant.Main $ANT_ARGS "$@" |
||||
fi |
||||
else |
||||
if [ -n "$JIKESPATH" ]; then |
||||
"$JAVACMD" $ANT_OPTS -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" -Djikes.class.path="$JIKESPATH" org.apache.tools.ant.Main $ANT_ARGS "$@" |
||||
else |
||||
echo "$JAVACMD" $ANT_OPTS -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" org.apache.tools.ant.Main $ANT_ARGS "$@" |
||||
"$JAVACMD" $ANT_OPTS -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" org.apache.tools.ant.Main $ANT_ARGS "$@" |
||||
fi |
||||
fi |
||||
|
@ -1,96 +0,0 @@
@@ -1,96 +0,0 @@
|
||||
@echo off |
||||
|
||||
REM Copyright (c) 2001-2003 The Apache Software Foundation. All rights |
||||
REM reserved. |
||||
|
||||
if exist "%HOME%\antrc_pre.bat" call "%HOME%\antrc_pre.bat" |
||||
|
||||
if "%OS%"=="Windows_NT" @setlocal |
||||
|
||||
rem %~dp0 is expanded pathname of the current script under NT |
||||
set DEFAULT_ANT_HOME=%~dp0.. |
||||
|
||||
if "%ANT_HOME%"=="" set ANT_HOME=%DEFAULT_ANT_HOME% |
||||
set DEFAULT_ANT_HOME= |
||||
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number |
||||
rem of arguments (up to the command line limit, anyway). |
||||
set ANT_CMD_LINE_ARGS=%1 |
||||
if ""%1""=="""" goto doneStart |
||||
shift |
||||
:setupArgs |
||||
if ""%1""=="""" goto doneStart |
||||
set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1 |
||||
shift |
||||
goto setupArgs |
||||
rem This label provides a place for the argument list loop to break out |
||||
rem and for NT handling to skip to. |
||||
|
||||
:doneStart |
||||
rem find ANT_HOME if it does not exist due to either an invalid value passed |
||||
rem by the user or the %0 problem on Windows 9x |
||||
if exist "%ANT_HOME%\lib\ant.jar" goto checkJava |
||||
|
||||
rem check for ant in Program Files on system drive |
||||
if not exist "%SystemDrive%\Program Files\ant" goto checkSystemDrive |
||||
set ANT_HOME=%SystemDrive%\Program Files\ant |
||||
goto checkJava |
||||
|
||||
:checkSystemDrive |
||||
rem check for ant in root directory of system drive |
||||
if not exist %SystemDrive%\ant\lib\ant.jar goto checkCDrive |
||||
set ANT_HOME=%SystemDrive%\ant |
||||
goto checkJava |
||||
|
||||
:checkCDrive |
||||
rem check for ant in C:\ant for Win9X users |
||||
if not exist C:\ant\lib\ant.jar goto noAntHome |
||||
set ANT_HOME=C:\ant |
||||
goto checkJava |
||||
|
||||
:noAntHome |
||||
echo ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME. |
||||
goto end |
||||
|
||||
:checkJava |
||||
set _JAVACMD=%JAVACMD% |
||||
set LOCALCLASSPATH=%CLASSPATH% |
||||
for %%i in ("%ANT_HOME%\lib\*.jar") do call "%ANT_HOME%\bin\lcp.bat" %%i |
||||
|
||||
if "%JAVA_HOME%" == "" goto noJavaHome |
||||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome |
||||
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe |
||||
if exist "%JAVA_HOME%\lib\tools.jar" set LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;%LOCALCLASSPATH% |
||||
if exist "%JAVA_HOME%\lib\classes.zip" set LOCALCLASSPATH=%JAVA_HOME%\lib\classes.zip;%LOCALCLASSPATH% |
||||
goto checkJikes |
||||
|
||||
:noJavaHome |
||||
if "%_JAVACMD%" == "" set _JAVACMD=java.exe |
||||
echo. |
||||
echo Warning: JAVA_HOME environment variable is not set. |
||||
echo If build fails because sun.* classes could not be found |
||||
echo you will need to set the JAVA_HOME environment variable |
||||
echo to the installation directory of java. |
||||
echo. |
||||
|
||||
:checkJikes |
||||
if not "%JIKESPATH%"=="" goto runAntWithJikes |
||||
|
||||
:runAnt |
||||
"%_JAVACMD%" %ANT_OPTS% -classpath "%LOCALCLASSPATH%" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.Main %ANT_ARGS% %ANT_CMD_LINE_ARGS% |
||||
goto end |
||||
|
||||
:runAntWithJikes |
||||
"%_JAVACMD%" %ANT_OPTS% -classpath "%LOCALCLASSPATH%" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.Main %ANT_ARGS% %ANT_CMD_LINE_ARGS% |
||||
goto end |
||||
|
||||
:end |
||||
set LOCALCLASSPATH= |
||||
set _JAVACMD= |
||||
set ANT_CMD_LINE_ARGS= |
||||
|
||||
if "%OS%"=="Windows_NT" @endlocal |
||||
|
||||
:mainEnd |
||||
if exist "%HOME%\antrc_post.bat" call "%HOME%\antrc_post.bat" |
||||
|
@ -1,12 +0,0 @@
@@ -1,12 +0,0 @@
|
||||
#! /bin/sh |
||||
|
||||
# Copyright (c) 2001-2002 The Apache Software Foundation. All rights |
||||
# reserved. |
||||
|
||||
# Args: DIR command |
||||
cd "$1" |
||||
CMD="$2" |
||||
shift |
||||
shift |
||||
|
||||
exec "$CMD" "$@" |
@ -1,31 +0,0 @@
@@ -1,31 +0,0 @@
|
||||
@echo off |
||||
|
||||
REM Copyright (c) 2001-2002 The Apache Software Foundation. All rights |
||||
REM reserved. |
||||
|
||||
if "%OS%"=="Windows_NT" @setlocal |
||||
|
||||
if ""%1""=="""" goto runCommand |
||||
|
||||
rem Change drive and directory to %1 |
||||
if "%OS%"=="Windows_NT" cd /d ""%1"" |
||||
if not "%OS%"=="Windows_NT" cd ""%1"" |
||||
shift |
||||
|
||||
rem Slurp the command line arguments. This loop allows for an unlimited number |
||||
rem of agruments (up to the command line limit, anyway). |
||||
set ANT_RUN_CMD=%1 |
||||
if ""%1""=="""" goto runCommand |
||||
shift |
||||
:loop |
||||
if ""%1""=="""" goto runCommand |
||||
set ANT_RUN_CMD=%ANT_RUN_CMD% %1 |
||||
shift |
||||
goto loop |
||||
|
||||
:runCommand |
||||
rem echo %ANT_RUN_CMD% |
||||
%ANT_RUN_CMD% |
||||
|
||||
if "%OS%"=="Windows_NT" @endlocal |
||||
|
@ -1,51 +0,0 @@
@@ -1,51 +0,0 @@
|
||||
#!/usr/bin/perl |
||||
####################################################################### |
||||
# |
||||
# antRun.pl |
||||
# |
||||
# wrapper script for invoking commands on a platform with Perl installed |
||||
# this is akin to antRun.bat, and antRun the SH script |
||||
# |
||||
# created: 2001-10-18 |
||||
# last modified: 2001-11-13 |
||||
# author: Jeff Tulley jtulley@novell.com |
||||
####################################################################### |
||||
#be fussy about variables |
||||
use strict; |
||||
|
||||
#turn warnings on during dev; generates a few spurious uninitialised var access warnings |
||||
#use warnings; |
||||
|
||||
#and set $debug to 1 to turn on trace info (currently unused) |
||||
my $debug=1; |
||||
|
||||
####################################################################### |
||||
# change drive and directory to "%1" |
||||
my $ANT_RUN_CMD = @ARGV[0]; |
||||
|
||||
# assign current run command to "%2" |
||||
chdir (@ARGV[0]) || die "Can't cd to $ARGV[0]: $!\n"; |
||||
if ($^O eq "NetWare") { |
||||
# There is a bug in Perl 5 on NetWare, where chdir does not |
||||
# do anything. On NetWare, the following path-prefixed form should |
||||
# always work. (afaict) |
||||
$ANT_RUN_CMD .= "/".@ARGV[1]; |
||||
} |
||||
else { |
||||
$ANT_RUN_CMD = @ARGV[1]; |
||||
} |
||||
|
||||
# dispose of the first two arguments, leaving only the command's args. |
||||
shift; |
||||
shift; |
||||
|
||||
# run the command |
||||
my $returnValue = system $ANT_RUN_CMD, @ARGV; |
||||
if ($returnValue eq 0) { |
||||
exit 0; |
||||
} |
||||
else { |
||||
# only 0 and 1 are widely recognized as exit values |
||||
# so change the exit value to 1 |
||||
exit 1; |
||||
} |
@ -0,0 +1,80 @@
@@ -0,0 +1,80 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!--In diesem Script wird die edustore.xml für Modrian Version 4 erzeugt--> |
||||
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
||||
<xsl:template name="DimensionDate"> |
||||
<Dimension name="Datum" table="dim_datum" key="id" type="TIME"> |
||||
<Attributes> |
||||
<Attribute name="id" keyColumn="id" hasHierarchy="false" /> |
||||
<Attribute name="Jahr" keyColumn="year" levelType="TimeYears" hasHierarchy="false" /> |
||||
<Attribute name="Quartal" levelType="TimeQuarters" hasHierarchy="false"> |
||||
<Key> |
||||
<Column name="year" /> |
||||
<Column name="quarter" /> |
||||
</Key> |
||||
<Name> |
||||
<Column name="quarter" /> |
||||
</Name> |
||||
</Attribute> |
||||
<Attribute name="Monat" levelType="TimeMonths" hasHierarchy="false" orderByColumn="month"> |
||||
<Key> |
||||
<Column name="year" /> |
||||
<Column name="month" /> |
||||
</Key> |
||||
<Name> |
||||
<Column name="month_name" /> |
||||
</Name> |
||||
</Attribute> |
||||
<Attribute name="Tag im Monat" levelType="TimeDays" hasHierarchy="false"> |
||||
<Key> |
||||
<Column name="year" /> |
||||
<Column name="month" /> |
||||
<Column name="day_of_month" /> |
||||
</Key> |
||||
<Name> |
||||
<Column name="day_of_month" /> |
||||
</Name> |
||||
</Attribute> |
||||
<Attribute name="Wochentag" levelType="TimeDays" hasHierarchy="false" orderByColumn="day_of_week"> |
||||
<Key> |
||||
<Column name="year" /> |
||||
<Column name="month" /> |
||||
<Column name="day_of_month" /> |
||||
<Column name="day_of_week" /> |
||||
</Key> |
||||
<Name> |
||||
<Column name="day_name" /> |
||||
</Name> |
||||
</Attribute> |
||||
<Attribute name="Datum (Name)" levelType="TimeDays" hasHierarchy="false"> |
||||
<Key> |
||||
<Column name="year" /> |
||||
<Column name="month" /> |
||||
<Column name="day_date" /> |
||||
</Key> |
||||
<Name> |
||||
<Column name="day_desc" /> |
||||
</Name> |
||||
</Attribute> |
||||
<Attribute name="Semestername" keyColumn="semester" orderByColumn="semester_key" hasHierarchy="false" /> |
||||
<Attribute name="Semesterschlüssel" keyColumn="semester_key" hasHierarchy="false" /> |
||||
<Attribute name="Quartal hier." caption="Quartal" keyColumn="quarter"/> |
||||
<Attribute name="Monat hier." caption="Monat" orderByColumn="month" keyColumn="month_name"/> |
||||
<Attribute name="Wochentag hier." caption="Wochentag" orderByColumn="day_of_week" keyColumn="day_name"/> |
||||
</Attributes> |
||||
<Hierarchies> |
||||
<Hierarchy name="Datum" > |
||||
<Level attribute="Jahr" /> |
||||
<Level attribute="Quartal" /> |
||||
<Level attribute="Monat" /> |
||||
<Level attribute="Tag im Monat" /> |
||||
<Level attribute="Wochentag" /> |
||||
<Level attribute="Datum (Name)" /> |
||||
</Hierarchy> |
||||
<Hierarchy name="Semester" hasAll="true"> |
||||
<Level attribute="Semestername" /> |
||||
<Level attribute="Semesterschlüssel" /> |
||||
</Hierarchy> |
||||
</Hierarchies> |
||||
</Dimension> |
||||
</xsl:template> |
||||
</xsl:stylesheet> |
@ -0,0 +1,18 @@
@@ -0,0 +1,18 @@
|
||||
# Example crontab for user superx |
||||
# set EDITOR to vi, and enter |
||||
# crontab -e |
||||
# | | | | | |
||||
# | | | | - Wochentag (0=Sonntag) |
||||
# | | | | |
||||
# | | | - Monat (1-12) |
||||
# | | | |
||||
# | | - Tag (1-31) |
||||
# | | |
||||
# | - Stunde (0-23) |
||||
# | |
||||
# - Minute (0-59) |
||||
# |
||||
|
||||
# Täglicher SuperX-Update um 18 Uhr |
||||
# |
||||
00 18 * * 1-5 /home/superx/db/module/update.x >>/home/superx/db/module/update.log 2>&1 |
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash |
||||
#This is the central update script for SuperX. |
||||
#Activate it in your crontab with for example: |
||||
#15 20 * * * root su - superx -c "/home/superx/db/module/update.x" >update.log 2>&1 |
||||
#This entry in /etc/crontab starts the update exery night at 20:15 o'clock. |
||||
|
||||
. /home/superx/db/bin/SQL_ENV |
||||
LOG=$SUPERX_DIR/db/module/superx_update.log |
||||
#Stop Tomcat |
||||
$SUPERX_DIR/webserver/tomcat/bin/shutdown.sh >$LOG 2>&1 |
||||
#Dump Database |
||||
$SUPERX_DIR/db/install/dump_it.x >>$LOG 2>&1 |
||||
#Now the Modules are updated: |
||||
#uncomment this to release it (examples) |
||||
#$SOS_PFAD/sos_update.x >>$LOG 2>&1 |
||||
#$COB_PFAD/cob_update.x >>$LOG 2>&1 |
||||
#$SVA_PFAD/sva_update.x >>$LOG 2>&1 |
||||
$SUPERX_DIR/webserver/tomcat/bin/startup.sh >>$LOG 2>&1 |
||||
|
||||
|
Binary file not shown.
Loading…
Reference in new issue