xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">\r
<modelVersion>4.0.0</modelVersion>\r
- <groupId>org.argeo.slc</groupId>\r
+ <parent>\r
+ <groupId>org.argeo.slc</groupId>\r
+ <artifactId>argeo-slc</artifactId>\r
+ <version>0.5.1-SNAPSHOT</version>\r
+ <relativePath>../org.argeo.slc</relativePath>\r
+ </parent>\r
<artifactId>argeo-slc-core</artifactId>\r
<name>Argeo SLC Core</name>\r
- <version>0.5.1-SNAPSHOT</version>\r
<description>SLC Core</description>\r
<scm>\r
<connection>\r
- scm:svn:https://www.argeo.org/svn/slc/trunk/org.argeo.slc\r
+ scm:svn:https://www.argeo.org/svn/slc/trunk/org.argeo.slc.core\r
</connection>\r
- <developerConnection>\r
- scm:svn:https://www.argeo.org/svn/slc/trunk/org.argeo.slc\r
- </developerConnection>\r
- <url>https://www.argeo.org/svn/slc/trunk/org.argeo.slc</url>\r
+ <url>\r
+ https://www.argeo.org/svn/slc/trunk/org.argeo.slc.core\r
+ </url>\r
</scm>\r
- <issueManagement>\r
- <system>Bugzilla</system>\r
- <url>https://www.argeo.org/bugzilla/</url>\r
- </issueManagement>\r
- <licenses>\r
- <license>\r
- <name>Apache 2</name>\r
- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>\r
- <distribution>repo</distribution>\r
- <comments>A business-friendly OSS license</comments>\r
- </license>\r
- </licenses>\r
- <organization>\r
- <name>Argeo</name>\r
- <url>http://www.argeo.org</url>\r
- </organization>\r
- <developers>\r
- <developer>\r
- <id>mbaudier</id>\r
- <name>Mathieu Baudier</name>\r
- <email>mbaudier@argeo.org</email>\r
- <organization>Argeo</organization>\r
- <roles>\r
- <role>architect</role>\r
- <role>developer</role>\r
- </roles>\r
- <timezone>+1</timezone>\r
- </developer>\r
- </developers>\r
- <build>\r
- <plugins>\r
- <plugin>\r
- <groupId>org.apache.maven.plugins</groupId>\r
- <artifactId>maven-compiler-plugin</artifactId>\r
- <configuration>\r
- <source>1.5</source>\r
- <target>1.5</target>\r
- </configuration>\r
- </plugin>\r
- <plugin>\r
- <groupId>org.apache.maven.plugins</groupId>\r
- <artifactId>maven-source-plugin</artifactId>\r
- <executions>\r
- <execution>\r
- <id>attach-sources</id>\r
- <phase>verify</phase>\r
- <goals>\r
- <goal>jar</goal>\r
- </goals>\r
- </execution>\r
- </executions>\r
- </plugin>\r
- <plugin>\r
- <groupId>org.apache.maven.plugins</groupId>\r
- <artifactId>maven-assembly-plugin</artifactId>\r
- <configuration>\r
- <descriptors>\r
- <descriptor>\r
- src/assembly/with-dependencies.xml\r
- </descriptor>\r
- </descriptors>\r
- </configuration>\r
- <executions>\r
- <execution>\r
- <id>make-assembly</id>\r
- <phase>site</phase>\r
- <goals>\r
- <goal>attached</goal>\r
- </goals>\r
- </execution>\r
- </executions>\r
- </plugin>\r
- </plugins>\r
- </build>\r
- <reporting>\r
- <plugins>\r
- <plugin>\r
- <groupId>org.apache.maven.plugins</groupId>\r
- <artifactId>maven-surefire-report-plugin</artifactId>\r
- </plugin>\r
- <plugin>\r
- <groupId>org.apache.maven.plugins</groupId>\r
- <artifactId>maven-javadoc-plugin</artifactId>\r
- </plugin>\r
- <plugin>\r
- <groupId>org.apache.maven.plugins</groupId>\r
- <artifactId>maven-changelog-plugin</artifactId>\r
- </plugin>\r
- <plugin>\r
- <groupId>org.codehaus.mojo</groupId>\r
- <artifactId>cobertura-maven-plugin</artifactId>\r
- </plugin>\r
- </plugins>\r
- </reporting>\r
<dependencies>\r
<dependency>\r
<groupId>javax.transaction</groupId>\r
<artifactId>jta</artifactId>\r
- <version>1.0.1</version>\r
</dependency>\r
<dependency>\r
<groupId>log4j</groupId>\r
<artifactId>log4j</artifactId>\r
- <version>1.2.14</version>\r
</dependency>\r
<dependency>\r
<groupId>org.hibernate</groupId>\r
<artifactId>hibernate</artifactId>\r
- <version>3.2.5.ga</version>\r
</dependency>\r
<dependency>\r
<groupId>org.springframework</groupId>\r
<artifactId>spring</artifactId>\r
- <version>2.0.6</version>\r
</dependency>\r
<dependency>\r
<groupId>org.apache.ant</groupId>\r
<artifactId>ant</artifactId>\r
- <version>1.7.0</version>\r
</dependency>\r
<dependency>\r
<groupId>org.apache.commons</groupId>\r
<artifactId>commons-io</artifactId>\r
- <version>1.3.2</version>\r
</dependency>\r
<dependency>\r
<groupId>org.dbunit</groupId>\r
<artifactId>dbunit</artifactId>\r
- <version>2.2</version>\r
</dependency>\r
<dependency>\r
<groupId>junit</groupId>\r
<artifactId>junit</artifactId>\r
- <version>3.8.2</version>\r
</dependency>\r
<dependency>\r
<groupId>hsqldb</groupId>\r
<artifactId>hsqldb</artifactId>\r
- <version>1.8.0.9</version>\r
</dependency>\r
</dependencies>\r
- <dependencyManagement>\r
- <dependencies>\r
- <dependency>\r
- <groupId>javax.transaction</groupId>\r
- <artifactId>jta</artifactId>\r
- <version>1.0.1</version>\r
- </dependency>\r
- <dependency>\r
- <groupId>org.dbunit</groupId>\r
- <artifactId>dbunit</artifactId>\r
- <version>2.2</version>\r
- <exclusions>\r
- <exclusion>\r
- <groupId>junit-addons</groupId>\r
- <artifactId>junit-addons</artifactId>\r
- </exclusion>\r
- <exclusion>\r
- <groupId>poi</groupId>\r
- <artifactId>poi</artifactId>\r
- </exclusion>\r
- </exclusions>\r
- </dependency>\r
- </dependencies>\r
- </dependencyManagement>\r
- <repositories>\r
- <repository>\r
- <id>central</id>\r
- <url>http://www.argeo.org/maven/repository</url>\r
- </repository>\r
- </repositories>\r
</project>
\ No newline at end of file
+++ /dev/null
-<assembly>\r
- <id>with-dependencies</id>\r
- <formats>\r
- <format>zip</format>\r
- </formats>\r
- <fileSets>\r
- <fileSet>\r
- <directory>src/main/config</directory>\r
- <outputDirectory></outputDirectory>\r
- <includes>\r
- <include>**/*</include>\r
- </includes>\r
- </fileSet>\r
- <fileSet>\r
- <directory>target</directory>\r
- <outputDirectory>lib</outputDirectory>\r
- <includes>\r
- <include>*.jar</include>\r
- </includes>\r
- </fileSet>\r
- <fileSet>\r
- <directory>target/site</directory>\r
- <outputDirectory>doc</outputDirectory>\r
- <includes>\r
- <include>**/*</include>\r
- </includes>\r
- </fileSet>\r
- <fileSet>\r
- <directory>src</directory>\r
- </fileSet>\r
- </fileSets>\r
- <dependencySets>\r
- <dependencySet>\r
- <outputDirectory>lib</outputDirectory>\r
- </dependencySet>\r
- </dependencySets>\r
-</assembly>
\ No newline at end of file
+++ /dev/null
-#! /bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# Extract launch and ant arguments, (see details below).
-ant_exec_args=
-no_config=false
-use_jikes_default=false
-ant_exec_debug=false
-show_help=false
-for arg in "$@" ; do
- if [ "$arg" = "--noconfig" ] ; then
- no_config=true
- elif [ "$arg" = "--usejikes" ] ; then
- use_jikes_default=true
- elif [ "$arg" = "--execdebug" ] ; then
- ant_exec_debug=true
- elif [ my"$arg" = my"--h" -o my"$arg" = my"--help" ] ; then
- show_help=true
- ant_exec_args="$ant_exec_args -h"
- else
- if [ my"$arg" = my"-h" -o my"$arg" = my"-help" ] ; then
- show_help=true
- fi
- ant_exec_args="$ant_exec_args \"$arg\""
- fi
-done
-
-# Source/default ant configuration
-if $no_config ; then
- rpm_mode=false
- usejikes=$use_jikes_default
-else
- # load system-wide ant configuration (ONLY if ANT_HOME has NOT been set)
- if [ -z "$ANT_HOME" -o "$ANT_HOME" = "/usr/share/ant" ]; then
- if [ -f "/etc/ant.conf" ] ; then
- . /etc/ant.conf
- fi
- fi
-
- # load user ant configuration
- if [ -f "$HOME/.ant/ant.conf" ] ; then
- . $HOME/.ant/ant.conf
- fi
- if [ -f "$HOME/.antrc" ] ; then
- . "$HOME/.antrc"
- fi
-
- # provide default configuration values
- if [ -z "$rpm_mode" ] ; then
- rpm_mode=false
- fi
- if [ -z "$usejikes" ] ; then
- usejikes=$use_jikes_default
- fi
-fi
-
-# Setup Java environment in rpm mode
-if $rpm_mode ; then
- if [ -f /usr/share/java-utils/java-functions ] ; then
- . /usr/share/java-utils/java-functions
- set_jvm
- set_javacmd
- fi
-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" -o ! -d "$ANT_HOME" ] ; then
- ## resolve links - $0 may be a link to ant's home
- PRG="$0"
- progname=`basename "$0"`
-
- # need this for relative symlinks
- 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"`/..
-
- # 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"`
-fi
-
-# set ANT_LIB location
-ANT_LIB="${ANT_HOME}/lib"
-
-if [ -z "$JAVACMD" ] ; then
- if [ -n "$JAVA_HOME" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- JAVACMD="$JAVA_HOME/jre/sh/java"
- elif [ -x "$JAVA_HOME/jre/bin/java" ] ; then
- JAVACMD="$JAVA_HOME/jre/bin/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
-
-# Build local classpath using just the launcher in non-rpm mode or
-# use the Jpackage helper in rpm mode with basic and default jars
-# specified in the ant.conf configuration. Because the launcher is
-# used, libraries linked in ANT_HOME/lib will also be included, but this
-# is discouraged as it is not java-version safe. A user should
-# request optional jars and their dependencies via the OPT_JAR_LIST
-# variable
-if $rpm_mode && [ -x /usr/bin/build-classpath ] ; then
- LOCALCLASSPATH="$(/usr/bin/build-classpath ant ant-launcher jaxp_parser_impl xml-commons-apis)"
-
- # If no optional jars have been specified then build the default list
- if [ -z "$OPT_JAR_LIST" ] ; then
- for file in /etc/ant.d/*; do
- if [ -f "$file" ]; then
- case "$file" in
- *~) ;;
- *#*) ;;
- *.rpmsave) ;;
- *.rpmnew) ;;
- *)
- for dep in `cat "$file"`; do
- case "$OPT_JAR_LIST" in
- *"$dep"*) ;;
- *) OPT_JAR_LIST="$OPT_JAR_LIST${OPT_JAR_LIST:+ }$dep"
- esac
- done
- esac
- fi
- done
- fi
-
- # If the user requested to try to add some other jars to the classpath
- if [ -n "$OPT_JAR_LIST" ] ; then
- _OPTCLASSPATH="$(/usr/bin/build-classpath $OPT_JAR_LIST 2> /dev/null)"
- if [ -n "$_OPTCLASSPATH" ] ; then
- LOCALCLASSPATH="$LOCALCLASSPATH:$_OPTCLASSPATH"
- fi
- fi
-
- # Explicitly add javac path to classpath, assume JAVA_HOME set
- # properly in rpm mode
- 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
-
- # if CLASSPATH_OVERRIDE env var is set, LOCALCLASSPATH will be
- # user CLASSPATH first and ant-found jars after.
- # In that case, the user CLASSPATH will override ant-found jars
- #
- # if CLASSPATH_OVERRIDE is not set, we'll have the normal behaviour
- # with ant-found jars first and user CLASSPATH after
- if [ -n "$CLASSPATH" ] ; then
- # merge local and specified classpath
- if [ -z "$LOCALCLASSPATH" ] ; then
- LOCALCLASSPATH="$CLASSPATH"
- elif [ -n "$CLASSPATH_OVERRIDE" ] ; then
- LOCALCLASSPATH="$CLASSPATH:$LOCALCLASSPATH"
- else
- LOCALCLASSPATH="$LOCALCLASSPATH:$CLASSPATH"
- fi
-
- # remove class path from launcher -cp option
- CLASSPATH=""
- fi
-else
- # not using rpm_mode; use launcher to determine classpaths
- if [ -z "$LOCALCLASSPATH" ] ; then
- LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar
- else
- LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar:$LOCALCLASSPATH
- fi
-fi
-
-if [ -n "$JAVA_HOME" ] ; then
- # 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
-fi
-
-# Allow Jikes support (off by default)
-if $usejikes; then
- ANT_OPTS="$ANT_OPTS -Dbuild.compiler=jikes"
-fi
-
-# For Cygwin, switch paths to appropriate format before running java
-# For PATHs convert to unix format first, then to windows format to ensure
-# both formats are supported. Probably this will fail on directories with ;
-# in the name in the path. Let's assume that paths containing ; are more
-# rare than windows style paths on cygwin.
-if $cygwin; then
- if [ "$OS" = "Windows_NT" ] && cygpath -m .>/dev/null 2>/dev/null ; then
- format=mixed
- else
- format=windows
- fi
- ANT_HOME=`cygpath --$format "$ANT_HOME"`
- ANT_LIB=`cygpath --$format "$ANT_LIB"`
- JAVA_HOME=`cygpath --$format "$JAVA_HOME"`
- LCP_TEMP=`cygpath --path --unix "$LOCALCLASSPATH"`
- LOCALCLASSPATH=`cygpath --path --$format "$LCP_TEMP"`
- if [ -n "$CLASSPATH" ] ; then
- CP_TEMP=`cygpath --path --unix "$CLASSPATH"`
- CLASSPATH=`cygpath --path --$format "$CP_TEMP"`
- fi
- CYGHOME=`cygpath --$format "$HOME"`
-fi
-
-# Show script help if requested
-if $show_help ; then
- echo $0 '[script options] [options] [target [target2 [target3] ..]]'
- echo 'Script Options:'
- echo ' --help, --h print this message and ant help'
- echo ' --noconfig suppress sourcing of /etc/ant.conf,'
- echo ' $HOME/.ant/ant.conf, and $HOME/.antrc'
- echo ' configuration files'
- echo ' --usejikes enable use of jikes by default, unless'
- echo ' set explicitly in configuration files'
- echo ' --execdebug print ant exec line generated by this'
- echo ' launch script'
- echo ' '
-fi
-# add a second backslash to variables terminated by a backslash under cygwin
-if $cygwin; then
- case "$ANT_HOME" in
- *\\ )
- ANT_HOME="$ANT_HOME\\"
- ;;
- esac
- case "$CYGHOME" in
- *\\ )
- CYGHOME="$CYGHOME\\"
- ;;
- esac
- case "$JIKESPATH" in
- *\\ )
- JIKESPATH="$JIKESPATH\\"
- ;;
- esac
- case "$LOCALCLASSPATH" in
- *\\ )
- LOCALCLASSPATH="$LOCALCLASSPATH\\"
- ;;
- esac
- case "$CLASSPATH" in
- *\\ )
- CLASSPATH="$CLASSPATH\\"
- ;;
- esac
-fi
-# Execute ant using eval/exec to preserve spaces in paths,
-# java options, and ant args
-ant_sys_opts=
-if [ -n "$CYGHOME" ]; then
- if [ -n "$JIKESPATH" ]; then
- ant_sys_opts="-Djikes.class.path=\"$JIKESPATH\" -Dcygwin.user.home=\"$CYGHOME\""
- else
- ant_sys_opts="-Dcygwin.user.home=\"$CYGHOME\""
- fi
-else
- if [ -n "$JIKESPATH" ]; then
- ant_sys_opts="-Djikes.class.path=\"$JIKESPATH\""
- fi
-fi
-ant_exec_command="exec \"$JAVACMD\" $ANT_OPTS -classpath \"$LOCALCLASSPATH\" -Dant.home=\"$ANT_HOME\" -Dant.library.dir=\"$ANT_LIB\" $ant_sys_opts org.apache.tools.ant.launch.Launcher $ANT_ARGS -cp \"$CLASSPATH\" $ant_exec_args"
-if $ant_exec_debug ; then
- echo $ant_exec_command
-fi
-eval $ant_exec_command
+++ /dev/null
-@echo off\r
-\r
-REM Licensed to the Apache Software Foundation (ASF) under one or more\r
-REM contributor license agreements. See the NOTICE file distributed with\r
-REM this work for additional information regarding copyright ownership.\r
-REM The ASF licenses this file to You under the Apache License, Version 2.0\r
-REM (the "License"); you may not use this file except in compliance with\r
-REM the License. You may obtain a copy of the License at\r
-REM \r
-REM http://www.apache.org/licenses/LICENSE-2.0\r
-REM \r
-REM Unless required by applicable law or agreed to in writing, software\r
-REM distributed under the License is distributed on an "AS IS" BASIS,\r
-REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-REM See the License for the specific language governing permissions and\r
-REM limitations under the License.\r
-\r
-REM This is an inordinately troublesome piece of code, particularly because it\r
-REM tries to work on both Win9x and WinNT-based systems. If we could abandon '9x\r
-REM support, things would be much easier, but sadly, it is not yet time.\r
-REM Be cautious about editing this, and only add WinNT specific stuff in code that\r
-REM only runs on WinNT.\r
-\r
-if "%HOME%"=="" goto homeDrivePathPre\r
-if exist "%HOME%\antrc_pre.bat" call "%HOME%\antrc_pre.bat"\r
-\r
-:homeDrivePathPre\r
-if "%HOMEDRIVE%%HOMEPATH%"=="" goto userProfilePre\r
-if "%HOMEDRIVE%%HOMEPATH%"=="%HOME%" goto userProfilePre\r
-if exist "%HOMEDRIVE%%HOMEPATH%\antrc_pre.bat" call "%HOMEDRIVE%%HOMEPATH%\antrc_pre.bat"\r
-\r
-:userProfilePre\r
-if "%USERPROFILE%"=="" goto alpha\r
-if "%USERPROFILE%"=="%HOME%" goto alpha\r
-if "%USERPROFILE%"=="%HOMEDRIVE%%HOMEPATH%" goto alpha\r
-if exist "%USERPROFILE%\antrc_pre.bat" call "%USERPROFILE%\antrc_pre.bat"\r
-\r
-:alpha\r
-\r
-if "%OS%"=="Windows_NT" @setlocal\r
-if "%OS%"=="WINNT" @setlocal\r
-\r
-if "%ANT_HOME%"=="" goto setDefaultAntHome\r
-\r
-:stripAntHome\r
-if not _%ANT_HOME:~-1%==_\ goto checkClasspath\r
-set ANT_HOME=%ANT_HOME:~0,-1%\r
-goto stripAntHome\r
-\r
-:setDefaultAntHome\r
-rem %~dp0 is expanded pathname of the current script under NT\r
-set ANT_HOME=%~dp0..\r
-\r
-:checkClasspath\r
-set _USE_CLASSPATH=yes\r
-rem CLASSPATH must not be used if it is equal to ""\r
-if "%CLASSPATH%"=="""" set _USE_CLASSPATH=no\r
-if "%CLASSPATH%"=="" set _USE_CLASSPATH=no\r
-\r
-rem Slurp the command line arguments. This loop allows for an unlimited number\r
-rem of arguments (up to the command line limit, anyway).\r
-set ANT_CMD_LINE_ARGS=%1\r
-if ""%1""=="""" goto doneStart\r
-shift\r
-:setupArgs\r
-if ""%1""=="""" goto doneStart\r
-if ""%1""==""-noclasspath"" goto clearclasspath\r
-set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1\r
-shift\r
-goto setupArgs\r
-\r
-rem here is there is a -noclasspath in the options\r
-:clearclasspath\r
-set _USE_CLASSPATH=no\r
-shift\r
-goto setupArgs\r
-\r
-rem This label provides a place for the argument list loop to break out\r
-rem and for NT handling to skip to.\r
-\r
-:doneStart\r
-\r
-if _USE_CLASSPATH==no goto findAntHome\r
-\r
-:stripClasspath\r
-if not _%CLASSPATH:~-1%==_\ goto findAntHome\r
-set CLASSPATH=%CLASSPATH:~0,-1%\r
-goto stripClasspath\r
-\r
-:findAntHome\r
-rem find ANT_HOME if it does not exist due to either an invalid value passed\r
-rem by the user or the %0 problem on Windows 9x\r
-if exist "%ANT_HOME%\lib\ant.jar" goto checkJava\r
-\r
-rem check for ant in Program Files\r
-if not exist "%ProgramFiles%\ant" goto checkSystemDrive\r
-set ANT_HOME=%ProgramFiles%\ant\r
-goto checkJava\r
-\r
-:checkSystemDrive\r
-rem check for ant in root directory of system drive\r
-if not exist %SystemDrive%\ant\lib\ant.jar goto checkCDrive\r
-set ANT_HOME=%SystemDrive%\ant\r
-goto checkJava\r
-\r
-:checkCDrive\r
-rem check for ant in C:\ant for Win9X users\r
-if not exist C:\ant\lib\ant.jar goto noAntHome\r
-set ANT_HOME=C:\ant\r
-goto checkJava\r
-\r
-:noAntHome\r
-echo ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME.\r
-goto end\r
-\r
-:checkJava\r
-set _JAVACMD=%JAVACMD%\r
-\r
-if "%JAVA_HOME%" == "" goto noJavaHome\r
-if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome\r
-if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe\r
-goto checkJikes\r
-\r
-:noJavaHome\r
-if "%_JAVACMD%" == "" set _JAVACMD=java.exe\r
-\r
-:checkJikes\r
-if not "%JIKESPATH%"=="" goto runAntWithJikes\r
-\r
-:runAnt\r
-if "%_USE_CLASSPATH%"=="no" goto runAntNoClasspath\r
-:runAntWithClasspath\r
-"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp "%CLASSPATH%" %ANT_CMD_LINE_ARGS%\r
-rem Check the error code of the Ant build\r
-if not "%OS%"=="Windows_NT" goto onError\r
-set ANT_ERROR=%ERRORLEVEL%\r
-goto end\r
-\r
-:runAntNoClasspath\r
-"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS%\r
-rem Check the error code of the Ant build\r
-if not "%OS%"=="Windows_NT" goto onError\r
-set ANT_ERROR=%ERRORLEVEL%\r
-goto end\r
-\r
-:runAntWithJikes\r
-\r
-if not _%JIKESPATH:~-1%==_\ goto checkJikesAndClasspath\r
-set JIKESPATH=%JIKESPATH:~0,-1%\r
-goto runAntWithJikes\r
-\r
-:checkJikesAndClasspath\r
-\r
-if "%_USE_CLASSPATH%"=="no" goto runAntWithJikesNoClasspath\r
-\r
-:runAntWithJikesAndClasspath\r
-"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp "%CLASSPATH%" %ANT_CMD_LINE_ARGS%\r
-rem Check the error code of the Ant build\r
-if not "%OS%"=="Windows_NT" goto onError\r
-set ANT_ERROR=%ERRORLEVEL%\r
-goto end\r
-\r
-:runAntWithJikesNoClasspath\r
-"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS%\r
-rem Check the error code of the Ant build\r
-if not "%OS%"=="Windows_NT" goto onError\r
-set ANT_ERROR=%ERRORLEVEL%\r
-goto end\r
-\r
-:onError\r
-rem Windows 9x way of checking the error code. It matches via brute force.\r
-for %%i in (1 10 100) do set err%%i=\r
-for %%i in (0 1 2) do if errorlevel %%i00 set err100=%%i\r
-if %err100%==2 goto onError200\r
-if %err100%==0 set err100=\r
-for %%i in (0 1 2 3 4 5 6 7 8 9) do if errorlevel %err100%%%i0 set err10=%%i\r
-if "%err100%"=="" if %err10%==0 set err10=\r
-:onError1\r
-for %%i in (0 1 2 3 4 5 6 7 8 9) do if errorlevel %err100%%err10%%%i set err1=%%i\r
-goto onErrorEnd\r
-:onError200\r
-for %%i in (0 1 2 3 4 5) do if errorlevel 2%%i0 set err10=%%i\r
-if err10==5 for %%i in (0 1 2 3 4 5) do if errorlevel 25%%i set err1=%%i\r
-if not err10==5 goto onError1\r
-:onErrorEnd\r
-set ANT_ERROR=%err100%%err10%%err1%\r
-for %%i in (1 10 100) do set err%%i=\r
-\r
-:end\r
-rem bug ID 32069: resetting an undefined env variable changes the errorlevel.\r
-if not "%_JAVACMD%"=="" set _JAVACMD=\r
-if not "%_ANT_CMD_LINE_ARGS%"=="" set ANT_CMD_LINE_ARGS=\r
-\r
-if "%ANT_ERROR%"=="0" goto mainEnd\r
-\r
-rem Set the return code if we are not in NT. We can only set\r
-rem a value of 1, but it's better than nothing.\r
-if not "%OS%"=="Windows_NT" echo 1 > nul | choice /n /c:1\r
-\r
-rem Set the ERRORLEVEL if we are running NT.\r
-if "%OS%"=="Windows_NT" color 00\r
-\r
-goto omega\r
-\r
-:mainEnd\r
-\r
-rem If there were no errors, we run the post script.\r
-if "%OS%"=="Windows_NT" @endlocal\r
-if "%OS%"=="WINNT" @endlocal\r
-\r
-if "%HOME%"=="" goto homeDrivePathPost\r
-if exist "%HOME%\antrc_post.bat" call "%HOME%\antrc_post.bat"\r
-\r
-:homeDrivePathPost\r
-if "%HOMEDRIVE%%HOMEPATH%"=="" goto userProfilePost\r
-if "%HOMEDRIVE%%HOMEPATH%"=="%HOME%" goto userProfilePost\r
-if exist "%HOMEDRIVE%%HOMEPATH%\antrc_post.bat" call "%HOMEDRIVE%%HOMEPATH%\antrc_post.bat"\r
-\r
-:userProfilePost\r
-if "%USERPROFILE%"=="" goto omega\r
-if "%USERPROFILE%"=="%HOME%" goto omega\r
-if "%USERPROFILE%"=="%HOMEDRIVE%%HOMEPATH%" goto omega\r
-if exist "%USERPROFILE%\antrc_post.bat" call "%USERPROFILE%\antrc_post.bat"\r
-\r
-:omega\r
-\r
+++ /dev/null
-<!--\r
-$HeadURL$\r
-$Revision$\r
-$LastChangedDate$\r
--->\r
-<project>\r
- <macrodef name="compile">\r
- <attribute name="srcdir" />\r
- <attribute name="artifact" />\r
- <attribute name="classpathref" default="cp.main" />\r
- <sequential>\r
- <mkdir dir="${compile.base}/@{artifact}" />\r
- <javac destdir="${compile.base}/@{artifact}"\r
- srcdir="@{srcdir}" debug="on" fork="true"\r
- includeantruntime="false">\r
- <classpath>\r
- <path refid="@{classpathref}" />\r
- </classpath>\r
- </javac>\r
- </sequential>\r
- </macrodef>\r
-\r
- <macrodef name="createJar">\r
- <attribute name="srcdir" />\r
- <attribute name="artifact" />\r
- <sequential>\r
- <jar destfile="${dist.jar}/@{artifact}.jar">\r
- <zipfileset dir="@{srcdir}">\r
- <exclude name="**/*.java" />\r
- <exclude name="**/package.html" />\r
- <include name="**/*.*" />\r
- </zipfileset>\r
- <zipfileset dir="${compile.base}/@{artifact}">\r
- <include name="**/*.*" />\r
- </zipfileset>\r
- <manifest>\r
- <attribute name="Specification-Title"\r
- value="${package.prefix}" />\r
- <attribute name="Specification-Version"\r
- value="${package.version}" />\r
- <attribute name="Implementation-Title"\r
- value="@{artifact}" />\r
- <attribute name="Implementation-Version"\r
- value="${package.releaseId}" />\r
- </manifest>\r
- </jar>\r
- </sequential>\r
- </macrodef>\r
- \r
- <macrodef name="createSourcesJar">\r
- <attribute name="srcdir" />\r
- <attribute name="artifact" />\r
- <sequential>\r
- <jar destfile="${dist.lib-src}/@{artifact}-sources.jar">\r
- <zipfileset dir="@{srcdir}">\r
- <include name="**/*" />\r
- </zipfileset>\r
- <manifest>\r
- <attribute name="Specification-Title"\r
- value="${package.prefix} Sources" />\r
- <attribute name="Specification-Version"\r
- value="${package.version}" />\r
- <attribute name="Implementation-Title"\r
- value="@{artifact} Sources" />\r
- <attribute name="Implementation-Version"\r
- value="${package.releaseId}" />\r
- </manifest>\r
- </jar>\r
- </sequential>\r
- </macrodef>\r
-\r
- <macrodef name="api">\r
- <attribute name="srcdir" />\r
- <attribute name="artifact" />\r
- <attribute name="classpathref" default="cp.main" />\r
- <element name="links" optional="true" />\r
- <sequential>\r
- <javadoc access="protected"\r
- destdir="${dist.doc}/@{artifact}/api" source="1.5"\r
- sourcepath="@{srcDir}"\r
- doctitle="API of @{artifact} (v${package.releaseId})"\r
- windowtitle="@{artifact} v${package.version}">\r
- <classpath>\r
- <path refid="@{classpathref}" />\r
- </classpath>\r
- <link href="http://java.sun.com/j2se/1.5.0/docs/api/" />\r
- <link\r
- href="http://static.springframework.org/spring/docs/2.0.x/api/" />\r
- <link href="http://www.hibernate.org/hib_docs/v3/api/" />\r
- <links />\r
- </javadoc>\r
- </sequential>\r
- </macrodef>\r
-</project>
\ No newline at end of file
+++ /dev/null
-<!--\r
-$HeadURL$\r
-$Revision$\r
-$LastChangedDate$\r
--->\r
-<project default="all">\r
- <!-- TO BE OVERRIDDEN -->\r
- <property name="package.type" value="I" />\r
- <property name="main.artifact" value="${package.prefix}" />\r
- <property name="test.artifact" value="${package.prefix}-test" />\r
-\r
- <property name="main.srcdir" location="src/main/java" />\r
- <property name="main.libdir" location="lib" />\r
- <property name="main.libdir-src" location="lib-src" />\r
- <property name="test.srcdir" location="src/test/java" />\r
-\r
- <property name="package.base" location="target/package/" />\r
-\r
- <property name="dist.base" location="target/dist/" />\r
- <property name="dist.doc" location="${dist.base}/doc" />\r
- <property name="dist.lib" location="${dist.base}/lib" />\r
- <property name="dist.lib-src" location="${dist.base}/lib-src" />\r
- <property name="dist.build" location="${dist.base}/build" />\r
- <property name="dist.junit" location="${dist.build}/junit" />\r
- <property name="dist.appli" location="${dist.base}/appli" />\r
-\r
- <property name="dist.jar" location="target/jar" />\r
-\r
- <property name="compile.base" location="target/compile" />\r
- <property name="slc.base" location="target/slc" />\r
-\r
- <path id="cp.main">\r
- <fileset dir="${main.libdir}">\r
- <include name="**/*.jar" />\r
- </fileset>\r
- </path>\r
-\r
- <path id="cp.test">\r
- <fileset dir="${main.libdir}">\r
- <include name="**/*.jar" />\r
- </fileset>\r
- <pathelement location="${dist.jar}/${main.artifact}.jar" />\r
- </path>\r
-\r
- <import file="slc-factory-macrodefs.xml" />\r
-\r
- <target name="all" depends="dist.package">\r
- <echo message="Build of ${package.name} completed" />\r
- <record name="${dist.build}/build.log" action="stop" />\r
- </target>\r
-\r
- <target name="basePackage" depends="dist.basePackage">\r
- <echo message="Build of ${package.name} completed" />\r
- <record name="${dist.build}/build.log" action="stop" />\r
- </target>\r
-\r
- <target name="clean">\r
- <delete dir="${dist.jar}" />\r
- <delete dir="${slc.base}" />\r
- <delete dir="${dist.base}" />\r
- <delete dir="${package.base}" />\r
- <delete dir="${compile.base}" />\r
- </target>\r
-\r
-\r
- <target name="init">\r
- <!-- To be overriden -->\r
- </target>\r
-\r
- <target name="init.internal">\r
- <mkdir dir="${dist.build}"/>\r
- <record name="${dist.build}/build.log" action="start" append="true"/>\r
- <fail unless="package.version"\r
- message="Property 'package.version' must be set" />\r
- <fail unless="package.prefix"\r
- message="Property 'package.prefix' must be set" />\r
-\r
- <tstamp>\r
- <format property="package.tstamp" pattern="yyMMddHHmmss" />\r
- </tstamp>\r
- <property name="package.releaseId"\r
- value="${package.version}.${package.tstamp}${package.type}" />\r
-\r
- <property name="package.name"\r
- value="${package.prefix}-${package.releaseId}" />\r
- <property name="basePackage.name" value="${package.prefix}-base" />\r
-\r
- <mkdir dir="${dist.jar}" />\r
- <mkdir dir="${slc.base}" />\r
- <mkdir dir="${dist.base}" />\r
- <mkdir dir="${dist.lib-src}" />\r
- <mkdir dir="${package.base}" />\r
- <mkdir dir="${compile.base}" />\r
-\r
- <echo message="Build of ${package.name} started." />\r
- </target>\r
-\r
- <target name="init.slcbase" if="slc.basePackage">\r
- <unzip dest="${slc.base}" src="${slc.basePackage}" />\r
-\r
- <copy todir="${dist.base}" overwrite="true" verbose="true">\r
- <fileset dir="${slc.base}">\r
- <include name="doc/argeo-slc/**" />\r
- <include name="bin/*" />\r
- </fileset>\r
- </copy>\r
-\r
- <copy todir="${main.libdir}" overwrite="true" verbose="true">\r
- <fileset dir="${slc.base}/lib">\r
- <include name="*" />\r
- </fileset>\r
- </copy>\r
- <copy todir="${main.libdir-src}" overwrite="true" verbose="true">\r
- <fileset dir="${slc.base}/lib-src">\r
- <include name="*" />\r
- </fileset>\r
- </copy>\r
- </target>\r
-\r
- <target name="build.main" depends="init.internal,init.slcbase,init">\r
- <compile artifact="${main.artifact}" srcdir="${main.srcdir}" />\r
- </target>\r
-\r
- <target name="jar.main" depends="build.main">\r
- <createJar artifact="${main.artifact}" srcdir="${main.srcdir}" />\r
- </target>\r
-\r
- <target name="build.test" depends="jar.main">\r
- <compile artifact="${test.artifact}"\r
- srcdir="${test.srcdir}"\r
- classpathref="cp.test" />\r
- </target>\r
-\r
- <target name="jar.sources" unless="flag.noSources">\r
- <createSourcesJar artifact="${main.artifact}" srcdir="${main.srcdir}" />\r
- </target>\r
-\r
- <target name="jar.test" depends="build.test">\r
- <createJar artifact="${test.artifact}" srcdir="${test.srcdir}" />\r
- </target>\r
-\r
- <target name="dist.unittest" depends="jar.test">\r
- <mkdir dir="${dist.junit}/xml" />\r
- <junit printsummary="yes" haltonfailure="no">\r
- <classpath>\r
- <path refid="cp.test" />\r
- <path location="${dist.jar}/${test.artifact}.jar" />\r
- </classpath>\r
-\r
- <formatter type="xml" />\r
-\r
- <batchtest fork="yes" todir="${dist.junit}/xml">\r
- <fileset dir="${test.srcdir}">\r
- <include name="**/*Test*.java" />\r
- <exclude name="**/Abstract*.java" />\r
- <exclude name="**/*TestDef*.java" />\r
- <exclude name="**/*TestData*.java" />\r
- </fileset>\r
- </batchtest>\r
- </junit>\r
-\r
- <junitreport todir="${dist.junit}">\r
- <fileset dir="${dist.junit}/xml">\r
- <include name="*.xml" />\r
- </fileset>\r
- <report format="frames" todir="${dist.junit}" />\r
- </junitreport>\r
- </target>\r
-\r
- <target name="package.common"\r
- depends="dist.unittest,jar.sources,dist.api,dist.apiWithSlc,dist.dependencies,dist.appli">\r
- </target>\r
-\r
- <target name="dist.package" depends="package.common">\r
- <copy todir="${dist.base}">\r
- <fileset dir="src/main/config" includes="**/*" />\r
- </copy>\r
- <copy todir="${dist.lib}">\r
- <fileset dir="${dist.jar}" includes="*.jar" excludes="*-test.jar" />\r
- </copy>\r
-\r
- <zip destfile="${package.base}/${package.name}.zip">\r
- <zipfileset dir="${dist.base}"\r
- prefix="${package.prefix}-${package.version}">\r
- <include name="**/*" />\r
- </zipfileset>\r
- </zip>\r
- </target>\r
-\r
- <target name="dist.basePackage" depends="package.common">\r
- <copy todir="${dist.base}">\r
- <fileset dir="src/main/config" includes="**/*" />\r
- </copy>\r
- <copy todir="${dist.lib}">\r
- <fileset dir="${dist.jar}" includes="*.jar" excludes="*-test.jar" />\r
- </copy>\r
-\r
- <zip destfile="${package.base}/${basePackage.name}.zip">\r
- <zipfileset dir="${dist.base}">\r
- <exclude name="build/**" />\r
- <include name="**/*" />\r
- </zipfileset>\r
- </zip>\r
- </target>\r
-\r
- <target name="dist.dependencies" if="flag.withDependencies">\r
- <copy todir="${dist.lib}">\r
- <fileset dir="${main.libdir}" includes="*.jar" />\r
- </copy>\r
-\r
- </target>\r
-\r
- <target name="dist.appli" if="appli.base">\r
- <copy todir="${dist.appli}">\r
- <fileset dir="${appli.base}" includes="**" />\r
- </copy>\r
-\r
- </target>\r
-\r
- <target name="dist.api" unless="slc.basePackage">\r
- <api artifact="${main.artifact}" srcdir="${main.srcdir}" />\r
-\r
- </target>\r
-\r
- <target name="dist.apiWithSlc" if="slc.basePackage">\r
- <api artifact="${main.artifact}" srcdir="${main.srcdir}">\r
- <links>\r
- <link href="../../argeo-slc/api" />
- </links>\r
- </api>\r
-\r
- </target>\r
-</project>
\ No newline at end of file