* [ 1673357 ] Remove use of myDevEnvTemplate script
This commit is contained in:
parent
0dc682adbc
commit
85f2b6ecf2
|
@ -1,14 +1,19 @@
|
||||||
@Title Adempiere Clean
|
@Title Adempiere Clean
|
||||||
@Rem $Header: /cvsroot/adempiere/utils_dev/RUN_clean.bat,v 1.4 2005/09/16 00:49:29 jjanke Exp $
|
@Rem $Header: /cvsroot/adempiere/utils_dev/RUN_clean.bat,v 1.4 2005/09/16 00:49:29 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="." %ANT_PROPERTIES% org.apache.tools.ant.Main clean
|
||||||
|
|
||||||
@Pause
|
@Pause
|
||||||
@exit
|
@exit
|
||||||
:NOBUILD
|
|
||||||
@Echo Check myDevEnv.bat (copy from myDevEnvTemplate.bat)
|
|
||||||
@Pause
|
|
|
@ -1,21 +1,27 @@
|
||||||
# This script cleans Adempiere builds
|
# This script cleans Adempiere builds
|
||||||
# Ported from Windows script Marek Mosiewicz<marek.mosiewicz@jotel.com.pl>
|
# Ported from Windows script Marek Mosiewicz<marek.mosiewicz@jotel.com.pl>
|
||||||
|
|
||||||
SAVED_DIR=`pwd` #save current dir
|
#check java home
|
||||||
cd `dirname $0`/../utils_dev #change dir to place where script resides - doesn not work with sym links
|
if [ $JAVA_HOME ]; then
|
||||||
UTILS_DEV=`pwd` #this is adempiere source
|
export PATH=$JAVA_HOME/bin:$PATH
|
||||||
cd $SAVED_DIR #back to the saved directory
|
else
|
||||||
|
echo JAVA_HOME is not set.
|
||||||
. $UTILS_DEV/myDevEnv.sh #call environment
|
echo You may not be able to build Adempiere
|
||||||
|
echo Set JAVA_HOME to the directory of your local JDK.
|
||||||
|
exit
|
||||||
if [ ! $ADEMPIERE_ENV==Y ] ; then
|
|
||||||
echo "Can't set developemeent environemnt - check myDevEnv.sh"
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# check jdk
|
||||||
|
if [ ! -f $JAVA_HOME/lib/tools.jar ] ; then
|
||||||
|
echo "** Need full Java SDK **"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
#classpath
|
||||||
|
export 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.jar:$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="." $ANT_PROPERTIES org.apache.tools.ant.Main clean
|
||||||
|
|
||||||
echo Done ...
|
echo Done ...
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,18 @@
|
||||||
@Title Adempiere Install
|
@Title Adempiere Install
|
||||||
@Rem $Header: /cvsroot/adempiere/utils_dev/RUN_install.bat,v 1.3 2005/09/16 00:49:29 jjanke Exp $
|
@Rem $Header: /cvsroot/adempiere/utils_dev/RUN_install.bat,v 1.3 2005/09/16 00:49:29 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%
|
||||||
|
|
||||||
@"%JAVA_HOME%\bin\java" -Dant.home="." %ANT_PROPERTIES% org.apache.tools.ant.Main install
|
@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"
|
||||||
|
|
||||||
|
@"%JAVA_HOME%\bin\java" -classpath %ANT_CLASSPATH% -Dant.home="." %ANT_PROPERTIES% org.apache.tools.ant.Main install
|
||||||
|
|
||||||
@Pause
|
@Pause
|
||||||
@exit
|
@exit
|
||||||
:NOBUILD
|
|
||||||
@Echo Check myDevEnv.bat (copy from myDevEnvTemplate.bat)
|
|
||||||
@Pause
|
|
||||||
|
|
|
@ -1,22 +1,27 @@
|
||||||
# This script installs adempiere
|
# This script installs adempiere
|
||||||
# Ported from Windows script Marek Mosiewicz<marek.mosiewicz@jotel.com.pl>
|
# Ported from Windows script Marek Mosiewicz<marek.mosiewicz@jotel.com.pl>
|
||||||
|
|
||||||
|
#check java home
|
||||||
SAVED_DIR=`pwd` #save current dir
|
if [ $JAVA_HOME ]; then
|
||||||
cd `dirname $0`/../utils_dev #change dir to place where script resides - doesn not work with sym links
|
export PATH=$JAVA_HOME/bin:$PATH
|
||||||
UTILS_DEV=`pwd` #this is adempiere source
|
else
|
||||||
cd $SAVED_DIR #back to the saved directory
|
echo JAVA_HOME is not set.
|
||||||
|
echo You may not be able to build Adempiere
|
||||||
. $UTILS_DEV/myDevEnv.sh #call environment
|
echo Set JAVA_HOME to the directory of your local JDK.
|
||||||
|
exit
|
||||||
|
|
||||||
if [ ! $ADEMPIERE_ENV==Y ] ; then
|
|
||||||
echo "Can't set developemeent environemnt - check myDevEnv.sh"
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# check jdk
|
||||||
|
if [ ! -f $JAVA_HOME/lib/tools.jar ] ; then
|
||||||
|
echo "** Need full Java SDK **"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
#classpath
|
||||||
|
export 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.jar:$JAVA_HOME/lib/tools.jar
|
||||||
|
|
||||||
echo Installing ...
|
echo Installing ...
|
||||||
$JAVA_HOME/bin/java -Dant.home="." $ANT_PROPERTIES org.apache.tools.ant.Main install
|
$JAVA_HOME/bin/java -classpath $ANT_CLASSPATH -Dant.home="." $ANT_PROPERTIES org.apache.tools.ant.Main install
|
||||||
|
|
||||||
echo Done ...
|
echo Done ...
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue