ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Casey Daniell <>
Subject Zipfileset in <path>
Date Tue, 11 Feb 2003 23:55:31 GMT
I have several jar files, realmutils.jar, arch.jar. base.jar which contain
classes that I need in various other jar files,  rbac.jar and  client.jar. 

Is there anyway that I can use the zipfileset task within a <path> type tag?
What I am trying to do is similar to the below:

Create a path id to reference later in the build process, not all files in
any jar file is included this is selecting a subset of classes in each jar:

<path id="bac-client-files">
   <fileset dir="com/realm/portal/data/security/rbac/ejb">
      <exclude name="**/jboss.xml"/>
      <include name="META-INF/*.xml"/>
   <zipfileset src="${parentdir}/lib/realmutils.jar" 
   <zipfileset src="${parentdir}/lib/arch.jar" 
   <zipfileset src="${parentdir}/lib/arch.jar" 
   <zipfileset src="${parentdir}/lib/base.jar"  

With the path id created I would then like to build my multiple jar files
referencing the id "bac-client-files", and adding in some other files
specific to each jar:

<jar destfile="${rbac.jar}">
     <fileset refid="bac-client-files"/>
     <....other files added here.....>

The above code needs to be run for a couple of different jar files that all
contain the "bac-client-files". 

Is there a way to accomplish this? I am getting, "The <path> data type
doesn't support the the nested "zipfile" element" error message when I try
to create the <path> above. 

Casey B. Daniell
Realm Business Solutions, Inc.
13727 Noel Rd. Suite 800
Dallas, TX 75240 <>
O:(469) 791-1065
C:(512) 589-3667

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message