<?xml version="1.0" encoding="UTF-8"?>

<project name="opengion" default="compile"	basedir=".">

	<!-- バージョン番号を指定 -->
	<property name="release.version" value="5" />
	<property name="fukurou.version" value="5.1.6.0" />
	<property name="hayabusa.version" value="5.1.6.0" />
	<property name="plugin.version" value="5.1.6.0" />

	<property environment="env" />

	<!-- ソースファイルがあるディレクトリ -->
	<property name="src.dir" value="${env.DEV_PATH}/src" />

	<!-- クラスファイルを出力するディレクトリ -->
	<property name="classes.dir" value="${env.DEV_PATH}/WEB-INF/classes" />

	<!-- javadocを出力するディレクトリ -->
	<property name="javadoc.dir" value="${env.DEV_PATH}/doc/javadoc" />

	<!-- buildファイルを出力するディレクトリ -->
	<property name="build.dir" value="${env.DEV_PATH}/builds" />
	<property name="tmp.build.dir" value="${env.DEV_PATH}/builds/tmp" />

	<!-- target=XMLでXMLファイルを出力する際にURLConnectを行うポート番号 -->
	<property name="http.port" value="${env.CONNECTOR_PORT}" />

	<!-- タグリブドキュメントをDBに登録する際の接続先 -->
<!--
	<property name="db.driver" value="${env.REALM_DRIVER}" />
	<property name="db.url" value="${env.REALM_URL}" />
	<property name="db.user" value="${env.REALM_NAME}" />
	<property name="db.password" value="${env.REALM_PASSWORD}" />
