ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nolan Ring" <nr...@nortelnetworks.com>
Subject zip file cannot include itself
Date Thu, 08 Mar 2001 17:23:04 GMT
Hi,

I'm stumped.  I'm getting a build failure and the error message is:   "zip
file cannot include itself" 

As far as I know I'm not trying to include any zip files!

Thanks much for any help.

Nolan

******************************************************************
The piece of the build.xml file that I'm trying to run:

<target name="core" depends="filter_UDC_label,common">
   <javacc  
           target="${UDCsrc}/core/src/Java/com/nt/udc/npl/NPLTranslator.jj" 
           outputdirectory="${UDCsrc}/core/src/Java/com/nt/udc/npl" 
           javacchome="/psaserver/public/3rd_party/javacc"
   />

   <touch file="${UDCsrc}/core/src/Java/com/nt/udc/npl/NPLTranslator.jj_ts"
/>

   <javac srcdir="${UDCsrc}/core/src/Java/com/nt/udc/npl" 
          destdir="${UDCoutput}/core/Java" >
      <classpath>
          <pathelement
location="/psaserver/public/udc/PSA31/nightly/latest/core.jar"/>
          <pathelement
location="/psaserver/public/udc/PSA31/nightly/latest/nodes.jar"/>
          <path refid="classpath"/>
      </classpath>
      <include name="ASCII_CharStream.java" />
      <include name="BaseNPLProgram.java" />
      <include name="NPL2Java.java" />
   </javac>
   <antlr target="${UDCsrc}/core/src/Java/com/nt/udc/cli/SimpleCLISyntax.g"
/>
   <javac srcdir="${UDCsrc}/core/src/Java/com/nt/udc/cli" 
          destdir="${UDCoutput}/core/Java" >
      <classpath>
          <pathelement
location="/psaserver/public/udc/PSA31/nightly/latest/core.jar"/>
          <pathelement
location="/psaserver/public/udc/PSA31/nightly/latest/nodes.jar"/>
          <path refid="classpath"/>
      </classpath>
      <include name="BaseCommandHandler.java" />
      <include name="CLICommandReference.java" />
      <include name="CLIParser.java" />
      <include name="ScriptingCommandHandler.java" />
   </javac>

   <javac srcdir="${UDCsrc}/core/src/Java" 
          destdir="${UDCoutput}/core/Java" >
      <classpath>
          <path refid="classpath"/>
      </classpath>
      <exclude name="**/*test*/*"/>
      <exclude name="**/*Test*/*"/>
      <exclude name="**/datadict/**/*"/>
      <exclude name="**/*npl*/*"/>
      <exclude name="**/*cli*/*"/>
      <include name="**/*.java"/>
   </javac>
</target>

<target name="core_rmic" depends="core">
   <rmic classname="com.nt.udc.admin.client.gui.NodeHostsPanel"
base="${UDCoutput}/core/Java" />
   <rmic classname="com.nt.udc.admin.server.AdminServerImpl"
base="${UDCoutput}/core/Java" >
        <classpath refid="classpath" />
   </rmic>
   <rmic classname="com.nt.udc.admin.server.AdminServerAPI"
base="${UDCoutput}/core/Java" >
        <classpath refid="classpath" />
   </rmic>
   <rmic classname="com.nt.udc.nodemgr.OSANodeMgr"
base="${UDCoutput}/core/Java" />
   <rmic classname="com.nt.udc.nodemgr.NodeMgrAPI"
base="${UDCoutput}/core/Java" />
   <rmic classname="com.nt.udc.rdm.RDM" base="${UDCoutput}/core/Java" />
   <copy filtering="yes" file="${Sandbox}/manifest/MANIFEST-UDC.ant"
tofile="${Sandbox}/manifest/manifest-for-build/MANIFEST-UD
C.MF" />
   <jar jarfile="${UDCoutput}/core/Java/core.jar" 
        basedir="${UDCoutput}/core/Java" 
        manifest="${Sandbox}/manifest/manifest-for-build/MANIFEST-UDC.MF" 
   />
</target>


*****************************************************************

The output from the ant command:

core:
   [javacc] Java Compiler Compiler Version 1.1 (Parser Generator)
   [javacc] Copyright (c) 1996-1999 Sun Microsystems, Inc.
   [javacc] Copyright (c) 1997-1999 Metamata, Inc.
   [javacc] (type "javacc" with no arguments for help)
   [javacc] Reading from file
/tree/AcctBillSrc/projects/udc/core/src/Java/com/nt/udc/npl/NPLTranslator.jj
. . .
   [javacc] File "TokenMgrError.java" does not exist.  Will create one.
   [javacc] File "ParseException.java" does not exist.  Will create one.
   [javacc] File "Token.java" does not exist.  Will create one.
   [javacc] File "ASCII_CharStream.java" does not exist.  Will create one.
   [javacc] Parser generated successfully.
    [touch] Creating
/tree/AcctBillSrc/projects/udc/core/src/Java/com/nt/udc/npl/NPLTranslator.jj
_ts
    [javac] Compiling 3 source files to
/tree/AcctBill/projects/udc/core/Java
    [antlr] ANTLR Parser Generator   Version 2.7.1   1989-2000 jGuru.com
    [javac] Compiling 4 source files to
/tree/AcctBill/projects/udc/core/Java
    [javac] Compiling 387 source files to
/tree/AcctBill/projects/udc/core/Java
    [javac] Note: 6 files use or override a deprecated API.  Recompile with
"-deprecation" for details.
    [javac] 1 warning

core_rmic:
     [rmic] RMI Compiling 1 class to /tree/AcctBill/projects/udc/core/Java
     [rmic] RMI Compiling 1 class to /tree/AcctBill/projects/udc/core/Java
     [rmic] RMI Compiling 1 class to /tree/AcctBill/projects/udc/core/Java
     [rmic] RMI Compiling 1 class to /tree/AcctBill/projects/udc/core/Java
     [rmic] RMI Compiling 1 class to /tree/AcctBill/projects/udc/core/Java
     [rmic] RMI Compiling 1 class to /tree/AcctBill/projects/udc/core/Java
      [jar] Building jar: /tree/AcctBill/projects/udc/core/Java/core.jar

BUILD FAILED

/bne/home/nring/xmlfiles/build.xml:128: A zip file cannot include itself




**************************************************
Nolan Ring
Nortel Networks
One Bedford Road 1 Kilton Road
Bedford, NH 03110
phone:   603.629.3021 (ESN 234)
fax:     603.629.3070
email:   nring@nortelnetworks.com


Mime
View raw message