echo off

echo off

call %~dp0..\..\bin\init.bat

set DEV_DIR=..\..\..\dev
set SVN_DIR=C:/opengion_svn/opengionV6

echo ****************************************************
echo * Ant Target is
echo *  build            : create build files(svn 佀 build)
echo *  apps             : make apps archive(difference only)
echo *
echo *  copy1(jar)       : local 仺 dev2 [ge,gg] , mics[ge,mics] jar files copy
echo *  copy2(db/jsp/src): local 仺 dev2 [ge,gf] , mics[ge] db/jsp/src files copy
echo *  copy3(Build)     : copy Build files to its-dev1,mis-dev2,F:
echo *
echo *  all 仸           : build apps copy2 copy3 All running
echo *
echo ****************************************************

set /p target=Type Target:

set ANT_VER=ant1.9.6
set ANT_HOME=%DEV_DIR%\%ANT_VER%
set PATH=%PATH%;%ANT_HOME%\bin;
set PROXY_PARAM="-J-Dhttp.proxyHost=172.27.2.11 -J-Dhttp.proxyPort=8080"

rem log僼傽僀儖偺僋儕傾
echo > log1.txt 2> log2.txt

if "%target%"=="all" (
	for %%A in (build apps copy2 copy3) do (
		echo %%A
		call ant -f jarCopy.xml %%A >> log1.txt 2>> log2.txt
	)
) else (
	call ant -f jarCopy.xml %target% >> log1.txt 2>> log2.txt
)