-->

	<!-- 業務ロジックのJavaクラスがあるディレクトリ -->
	<property name="bizcls.dir" value="${env.DEV_PATH}/WEB-INF/biz" />

	<!-- クラスパスの設定 -->
	<path id="og.classpath">
		<pathelement path="${env.CLASSPATH}" />
		<pathelement path="${env.DEV_PATH}/WEB-INF/classes" />
		<pathelement path="${env.JAVA_HOME}/lib/tools.jar" />
		<pathelement path="${env.JAVA_HOME}/jre/lib/ext/commons-codec-1.3.jar" />
		<pathelement path="${env.JAVA_HOME}/jre/lib/ext/ojdbc6.jar" />
		<pathelement path="${env.JAVA_HOME}/jre/lib/ext/hsqldb.jar" />
		<pathelement path="${env.CATALINA_HOME}/lib/servlet-api.jar" />
		<pathelement path="${env.CATALINA_HOME}/lib/jsp-api.jar" />
		<pathelement path="${env.CATALINA_HOME}/lib/catalina.jar" />
		<pathelement path="${env.CATALINA_HOME}/endorsed/jaxp-api.jar" />
		<pathelement path="${env.CATALINA_HOME}/endorsed/jaxp-ri.jar" />
	</path>

	<!-- ************************************************************************ -->
	<!-- * コンパイル target=compile (default)									  -->
	<!-- ************************************************************************ -->
	<target name="compile">
		<delete dir="${classes.dir}" />
		<delete dir="${bizcls.dir}" />
		<mkdir dir="${classes.dir}" />

		<!-- fukurouパッケージをコンパイルしています。 -->
		<exec executable="${env.JAVA_HOME}/bin/xjc">
			<arg value="-no-header" />
			<arg value="-p" />
			<arg value="org.opengion.fukurou.xml.jaxb.dbid" />
			<arg value="${src.dir}/org/opengion/fukurou/xml/jaxb/dbid/DBConfig.xsd" />
			<arg value="-d" />
			<arg value="${src.dir}" />
		</exec>
		<javac encoding="UTF-8" classpathref="og.classpath" debug="true" debuglevel="lines,source"
			srcdir="${src.dir}" destdir="${classes.dir}" includes="org/opengion/fukurou/**/*.java" >
			<compilerarg value="-Xlint:all"/>
		</javac>
		<copy file="${src.dir}/org/opengion/fukurou/xml/jaxb/dbid/DBConfig.xsd"
			todir="${classes.dir}/org/opengion/fukurou/xml/jaxb/dbid"/>

		<!-- hayabusaパッケージをコンパイルしています。 -->
		<java classname="org.opengion.fukurou.util.DateSet" classpathref="og.classpath">
			<arg value="${src.dir}/org/opengion/hayabusa/common/BuildNumber.master" />
			<arg value="${src.dir}/org/opengion/hayabusa/common/BuildNumber.java" />
			<arg value="VERSION_NO" />
			<arg value="${hayabusa.version}" />
			<arg value="BUILD_TYPE" />
			<arg value="Release${release.version}" />
		</java>
		<javac encoding="UTF-8" classpathref="og.classpath" debug="true" debuglevel="lines,source"
			srcdir="${src.dir}" destdir="${classes.dir}" includes="org/opengion/hayabusa/**/*.java" >
			<compilerarg value="-Xlint:all"/>
		</javac>
		<javadoc encoding="UTF-8" public="true" classpathref="og.classpath"
			sourcefiles="${src.dir}/org/opengion/hayabusa/common/SystemData.java,${src.dir}/org/opengion/hayabusa/common/BuildNumber.java">
			<doclet name="org.opengion.fukurou.taglet.DocletParam" path="${classes.dir}">
				<param name="-systemId" value="&quot;**&quot;" />
				<param name="-outfile" value="${src.dir}/org/opengion/hayabusa/common/GE12_Param.xml" />
			</doclet>
		</javadoc>
		<java classname="org.opengion.fukurou.xml.XSLT" classpathref="og.classpath">
			<arg value="${src.dir}/org/opengion/hayabusa/common/GE12_Param.xml" />
			<arg value="${src.dir}/org/opengion/hayabusa/common/GE12.xsl" />
			<arg value="${classes.dir}/org/opengion/hayabusa/common/GE12.xml" />
		</java>

		<!-- pluginパッケージをコンパイルしています。 -->
		<javac encoding="UTF-8" classpathref="og.classpath" debug="true" debuglevel="lines,source"
			srcdir="${src.dir}" destdir="${classes.dir}" includes="org/opengion/plugin/**/*.java" >
			<compilerarg value="-Xlint:all"/>
		</javac>
	</target>

	<!-- ************************************************************************ -->
	<!-- * Jarファイル生成 target=jar											  -->
	<!-- ************************************************************************ -->
	<target name="jar">
		<delete><fileset dir="${src.dir}" includes="fukurou*.jar,hayabusa*.jar,plugin*.jar" /></delete>

		<!-- fukurouパッケージのjarファイルを生成 -->
		<jar jarfile="${src.dir}/fukurou${fukurou.version}.jar" index="true">
			<fileset dir="${classes.dir}" includes="org/opengion/fukurou/**/*" />
		</jar>
		<!-- hayabusaパッケージのjarファイルを生成 -->
		<jar jarfile="${src.dir}/hayabusa${hayabusa.version}.jar" index="true">
			<fileset dir="${classes.dir}" includes="org/opengion/hayabusa/**/*" />
			<fileset dir="${src.dir}" includes="META-INF/hybs-taglib.tld" />
		</jar>
		<!-- pluginパッケージのjarファイルを生成 -->
		<jar jarfile="${src.dir}/plugin${plugin.version}.jar" index="true">
			<fileset dir="${classes.dir}" includes="org/opengion/plugin/**/*" />
		</jar>
	</target>

	<!-- ************************************************************************ -->
	<!-- * Javadoc生成 target=javadoc											  -->
	<!-- ************************************************************************ -->
	<target name="javadoc">

		<!-- Javadocを生成 -->
		<javadoc encoding="UTF-8" charset="UTF-8" sourcepath="${src.dir}" packagenames="org.opengion.*" destdir="${javadoc.dir}" 
			package="true" breakiterator="true" classpathref="og.classpath"
			overview="${src.dir}/org/opengion/hayabusa/overview.html"
			windowtitle="Webアプリケーションフレームワーク openGion"
			doctitle="Webアプリケーションフレームワーク &lt;b&gt;openGion&lt;/b&gt; ${hayabusa.version}"
			header="&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;img src=&quot;{@docRoot}/OpenGion64.PNG&quot; width=&quot;55&quot; height=&quot;55&quot; align=&quot;left&quot; alt=&quot;openGion&quot; border=&quot;0&quot; /&gt;&lt;b&gt;openGion&lt;/b&gt;&lt;br /&gt;${hayabusa.version}&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"
			footer="&lt;b&gt;openGion&lt;/b&gt; ${hayabusa.version}"
			bottom="Webアプリケーションフレームワーク &lt;b&gt;openGion&lt;/b&gt;&lt;br&gt;&lt;a href=&quot;http://sourceforge.jp/&quot;&gt;&lt;img src=&quot;http://sourceforge.jp/sflogo.php?group_id=4349&amp;type=1&quot; width=&quot;96&quot; height=&quot;31&quot; border=&quot;0&quot; alt=&quot;SourceForge.JP&quot; /&gt;&lt;/a&gt;Copyright (c) 2009 &lt;a href=&quot;http://www.opengion.org/&quot; target=&quot;_new&quot;&gt;The openGion Project. &lt;/a&gt;"
			
		>
			<taglet name="org.opengion.fukurou.taglet.TagletFormSample" path="${classes.dir}" />
			<taglet name="org.opengion.fukurou.taglet.TagletTag" path="${classes.dir}" />
			<taglet name="org.opengion.fukurou.taglet.TagletRev" path="${classes.dir}" />
			<tag name="og.group" description="機能階層" />
			<tag name="og.formSample" />
			<tag name="og.tag" />
			<tag name="og.rev"/>
			<tag name="og.version"/>
			<tag name="og.rtnNotNull" description="このメソッドは、nullを返しません" />
			<tag name="og.paramLevel" enabled="false" />
			<tag name="og.cryptography" enabled="false" />
			<tag name="version" description="バージョン" />
			<tag name="author" description="作成者" />
			<tag name="since" />
			<link href="http://java.sun.com/javase/ja/6/docs/ja/api" />
			<link href="http://java.sun.com/javaee/5/docs/api" />
			<link href="http://java.sun.com/products/jsp/2.1/docs/jsp-2_1-pfd2" />
		</javadoc>

		<!-- DBdoc用のXMLファイルを生成 -->
		<javadoc encoding="UTF-8" public="true" sourcepath="${src.dir}"
			packagenames="org.opengion.hayabusa.taglib" classpathref="og.classpath">
			<doclet name="org.opengion.fukurou.taglet.DocletTaglib" path="${classes.dir}">
				<param name="-version" value="${hayabusa.version}" />
				<param name="-outfile" value="${src.dir}/xslt/javadoc.xml" />
			</doclet>
		</javadoc>

		<java classname="org.opengion.fukurou.xml.XSLT" classpathref="og.classpath">
			<arg value="${src.dir}/META-INF/hybs-taglib.tld" />
			<arg value="${src.dir}/xslt/jspHilight.xsl" />
			<arg value="${src.dir}/xslt/jsp.hilight" />
		</java>
		<java classname="org.opengion.fukurou.xml.XSLT" classpathref="og.classpath">
			<arg value="${src.dir}/META-INF/hybs-taglib.tld" />
			<arg value="${src.dir}/xslt/GF21.xsl" />
			<arg value="${src.dir}/xslt/GF21.xml" />
		</java>
		<java classname="org.opengion.fukurou.xml.XSLT" classpathref="og.classpath">
			<arg value="${src.dir}/META-INF/hybs-taglib.tld" />
			<arg value="${src.dir}/xslt/GF22.xsl" />
			<arg value="${src.dir}/xslt/GF22.xml" />
		</java>
		<java classname="org.opengion.fukurou.xml.XSLT" classpathref="og.classpath">
			<arg value="${src.dir}/xslt/javadoc.xml" />
			<arg value="${src.dir}/xslt/GF23.xsl" />
			<arg value="${src.dir}/xslt/GF23.xml" />
		</java>
		<java classname="org.opengion.fukurou.xml.XSLT" classpathref="og.classpath">
			<arg value="${src.dir}/xslt/javadoc.xml" />
			<arg value="${src.dir}/xslt/GF24.xsl" />
			<arg value="${src.dir}/xslt/GF24.xml" />
		</java>	

		<javadoc encoding="UTF-8" public="true" sourcepath="${src.dir}" classpathref="og.classpath"
			packagenames="org.opengion.fukurou.process,org.opengion.hayabusa.db,org.opengion.plugin.*">
			<doclet name="org.opengion.fukurou.taglet.DocletPlugin" path="${classes.dir}">
				<param name="-version" value="${plugin.version}" />
				<param name="-outfile" value="${src.dir}/xslt/javadocAtt.xml" />
			</doclet>
		</javadoc>

		<java classname="org.opengion.fukurou.xml.XSLT" classpathref="og.classpath">
			<arg value="${src.dir}/xslt/javadocAtt.xml" />
			<arg value="${src.dir}/xslt/GF25.xsl" />
			<arg value="${src.dir}/xslt/GF25.xml" />
		</java>

		<java classname="org.opengion.fukurou.xml.XSLT" classpathref="og.classpath">
			<arg value="${src.dir}/xslt/javadocAtt.xml" />
			<arg value="${src.dir}/xslt/GE12_pin.xsl" />
			<arg value="${src.dir}/xslt/GE12_pin.xml" />
		</java>

		<copy todir="${env.DEV_PATH}/db/xml/"><fileset dir="${src.dir}/xslt" includes="GF*.xml" /></copy>
	</target>

	<!-- ************************************************************************ -->
	<!-- * タグリブドキュメント生成 target=dbdoc								  -->
	<!-- ************************************************************************ -->
