<project name="s2jdbc-gen" default="dist" basedir=".">
	<tstamp>
		<format property="releaseDate" pattern="yyyy-MM-dd" locale="ja,JP"/>
	</tstamp>
	<property name="zipDir" value="target/site/download/${releaseDate}"/>

	<target name="dist">
		<ant antfile="../seasar2/build.xml" target="fix-site">
			<property name="site" value="${basedir}/target/site"/>
		</ant>
		<mkdir dir="${zipDir}"/>
		<zip zipfile="${zipDir}/S2JDBC-Gen-${ver}.zip">
			<zipfileset prefix="s2jdbc-gen" dir=".">
				<exclude name="**/build/**"/>
				<exclude name="**/target/**"/>
				<exclude name="**/site/**"/>
				<exclude name="**/META-INF/maven/org.seasar.container/s2jdbc-gen/pom.properties"/>
				<exclude name="build.xml"/>
			</zipfileset>
			<zipfileset prefix="s2jdbc-gen/lib" dir="target">
				<include name="s2jdbc-gen-${ver}.jar"/>
			</zipfileset>
			<zipfileset prefix="s2jdbc-gen/libsrc" dir="target">
				<include name="s2jdbc-gen-${ver}-sources.jar"/>
			</zipfileset>
			<zipfileset prefix="s2jdbc-gen/libsrc" dir="target">
				<include name="s2jdbc-gen-${ver}-sources.jar"/>
			</zipfileset>
			<zipfileset prefix="s2jdbc-gen/resources" dir="src/main/resources/org/seasar/extension/jdbc/gen/internal/generator">
				<include name="tempaltes/**"/>
			</zipfileset>
			<zipfileset prefix="s2jdbc-gen/resources" dir="src/test/resources">
				<include name="s2jdbc-gen-build.xml"/>
			</zipfileset>
			<zipfileset prefix="s2jdbc-gen/doc" dir="../seasar2/target/site/ja">
				<include name="**/css/**"/>
				<include name="**/images/**"/>
				<include name="**/s2jdbc_gen/**"/>
			</zipfileset>
		</zip>
	</target>
</project>
