You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Goli, Srikanth" <sg...@exchange.DAYTONOH.NCR.com> on 2001/03/02 21:04:38 UTC

ant's cab task

Hi

I am newbie to work with cab files. I am trying to create a cab file using
ant's optional task. The following target I created is working fine when I
create a cab file with small directories. But I tried to create it with many
directories that have subdirectories etc...it tried adding lot of files then
it failed with error code 1. 

I am wondering is there any size limitation of cab tool. I am using cab tool
provided by Microsoft in cab-sdk. I tried using cab tool provided my
microsoft in sdk-java. I got the same error.

I am using Ant version 1.3beta3 compiled on February 22 2001, Microsoft (R)
Cabinet Tool - Version 1.00.602.2 (08/14/97)

Am I doing something wrong? Am I using wrong cab tools? 
Any suggestions? 

<target name="cab">
    <cab cabfile="crm.cab"
         verbose="yes"
	 basedir="${Ipx}" />
  </target>

verbose output  ...(partly)

   [cab]
   [cab] Microsoft (R) Cabinet Tool - Version 1.00.602.2 (08/14/97)
   [cab] Copyright (c) Microsoft Corp 1994-1997. All rights reserved.
   [cab]
   [cab] Creating new cabinet 'C:\NewBuild\crm.cab' with compression
'MSZIP':
    ....
    .....

   [cab]   -- adding crm\cm\batch\test_setup\vssver.scc
   [cab]   -- adding crm\cm\batch\vssver.scc
   [cab] FCIAddFile() failed: code 1 [Failure opening file to be stored in
ca
binet]

BUILD SUCCESSFUL

-Thanks
Srikanth Goli