@echo off REM Installiert contelligent in Tomcat/contelligentHome. REM erstelle classpath: set localpath="src/lib/extern/ant.jar;src/lib/extern/jakarta-ant-optional.jar;src/lib/extern/xerces.jar" set tomcat_template_home=c:\dev10-tomcat REM Ist der tomcat-Folder (template for windows-installer) vorhanden? if not exist %tomcat_template_home% ( echo Error: C:\dev10-tomcat-Verzeichnis existiert nicht. goto end ) IF NOT "%classpath%" == "" ( set localpath=%localpath%;%classpath% ) if "%JAVA_HOME%" == "" ( echo Die Umgebungsvarial JAVA_HOME wurde nicht gesetzt. goto end ) else ( echo. echo Folgende java-Version wird benutzt: %JAVA_HOME% if exist %JAVA_HOME%/libs/tools.jar ( set localpath=%localpath%;%JAVA_HOME%/libs/tools.jar ) if exist %JAVA_HOME%/lib/classes.zip ( set localpath=%localpath%;%JAVA_HOME%/libs/classes.zip ) ) REM Benoetigen wir eine (Ant-Installation)? if "%ANT_HOME%" == "" ( echo ANT konnte nicht gefunden werden. echo Dieses wird aber nicht zwingend benoetigt. ) echo ------------------ echo Rufe ant auf. echo ------------------ call java -classpath %localpath% -Dant.home=%ANT_HOME% org.apache.tools.ant.Main -buildfile src/build/dist-install.xml echo. echo ------------------ echo Nachbearbeitung echo ------------------ echo Loesche main.xml und .MD5-File del %tomcat_template_home%\contelligentHome\config\main.xml del %tomcat_template_home%\contelligentHome\config\main.xml.MD5 echo Entpacke und kopiere contell.war nach tomcat\webapps call jar fx %tomcat_template_home%\contelligentHome\deploy\contelligent.ear -x system.war copy system.war %tomcat_template_home%\contelligentHome\tomcat\webapps\contell.war del system.war if exist %tomcat_template_home%\contelligentHome\tomcat\webapps\contell ( rmdir /S /Q %tomcat_template_home%\contelligentHome\tomcat\webapps\contell ) echo. echo ------------------ echo Erstelle Install.exe echo ------------------ set nsis=c:\programme\NSIS\MakeNSIS.exe if exist %nsis% ( call %nsis% %tomcat_template_home%\win32installer\ctl_installer3.nsi ) else ( echo NSIS ist nicht installiert. echo Bitte installieren und das Skript nochmals echo starten. goto end ) echo. echo. echo Die Erstellung des Contelligent-Windows-Installer war erfolgreich! echo Die Datei "Contelligent-xx.xx Setup.exe" liegt in dem Verzeichnis; echo. echo %tomcat_template_home%\win32installer\ echo. echo. echo ------------------ echo ENDE echo ------------------ :end set localpath= set nsis=