I haven't actually tried this, but it looks like the source zip would also
include all the 'CVS' directories in the tree, along with their contents. If
that's the case, you might want to add an 'exclude' in the fileset, since we
wouldn't want those files in the distribution.

--
Martin Cooper


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 01, 2002 1:03 PM
Subject: cvs commit: jakarta-struts/contrib/scaffold build.xml


> vmassol     02/01/01 13:03:51
>
>   Modified:    contrib/scaffold build.xml
>   Log:
>   added source zip to distribution file
>
>   Revision  Changes    Path
>   1.3       +23 -2     jakarta-struts/contrib/scaffold/build.xml
>
>   Index: build.xml
>   ===================================================================
>   RCS file: /home/cvs/jakarta-struts/contrib/scaffold/build.xml,v
>   retrieving revision 1.2
>   retrieving revision 1.3
>   diff -u -r1.2 -r1.3
>   --- build.xml 28 Dec 2001 13:34:56 -0000 1.2
>   +++ build.xml 1 Jan 2002 21:03:50 -0000 1.3
>   @@ -57,7 +57,7 @@
>
>        @author <a href="mailto:[EMAIL PROTECTED]";>Ted Husted</a>
>        @author <a href="mailto:[EMAIL PROTECTED]";>Vincent Massol</a>
>   -    @version $Id: build.xml,v 1.2 2001/12/28 13:34:56 vmassol Exp $
>   +    @version $Id: build.xml,v 1.3 2002/01/01 21:03:50 vmassol Exp $
>
============================================================================
=
>    -->
>    <project name="Scaffold" default="dist" basedir=".">
>   @@ -135,6 +135,10 @@
>        <property name="target.sample.name"
value="${project.name.file}-sample"/>
>        <property name="target.sample.dir" value="${target.dir}"/>
>
>   +    <!-- Name of the source zip that is included in the main scaffold
zip -->
>   +    <property name="target.source.name"
value="${project.name.file}-src"/>
>   +    <property name="target.source.dir" value="${target.dir}"/>
>   +
>        <!--
>
========================================================================
>            Names of deliverables
>   @@ -395,7 +399,21 @@
>             Generate distributables
>
========================================================================
>        -->
>   -    <target name="dist" depends="jar,javadoc,sample">
>   +    <target name="dist" depends="jar,javadoc,sample"
>   +     description="Generates all distributables (binary, source,
sample)">
>   +
>   +        <!-- Copy the source to the distribution area so that they are
included
>   +             in the release -->
>   +        <mkdir dir="${target.source.dir}"/>
>   +
>   +        <zip zipfile="${target.source.dir}/${target.source.name}.zip">
>   +            <fileset dir=".">
>   +                <include name="conf/**"/>
>   +                <include name="src/**"/>
>   +                <include name="*"/>
>   +                <exclude name="build.properties"/>
>   +            </fileset>
>   +        </zip>
>
>            <mkdir dir="${dist.main.dir}"/>
>
>   @@ -410,6 +428,9 @@
>                <zipfileset dir="." prefix="doc">
>                    <include name="LICENSE"/>
>                </zipfileset>
>   +            <fileset dir="${target.source.dir}">
>   +                <include name="${target.source.name}.zip"/>
>   +            </fileset>
>            </zip>
>
>        </target>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to