echo off

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

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

echo ****************************************************
echo * Ant Target is
echo *  compile(default) : compile java files
echo *  jar              : create Jar files
echo *  taglib           : create taglib xml files
echo *  spec             : create Javadoc Spec sheet
echo *  check            : RELEASE-NOTES check
rem  *  javadoc          : javadoc , zip
echo *
echo *  all ※           : compile 〜 javadoc All running
echo ****************************************************

set /p target=Type Target:

set ANT_VER=apache-ant-1.10.3
set ANT_HOME=%DEV_DIR%\%ANT_VER%
set PATH=%PATH%;%ANT_HOME%\bin;

rem logファイルのクリア
echo > log1.txt 2> log2.txt

if "%target%"=="all" (
	set CHECK_FLAG=0
	for %%A in (compile jar taglib spec check) do (
		echo %%A
		call ant -autoproxy -f buildDoc.xml %%A >> log1.txt 2>> log2.txt
	)
) else (
	set CHECK_FLAG=1
	call ant -autoproxy -f buildDoc.xml %target% > log1.txt 2> log2.txt
)
