[ 1673357 ] Remove use of myDevEnvTemplate script

This commit is contained in:
Heng Sin Low 2007-03-04 09:25:32 +00:00
parent 4a5faf1e43
commit 7043cb3c6c
3 changed files with 25 additions and 109 deletions

View File

@ -1,25 +1,28 @@
@Title Build Adempiere Clean @Title Build Adempiere Clean
@Rem $Header: /cvsroot/adempiere/utils_dev/RUN_build.bat,v 1.22 2005/09/08 21:56:11 jjanke Exp $ @Rem $Header: /cvsroot/adempiere/utils_dev/RUN_build.bat,v 1.22 2005/09/08 21:56:11 jjanke Exp $
@CALL myDevEnv.bat @Rem Check java home
@IF NOT %ADEMPIERE_ENV%==Y GOTO NOBUILD @IF NOT EXIST "%JAVA_HOME%\bin" ECHO "** JAVA_HOME NOT found"
@SET PATH=%JAVA_HOME%\bin;%PATH%
@Rem Check jdk
@IF NOT EXIST "%JAVA_HOME%\lib\tools.jar" ECHO "** Need Full Java SDK **"
@Rem Set ant classpath
@SET ANT_CLASSPATH=%CLASSPATH%;..\tools\lib\ant.jar;..\tools\lib\ant-launcher.jar;..\tools\lib\ant-swing.jar;..\tools\lib\ant-commons-net.jar;..\tools\lib\commons-net-1.4.0.jar
@SET ANT_CLASSPATH=%ANT_CLASSPATH%;"%JAVA_HOME%\lib\tools.jar"
@echo Cleanup ... @echo Cleanup ...
@"%JAVA_HOME%\bin\java" -Dant.home="." %ANT_PROPERTIES% org.apache.tools.ant.Main clean @"%JAVA_HOME%\bin\java" -classpath %ANT_CLASSPATH% -Dant.home="." org.apache.tools.ant.Main clean
@echo Building ... @echo Building ...
@"%JAVA_HOME%\bin\java" -Dant.home="." %ANT_PROPERTIES% org.apache.tools.ant.Main -logger org.apache.tools.ant.listener.MailLogger complete @"%JAVA_HOME%\bin\java" -classpath %ANT_CLASSPATH% -Dant.home="." org.apache.tools.ant.Main -logger org.apache.tools.ant.listener.MailLogger complete
@IF ERRORLEVEL 1 goto ERROR @IF ERRORLEVEL 1 goto ERROR
dir %ADEMPIERE_INSTALL%
@Echo Done ... @Echo Done ...
@Pause @Pause
@exit @exit
:NOBUILD
@Echo Check myDevEnv.bat (copy from myDevEnvTemplate.bat)
:ERROR :ERROR
@Color fc @Color fc

View File

@ -1,16 +1,24 @@
@Title Build Adempiere Incremental + Install @Title Build Adempiere Incremental + Install
@Rem $Header: /cvsroot/adempiere/utils_dev/RUN_buildIncremental.bat,v 1.14 2005/09/08 21:56:11 jjanke Exp $ @Rem $Header: /cvsroot/adempiere/utils_dev/RUN_buildIncremental.bat,v 1.14 2005/09/08 21:56:11 jjanke Exp $
@CALL myDevEnv.bat @Rem Check java home
@IF NOT %ADEMPIERE_ENV%==Y GOTO NOBUILD @IF NOT EXIST "%JAVA_HOME%\bin" ECHO "** JAVA_HOME NOT found"
@SET PATH=%JAVA_HOME%\bin;%PATH%
@Rem Check jdk
@IF NOT EXIST "%JAVA_HOME%\lib\tools.jar" ECHO "** Need Full Java SDK **"
@Echo Stop Apps Server (waiting) @Echo Stop Apps Server (waiting)
@START %ADEMPIERE_HOME%\utils\RUN_Server2Stop.bat @START %ADEMPIERE_HOME%\utils\RUN_Server2Stop.bat
@Rem Wait 5 second @Rem Wait 5 second
@PING 1.1.1.1 -n 1 -w 5000 > NUL @PING 1.1.1.1 -n 1 -w 5000 > NUL
@Rem Set ant classpath
@SET ANT_CLASSPATH=%CLASSPATH%;..\tools\lib\ant.jar;..\tools\lib\ant-launcher.jar;..\tools\lib\ant-swing.jar;..\tools\lib\ant-commons-net.jar;..\tools\lib\commons-net-1.4.0.jar
@SET ANT_CLASSPATH=%ANT_CLASSPATH%;"%JAVA_HOME%\lib\tools.jar"
@echo Building ... @echo Building ...
@"%JAVA_HOME%\bin\java" -Dant.home="." %ANT_PROPERTIES% org.apache.tools.ant.Main update @"%JAVA_HOME%\bin\java" -classpath %ANT_CLASSPATH% -Dant.home="." %ANT_PROPERTIES% org.apache.tools.ant.Main update
@Echo ErrorLevel = %ERRORLEVEL% @Echo ErrorLevel = %ERRORLEVEL%
@IF NOT ERRORLEVEL 0 GOTO BUILDOK @IF NOT ERRORLEVEL 0 GOTO BUILDOK
@ -18,17 +26,12 @@
@Exit @Exit
:BUILDOK :BUILDOK
dir %ADEMPIERE_INSTALL%
@Echo Cleaning up ... @Rem Echo Cleaning up ...
@erase /q /s %TMP% @Rem erase /q /s %TMP%
@Echo Starting Apps Server ... @Echo Starting Apps Server ...
@Start %ADEMPIERE_HOME%\utils\RUN_Server2.bat @Start %ADEMPIERE_HOME%\utils\RUN_Server2.bat
@Pause @Pause
@Exit @Exit
:NOBUILD
@Echo Check myDevEnv.bat (copy from myDevEnvTemplate.bat)
@Pause