<!--
	<target name="dbdoc">
		<java classname="org.opengion.fukurou.xml.HybsXMLSave" classpathref="og.classpath">
			<arg value="${db.user}" />
			<arg value="${db.password}" />
			<arg value="${db.url}" />
			<arg value="GF23" />
			<arg value="${src.dir}/xslt/GF23.xml" />
			<arg value="UTF-8" />
			<arg value="${db.driver}" />
		</java>
		<java classname="org.opengion.fukurou.xml.HybsXMLSave" classpathref="og.classpath">
			<arg value="${db.user}" />
			<arg value="${db.password}" />
			<arg value="${db.url}" />
			<arg value="GF24" />
			<arg value="${src.dir}/xslt/GF24.xml" />
			<arg value="UTF-8" />
			<arg value="${db.driver}" />
		</java>
		<java classname="org.opengion.fukurou.xml.HybsXMLSave" classpathref="og.classpath">
			<arg value="${db.user}" />
			<arg value="${db.password}" />
			<arg value="${db.url}" />
			<arg value="GF25" />
			<arg value="${src.dir}/xslt/GF25.xml" />
			<arg value="UTF-8" />
			<arg value="${db.driver}" />
		</java>
		<java classname="org.opengion.fukurou.xml.HybsXMLSave" classpathref="og.classpath">
			<arg value="${db.user}" />
			<arg value="${db.password}" />
			<arg value="${db.url}" />
			<arg value="GF21" />
			<arg value="${src.dir}/xslt/GF21.xml" />
			<arg value="UTF-8" />
			<arg value="${db.driver}" />
		</java>
		<java classname="org.opengion.fukurou.xml.HybsXMLSave" classpathref="og.classpath">
			<arg value="${db.user}" />
			<arg value="${db.password}" />
			<arg value="${db.url}" />
			<arg value="GF22" />
			<arg value="${src.dir}/xslt/GF22.xml" />
			<arg value="UTF-8" />
			<arg value="${db.driver}" />
		</java>
	</target>
