ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lopez, William" <william.lo...@eds.com>
Subject RE: fileset and patternset question
Date Tue, 15 Apr 2003 19:57:38 GMT
Hell's bells, thanks!

-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com] 
Sent: Tuesday, April 15, 2003 2:31 PM
To: 'Ant Users List'
Subject: RE: fileset and patternset question


<include name="..." /> is for a single pattern.
The 'includes'/'excludes' attributes are for comma-separated patterns.

Use:

  <patternset id="no-servlet-jars">
     <exclude name="Servlet.jar "/>
     <exclude name="ServletExtension.jar"/>
     <exclude name="*.war"/>
  </patternset>

  <patternset id="servlet-jars">
     <include name="Servlet.jar "/>
     <include name="ServletExtension.jar"/>
  </patternset>

--DD

-----Original Message-----
From: Lopez, William [mailto:william.lopez@eds.com] 
Sent: Tuesday, April 15, 2003 2:22 PM
To: user@ant.apache.org
Subject: fileset and patternset question

I have a couple of patternsets that don't work. I have the following
patterns set up that are reused through out the script:

  <patternset id="no-servlet-jars">
     <exclude name="Servlet.jar,ServletExtension.jar,*.war"/>
  </patternset>

  <patternset id="servlet-jars">
     <include name="Servlet.jar,ServletExtension.jar"/>
  </patternset>

...debug output when classes are instantiated...

 +DataType: patternset
Adding reference: no-servlet-jars -> patternSet{ includes: [] excludes: [] }
<-- NO EXCLUDE pattern?
 +DataType: patternset
Adding reference: servlet-jars -> patternSet{ includes: [] excludes: [] }
<--  NO INCLUDE pattern or NO EXCLUDE pattern?

fileset: Setup scanner in dir ... with patternSet{ includes:
[Servlet.jar,ServletExtension.jar] excludes: [] } <-- but it shows up here
      [ftp] 0 files sent

No files were ftp'd but the jars are in this directory...here's the fileset
definition:

<fileset id="sd-servlet-jars" dir="Modules/${sd}">
     <patternset refid="servlet-jars"/>
 </fileset>

...the following fileset works...all these jars reside in the same
directory...

fileset: Setup scanner in dir ... with patternSet{ includes: [SD*.jar]
excludes: [Servlet.jar,ServletExtension.jar,*.war] }

 <fileset id="sd-jars" dir="Modules/${sd}">
     <include name="SD*.jar"/>
     <patternset refid="no-servlet-jars"/>
  </fileset>

...the ftp task that use these *sets:

<target name="stageSDWeb_6" depends="stageSDWeb_5"
          description="servlet jars">
    <ftp server="server"
 
remotedir="/${base.stage.dir}/${sd}/${base.aux.dir}_${sd}.ear/${stage_web}/$
{stage_servlet}"
         userid="${id}"
         password="${pwd}"
         verbose="yes"
         skipFailedTransfers="true">
       <fileset refid="sd-servlet-jars"/>
    </ftp>
  </target>

  <target name="stageSD_Auxx" depends="stageSDWeb_6"
          description="Auxx Stage">
    <ftp server="server"
         remotedir="/${base.stage.dir}/${sd}/${base.aux.dir}_${sd}.ear"
         userid="${id}"
         password="${pwd}"
         verbose="yes"
         skipFailedTransfers="true">
       <fileset refid="auxx-ejs-jars"/>
       <fileset refid="core-jars"/>
       <fileset refid="sd-jars"/>
    </ftp>
  </target>

...at a lose...any pointers why this isn't working?

Thanks,
-Will


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

Mime
View raw message