From user-return-62225-apmail-ant-user-archive=ant.apache.org@ant.apache.org Mon Sep 17 15:22:13 2007 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 43085 invoked from network); 17 Sep 2007 15:22:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Sep 2007 15:22:12 -0000 Received: (qmail 97746 invoked by uid 500); 17 Sep 2007 15:22:00 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 97714 invoked by uid 500); 17 Sep 2007 15:22:00 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 97703 invoked by uid 99); 17 Sep 2007 15:22:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2007 08:22:00 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [144.92.197.210] (HELO adsum.doit.wisc.edu) (144.92.197.210) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2007 15:21:58 +0000 Received: from avs-daemon.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JOI00003QO04O00@smtpauth1.wiscmail.wisc.edu> for user@ant.apache.org; Mon, 17 Sep 2007 10:21:36 -0500 (CDT) Received: from [128.104.17.46] (bohemia.doit.wisc.edu [128.104.17.46]) by smtpauth1.wiscmail.wisc.edu (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JOI00L48QNZZB20@smtpauth1.wiscmail.wisc.edu> for user@ant.apache.org; Mon, 17 Sep 2007 10:21:35 -0500 (CDT) Date: Mon, 17 Sep 2007 10:21:42 -0500 From: Eric Dalquist Subject: Re: fileset exclude with full path In-reply-to: <255d8d690709170814m5f18f6f1o3e572554d3552823@mail.gmail.com> To: Ant Users List Message-id: <46EE9B86.1000707@doit.wisc.edu> Organization: DoIT MIME-version: 1.0 Content-type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary=------------ms090508040403080705020602 X-Spam-Report: AuthenticatedSender=yes, SenderIP=128.104.17.46 X-Spam-PmxInfo: Server=avs-11, Version=5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.9.17.80226, SenderIP=128.104.17.46 References: <46EE98AB.4090302@doit.wisc.edu> <255d8d690709170814m5f18f6f1o3e572554d3552823@mail.gmail.com> User-Agent: Thunderbird 2.0.0.0 (X11/20070326) X-Virus-Checked: Checked by ClamAV on apache.org --------------ms090508040403080705020602 Content-Type: multipart/alternative; boundary="------------010909040206070408000100" This is a multi-part message in MIME format. --------------010909040206070408000100 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I figured that was the requirement ... unfortunately I have no control over the format of either path. All I get is two properties, each is an absolute path, and I need to make a fileset using one as the dir and excluding the other. My other thought was to look into trimming off the first bit of the exclude path though I'm not sure how I would do that either. AntContrib has the propertyregex task but that could get tricky with different path separators on different OSs. Anyone know of a 'substring' type task? -Eric Dominique Devienne wrote: > On 9/17/07, Eric Dalquist wrote: > >> > dir="/a/b/c/" >> > > Not recommended indeed, but if you really can't change that > > >> excludes="/a/b/c/d/**" /> >> > > This is wrong. Needs to be relative to dir attribute above. So should > be d/** only. > > --DD > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --------------010909040206070408000100 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I figured that was the requirement ... unfortunately I have no control over the format of either path. All I get is two properties, each is an absolute path, and I need to make a fileset using one as the dir and excluding the other.

My other thought was to look into trimming off the first bit of the exclude path though I'm not sure how I would do that either. AntContrib has the propertyregex task but that could get tricky with different path separators on different OSs. Anyone know of a 'substring' type task?

-Eric

Dominique Devienne wrote:
On 9/17/07, Eric Dalquist <eric.dalquist@doit.wisc.edu> wrote:
  
<fileset id="projectFiles"
dir="/a/b/c/"
    

Not recommended indeed, but if you really can't change that

  
excludes="/a/b/c/d/**" />
    

This is wrong. Needs to be relative to dir attribute above. So should
be d/** only.

--DD

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

  
--------------010909040206070408000100-- --------------ms090508040403080705020602 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJlDCC AvQwggJdoAMCAQICAkRNMA0GCSqGSIb3DQEBBQUAMFMxCzAJBgNVBAYTAlVTMRwwGgYDVQQK ExNFcXVpZmF4IFNlY3VyZSBJbmMuMSYwJAYDVQQDEx1FcXVpZmF4IFNlY3VyZSBlQnVzaW5l c3MgQ0EtMTAeFw0wNTA4MjkxNjA3MjBaFw0xNTA4MjkxNjA3MjBaMIGJMQswCQYDVQQGEwJV UzErMCkGA1UEChMiRGl2aXNpb24gb2YgSW5mb3JtYXRpb24gVGVjaG5vbG9neTEjMCEGA1UE CxMaRmFjdWx0eSAtIFN0YWZmIC0gU3R1ZGVudHMxKDAmBgNVBAMTH1VuaXZlcnNpdHkgb2Yg V2lzY29uc2luLU1hZGlzb24wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAOhIUdwld8sf AAlrdOv5Tt8PTX1Wku/ItsIjHrkus1MbKoulSXxSsSUPAPYzgT8HfhuRY+tHHzohFSu3xJWg x0wk8q2pqwo4KZ2evy7GMDFxTHyXSYa/1m0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