-->

	<!-- ************************************************************************ -->
	<!-- * リソースXMLファイル生成 target=xml									  -->
	<!-- ************************************************************************ -->
	<target name="xml">

		<!-- リソース抜き出し -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />

		<delete><fileset dir="${env.CORE_PATH}/db/xml" includes="*" /></delete>
		<delete><fileset dir="${env.DEV_PATH}/db/xml" includes="*" /></delete>

		<!-- GEシステムのリソースファイルを生成(作成区分=0) -->
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.CORE_CTXT}/jsp/GE0009/result.jsp?SYSTEM_ID=GE&amp;AST=**&amp;TargetDB=RSC&amp;KBSAKU=0&amp;CONDITION=%3D&amp;FS27C=true&amp;command=NEW&amp;GAMENID=GE0009&amp;pageSize=10000&amp;maxRowCount=10000" />
			<arg value="C00000:C00000" />
		</java>
		<copy file="${env.CORE_PATH}/filetemp/C00000/GE/GEA03_0.xml" tofile="${env.CORE_PATH}/db/xml/GEA03.xml" />
		<copy file="${env.CORE_PATH}/filetemp/C00000/GE/GEA04_0.xml" tofile="${env.CORE_PATH}/db/xml/GEA04.xml" />
		<copy file="${env.CORE_PATH}/filetemp/C00000/GE/GEA08_0.xml" tofile="${env.CORE_PATH}/db/xml/GEA08.xml" />
		<copy file="${env.CORE_PATH}/filetemp/C00000/GE/GEA11_0.xml" tofile="${env.CORE_PATH}/db/xml/GEA11.xml" />

		<!-- GFシステムのリソースファイルを生成(作成区分=0) -->
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.CORE_CTXT}/jsp/GE0009/result.jsp?SYSTEM_ID=GF&amp;TargetDB=RSC&amp;KBSAKU=1&amp;CONDITION=%3C%3D&amp;FS27C=true&amp;command=NEW&amp;GAMENID=GE0009&amp;pageSize=10000&amp;maxRowCount=10000" />
			<arg value="C00000:C00000" />
		</java>
		<copy file="${env.CORE_PATH}/filetemp/C00000/GF/GEA03_1.xml" tofile="${env.DEV_PATH}/db/xml/GEA03.xml" />
		<copy file="${env.CORE_PATH}/filetemp/C00000/GF/GEA04_1.xml" tofile="${env.DEV_PATH}/db/xml/GEA04.xml" />
		<copy file="${env.CORE_PATH}/filetemp/C00000/GF/GEA08_1.xml" tofile="${env.DEV_PATH}/db/xml/GEA08.xml" />
		<copy file="${env.CORE_PATH}/filetemp/C00000/GF/GEA11_1.xml" tofile="${env.DEV_PATH}/db/xml/GEA11.xml" />

		<!-- サンプルデータ抜き出し -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />

		<!-- 帳票システムのマスタデータを抜き出し -->
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.CORE_CTXT}/jsp/GE0009/result.jsp?SYSTEM_ID=GE&amp;TargetDB=RPT&amp;CONDITION=%3D&amp;FS1C=true&amp;command=NEW&amp;GAMENID=GE0009&amp;pageSize=10000&amp;maxRowCount=10000" />
			<arg value="C00000:C00000" />
		</java>
		<!-- 帳票システムのサンプルデータを抜き出し -->
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.CORE_CTXT}/jsp/GE0009/result.jsp?SYSTEM_ID=GE&amp;TargetDB=RPD&amp;CONDITION=%3D&amp;FS1C=true&amp;command=NEW&amp;GAMENID=GE0009&amp;pageSize=10000&amp;maxRowCount=10000" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.DEV_PATH}/db/xml/"><fileset dir="${env.CORE_PATH}/filetemp/C00000/GE" includes="*" /></copy>

		<!-- DB定義DBの定義データを抜き出し -->
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2150/result.jsp?SYSTEM_ID=GF&amp;AST_GE=GE&amp;TBLSYU=3&amp;command=NEW&amp;GAMENID=GF2150&amp;pageSize=10000&amp;maxRowCount=10000" />
			<arg value="C00000:C00000" />
		</java>

		<!-- タブリブドキュメントのデータを抜き出し -->
