<project name="s2dao-codegen" default="dist" basedir="."> <property name="ver" value="0.4.2-SNAPSHOT"/> <target name="dist"> <mkdir dir="target"/> <zip zipfile="target/s2dao-codegen-${ver}.zip"> <zipfileset prefix="s2dao-codegen-core" dir="."> <exclude name="**/target/**"/> <exclude name="**/testsrc/**"/> <exclude name="**/lib/codegen-lib*.jar"/> <exclude name="cache"/> </zipfileset> <zipfileset prefix="s2dao-codegen-core/lib" dir="target"> <include name="s2dao-codegen-core-${ver}.jar"/> <include name="s2dao-codegen-core-${ver}-sources.jar"/> </zipfileset> <zipfileset prefix="codegen-lib" dir="../codegen-lib"> <exclude name="**/build/**"/> <exclude name="**/target/**"/> <exclude name="**/dicon/**"/> <exclude name="build.xml"/> <exclude name="**/codegen-core/**" /> </zipfileset> <zipfileset prefix="lib" dir="../codegen-lib/target"> <include name="codegen-lib-${ver}.jar"/> </zipfileset> <zipfileset prefix="docs" dir="../s2dao-codegen-www/docs"> <include name="**/*"/> </zipfileset> <zipfileset prefix="apidocs" dir="../s2dao-codegen-www/apidocs"> <include name="**/*"/> </zipfileset> </zip> </target> <target name="release" depends="dist"> <copy file="target/s2dao-codegen-${ver}.zip" tofile="../s2dao-codegen-www/download/s2dao-codegen-${ver}.zip"/> </target> <target name="snapshot" depends="dist"> <copy file="target/s2dao-codegen-${ver}.zip" tofile="../s2dao-codegen-www/snapshot/s2dao-codegen-${ver}.zip"/> </target> </project>