From: Pieter v. Z. <pv...@us...> - 2005-07-07 14:08:21
|
Update of /cvsroot/coefficient/issueTracker In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25966/modules/issueTracker Modified Files: build.xml Log Message: include new release ant target Index: build.xml =================================================================== RCS file: /cvsroot/coefficient/issueTracker/build.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** build.xml 30 Jun 2005 12:55:42 -0000 1.3 --- build.xml 7 Jul 2005 14:08:11 -0000 1.4 *************** *** 2,338 **** <project name="${project.name}" default="deploy" basedir="."> ! <!-- ====================================================================== --> ! <!-- NOTE: this file is intended to be imported from the modules' build.xml --> ! <!-- ====================================================================== --> ! <property file="build.properties"/> ! <property name="version" value="0.9.6"/> ! <property name="lib.dir" value="${coefficient.path}/lib"/> ! <property name="dir.jalopy" value="${coefficient.path}/jalopyLib"/> ! <property name="ear.file" value="${project.name}-${version}.ear"/> ! <property name="ejb.jar.file" value="${project.name}-ejb.jar"/> ! <property name="gen.src" value="${build.dest}/gen/src"/> ! <property name="gen.misc" value="${build.dest}/gen/misc"/> ! <property name="classes.dir" value="${build.dest}/classes"/> ! <property name="distribution.dir" value="${build.dest}/lib"/> ! <property name="docs.dir" value="${build.dest}/doc"/> ! <property name="merge.dir" value="${src.dir}/merge"/> ! <property name="src.misc" value="${src.dir}/misc"/> ! <property name="api.dir" value="${docs.dir}/api"/> ! <property name="aspects.container" value="${coefficient.path}/build/lib/coefficient-ejb.jar" /> ! <property name="jboss.deploy.dir" value="${jboss.dir}/server/default/deploy" /> ! <property name="vote.classes" value="${vote.path}/build/classes"/> ! <property name="fileUpload.classes" value="${fileUpload.path}/build/classes"/> - <taskdef - resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties"> - <classpath> - <pathelement location="${coefficient.path}/lib/aspectjtools.jar"/> - </classpath> - </taskdef> ! <!-- =================================================================== --> ! <!-- B U I L D C L A S S P A T H --> ! <!-- =================================================================== --> ! <path id="classpath"> ! <fileset dir="${lib.dir}"> ! <include name="**/*.jar"/> ! </fileset> ! <!-- this is so we can find the core libs --> ! <pathelement location="${coefficient.path}/build/classes"/> ! <pathelement location="${vote.classes}"/> ! ! <pathelement location="${fileUpload.classes}"/> ! <fileset dir="${jboss.dir}/client/"> ! <include name="*.jar"/> ! </fileset> ! <fileset dir="${jboss.dir}/lib/"> ! <include name="*.jar"/> ! </fileset> ! <fileset dir="${jboss.dir}/server/default/lib/"> ! <include name="*.jar"/> ! </fileset> ! <!-- THIS IS INCLUDED THIS FOR JBOSS 3.2.4 AND ABOVE SINCE THE SERVLET.JAR IS NOW IN THE DEPLOY DIRECTORY --> ! <fileset dir="${jboss.dir}/server/default/"> ! <include name="**/*servlet*.jar"/> ! </fileset> ! </path> ! <!-- =================================================================== --> ! <!-- C L E A N --> ! <!-- =================================================================== --> ! <target name="clean"> ! <delete dir="${build.dest}"/> ! </target> ! <!-- =================================================================== --> ! <!-- D I R E C T O R I E S --> ! <!-- =================================================================== --> ! <target name="directories"> ! <mkdir dir="${build.dest}"/> ! <mkdir dir="${distribution.dir}"/> ! <mkdir dir="${classes.dir}"/> ! <mkdir dir="${docs.dir}"/> ! <mkdir dir="${api.dir}"/> ! <mkdir dir="${gen.src}"/> ! <mkdir dir="${gen.misc}"/> ! </target> ! <!-- =================================================================== --> ! <!-- I N I T --> ! <!-- =================================================================== --> ! <target name="init"> ! <available file="${src.misc}" property="has.misc" /> ! <available file="${vote.classes}" type="dir" property="vote.classes.present"/> ! <available file="${fileUpload.classes}" type="dir" property="fileUpload.classes.present"/> ! </target> ! <target name="buildVoteDepIfNeeded" unless="vote.classes.present"> ! <ant antfile="${vote.path}/build.xml" inheritAll="false" target="deploy" /> ! </target> ! <target name="buildFileUploadDepIfNeeded" unless="fileUpload.classes.present"> ! <ant antfile="${fileUpload.path}/build.xml" inheritAll="false" target="deploy" /> ! </target> ! <!-- ==================================================================== --> ! <!-- Defines the Jalopy task --> ! <!-- ==================================================================== --> ! <taskdef name="jalopy" ! classname="de.hunsicker.jalopy.plugin.ant.AntPlugin"> ! <classpath> ! <fileset dir="${dir.jalopy}"> ! <include name="*.jar" /> ! </fileset> ! </classpath> ! </taskdef> ! <!-- ==================================================================== --> ! <!-- Formats all source files --> ! <!-- ==================================================================== --> ! <target name="format" > ! <jalopy fileformat="unix" ! convention="${coefficient.path}/src/misc/codeConvention.xml" ! threads="2" ! history="file" ! historymethod="adler32" ! destdir="${src.dir}" ! classpathref="classpath"> ! <fileset dir="${src.dir}"> ! <include name="**/*.java" /> ! <exclude name="**/aspects/**/*"/> ! </fileset> ! </jalopy> ! </target> ! <!-- =================================================================== --> ! <!-- C O M P I L E --> ! <!-- =================================================================== --> ! <target name="compile" description="compiling..." depends="directories, buildVoteDepIfNeeded, buildFileUploadDepIfNeeded"> ! <iajc destdir="${classes.dir}"> ! <sourceroots> ! <pathelement location="${src.dir}"/> ! <pathelement location="${gen.src}"/> ! </sourceroots> ! <aspectpath> ! <pathelement location="${aspects.container}"/> ! </aspectpath> ! <classpath refid="classpath"/> ! </iajc> ! ! </target> - <!-- =================================================================== --> - <!-- G E N E R A T E --> - <!-- =================================================================== --> - <target name="generate" description="generating all needed files..." depends="init, pojo2ejbdoclet, ejbdoclet, hibernateDoclet"> - </target> ! <!-- =================================================================== --> ! <!-- R U N X D O C L E T F O R S E S S I O N B E A N P O J O G E N --> ! <!-- =================================================================== --> ! <target name="pojo2ejbdoclet" depends="directories" > ! ! <taskdef name="pojo2ejbdoclet" ! classname="xdoclet.modules.pojo2ejb.Pojo2ejbDocletTask" > ! <classpath> ! <fileset dir="${lib.dir}"> ! <include name="*.jar" /> ! </fileset> ! <pathelement location="${src.dir}"/> ! </classpath> ! </taskdef> ! ! <pojo2ejbdoclet ! destdir="${gen.src}" ! mergeDir="${merge.dir}" ! > ! <fileset dir="${src.dir}"> ! <include name="**/*.java" /> ! </fileset> ! <!-- This is needed so xdoclet can include superclasses methods --> ! <fileset dir="${coefficient.path}/src"> ! <include name="${coefficient.path}/**/modules/BaseModule.java" /> ! <include name="${coefficient.path}/**/modules/BaseNavProjectModule.java" /> ! <include name="${coefficient.path}/**/modules/navigation/BaseNavigate.java" /> ! <include name="${coefficient.path}/**/modules/BaseProjectModule.java" /> ! <include name="${coefficient.path}/**/html/Theme.java" /> ! </fileset> ! <pojo2ejb/> ! </pojo2ejbdoclet> ! </target> ! <!-- =================================================================== --> ! <!-- R U N X D O C L E T F O R S E S S I O N B E A N S --> ! <!-- =================================================================== --> ! <target name="ejbdoclet" depends="directories" > ! ! <taskdef name="ejbdoclet" ! classname="xdoclet.modules.ejb.EjbDocletTask" ! classpathref="classpath" /> ! ! <ejbdoclet ! destdir="${gen.src}" ! excludedtags="@version,@author" ! ejbspec="2.0" ! > ! <fileset dir="${gen.src}"> ! <include name="**/*Bean.java" /> ! </fileset> ! <packageSubstitution packages="beans" substituteWith="interfaces"/> - <utilobject kind="physical" includeGUID="false"/> - <localinterface/> - <localhomeinterface/> - <homeinterface/> - <remoteinterface /> - <session/> - <deploymentdescriptor - xmlencoding="ISO-8859-1" - destdir="${gen.misc}" - validatexml="true" - /> - - <jboss - version="3.0" - xmlencoding="ISO-8859-1" - destdir="${gen.misc}" - validatexml="true" - datasource="${data.source}" - datasourcemapping="${data.source.mapping}" - /> - </ejbdoclet> - </target> ! <!-- =================================================================== --> ! <!-- C R E A T E S T H E A P I D O C U M E N T A T I O N --> ! <!-- =================================================================== --> ! <target name="docs" depends="directories"> ! <javadoc ! sourcepath="${src.dir}" ! packagenames="*" ! destdir="${api.dir}" ! author="true" ! private="true" ! version="true" ! use="true" ! windowtitle="${project.name} API" ! doctitle="${project.name} API" ! bottom="Copyright CSIR. All Rights Reserved."> ! <classpath refid="classpath"/> ! </javadoc> ! </target> ! <target name="copy-misc" depends="init, directories, compile" if="has.misc" > ! <!-- do this so that props will be in the classpath --> ! <copy todir="${classes.dir}"> ! <fileset dir="${src.misc}" > ! <include name="*.properties" /> ! </fileset> ! </copy> ! </target> ! <!-- =================================================================== --> ! <!-- M A K E E J B J A R F I L E --> ! <!-- =================================================================== --> ! <target name="ejb-jar" depends="generate, compile, copy-misc" description="Make ejb jar file" > ! <delete> ! <fileset dir="${distribution.dir}"> ! <include name="**/${ejb.jar.file}"/> ! </fileset> ! </delete> ! <!-- do this so that the module/theme templates will be in the classpath --> ! <copy todir="${classes.dir}"> ! <fileset dir="${src.dir}" > ! <include name="**/templates/**/*"/> ! <include name="**/images/**/*"/> ! <include name="**/resource/**/*"/> ! </fileset> ! </copy> ! <jar destfile="${distribution.dir}/${ejb.jar.file}" includes="lib/*.jar" basedir="." > ! <metainf dir="${gen.misc}"> ! <include name="ejb-jar.xml"/> ! <include name="jboss.xml"/> ! </metainf> ! <fileset dir="${classes.dir}" /> ! </jar> ! </target> ! <!-- =================================================================== --> ! <!-- B U I L D E A R F I L E --> ! <!-- =================================================================== --> ! <target name="ear" depends="ejb-jar" description="Make ear file" > - <ear earfile="${distribution.dir}/${ear.file}" appxml="application.xml" > - <fileset dir="${distribution.dir}" includes="${ejb.jar.file}" /> - </ear> - </target> ! <!-- =================================================================== --> ! <!-- D E P L O Y E A R F I L E --> ! <!-- =================================================================== --> ! <target name="deploy" depends="ear"> ! <copy todir="${jboss.deploy.dir}" overwrite="yes" > ! <fileset dir="${distribution.dir}" includes="${ear.file}"/> ! </copy> ! </target> - <!-- =================================================================== --> - <!-- H I B E R N A T E D O C L E T O N H I B E R N A T E O B J E C T --> - <!-- =================================================================== --> - <target name="hibernateDoclet" depends="directories" > - <taskdef name="hibernatedoclet" - classname="xdoclet.modules.hibernate.HibernateDocletTask"> - <classpath> - <fileset dir="${lib.dir}"> - <include name="*.jar" /> - </fileset> - <pathelement location="${src.dir}"/> - </classpath> - </taskdef> - <hibernatedoclet destdir="${classes.dir}" mergeDir="${classes.dir}" excludedtags="@author" force="false"> - <fileset dir="${src.dir}"> - <include name="**/*.java" /> - </fileset> - <hibernate version="2.0" acceptInterfaces="false" /> - </hibernatedoclet> - </target> </project> --- 2,414 ---- <project name="${project.name}" default="deploy" basedir="."> ! <!-- ====================================================================== --> ! <!-- NOTE: this file is intended to be imported from the modules' build.xml --> ! <!-- ====================================================================== --> ! <property file="build.properties" /> ! <property name="version" value="0.9.6" /> ! <property name="lib.dir" value="${coefficient.path}/lib" /> ! <property name="dir.jalopy" value="${coefficient.path}/jalopyLib" /> ! <property name="ear.file" value="${project.name}-${version}.ear" /> ! <property name="ejb.jar.file" value="${project.name}-ejb.jar" /> ! <property name="gen.src" value="${build.dest}/gen/src" /> ! <property name="gen.misc" value="${build.dest}/gen/misc" /> ! <property name="classes.dir" value="${build.dest}/classes" /> ! <property name="distribution.dir" value="${build.dest}/lib" /> ! <property name="docs.dir" value="${build.dest}/doc" /> ! <property name="merge.dir" value="${src.dir}/merge" /> ! <property name="src.misc" value="${src.dir}/misc" /> ! <property name="api.dir" value="${docs.dir}/api" /> ! <property name="aspects.container" value="${coefficient.path}/build/lib/coefficient-ejb.jar" /> ! <property name="jboss.deploy.dir" value="${jboss.dir}/server/default/deploy" /> ! <property name="vote.classes" value="${vote.path}/build/classes" /> ! <property name="fileUpload.classes" value="${fileUpload.path}/build/classes" /> ! <property name="release.ejb.file" value="${project.name}-ejb-${version}" /> ! <property name="release.src.file" value="${project.name}-src-${version}" /> ! <property name="release.jar.file" value="${project.name}-jar-${version}" /> ! <taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties"> ! <classpath> ! <pathelement location="${coefficient.path}/lib/aspectjtools.jar" /> ! </classpath> ! </taskdef> ! <!-- =================================================================== --> ! <!-- B U I L D C L A S S P A T H --> ! <!-- =================================================================== --> ! <path id="classpath"> ! <fileset dir="${lib.dir}"> ! <include name="**/*.jar" /> ! </fileset> ! <!-- this is so we can find the core libs --> ! <pathelement location="${coefficient.path}/build/classes" /> ! <pathelement location="${vote.classes}" /> ! ! <pathelement location="${fileUpload.classes}" /> ! ! <fileset dir="${jboss.dir}/client/"> ! <include name="*.jar" /> ! </fileset> ! <fileset dir="${jboss.dir}/lib/"> ! <include name="*.jar" /> ! </fileset> ! <fileset dir="${jboss.dir}/server/default/lib/"> ! <include name="*.jar" /> ! </fileset> ! <!-- THIS IS INCLUDED THIS FOR JBOSS 3.2.4 AND ABOVE SINCE THE SERVLET.JAR IS NOW IN THE DEPLOY DIRECTORY --> ! <fileset dir="${jboss.dir}/server/default/"> ! <include name="**/*servlet*.jar" /> ! </fileset> ! </path> ! <!-- =================================================================== --> ! <!-- C L E A N --> ! <!-- =================================================================== --> ! <target name="clean"> ! <delete dir="${build.dest}" /> ! </target> ! <!-- =================================================================== --> ! <!-- D I R E C T O R I E S --> ! <!-- =================================================================== --> ! <target name="directories"> ! <mkdir dir="${build.dest}" /> ! <mkdir dir="${distribution.dir}" /> ! <mkdir dir="${classes.dir}" /> ! <mkdir dir="${docs.dir}" /> ! <mkdir dir="${api.dir}" /> ! <mkdir dir="${gen.src}" /> ! <mkdir dir="${gen.misc}" /> ! </target> ! <!-- =================================================================== --> ! <!-- I N I T --> ! <!-- =================================================================== --> ! <target name="init"> ! <available file="${src.misc}" property="has.misc" /> ! <available file="${vote.classes}" type="dir" property="vote.classes.present" /> ! <available file="${fileUpload.classes}" type="dir" property="fileUpload.classes.present" /> ! </target> ! <target name="buildVoteDepIfNeeded" unless="vote.classes.present"> ! <ant antfile="${vote.path}/build.xml" inheritAll="false" target="deploy" /> ! </target> ! <target name="buildFileUploadDepIfNeeded" unless="fileUpload.classes.present"> ! <ant antfile="${fileUpload.path}/build.xml" inheritAll="false" target="deploy" /> ! </target> ! <!-- ==================================================================== --> ! <!-- Defines the Jalopy task --> ! <!-- ==================================================================== --> ! <taskdef name="jalopy" classname="de.hunsicker.jalopy.plugin.ant.AntPlugin"> ! <classpath> ! <fileset dir="${dir.jalopy}"> ! <include name="*.jar" /> ! </fileset> ! </classpath> ! </taskdef> ! <!-- ==================================================================== --> ! <!-- Formats all source files --> ! <!-- ==================================================================== --> ! <target name="format"> ! <jalopy fileformat="unix" convention="${coefficient.path}/src/misc/codeConvention.xml" threads="2" history="file" historymethod="adler32" destdir="${src.dir}" classpathref="classpath"> ! <fileset dir="${src.dir}"> ! <include name="**/*.java" /> ! <exclude name="**/aspects/**/*" /> ! </fileset> ! </jalopy> ! </target> ! <!-- =================================================================== --> ! <!-- C O M P I L E --> ! <!-- =================================================================== --> ! <target name="compile" description="compiling..." depends="directories, buildVoteDepIfNeeded, buildFileUploadDepIfNeeded"> ! <iajc destdir="${classes.dir}"> ! <sourceroots> ! <pathelement location="${src.dir}" /> ! <pathelement location="${gen.src}" /> ! </sourceroots> ! <aspectpath> ! <pathelement location="${aspects.container}" /> ! </aspectpath> ! <classpath refid="classpath" /> ! </iajc> + </target> ! <!-- =================================================================== --> ! <!-- G E N E R A T E --> ! <!-- =================================================================== --> ! <target name="generate" description="generating all needed files..." depends="init, pojo2ejbdoclet, ejbdoclet, hibernateDoclet"> ! </target> ! <!-- =================================================================== --> ! <!-- R U N X D O C L E T F O R S E S S I O N B E A N P O J O G E N --> ! <!-- =================================================================== --> ! <target name="pojo2ejbdoclet" depends="directories"> + <taskdef name="pojo2ejbdoclet" classname="xdoclet.modules.pojo2ejb.Pojo2ejbDocletTask"> + <classpath> + <fileset dir="${lib.dir}"> + <include name="*.jar" /> + </fileset> + <pathelement location="${src.dir}" /> + </classpath> + </taskdef> ! <pojo2ejbdoclet destdir="${gen.src}" mergeDir="${merge.dir}"> ! <fileset dir="${src.dir}"> ! <include name="**/*.java" /> ! </fileset> ! <!-- This is needed so xdoclet can include superclasses methods --> ! <fileset dir="${coefficient.path}/src"> ! <include name="${coefficient.path}/**/modules/BaseModule.java" /> ! <include name="${coefficient.path}/**/modules/BaseNavProjectModule.java" /> ! <include name="${coefficient.path}/**/modules/navigation/BaseNavigate.java" /> ! <include name="${coefficient.path}/**/modules/BaseProjectModule.java" /> ! <include name="${coefficient.path}/**/html/Theme.java" /> ! </fileset> ! <pojo2ejb /> ! </pojo2ejbdoclet> ! </target> + <!-- =================================================================== --> + <!-- R U N X D O C L E T F O R S E S S I O N B E A N S --> + <!-- =================================================================== --> + <target name="ejbdoclet" depends="directories"> ! <taskdef name="ejbdoclet" classname="xdoclet.modules.ejb.EjbDocletTask" classpathref="classpath" /> ! <ejbdoclet destdir="${gen.src}" excludedtags="@version,@author" ejbspec="2.0"> ! <fileset dir="${gen.src}"> ! <include name="**/*Bean.java" /> ! </fileset> ! <packageSubstitution packages="beans" substituteWith="interfaces" /> ! <utilobject kind="physical" includeGUID="false" /> ! <localinterface /> ! <localhomeinterface /> ! <homeinterface /> ! <remoteinterface /> ! <session /> ! <deploymentdescriptor xmlencoding="ISO-8859-1" destdir="${gen.misc}" validatexml="true" /> ! <jboss version="3.0" xmlencoding="ISO-8859-1" destdir="${gen.misc}" validatexml="true" datasource="${data.source}" datasourcemapping="${data.source.mapping}" /> ! </ejbdoclet> ! </target> + <!-- =================================================================== --> + <!-- C R E A T E S T H E A P I D O C U M E N T A T I O N --> + <!-- =================================================================== --> + <target name="docs" depends="directories"> + <javadoc sourcepath="${src.dir}" packagenames="*" destdir="${api.dir}" author="true" private="true" version="true" use="true" windowtitle="${project.name} API" doctitle="${project.name} API" bottom="Copyright CSIR. All Rights Reserved."> + <classpath refid="classpath" /> + </javadoc> + </target> ! <target name="copy-misc" depends="init, directories, compile" if="has.misc"> ! <!-- do this so that props will be in the classpath --> ! <copy todir="${classes.dir}"> ! <fileset dir="${src.misc}"> ! <include name="*.properties" /> ! </fileset> ! </copy> ! </target> + <!-- =================================================================== --> + <!-- M A K E E J B J A R F I L E --> + <!-- =================================================================== --> + <target name="ejb-jar" depends="generate, compile, copy-misc" description="Make ejb jar file"> + <delete> + <fileset dir="${distribution.dir}"> + <include name="**/${ejb.jar.file}" /> + </fileset> + </delete> + <!-- do this so that the module/theme templates will be in the classpath --> + <copy todir="${classes.dir}"> + <fileset dir="${src.dir}"> + <include name="**/templates/**/*" /> + <include name="**/images/**/*" /> + <include name="**/resource/**/*" /> + </fileset> + </copy> + + <jar destfile="${distribution.dir}/${ejb.jar.file}" includes="lib/*.jar" basedir="."> + <metainf dir="${gen.misc}"> + <include name="ejb-jar.xml" /> + <include name="jboss.xml" /> + </metainf> + <fileset dir="${classes.dir}" /> + </jar> + </target> + + <!-- =================================================================== --> + <!-- B U I L D E A R F I L E --> + <!-- =================================================================== --> + <target name="ear" depends="ejb-jar" description="Make ear file"> + + <ear earfile="${distribution.dir}/${ear.file}" appxml="application.xml"> + <fileset dir="${distribution.dir}" includes="${ejb.jar.file}" /> + </ear> + </target> + + + <!-- =================================================================== --> + <!-- D E P L O Y E A R F I L E --> + <!-- =================================================================== --> + <target name="deploy" depends="ear"> + <copy todir="${jboss.deploy.dir}" overwrite="yes"> + <fileset dir="${distribution.dir}" includes="${ear.file}" /> + </copy> + </target> + + + <!-- =================================================================== --> + <!-- H I B E R N A T E D O C L E T O N H I B E R N A T E O B J E C T --> + <!-- =================================================================== --> + <target name="hibernateDoclet" depends="directories"> + <taskdef name="hibernatedoclet" classname="xdoclet.modules.hibernate.HibernateDocletTask"> + <classpath> + <fileset dir="${lib.dir}"> + <include name="*.jar" /> + </fileset> + <pathelement location="${src.dir}" /> + </classpath> + </taskdef> + <hibernatedoclet destdir="${classes.dir}" mergeDir="${classes.dir}" excludedtags="@author" force="false"> + <fileset dir="${src.dir}"> + <include name="**/*.java" /> + </fileset> + <hibernate version="2.0" acceptInterfaces="false" /> + </hibernatedoclet> + </target> + + <!-- =================================================================== --> + <!-- G E N E R A T E R E L E A S E B I N A R Y --> + <!-- =================================================================== --> + <target name="release_ejb_gz" depends="docs"> + + <delete failonerror="false"> + <fileset dir="${distribution.dir}"> + <include name="**/*ejb*gz" /> + <include name="**/*ejb*zip" /> + </fileset> + </delete> + + <tar destfile="${distribution.dir}/${release.ejb.file}.tar.gz" compression="gzip"> + <tarfileset dir="${build.dest}" prefix="${project.name}"> + <include name="lib/*.ear" /> + </tarfileset> + <tarfileset dir="." prefix="${project.name}"> + <include name="INSTALL*" /> + <include name="README*" /> + </tarfileset> + </tar> + + <zip destfile="${distribution.dir}/${release.ejb.file}.zip"> + <zipfileset dir="${build.dest}" prefix="${project.name}"> + <include name="lib/*.ear" /> + </zipfileset> + <zipfileset dir="." prefix="${project.name}"> + <include name="INSTALL*" /> + </zipfileset> + </zip> + </target> + + <!-- =================================================================== --> + <!-- G E N E R A T E R E L E A S E S R C --> + <!-- =================================================================== --> + <target name="release_src_gz" depends="docs"> + + + <delete failonerror="false"> + <fileset dir="${distribution.dir}"> + <include name="**/*src*gz" /> + <include name="**/*src*zip" /> + </fileset> + </delete> + + <tar destfile="${distribution.dir}/${release.src.file}.tar.gz" compression="gzip"> + <tarfileset dir="." prefix="${project.name}"> + <include name="*.txt" /> + <include name="build*" /> + <include name="conf/*" /> + <include name="src/**" /> + <include name="lib/**" /> + </tarfileset> + <tarfileset dir="${docs.dir}/" prefix="${project.name}"> + <include name="**/*" /> + </tarfileset> + </tar> + + <zip destfile="${distribution.dir}/${release.src.file}.zip"> + <zipfileset dir="." prefix="${project.name}"> + <include name="*.txt" /> + <include name="build*" /> + <include name="conf/*" /> + <include name="src/**" /> + <include name="lib/**" /> + </zipfileset> + <zipfileset dir="${docs.dir}/" prefix="${project.name}"> + <include name="**/*" /> + </zipfileset> + </zip> + </target> + + <!-- =================================================================== --> + <!-- G E N E R A T E R E L E A S E J A R --> + <!-- =================================================================== --> + <target name="release_jar_gz" depends="docs"> + + + <delete failonerror="false"> + <fileset dir="${distribution.dir}"> + <include name="**/*jar*gz" /> + <include name="**/*jar*zip" /> + </fileset> + </delete> + + <tar destfile="${distribution.dir}/${release.jar.file}.tar.gz" compression="gzip"> + <tarfileset dir="${build.dest}" prefix="${project.name}"> + <include name="lib/*.jar" /> + </tarfileset> + <tarfileset dir="." prefix="${project.name}"> + <include name="INSTALL*" /> + <include name="README*" /> + </tarfileset> + </tar> + + <zip destfile="${distribution.dir}/${release.jar.file}.zip"> + <zipfileset dir="${build.dest}" prefix="${project.name}"> + <include name="lib/*.jar" /> + </zipfileset> + <zipfileset dir="." prefix="${project.name}"> + <include name="INSTALL*" /> + </zipfileset> + </zip> + </target> + + <!-- =================================================================== --> + <!-- M A K E R E L E A S E --> + <!-- =================================================================== --> + <target name="release" depends="deploy,release_jar_gz,release_src_gz,release_ejb_gz"> + </target> </project> |