Thread: patch: avoid ant warnings about never-empty jarfiles

patch: avoid ant warnings about never-empty jarfiles

From
Oliver Jowett
Date:
This patch to build.xml avoids these warnings from ant (by dropping the
'whenempty' attribute entirely):

jar:
      [jar] JARs are never empty, they contain at least a manifest file
      [jar] Building jar: /usr/src/pgsql/src/interfaces/jdbc/jars/postgresql.jar
      [jar] JARs are never empty, they contain at least a manifest file
      [jar] Building jar: /usr/src/pgsql/src/interfaces/jdbc/jars/postgresql-examples.jar

-O

Attachment

Re: patch: avoid ant warnings about never-empty jarfiles

From
Barry Lind
Date:
Patch applied.

thanks,
--Barry


Oliver Jowett wrote:
> This patch to build.xml avoids these warnings from ant (by dropping the
> 'whenempty' attribute entirely):
>
> jar:
>       [jar] JARs are never empty, they contain at least a manifest file
>       [jar] Building jar: /usr/src/pgsql/src/interfaces/jdbc/jars/postgresql.jar
>       [jar] JARs are never empty, they contain at least a manifest file
>       [jar] Building jar: /usr/src/pgsql/src/interfaces/jdbc/jars/postgresql-examples.jar
>
> -O
>
>
> ------------------------------------------------------------------------
>
> Index: src/interfaces/jdbc/build.xml
> ===================================================================
> RCS file: /projects/cvsroot/pgsql-server/src/interfaces/jdbc/build.xml,v
> retrieving revision 1.32
> diff -u -c -r1.32 build.xml
> *** src/interfaces/jdbc/build.xml    27 Feb 2003 05:45:43 -0000    1.32
> --- src/interfaces/jdbc/build.xml    20 Jul 2003 05:47:50 -0000
> ***************
> *** 80,86 ****
>
>     <!-- create the jar file -->
>     <target name="jar" depends="compile,examples">
> !     <jar jarfile="${jardir}/postgresql.jar" whenempty="fail">
>         <fileset dir="${builddir}">
>           <include name="${package}/**/*.class" />
>           <exclude name="${package}/test/**" />
> --- 80,86 ----
>
>     <!-- create the jar file -->
>     <target name="jar" depends="compile,examples">
> !     <jar jarfile="${jardir}/postgresql.jar">
>         <fileset dir="${builddir}">
>           <include name="${package}/**/*.class" />
>           <exclude name="${package}/test/**" />
> ***************
> *** 91,97 ****
>         </fileset>
>       </jar>
>
> !     <jar jarfile="${jardir}/postgresql-examples.jar" whenempty="fail">
>         <fileset dir="${builddir}">
>           <include name="example/**/*.class" />
>         </fileset>
> --- 91,97 ----
>         </fileset>
>       </jar>
>
> !     <jar jarfile="${jardir}/postgresql-examples.jar">
>         <fileset dir="${builddir}">
>           <include name="example/**/*.class" />
>         </fileset>
>
>
> ------------------------------------------------------------------------
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faqs/FAQ.html