Schnittstelle CampusOnline (TU Graz) zu SuperX-Modul COSTAGE
http://www.superx-projekt.de/doku/costage_modul/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.8 KiB
65 lines
2.8 KiB
<?xml version="1.0" encoding="UTF-8"?> |
|
<project name="ModuleCreation" default="all" basedir="."> |
|
<!--Aufruf mit |
|
|
|
ant -DMODULE_PATH=$COSTAGE_PFAD -DBASE_DIR=. -DWEBAPP=$WEBAPP -DMODULE=costage all |
|
|
|
So erzeugen Sie dann ein SuperX-Paket: |
|
ant -DMODULE_PATH=$COSTAGE_PFAD -DWEBAPP_DIR=$WEBAPP -DMODULE=costage dist |
|
|
|
|
|
--> |
|
<dirname file="${ant.file}" property="moduleCreateBaseDir" /> |
|
<property name="BASE_DIR" value="${moduleCreateBaseDir}/../.." /> |
|
<property name="WEBAPP" value="${MODULE_PATH}/../../../webserver/tomcat/webapps/superx" /> |
|
<path id="classpath"> |
|
<!--WEB-INF/lib--> |
|
<fileset dir="${WEBAPP}/WEB-INF"> |
|
<include name="lib/**/*.jar" /> |
|
<include name="classes" /> |
|
</fileset> |
|
</path> |
|
<condition property="isWindoze"> |
|
<os family="windows" /> |
|
</condition> |
|
|
|
<condition property="isUnix"> |
|
<os family="unix" /> |
|
</condition> |
|
<target name="all" description="Gruppe: Kopiere Modul Sourcen in den WEB-INF-Verzeichnisbaum"> |
|
<antcall target="module_copy_source" /> |
|
<antcall target="call_module_scripts_create_ant" /> |
|
</target> |
|
<target name="module_copy_source" description="Gruppe: Kopiere Modul Sourcen in den WEB-INF-Verzeichnisbaum"> |
|
<echo message="Start module_copy_sources für Modul ${MODULE} in Pfad ${MODULE_PATH}" /> |
|
<copy todir="${MODULE_PATH}" overwrite="true"> |
|
<fileset dir="${BASE_DIR}/src-modules/module/${MODULE}" /> |
|
</copy> |
|
</target> |
|
<target name="call_module_scripts_create_ant" description="Call to module_scripts_create_ant"> |
|
<subant target="all"> |
|
<!--<property name="basedir" value="${MODULE_PATH}/../../conf/" />--> |
|
<property name="MODULE" value="${MODULE}" /> |
|
<property name="DATABASE" value="POSTGRES" /> |
|
<property name="WEBAPP_EXT_MODULE" value="${MODULE_PATH}/../../../webserver/tomcat/webapps/superx" /> |
|
<property name="WEBAPP" value="${MODULE_PATH}/../../../webserver/tomcat/webapps/superx" /> |
|
<property name="SUPERX_BASE" value="${WEBAPP}/WEB-INF" /> |
|
<fileset dir="${MODULE_PATH}/../../conf" includes="module_scripts_create_ant.xml" /> |
|
</subant> |
|
</target> |
|
<target name="dist" description="Create Download package"> |
|
<subant target="erzeuge_paket"> |
|
<!--<property name="basedir" value="${MODULE_PATH}/../../conf/" />--> |
|
<property name="MODULE" value="${MODULE}" /> |
|
<property name="PFAD" value="/home/superx/fertige_module" /> |
|
<property name="DATABASE" value="POSTGRES" /> |
|
<property name="ENCODING" value="utf8" /> |
|
<property name="PLATFORM" value="superx" /> |
|
|
|
<property name="WEBAPP_EXT_MODULE" value="${MODULE_PATH}/../../../webserver/tomcat/webapps/superx" /> |
|
<property name="WEBAPP" value="${MODULE_PATH}/../../../webserver/tomcat/webapps/superx" /> |
|
<property name="SUPERX_BASE" value="${WEBAPP}/WEB-INF" /> |
|
<fileset dir="${MODULE_PATH}/../../conf" includes="build.xml" /> |
|
</subant> |
|
</target> |
|
</project>
|
|
|