DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17007>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17007

allow to define ZipFileSet(s) outside of Zip task

           Summary: allow to define ZipFileSet(s) outside of Zip task
           Product: Ant
           Version: 1.5.1
          Platform: All
        OS/Version: Windows XP
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


allow to define ZipFileSet(s) outside of Zip task
allow to use ZipFileSet(s) in packaging tasks by refid="xyz"

A user should be able to define a ZipFileSet(s) by settign up a fileset and 
then refering to it with refid. 

----------------------
Flawed example of use follows (note this was posed to the Ant-users mailing 
list) note I was trying to use <path> which is incorrect, I know, but also, 
<fileset> will not work here.
----------------------
Example:
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"/>
   </fileset>
   <zipfileset src="${parentdir}/lib/realmutils.jar" 
                   includes="com/realm/utils/string/StringCipher.class"/>
   <zipfileset src="${parentdir}/lib/arch.jar" 
                   includes="com/realm/utils/log/ILogger.class"/>
   <zipfileset src="${parentdir}/lib/arch.jar" 
                   includes="com/realm/utils/log/RealmLogger.class"/>
   <zipfileset src="${parentdir}/lib/base.jar"  
</path>

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.....>
</jar>

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.

Reply via email to