<!--
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/DOC23/result.jsp?command=NEW&amp;GAMENID=DOC23&amp;pageSize=10000&amp;maxRowCount=10000" />
			<arg value="C00000:C00000" />
		</java>
-->
		<copy todir="${env.DEV_PATH}/db/xml/"><fileset dir="${src.dir}/xslt" includes="GF*.xml" /></copy>

		<!-- タブリブクイックリファレンスのデータを抜き出し -->
		<delete dir="${env.DEV_PATH}/doc/taglib" />
		<mkdir dir="${env.DEV_PATH}/doc/taglib" />
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-data" />
			<arg value="-encode=UTF-8" />
			<arg value="-out=${env.DEV_PATH}/doc/taglib/quickReference.html" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/DOC08/result.jsp?PRE_FIX=og&amp;command=NEW&amp;GAMENID=DOC08&amp;pageSize=10000&amp;maxRowCount=10000" />
			<arg value="C00000:C00000" />
		</java>
		<replace file="${env.DEV_PATH}/doc/taglib/quickReference.html" encoding="UTF-8" token="/gf/jsp/" value="" />

		<copy todir="${env.DEV_PATH}/doc/taglib">
			<fileset dir="${env.DEV_PATH}/jsp" includes="common/*.js,common/*.css,custom/*.css" />
		</copy>

		<!-- サンプル画面のサンプルデータを抜き出し -->
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF7110/result.jsp?TABLES=BONUS%2CDEPT%2CEMP%2CGF41%2CGF42%2CGF43%2CGF44%2CGF19%2CGF60%2CGF61%2CGF62%2CGF63%2CGF64%2CGF65%2CGF66%2CGF67&amp;command=NEW&amp;GAMENID=GF7110&amp;pageSize=10000&amp;maxRowCount=10000" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.DEV_PATH}/db/xml/"><fileset dir="${env.DEV_PATH}/filetemp/C00000" includes="*" /></copy>
	</target>

	<!-- ************************************************************************ -->
	<!-- * DBスクリプトの抜き出し target=table									  -->
	<!-- ************************************************************************ -->
	<target name="table">
		<!-- ************************************************************************ -->
		<!-- * DBスクリプトの抜き出し Oracle										  -->
		<!-- ************************************************************************ -->
		<!-- DBスクリプトの抜き出し(.sql) -->
		<!-- GEシステムのDBスクリプト(Oracle)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.CORE_PATH}/db/oracle/sql/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.CORE_PATH}/db/oracle/sql/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GE&amp;TBLSYU=3&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.CORE_PATH}/db/oracle/sql/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.CORE_PATH}/db/oracle/sql/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- GFシステムのDBスクリプト(Oracle)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.DEV_PATH}/db/oracle/sql/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.DEV_PATH}/db/oracle/sql/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GF&amp;TBLSYU=3&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.DEV_PATH}/db/oracle/sql/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.DEV_PATH}/db/oracle/sql/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- DBスクリプトの抜き出し(.xml) -->
		<!-- GEシステムのDB環境生成用XMLファイル(Oracle)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.CORE_PATH}/db/oracle/xml/install/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.CORE_PATH}/db/oracle/xml/install/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GE&amp;TBLSYU=3&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000&amp;XML=true" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.CORE_PATH}/db/oracle/xml/install/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.CORE_PATH}/db/oracle/xml/install/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- GFシステムのDB環境生成用XMLファイル(Oracle)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.DEV_PATH}/db/oracle/xml/install/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.DEV_PATH}/db/oracle/xml/install/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GF&amp;TBLSYU=3&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000&amp;XML=true" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.DEV_PATH}/db/oracle/xml/install/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.DEV_PATH}/db/oracle/xml/install/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- ************************************************************************ -->
		<!-- * DBスクリプトの抜き出し HSQLDB										  -->
		<!-- ************************************************************************ -->
		<!-- GEシステムのDBスクリプト(HSQLDB)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.CORE_PATH}/db/hsql/sql/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.CORE_PATH}/db/hsql/sql/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GE&amp;TBLSYU=3&amp;TYPE=_HSQLDB&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.CORE_PATH}/db/hsql/sql/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.CORE_PATH}/db/hsql/sql/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- GFシステムのDBスクリプト(HSQLDB)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.DEV_PATH}/db/hsql/sql/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.DEV_PATH}/db/hsql/sql/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GF&amp;TBLSYU=3&amp;TYPE=_HSQLDB&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.DEV_PATH}/db/hsql/sql/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.DEV_PATH}/db/hsql/sql/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- GEシステムのDB環境生成用XMLファイル(HSQLDB)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.CORE_PATH}/db/hsql/xml/install/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.CORE_PATH}/db/hsql/xml/install/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GE&amp;TBLSYU=3&amp;TYPE=_HSQLDB&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000&amp;XML=true" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.CORE_PATH}/db/hsql/xml/install/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.CORE_PATH}/db/hsql/xml/install/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- GFシステムのDB環境生成用XMLファイル(HSQLDB)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.DEV_PATH}/db/hsql/xml/install/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.DEV_PATH}/db/hsql/xml/install/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GF&amp;TBLSYU=3&amp;TYPE=_HSQLDB&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000&amp;XML=true" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.DEV_PATH}/db/hsql/xml/install/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.DEV_PATH}/db/hsql/xml/install/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- ************************************************************************ -->
		<!-- * DBスクリプトの抜き出し MYSQL											  -->
		<!-- ************************************************************************ -->
		<!-- GEシステムのDBスクリプト(MYSQL)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.CORE_PATH}/db/mysql/sql/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.CORE_PATH}/db/mysql/sql/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GE&amp;TBLSYU=3&amp;TYPE=_MYSQL&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.CORE_PATH}/db/mysql/sql/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.CORE_PATH}/db/mysql/sql/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- GFシステムのDBスクリプト(MYSQL)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.DEV_PATH}/db/mysql/sql/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.DEV_PATH}/db/mysql/sql/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GF&amp;TBLSYU=3&amp;TYPE=_MYSQL&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.DEV_PATH}/db/mysql/sql/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.DEV_PATH}/db/mysql/sql/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- GEシステムのDB環境生成用XMLファイル(MYSQL)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.CORE_PATH}/db/mysql/xml/install/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.CORE_PATH}/db/mysql/xml/install/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GE&amp;TBLSYU=3&amp;TYPE=_MYSQL&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000&amp;XML=true" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.CORE_PATH}/db/mysql/xml/install/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.CORE_PATH}/db/mysql/xml/install/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- GFシステムのDB環境生成用XMLファイル(MYSQL)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.DEV_PATH}/db/mysql/xml/install/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.DEV_PATH}/db/mysql/xml/install/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GF&amp;TBLSYU=3&amp;TYPE=_MYSQL&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000&amp;XML=true" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.DEV_PATH}/db/mysql/xml/install/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.DEV_PATH}/db/mysql/xml/install/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- ************************************************************************ -->
		<!-- * DBスクリプトの抜き出し PostgreSQL									  -->
		<!-- ************************************************************************ -->
		<!-- GEシステムのDBスクリプト(PostgreSQL)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.CORE_PATH}/db/postgres/sql/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.CORE_PATH}/db/postgres/sql/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GE&amp;TBLSYU=3&amp;TYPE=_POSGRE&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.CORE_PATH}/db/postgres/sql/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.CORE_PATH}/db/postgres/sql/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- GFシステムのDBスクリプト(PostgreSQL)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.DEV_PATH}/db/postgres/sql/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.DEV_PATH}/db/postgres/sql/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GF&amp;TBLSYU=3&amp;TYPE=_POSGRE&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.DEV_PATH}/db/postgres/sql/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.DEV_PATH}/db/postgres/sql/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- GEシステムのDB環境生成用XMLファイル(PostgreSQL)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.CORE_PATH}/db/postgres/xml/install/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.CORE_PATH}/db/postgres/xml/install/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GE&amp;TBLSYU=3&amp;TYPE=_POSGRE&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000&amp;XML=true" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.CORE_PATH}/db/postgres/xml/install/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.CORE_PATH}/db/postgres/xml/install/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- GFシステムのDB環境生成用XMLファイル(PostgreSQL)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.DEV_PATH}/db/postgres/xml/install/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.DEV_PATH}/db/postgres/xml/install/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GF&amp;TBLSYU=3&amp;TYPE=_POSGRE&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000&amp;XML=true" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.DEV_PATH}/db/postgres/xml/install/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.DEV_PATH}/db/postgres/xml/install/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- ************************************************************************ -->
		<!-- * DBスクリプトの抜き出し FireBird											  -->
		<!-- ************************************************************************ -->
		<!-- GEシステムのDBスクリプト(FireBird)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.CORE_PATH}/db/firebird/sql/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.CORE_PATH}/db/firebird/sql/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GE&amp;TBLSYU=3&amp;TYPE=_FIREBIRD&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.CORE_PATH}/db/firebird/sql/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.CORE_PATH}/db/firebird/sql/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- GFシステムのDBスクリプト(FireBird)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.DEV_PATH}/db/firebird/sql/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.DEV_PATH}/db/firebird/sql/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GF&amp;TBLSYU=3&amp;TYPE=_FIREBIRD&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.DEV_PATH}/db/firebird/sql/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.DEV_PATH}/db/firebird/sql/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- GEシステムのDB環境生成用XMLファイル(FireBird)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.CORE_PATH}/db/firebird/xml/install/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.CORE_PATH}/db/firebird/xml/install/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GE&amp;TBLSYU=3&amp;TYPE=_FIREBIRD&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000&amp;XML=true" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.CORE_PATH}/db/firebird/xml/install/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.CORE_PATH}/db/firebird/xml/install/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>

		<!-- GFシステムのDB環境生成用XMLファイル(FireBird)を生成 -->
		<delete dir="${env.CORE_PATH}/filetemp/C00000" />
		<delete dir="${env.DEV_PATH}/filetemp/C00000" />
		<delete><fileset dir="${env.DEV_PATH}/db/firebird/xml/install/01_TABLE" includes="*" /></delete>
		<delete><fileset dir="${env.DEV_PATH}/db/firebird/xml/install/02_INDEX" includes="*" /></delete>
		<java classname="org.opengion.fukurou.util.URLConnect" classpathref="og.classpath">
			<arg value="-info" />
			<arg value="http://localhost:${http.port}/${env.DEV_CTXT}/jsp/GF2140/result.jsp?SYSTEM_ID=GF&amp;TBLSYU=3&amp;TYPE=_FIREBIRD&amp;TABLE=true&amp;INDEX=true&amp;command=NEW&amp;GAMENID=GF2140&amp;pageSize=10000&amp;maxRowCount=10000&amp;XML=true" />
			<arg value="C00000:C00000" />
		</java>
		<copy todir="${env.DEV_PATH}/db/firebird/xml/install/01_TABLE/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/TABLE" includes="*" /></copy>
		<copy todir="${env.DEV_PATH}/db/firebird/xml/install/02_INDEX/"><fileset dir="${env.DEV_PATH}/filetemp/C00000/INDEX" includes="*" /></copy>
	</target>

	<!-- ************************************************************************ -->
	<!-- * ビルドファイル生成 target=build										  -->
	<!-- ************************************************************************ -->
	<target name="build">
		<!-- coreパッケージ生成 -->
		<delete><fileset dir="${env.CORE_PATH}/WEB-INF/lib" includes="fukurou*.jar,hayabusa*.jar,plugin*.jar" /></delete>
		<copy todir="${env.CORE_PATH}/WEB-INF/lib">
			<fileset dir="${src.dir}"
				includes="fukurou*.jar,hayabusa*.jar,plugin*.jar" />
		</copy>
		<copy todir="${env.CORE_PATH}/jsp">
			<fileset dir="${env.DEV_PATH}/jsp"
				includes="common/**,custom/**,customImage/**,image/**,menu/**,menuImage/**,*.jsp,login*" />
		</copy>
		<zip destfile="${build.dir}/openGion_core_${hayabusa.version}.zip" basedir="${env.APP_BASE}"
			includes="${env.CORE_CTXT}/changes/**,${env.CORE_CTXT}/db/**,${env.CORE_CTXT}/def/**,${env.CORE_CTXT}/doc/**,${env.CORE_CTXT}/help/**,${env.CORE_CTXT}/jsp/**,${env.CORE_CTXT}/WEB-INF/**" />

		<!-- dev(uap)パッケージ生成 -->
		<delete dir="${tmp.build.dir}" />
		<delete><fileset dir="${env.DEV_PATH}/db/hsql/file" includes="GF*" /></delete>

		<copy todir="${tmp.build.dir}/opengion"><fileset dir="${env.UAP}/.." includes="LICENSE,NOTICE,README,THIRDPARTYLICENSEREADME.html" /></copy>
		<copy todir="${tmp.build.dir}/opengion/uap/bin"><fileset dir="${env.UAP}/bin" includes="*.bat,*.sh" /></copy>

		<copy todir="${tmp.build.dir}/opengion/uap/webapps/${env.CORE_CTXT}">
			<fileset dir="${env.CORE_PATH}"
				includes=".*,changes/**,db/**,def/**,doc/**,help/**,jsp/**,WEB-INF/**" />
		</copy>
		<move failonerror="false" file="${tmp.build.dir}/opengion/uap/webapps/${env.CORE_CTXT}/WEB-INF/DBConfig.xml_DEFAULT"
			tofile="${tmp.build.dir}/opengion/uap/webapps/${env.CORE_CTXT}/WEB-INF/DBConfig.xml" />
		<mkdir dir="${tmp.build.dir}/opengion/uap/webapps/${env.CORE_CTXT}/filetemp" />
		<mkdir dir="${tmp.build.dir}/opengion/uap/webapps/${env.CORE_CTXT}/log" />

		<copy todir="${tmp.build.dir}/opengion/uap/webapps/${env.DEV_CTXT}">
			<fileset dir="${env.DEV_PATH}"
				includes=".*,*build.*,db/**,def/**,doc/**,help/**,jsp/**,src/**,WEB-INF/**" />
		</copy>

		<replace file="${tmp.build.dir}/opengion/uap/webapps/${env.DEV_CTXT}/build.xml" encoding="UTF-8" token="additionalparam=&quot;-J-Dhttp.proxyHost=proxy1-i.muratec.co.jp -J-Dhttp.proxyPort=8080&quot;" value="" />

		<move failonerror="false" file="${tmp.build.dir}/opengion/uap/webapps/${env.DEV_CTXT}/WEB-INF/DBConfig.xml_DEFAULT"
			tofile="${tmp.build.dir}/opengion/uap/webapps/${env.DEV_CTXT}/WEB-INF/DBConfig.xml" />
		<mkdir dir="${tmp.build.dir}/opengion/uap/webapps/${env.DEV_CTXT}/filetemp" />
		<mkdir dir="${tmp.build.dir}/opengion/uap/webapps/${env.DEV_CTXT}/log" />
		<mkdir dir="${tmp.build.dir}/opengion/uap/webapps/${env.DEV_CTXT}/builds" />
		<delete><fileset dir="${tmp.build.dir}/opengion/uap/webapps/${env.DEV_CTXT}/jsp/DOC18/xslt" includes="*.xml" /></delete>
		<delete><fileset dir="${tmp.build.dir}/opengion/uap/webapps/${env.DEV_CTXT}/src/xslt" includes="*.xml" /></delete>

		<zip destfile="${build.dir}/openGion_dev_${hayabusa.version}.zip" basedir="${tmp.build.dir}"
			includes="**" />

		<!-- verupパッケージ生成 -->
		<delete dir="${tmp.build.dir}" />
		<copy todir="${tmp.build.dir}">
			<fileset dir="${env.CORE_PATH}"
				includes="jsp/*.jsp,jsp/login*,jsp/common/**,jsp/menu/**,jsp/image/**,WEB-INF/lib/*.jar,changes/**,db/oracle/sql/05_SRC/HYBS.sql" />
		</copy>
		<copy todir="${tmp.build.dir}">
			<fileset dir="${env.DEV_PATH}/doc"
				includes="RELEASE-NOTES.txt,HowToUpdate.txt" />
		</copy>
		<mkdir dir="${tmp.build.dir}/WEB-INF/classes" />
		<zip destfile="${tmp.build.dir}/sample_custom.zip" basedir="${env.CORE_PATH}" includes="jsp/custom/**" />
		<zip destfile="${tmp.build.dir}/sample_xml.zip" basedir="${env.CORE_PATH}" includes="WEB-INF/web.xml,WEB-INF/DBConfig.xml_DEFAULT" />

		<zip destfile="${build.dir}/openGion_verup_${hayabusa.version}.zip" basedir="${tmp.build.dir}"
			includes="**" />
	</target>

	<!-- ************************************************************************ -->
	<!-- * APPSアーカイブ生成 target=apps										  -->
	<!-- ************************************************************************ -->
	<target name="apps">
		<!-- dev(app)パッケージ生成 -->
		<delete dir="${tmp.build.dir}" />
		<copy todir="${tmp.build.dir}/opengion/apps/${env.OPENOFFICE_VER}"><fileset dir="${env.OFFICE_HOME}" includes="**" /></copy>

		<copy todir="${tmp.build.dir}/opengion/apps/${env.JDK_VER}">
			<fileset dir="${env.JAVA_HOME}"
				includes="COPYRIGHT,LICENSE*,README*,register*,THIRDPARTYLICENSEREADME.txt,bin/**,jre/**,lib/**" />
		</copy>

		<copy todir="${tmp.build.dir}/opengion/apps/${env.TOMCAT_VER}">
			<fileset dir="${env.CATALINA_HOME}"
				includes="LICENSE,NOTICE,RELEASE-NOTES,RUNNING.txt,bin/**,conf/**,endorsed/**,lib/**,webapps/manager/**" />
		</copy>
		<mkdir dir="${tmp.build.dir}/opengion/apps/${env.TOMCAT_VER}/logs" />
		<mkdir dir="${tmp.build.dir}/opengion/apps/${env.TOMCAT_VER}/temp" />

		<zip destfile="${build.dir}/openGion_apps_win32_${hayabusa.version}.zip" basedir="${tmp.build.dir}"
			includes="**" />
	</target>
</project>
