echo off

rem 解説
rem JSPチェック確認
rem 処理すべきファイルは、"<jsp:root" を含む .jsp です。

IF _%1==_SKIP (
	echo "init.bat SKIP"
) ELSE (
	call ..\init.bat
	set SYSTEM_ID=GF
	set JSP=C:\opengion\uap\webapps\gf\jsp
)

set XSL_FILE=%JSP%\DOC18\xsltV5\GF70_PROG.xsl
set OUT_FILE=GF70_PROG.xml
set TBL=GF70

java -classpath %CLASSPATH%;%CLS% org.opengion.fukurou.process.MainProcess	^
	org.opengion.fukurou.process.Process_FileSearch 		^
		-start=%JSP%									^
		-suffix=.jsp									^
		#-display=true									^
		-maxLevel=2										^
	org.opengion.fukurou.process.Process_Grep			^
		-keyword="<jsp:root"							^
		-display=true									^
	org.opengion.fukurou.process.Process_XSLT			^
		-xslfile=%XSL_FILE%								^
		-outfile=%OUT_FILE%								^
		-useFileInfo=true								^
		-errAbend=false									^
		-errXmlIn=true									^
		#-jspInclude=false								^
		-param_SYSTEM_ID=%SYSTEM_ID%					^
		-addROWSET="%TBL%"								^
		-header1="<EXEC_SQL>delete from %TBL% where SYSTEM_ID='%SYSTEM_ID%' and FGOMIT='0'</EXEC_SQL>"

IF _%1==_SKIP (
    echo "end"
) ELSE (
    pause
)
