echo off
call ..\init.bat

set TEMP=%CD%

set FROM1=C:\openGion_svn\opengionV6\uap\webapps\gf\db
set FROM2=C:\opengionV6\uap\webapps\gf\db

set OUTDIR=C:\TEMP\webapps\md5_db

java -classpath %CLASSPATH%;%CLS% org.opengion.fukurou.process.MainProcess	^
	org.opengion.fukurou.process.Process_FileSearch			^
		-start=%FROM1%										^
		-inPath=%FROM1%										^
		-suffix=".sql|.xml"									^
		-useOmitCmnt=true									^
		-useMD5=true										^
		-encode=UTF-8										^
		#-display=true										^
	org.opengion.fukurou.process.Process_TableWriter		^
		-outfile=%OUTDIR%\FROM1.txt							^
	org.opengion.fukurou.process.Process_FileCopy			^
		-inPath=%FROM1%									^
		-outPath=%OUTDIR%\f1								^
		-useOmitCmnt=true									^
 		-inEncode=UTF-8									^
 		-outEncode=UTF-8									^
		-keepTimeStamp=true								^
				> ext_log1.txt


java -classpath %CLASSPATH%;%CLS% org.opengion.fukurou.process.MainProcess	^
	org.opengion.fukurou.process.Process_FileSearch			^
		-start=%FROM2%										^
		-inPath=%FROM2%										^
		-suffix=".sql|.xml"									^
		-useOmitCmnt=true									^
		-useMD5=true										^
		-encode=UTF-8										^
		#-display=true										^
	org.opengion.fukurou.process.Process_TableWriter		^
		-outfile=%OUTDIR%\FROM2.txt							^
	org.opengion.fukurou.process.Process_FileCopy			^
		-inPath=%FROM2%									^
		-outPath=%OUTDIR%\f2								^
		-useOmitCmnt=true									^
 		-inEncode=UTF-8									^
 		-outEncode=UTF-8									^
		-keepTimeStamp=true								^
				> ext_log2.txt

echo FROM1.txt と FROM2.txt を比較し、FROM1 と FROM2 の差を抽出します。
rem そのとき、比較キーは、共通化した、BIKO 欄を指定します。
java -classpath %CLASSPATH%;%CLS% org.opengion.fukurou.process.MainProcess	^
	org.opengion.fukurou.process.Process_TableDiff			^
		-infile1=%OUTDIR%\FROM2.txt							^
		-infile2=%OUTDIR%\FROM1.txt							^
		-action=DIFF										^
		-keyClms=Biko										^
		-diffClms=MD5										^
		-debug=true											^
		#-display=true										^
	org.opengion.fukurou.process.Process_TableWriter		^
		-outfile=%OUTDIR%\diff2_log.txt						^
	org.opengion.fukurou.process.Process_FileCopy			^
		-inPath=%FROM2%										^
		-binary=true										^
		#-inEncode=UTF-8									^
		-outPath=%OUTDIR%\DIFF2								^
		#-outEncode=UTF-8									^
		-keepTimeStamp=true									^
				> diff2_log.txt

echo FROM1.txt と FROM2.txt を比較し、FROM1 のみに存在するファイルを抽出します。
rem そのとき、比較キーは、共通化した、BIKO 欄を指定します。
java -classpath %CLASSPATH%;%CLS% org.opengion.fukurou.process.MainProcess	^
	org.opengion.fukurou.process.Process_TableDiff			^
		-infile1=%OUTDIR%\FROM1.txt							^
		-infile2=%OUTDIR%\FROM2.txt							^
		-action=ONLY										^
		-keyClms=Biko										^
		-diffClms=MD5										^
		-debug=true											^
		#-display=true										^
	org.opengion.fukurou.process.Process_TableWriter		^
		-outfile=%OUTDIR%\only1.txt							^
				> only1.txt

echo FROM1.txt と FROM2.txt を比較し、FROM2 のみに存在するファイルを抽出します。
rem そのとき、比較キーは、共通化した、BIKO 欄を指定します。
java -classpath %CLASSPATH%;%CLS% org.opengion.fukurou.process.MainProcess	^
	org.opengion.fukurou.process.Process_TableDiff			^
		-infile1=%OUTDIR%\FROM2.txt							^
		-infile2=%OUTDIR%\FROM1.txt							^
		-action=ONLY										^
		-keyClms=Biko										^
		-diffClms=MD5										^
		-debug=true											^
		#-display=true										^
	org.opengion.fukurou.process.Process_TableWriter		^
		-outfile=%OUTDIR%\only2.txt							^
				> only2.txt


pause

