ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Farrukh Najmi <Farrukh.Na...@Sun.COM>
Subject FileSet with files from multiple directory trees?
Date Mon, 05 Jul 2004 13:41:08 GMT

I am trying to define a set of jar files that will be used in defining a 
classpath as well as the lib tag for the war task.
In the past the pattern I used was to:

a) define a PatternSet

b) Use PatternSet to define Path

c) Use PatternSetto define lib tag of war:

Here is the example of above:

<patternset id="">
    <patternset refid="server.compile.files"/>
    <include name="jaxm-runtime.jar.jar"/>
    <include name="saaj-impl.jar"/>

<path id="">
    <fileset dir="${build.home}/lib">
        <patternset refid=""/>

  <target name="create.war.registry" depends="compile">
    <mkdir dir="${build.home}/org/freebxml/omar/server/interfaces/soap" />
        <webinf dir="../ebxmlrr-spec/misc/3.0/services" 
        <webinf dir="src/java/org/freebxml/omar/server/interfaces/soap" 
includes="model-wsdl-rpcenc.xml.gz" defaultexcludes="no"/>
        <lib dir="${build.home}/lib">
            <patternset refid=""/>
        <classes dir="${build.home}/lib/classes">
            <include name="**/omar/common/**"/>
            <include name="**/omar/server/**"/>

I now have a new situation....

My jars are coming from two different directory trees. So I changed 
above pattern to the following:

a) Got rid of the PatternSet

b) Defined Path using different FilSets

<path id="">
  <path refid="jaxr.provider.compile.classpath"/>
  <fileset dir="${build.home}" includes="lib/jaxm-runtime.jar"/>
  <fileset dir="${jwsdp.home}" includes="saaj/lib/saaj-impl.jar"/>

I am now stuck at how to get the FileSet(s) for the lib tag of the war 

The issues seem to be that FileSet is not hierarchical and cannot handle 
files from multiple directories.

Does anyone have any suggestions on how to handle this situation?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message