Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 71333 invoked from network); 22 Jan 2006 05:51:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Jan 2006 05:51:23 -0000 Received: (qmail 2036 invoked by uid 500); 22 Jan 2006 05:51:18 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 1983 invoked by uid 500); 22 Jan 2006 05:51:18 -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 1970 invoked by uid 99); 22 Jan 2006 05:51:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2006 21:51:18 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [204.127.202.64] (HELO sccrmhc13.comcast.net) (204.127.202.64) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2006 21:51:17 -0800 Received: from alpha.acm.org (unknown[71.224.6.237](misconfigured sender)) by comcast.net (sccrmhc13) with SMTP id <2006012205505501300gi5bte>; Sun, 22 Jan 2006 05:50:56 +0000 Message-Id: <6.2.3.4.2.20060122001027.033f7a20@mail.comcast.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Sun, 22 Jan 2006 00:50:54 -0500 To: "Ant Users List" From: Ken Gentle Subject: Re: Copy a directory list In-Reply-To: <200601211557.38750.ccraig@gbg.com> References: <200601211421.19185.ccraig@gbg.com> <041C86E3-7064-4C97-B782-27C8818A13AB@chello.se> <200601211557.38750.ccraig@gbg.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N At 15:57 2006-01-21, you wrote: > > Here is the error: the includes attribute should contain patterns > > matching the file names you want copied. > > The patterns only match the directories. > > Try: includes="**/*.jar"" > >Tommy, > >I know where the error is my real problem is the property friving >the selector >needs to be a comma separated list which describes the configurations to >deploy. I want to use that value to drive the copy. In other words changing >the comma separated values to resemble a patternset pattern is not an option. >So that leaves me with few options. I can define some custom task to do a >regex replace on the property value appending "/**/*" sequences on each entry >or I can use beanshell with a script task to do the same. Neither of those >options are what I consider appealing. I thought I might be overlooking some >simple functionality in Ant when I ran into the problem but it just doesn't >seem to easy to copy directories specified in a CSV list without exposing >patternset syntax to the creator of the list. This will load the file and do the replacements: ${confs-to-deploy-pattern} kgentle@ALPHA $ ant -f prop-regex.xml Buildfile: prop-regex.xml default: [echo] default/** debug/** prod/** BUILD SUCCESSFUL Total time: 0 seconds Or if you already have the property and you're open to AntContrib tasks, you can use the PropertyRegex to do the replacements: ${confs-to-deploy-pattern} kgentle@ALPHA $ ant -f prop-regex.xml Buildfile: prop-regex.xml default: [echo] default/** debug/** prod/** BUILD SUCCESSFUL Total time: 0 seconds >--------------------------------------------------- >Clifton C. Craig, Software Engineer >Intelligent Computer Systems - A Division of GBG >ccc@icsaward.com >ccraig@gbg.com > >--------------------------------------------------------------------- >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