View File

@ -1,90 +0,0 @@
@Rem My Development Environment
@Rem
@Rem This script sets variable for compiling Adempiere from source
@Rem
@Rem
@Rem $Header: /cvsroot/adempiere/utils_dev/myDevEnvTemplate.bat,v 1.19 2005/09/10 01:51:13 jjanke Exp $
@Rem Check the following parameters:
@Rem -------------------------------
@Rem Set Java Home
@SET JAVA_HOME=C:\Program Files\Java\jdk1.5.0_04
@IF NOT EXIST "%JAVA_HOME%\bin" ECHO "** JAVA_HOME NOT found"
@SET PATH=%JAVA_HOME%\bin;%PATH%
@Rem Set Adempiere Source Directory
@SET ADEMPIERE_SOURCE=C:\Adempiere\adempiere-all
@IF NOT EXIST "%ADEMPIERE_SOURCE%" ECHO "** ADEMPIERE_SOURCE NOT found"
@Rem Passwords for the keystore
@SET KEYTOOL_PASS=%KEY_PASSWORD%
@IF "%KEYTOOL_PASS%"=="" SET KEYTOOL_PASS=myPassword
@Rem Keystore & FTP Password
@SET ANT_PROPERTIES=-Dpassword=%KEYTOOL_PASS% -DftpPassword=%FTP_PASSWORD%
@Rem Ant to send email after completion - change or delete
@SET ANT_PROPERTIES=%ANT_PROPERTIES% -DMailLogger.mailhost=xxx -DMailLogger.from=xxxx -DMailLogger.failure.to=xxxx -DMailLogger.success.to=xxxx
@Rem Automatic Installation - Where Adempiere will be unzipped
@SET ADEMPIERE_ROOT=C:\
@Rem Automatic Installation - Resulting Home Directory
@SET ADEMPIERE_HOME=%ADEMPIERE_ROOT%Adempiere
@Rem Automatic Installation - Share for final Installers
@SET ADEMPIERE_INSTALL=C:\Install
@IF NOT EXIST %ADEMPIERE_INSTALL% Mkdir %ADEMPIERE_INSTALL%
@Rem ---------------------------------------------------------------
@Rem In most cases you don't need to change anything below this line
@Rem If you need to define something manually do it above this line,
@Rem it should work, since most variables are checked before set.
@Rem ---------------------------------------------------------------
@SET CURRENTDIR=%CD%
@Rem Set Version
@SET ADEMPIERE_VERSION=ADempiere
@SET ADEMPIERE_VERSION_FILE=315
@SET ADEMPIERE_VENDOR=ADempiere
@SET ENCODING=UTF-8
@Rem ClassPath
@IF NOT EXIST "%JAVA_HOME%\lib\tools.jar" ECHO "** Need Full Java SDK **"
@SET CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
@IF NOT EXIST %ADEMPIERE_SOURCE%\tools\lib\ant.jar ECHO "** Ant.jar NOT found **"
@SET CLASSPATH=%CLASSPATH%;%ADEMPIERE_SOURCE%\tools\lib\ant.jar;%ADEMPIERE_SOURCE%\tools\lib\ant-launcher.jar;%ADEMPIERE_SOURCE%\tools\lib\ant-swing.jar;%ADEMPIERE_SOURCE%\tools\lib\ant-commons-net.jar;%ADEMPIERE_SOURCE%\tools\lib\commons-net-1.4.0.jar
@Rem SET CLASSPATH=%CLASSPATH%;%ADEMPIERE_SOURCE%\jboss\lib\xml-apis.jar
@Rem Set XDoclet 1.1.2 Environment
@SET XDOCLET_HOME=%ADEMPIERE_SOURCE%\tools
@Rem Java Keystore for signing jars
@IF NOT EXIST %ADEMPIERE_SOURCE%\keystore MKDIR %ADEMPIERE_SOURCE%\keystore
@IF EXIST "%ADEMPIERE_SOURCE%\keystore\myKeystore" GOTO CHECKKEYVALUE
:CREATEADEMPIEREKEY
@Echo No Java Keystore found, creating ...
@Rem .
@Rem This is the keystore for code signing.
@Rem Replace it with the official certificate.
@Rem Note that this is not the SSL certificate.
@Rem .
SET KEYTOOL_DNAME="CN=myName, OU=myName, O=myOrg, L=myTown, ST=myState, C=US"
"%JAVA_HOME%\bin\keytool" -genkey -keyalg rsa -alias adempiere -dname %KEYTOOL_DNAME% -keypass %KEYTOOL_PASS% -validity 365 -keystore %ADEMPIERE_SOURCE%\keystore\myKeystore -storepass %KEYTOOL_PASS%
"%JAVA_HOME%\bin\keytool" -selfcert -alias adempiere -dname %KEYTOOL_DNAME% -keypass %KEYTOOL_PASS% -validity 180 -keystore %ADEMPIERE_SOURCE%\keystore\myKeystore -storepass %KEYTOOL_PASS%
:CHECKKEYVALUE
@"%JAVA_HOME%\bin\keytool" -list -alias adempiere -keyStore %ADEMPIERE_SOURCE%\keystore\myKeystore -storepass %KEYTOOL_PASS%
@IF ERRORLEVEL 1 GOTO :CREATEADEMPIEREKEY
@Rem Set ADEMPIERE_ENV for all other scripts.
@SET ADEMPIERE_ENV=Y