Re: Apple Silicon M1 Compatible Build of ANT

2021-11-22 Thread Matt Benson
Usually this "top one" is a shell script rather than a compiled executable. Matt On Mon, Nov 22, 2021, 7:02 AM David Garratt wrote: > In my ant bin directory for example I have the following and I am running > the top one which I assume is compiled for intel machines. > > -rwxr-xr-x@ 1 dave st

Re: Creating task/macro wrappers

2019-02-25 Thread Matt Benson
> > > > > > However, I don't seem to wrap my head around it. In particular, it > > > doesn't seem to support forward references. This is what I tried: > > > > > > > > > > > > > > > > > timeOut="@{timeOut}&

Re: Creating task/macro wrappers

2019-02-23 Thread Matt Benson
Look into the task with conditionally executed (using if/unless namespaces, antcontrib , or similar) blocks. HTH, Matt On Sat, Feb 23, 2019, 3:37 AM Isaac Jurado wrote: > Hello Ant users, > > I'm trying to create a wrapper over . The idea is > to have my macro expose the same attributes tha

Re: Ant Dependency Management

2017-10-28 Thread Matt Benson
If you're referring to Java compilation, tools like Ant and Maven generally perform incremental compilation unless explicitly forced to do otherwise, such as by "cleaning" (deleting) existing classfiles from a previous compilation. HTH, Matt On Sat, Oct 28, 2017 at 5:17 PM, R0b0t1 wrote: > Hello

Re: conditional flatten mapping

2015-02-05 Thread Matt Benson
I can't think of anything offhand. Instead I'd say do two pathconverts filtering your classpath two ways and concatenate the results. HTH, Matt On Thu, Feb 5, 2015 at 8:54 AM, Jason Ricles wrote: > I have the following flatten mapping in my ant file. > > > > > > > H

Re: delete task and symlinks

2014-11-11 Thread Matt Benson
It sucks that you were (nearly) bitten by this, and Ant's developers are happy to consider any notions you might have for addressing the issue, but litigation against a product that expressly comes with "NO WARRANTY" is not really much of a concern, so talk of lawsuits just doesn't add anything to

Re: Installation question

2014-02-23 Thread Matt Benson
It appears that YCSB is intended to be built with Apache Maven rather than Apache Ant. :-) Matt On Feb 23, 2014 12:19 PM, "Matt Benson" wrote: > > On Feb 23, 2014 12:15 PM, "Mahmood Naderan" wrote: > > > > OK. Problem is I want to build YCSB with Ant. &g

Re: Installation question

2014-02-23 Thread Matt Benson
t; YCSB or Ant. > It sounds like, in the directory you have entered, there is no build.xml file. I'm not sure what YCSB is or whether there is supposed to be a build.xml file there, but it sounds as though Ant is behaving perfectly normally. Matt > > Regards, > Mahmood > > > On

Re: Installation question

2014-02-23 Thread Matt Benson
On Feb 23, 2014 6:37 AM, "Mahmood Naderan" wrote: > > It is saying > > > Apache Ant(TM) version 1.9.3 compiled on December 2013 > > But I have started working on Ant just now (February)!! > What does that mean? > > You didn't compile Ant; you only installed it. Everything appears to be absolutely

Re: How to merge jars and directories specified by path resource into a single jar

2014-02-14 Thread Matt Benson
files in a particular package in the jar. Matt On Feb 14, 2014 11:21 AM, "Edwin Castro" <0ptikgh...@gmx.us> wrote: > On 2/13/14, 11:45 PM, Matt Benson wrote: > > The problem is that, presumably, you want the classes beneath the > > class.dirs elements to be added to t

Re: How to merge jars and directories specified by path resource into a single jar

2014-02-13 Thread Matt Benson
The problem is that, presumably, you want the classes beneath the class.dirs elements to be added to the jar relative to each element. Off the top of my head it occurs to me that you could iterate using antcontrib and update the jar for each directory. HTH, Matt On Feb 13, 2014 3:27 PM, "Edwin Ca

Re: Resource collections - Linux vs. windows

2014-02-11 Thread Matt Benson
> > > > >

Re: Resource collections - Linux vs. windows

2014-02-11 Thread Matt Benson
Can you expand your example into a self-contained example that builds up an appropriate structure first, then still fails on Linux? Matt On Tue, Feb 11, 2014 at 2:21 AM, Kimpton, C (Chris) < chris.kimp...@rabobank.com> wrote: > Hi, > > I have a target that is trying to delete some directories,

Re: Copy task not to overwrite but rename the file as _1 _2 etc..

2013-10-07 Thread Matt Benson
094208/?hs=false&tok=0bfzEZotG8slI1> > Want > a signature like > this?<http://www.linkedin.com/e/sig/5094208/?hs=false&tok=0uLVu92uq8slI1> > > > On 10/7/2013 7:58 PM, Matt Benson wrote: > > To rename files in the same directory you probably want to use the m

Re: Copy task not to overwrite but rename the file as _1 _2 etc..

2013-10-07 Thread Matt Benson
oes this mapping by > default.. For flattening there is one already.. but do not see any for > rename when file already exists.. requirement of mine.. > > Regards, > Nagendra > On 10/7/2013 7:25 PM, Matt Benson wrote: > >> It sounds like you want the functionality provid

Re: Copy task not to overwrite but rename the file as _1 _2 etc..

2013-10-07 Thread Matt Benson
It sounds like you want the functionality provided by filename mappers. Matt On Oct 7, 2013 4:20 AM, "Raja Nagendra Kumar" wrote: > Hi > > Does copy task have any option to rename to be copie file as > existing_file_1.xx etc.. just like windows does rename the existing files.. > > Regards, > Nag

Re: target not exist issue

2013-09-08 Thread Matt Benson
Vincent, I have recreated your example and it works fine for me. With which versions of Ant have you tried this? Matt On Sun, Sep 8, 2013 at 3:04 AM, Vincent Cai wrote: > Dear All, > > > l Ant files listed as below > > n A.xml > > n B.xml > > l In A.xml, B.xml is included > > n > > l

Re:

2013-08-25 Thread Matt Benson
I haven't deeply evaluated the targets you are invoking via antcalls, but I have very rarely found the need for them since the introduction of macrodefs around Ant 1.6--ancient history! I would recommend you experiment and see if you can't accomplish your goals with stock Ant. Matt On Aug 22, 2013

Re: Annotations Stripping or Transformation at Build time

2013-08-24 Thread Matt Benson
lts > > See who we know in > common<http://www.linkedin.com/e/wwk/5094208/?hs=false&tok=0bfzEZotG8slI1> > > > Want a signature like > this?<http://www.linkedin.com/e/sig/5094208/?hs=false&tok=0uLVu92uq8slI1> > > > > On 8/24/2013

Re: Annotations Stripping or Transformation at Build time

2013-08-23 Thread Matt Benson
Google is your friend. See http://en.m.wikipedia.org/wiki/Java_backporting_tools Matt On Aug 24, 2013 12:34 AM, "Matt Benson" wrote: > Thinking more on this, you'd at least have to remove generics signature > information from the bytecode. Those are the main differences b

Re: Annotations Stripping or Transformation at Build time

2013-08-23 Thread Matt Benson
hough. Matt On Aug 24, 2013 12:23 AM, "Matt Benson" wrote: > Interesting. There is a project in the Apache Commons sandbox, the > [weaver] component, which provides a general infrastructure for performing > bytecode transformations. An Ant task is provided. It might be fairly

Re: Annotations Stripping or Transformation at Build time

2013-08-23 Thread Matt Benson
Interesting. There is a project in the Apache Commons sandbox, the [weaver] component, which provides a general infrastructure for performing bytecode transformations. An Ant task is provided. It might be fairly trivial to rewrite 1.5 bytecode to v1.3; I'm not sure. Matt On Aug 23, 2013 10:11 PM,

Re: AW: AW: Problems with ANTLR

2013-08-20 Thread Matt Benson
Hmm, I don't know what could be the cause of the poor performance. I've never used ANTLR 3 much tbh. As for the task name, it is indeed defined by the name attribute of the taskdef, but note that in your current working example, you are using your own taskdef and are effectively bypassing the antli

Re: AW: AW: Problems with ANTLR

2013-08-19 Thread Matt Benson
See inline for some commentary: On Mon, Aug 19, 2013 at 2:28 AM, Ernst Reissner wrote: > Ok, got one step further: > now i have: > > > > > > > > Here you define the task as being named "ant-antlr3": > classname="org.apache.tools.ant.antlr.ANTLR3" >

Re: AW: Problems with ANTLR

2013-08-18 Thread Matt Benson
Okay, I apologize. The ANTLR wiki does in fact specify the XML namespace you are using, but technically they should not be hijacking an org.apache namespace in this manner, hence my confusion. :-( Matt On Aug 18, 2013 5:44 PM, "Ernst Reissner" wrote: > H, > what I read is > http://www.antlr.

Re: AW: Problems with ANTLR

2013-08-18 Thread Matt Benson
That is not the namespace of the ANTLR task; its jar may not even be set up as an antlib as such. You'll need to consult the documentation for the task to find out the proper way to set it up. Matt On Aug 18, 2013 10:48 AM, "Ernst Reissner" wrote: > Hello Jan, > you mean that ant-antlr3.jar is n

RE: Use of XML Catalog with Ant (xslt task) - request for example

2013-08-16 Thread Matt Benson
I'm not in a position to verify just at the moment, but I don't think Martin was suggesting you write code so much as showing you the properties used by the task which should translate into XML attributes. Matt On Aug 16, 2013 11:40 AM, "Kerry, Richard" wrote: > Goodness, I wasn't anticipating n

Re: If and unless

2013-08-05 Thread Matt Benson
Hi, Tom. The examples in the manual are wrong. if/unless:set references a property name as described, but for if/unless:true/blank the attribute value should be the actual value you want to evaluate, e.g. ${has.css.overrides}. Sorry for the trouble! :) Matt On Mon, Aug 5, 2013 at 11:31 AM, T

Re: How to run a single junit test method with ant

2013-05-10 Thread Matt Benson
Typically this would be done using separate targets. Ant's own build.xml provides an example. HTH, Matt On Thu, May 9, 2013 at 11:33 PM, 肖谋 wrote: > Hi, Users. >I am using ant in Linux. I can use ant junit task to run all test > methods in a junit4 test class but fail to find the way to

Re: how to compare two directores ?

2012-08-21 Thread Matt Benson
Hello, I think you'd get more assistance if you explained what you are trying to do, and/or showed us a snippet from the part of your build where things aren't going as you expect. Matt On Tue, Aug 21, 2012 at 12:33 AM, GNSH wrote: > how to compare two directores ? comparing with working fine

Re: a simple question regarding condition if/unless

2012-05-21 Thread Matt Benson
If I understand your question correctly, yes, you would have to add unless="test" everywhere you want to make target execution optional. Matt On Mon, May 21, 2012 at 11:06 AM, xsli2 wrote: > The target "test" calls two other targets: > > > > Now, I want to add some condition: when the property

Re: Embedding Ant Into a Java Jar

2012-05-07 Thread Matt Benson
Indeed; all produced jars for the last few Ant releases are available in Maven Central. You'll certainly need ant.jar, possible ant-launcher.jar, and depending on which optional tasks you might want to use, any number of additional jars and their dependencies. HTH, Matt On Fri, May 4, 2012 at 4:

Re: Selecting the largest or oldest files in a directory

2012-02-08 Thread Matt Benson
On Wed, Feb 8, 2012 at 7:08 AM, Harold Putman wrote: > Is there a way to select the "n" largest files or the n oldest files in a > directory? > Looking through all the standard > SelectorsI can't > see a way to do this. Is there some "ant-contrib"

Re: Where is the issues site

2012-02-04 Thread Matt Benson
On Sat, Feb 4, 2012 at 4:42 AM, Mansour Al Akeel wrote: > I was looking for ant's bug and enhancement request, but all I was able to > find is ivy and ivyIDE under jira ! Ant is on Bugzilla; see http://ant.apache.org/bugs.html Matt ---

Re: Extension Points?

2011-12-16 Thread Matt Benson
On Fri, Dec 16, 2011 at 2:40 PM, Perrier, Nathan wrote: > http://ant.apache.org/manual/targets.html > > > > Anyone have an example of where they found extension points useful? > One way of thinking of extension-points is as a somewhat Maven-esque view of a build, whereby you can define a basic "l

Re: Property not loaded

2011-12-16 Thread Matt Benson
On Thu, Dec 15, 2011 at 4:45 PM, Perrier, Nathan wrote: > You can't do that!  Double interpolation doesn't work. > > Fortunately, you can use a macro to accomplish it: > >       >       >       >       >         >       >   > Another possibility is the nested PropertyExpander provided by http

Re: How can i build latex, asy... with ANT

2011-12-16 Thread Matt Benson
On Thu, Dec 15, 2011 at 11:06 PM, redspider red wrote: > Hello, >  I want to use ant build latex code. the destination > file is demo.pdf, but ANT can not compare the time stamp between tex > and pdf, so ANT build pdf always. > > How can I resolve it. Timestamp comparison is something typically

Re: Performance of fileset containing a large number of files

2011-08-19 Thread Matt Benson
On Thu, Aug 18, 2011 at 5:12 AM, Julien LF wrote: >> 2011/8/18 Stefan Bodewig : >> Depends on which version of Ant you use.  Unless it is 1.8.2 upgrading >> could help as we've improved scanning perfromance with almost every >> release. > > I have some environments stuck with Java 1.3 so i planned

Re: Equivalent:

2011-07-08 Thread Matt Benson
On Fri, Jul 8, 2011 at 10:55 AM, Perrier, Nathan wrote: > Agreed, I try to use antcall as little as possible.  It also tends to > eat up memory if you have a ton of antcall tasks in a large build > framework. > > Macrodefs are a nice substitute, but they really need an "if/else" > attribute.  I fi

Re: Equivalent:

2011-07-08 Thread Matt Benson
On Fri, Jul 8, 2011 at 10:49 AM, Dominique Devienne wrote: > On Fri, Jul 8, 2011 at 10:27 AM, Perrier, Nathan wrote: >> No, because antcall creates a new project underneath the hood, whereas >> runtarget (antcontrib task) does not. > > I would add that (and as well in fact) goes > against the

Fwd: Reminder: TAC Assistance to ApacheCon NA 2011 closes July 8th

2011-07-03 Thread Matt Benson
-- Forwarded message -- From: Gavin McDonald Date: Sat, Jul 2, 2011 at 7:16 PM Subject: Reminder: TAC Assistance to ApacheCon NA 2011 closes July 8th To: p...@apache.org PMCs, please re-post this reminder to your user and dev lists and anywhere else you see fit. - Hi All,

Re: Syntax for Names: target, property, macrodef, etc.

2011-06-30 Thread Matt Benson
On Thu, Jun 30, 2011 at 11:50 AM, Steve Amerige wrote: > Hi Dominique and all, > > After considering that scriptdef, macrodef, and perhaps some other tags do > not allow neither the "-" nor the "." as an initial character, I'm going to > use the "_" character name prefix to indicate that a name is

Re: Syntax for Names: target, property, macrodef, etc.

2011-06-30 Thread Matt Benson
On Thu, Jun 30, 2011 at 10:54 AM, Dominique Devienne wrote: > On Thu, Jun 30, 2011 at 8:31 AM, Dominique Devienne > wrote: >> On Thu, Jun 30, 2011 at 6:51 AM, Steve Amerige wrote: >>> I'm looking for the authoritative specification within Ant for the value of >>> the name attribute >> PS: Also

Re: Zipfileset on classpath

2011-06-16 Thread Matt Benson
On Thu, Jun 16, 2011 at 10:48 AM, Jeff Crump wrote: > Hi, > > I would like to set up my JUnit classpath to include all of the jars in a > given zip file.  I'm using Ant 1.8.2. Everything I read tells me this ought > to work... > > > > >   >       >   > > > but verbose/debug output is telling me

Travel Assistance applications open for ApacheCon North America 2011

2011-06-06 Thread Matt Benson
The Apache Software Foundation (ASF)'s Travel Assistance Committee (TAC) is now accepting applications for ApacheCon North America 2011, 7-11 November in Vancouver BC, Canada. The TAC is seeking individuals from the Apache community at-large --users, developers, educators, students, Committers, an

Re: Custom task to force build success

2011-05-18 Thread Matt Benson
On Wed, May 18, 2011 at 10:07 AM, Carlton Brown wrote: > I'm struggling to write a custom task that is essentially the opposite of > "fail".   I've seen it mentioned on this list before, but never found a > conclusive answer. > > To be successful, a task expressed like this: > >   > > > The task

Re: How can I check if file exists in gz compress file?

2011-05-08 Thread Matt Benson
condition will do the proper job: >> >> >>     >>       >>         >>       >>     >> >> >> Nicolas >> >> Le 6 mai 2011 à 19:14, Matt Benson a écrit : >> >> > On Fri, May 6, 2011 at 11:09 AM, Ben Tu wrote: >

Re: How can I check if file exists in gz compress file?

2011-05-06 Thread Matt Benson
On Fri, May 6, 2011 at 11:09 AM, Ben Tu wrote: > Hi, > > Is there a task in Ant that I can check if the file exists in myfile.tar.gz > file without extracting it? > > With the tar being gzipped, I can't think of anything in core Ant that will just do this. If you want to gunzip it first, you can

Re: Weird observation with echoxml w.r.t. order of node text

2011-04-08 Thread Matt Benson
On Fri, Apr 8, 2011 at 1:49 PM, Dominique Devienne wrote: > On Fri, Apr 8, 2011 at 11:10 AM, Parag Doke > wrote: >> Notice that the "text outside the child node" appears before the child >> node itself, though it was after the child node in the original input to >> echoxml task. > > I vaguely r

Re: Loading resource or property files embedded in jar file that distributes shared build files?

2011-04-08 Thread Matt Benson
On Fri, Apr 8, 2011 at 9:09 AM, Steele, Richard wrote: > I've created a reusable set of build files using the technique I outlined at > http://stackoverflow.com/questions/5124726/what-are-some-good-ways-to-distribute-a-common-ant-file-to-be-included-in-builds/5168745#5168745. > This technique reli

Re: Using as a resource collection in

2011-04-05 Thread Matt Benson
On Fri, Apr 1, 2011 at 6:43 AM, Steele, Richard wrote: > I'm trying to use as a resource collection in a and found > that it doesn't work so well. > > First, an example: > > >   >       >   > > > This creates a zip file with multiple entries named "concat (C:", not a > single entry containin

Re: Curling throug a list of files

2011-03-28 Thread Matt Benson
On Mon, Mar 28, 2011 at 8:17 AM, Burger, Wolfgang wrote: > Hi, > i try to curl through an list of files and saving the output to a special > directory. > The idea is to make static html out of compiled php. > Your example seems fraught with problems, e.g. the fact that your use of and will ca

Re: How to manage properties for identical tasks/macros run in parallel?

2011-03-12 Thread Matt Benson
You should see the task, whereby you can set up scoped property "shadowing." Matt On Sat, Mar 12, 2011 at 10:59 PM, Parag Doke wrote: > Any ideas anyone ? > Thanks in advance, > Parag Doke > Save paper, save trees. Do not print emails/documents unless > absolutely necessary. > > > > On Mon, Mar

Re: Accessing classes in a path from a custom task

2011-02-21 Thread Matt Benson
On Sat, Feb 19, 2011 at 9:17 AM, Allan Lewis wrote: > I'm working on a custom ant task, and want to create a class based on > classname provided to the task. I've made a path available to the task, > but > can't quite figure out how to make those classes available to the task, so > I > wind up ge

Re: Change property value

2011-02-18 Thread Matt Benson
On Feb 18, 2011, at 9:27 AM, Stefan Bodewig wrote: > On 2011-02-18, shaffic wrote: > >> is the any alter method to change the property value which is initializd > > No. In Ant properties are immutable by design. > Do check out the task and see if it will help, however. Matt > Stefan > >

Re: Alternative to if else task.

2011-02-11 Thread Matt Benson
On Fri, Feb 11, 2011 at 9:49 AM, ritchie wrote: > > Matt, > The target option would be good if the other target does not fail, but in > my build file i have target which executes perforce command and i capture > the result of the exec task in resultproperty. If the value of result > property is

Re: Alternative to if else task.

2011-02-11 Thread Matt Benson
On Fri, Feb 11, 2011 at 9:34 AM, ritchie wrote: > > I am using a if else task in my build file and i had to add the additional > jar antelopetasksjar to my lib folder of ant to make this run. My > problem is for this to work for other developers they all have to add the > jar file to their an

Re: Possible to dynamically reference a property?

2011-01-25 Thread Matt Benson
On Jan 25, 2011, at 4:27 PM, Dominique Devienne wrote: > On Tue, Jan 25, 2011 at 4:10 PM, wrote: >> So doesn't that mean it would NOT be part of the normal distrib? - Dave > > A Google search turned up this post, but he builds it from source, > http://wdarby.blogspot.com/2010/06/using-antlib-p

Re: echo a property

2010-10-27 Thread Matt Benson
On Oct 27, 2010, at 4:25 PM, Gilbert Rebhan wrote: > Original Message > Subject: Re: echo a property > From: Matt Benson > To: Ant Users List > Date: 27.10.2010 23:07 > >> Are you talking about the props antlib? >> http://ant.apache.org/antl

Re: echo a property

2010-10-27 Thread Matt Benson
On Oct 27, 2010, at 4:05 PM, Vimil Saju wrote: > You will need to enable nested property expansion.ant-contrib has a Property > Helper class to expand nested properties. You will need to include this > library in your ant class path and also specify something similar to follows >

Re: conditional global variables?

2010-09-26 Thread Matt Benson
On Sep 26, 2010, at 8:23 AM, Marina wrote: > Hello! > In essence, I would like to know how to define a global property > conditionally, > and then have it available to all build files via . > Um, use the task? -Matt > Now the details: > I have a build.common.xml file with all global proper

Re: Other than looking at the Ant source...

2010-09-13 Thread Matt Benson
Scot: Have you read http://ant.apache.org/manual/developlist.html ? -Matt On Sep 13, 2010, at 1:06 PM, Scot P. Floess wrote: > > Yes, I was aware of those projects - thanks! > > Do you know of any how-to documentation as well? I know - I am being very > very lazy :) > > On Mon, 13 Sep 201

Re: ant-contrib 1.0b3 broken?

2010-09-07 Thread Matt Benson
This is because late-ish versions of antcontrib are defined as an antlib, so newer tasks aren't in the old-style properties file. Using xml namespace mapping, for example, works fine. HTH, Matt On Sep 7, 2010, at 7:55 PM, Jonathan Rosenberg wrote: > I had to declare the task via its own to

Re: How to get the last folder name?

2010-09-03 Thread Matt Benson
. To get direct children only, use includes="*". -Matt > Regards > > Peter > > > Matt Benson schrieb: >> Your example should work if you only use ${toString:_lastname}. References >> are not properties. >> >> HTH, >> Matt >>

Re: How to get the last folder name?

2010-09-03 Thread Matt Benson
Your example should work if you only use ${toString:_lastname}. References are not properties. HTH, Matt On Sep 3, 2010, at 9:27 AM, P.N. wrote: > > Hello! > > I want to get the path to the last child folder in some parent directory. > Tried this: > > > >

Re: AW: Conditional target problem

2010-08-19 Thread Matt Benson
On Aug 19, 2010, at 11:59 AM, Vimil Saju wrote: > I read about the new macrodef task which can be used create a custom > composite task by combining other tasks together. Using the macrodef task > instead of antcall cant we overcome the performance overhead and the property > visibility issues

Re: Ant: want to copy a file if it exists

2010-07-30 Thread Matt Benson
On Jul 30, 2010, at 8:42 AM, Martin Gainty wrote: A great question! i found 2 items that may help: 1)Javadoc for an Ant Resource: http://www.docjar.com/docs/api/org/apache/tools/ant/types/ Resource.html This does communicate the basic idea that a Resource is *like* a File. 2)The folks a

Re: Ant task to convert files from one encoding to another encoding

2010-07-21 Thread Matt Benson
On Jul 21, 2010, at 1:47 AM, jingguo yao wrote: > It seems that a task to convert one encoding to another encoding does not > exist in Ant distribution. The solution I have found is NekoConv ( > http://people.apache.org/~andyc/neko/i18n/doc/index.html). Is there any > other solution to do the enc

Re: Loading a list of filtered files

2010-07-13 Thread Matt Benson
On Jul 13, 2010, at 10:12 AM, Nicolas Lalevée wrote: > Since I discovered the "powerfullness" of resource and resource collection in > Ant, I have been able all sort of manipulation on files whithout to have > tempory files. Until. > > I would like to have in one ant property some infos extrac

Re: Constructing patterns for use in fileset includes

2010-07-05 Thread Matt Benson
On Jul 5, 2010, at 10:17 AM, Bailey, Darragh wrote: Thought I'd send the final results of what I got working to the list. [SNIP] I must say this is probably the first example of used in anger in the wild. I'm gratified that it's working so well for you. :) Regards, Matt -- Regards,

Re: Augment task and use cases

2010-07-01 Thread Matt Benson
On Jul 1, 2010, at 11:07 AM, Michael Ludwig wrote: Matt Benson schrieb am 01.07.2010 um 10:26 (-0500): On Jul 1, 2010, at 9:52 AM, Michael Ludwig wrote: Wouldn't it be nicer to have , which is still young and flexible, have augment/@refid to refer to an existing reference, and augmen

Re: Augment task and use cases

2010-07-01 Thread Matt Benson
On Jul 1, 2010, at 9:52 AM, Michael Ludwig wrote: I'm wondering about the design of the Augment task, which uses augment/@id instead of augment/@refid to refer to an existing resource. To draw on the example from the manual: \,,,/ (o o) --oOOo-(_)-oOOo-- Given

Re: Constructing patterns for use in fileset includes

2010-07-01 Thread Matt Benson
On Jul 1, 2010, at 8:26 AM, Bailey, Darragh wrote: -Original Message- From: Matt Benson [mailto:gudnabr...@gmail.com] Sent: 30 June 2010 15:57 To: Ant Users List Subject: Re: Constructing patterns for use in fileset includes You're in luck. I would recommend using antcontri

Re: Constructing patterns for use in fileset includes

2010-06-30 Thread Matt Benson
On Jun 30, 2010, at 6:24 AM, Bailey, Darragh wrote: > > > Is it possible to take the contents of a property and modify each item within > the property to append a wildcard in order to turn them into patterns that > can be used within ? > > property1 = string1,string2,string3,string4 > > An

Re: Copying a static list of files

2010-06-25 Thread Matt Benson
On Jun 25, 2010, at 9:48 AM, Stefan Bodewig wrote: On 2010-06-25, Patrick Martin wrote: I tried that but then, copy (verbose="true") tells me something like: [copy] //host/share/dir1/dir2/one file.txt omitted as //host/share/dir1/dir2/one file.txt is up to date. So it means copy actually tr

Re: Atomic/Synchronized Task

2010-06-24 Thread Matt Benson
behoove you to join in the development effort of the parallel executor (if its author is open to outside participation). It could be close enough or lead to something that is. HTH, Matt > > -Original Message- > From: Matt Benson [mailto:gudnabr...@gmail.com] > Sent: Thursd

Re: Atomic/Synchronized Task

2010-06-24 Thread Matt Benson
On Jun 24, 2010, at 4:04 PM, Perrier, Nathan wrote: > Hello all, > > > > I was curious if there exists a means to atomically execute tasks when > running targets in parallel. > ? -Matt > > > I.E., I would like to do something like the following: > > > > > > > >

Re: Need cross platform way of assigning users name to a property

2010-06-22 Thread Matt Benson
On Jun 22, 2010, at 11:03 AM, Michael Ludwig wrote: > Dean Schulze schrieb am 22.06.2010 um 08:25 (-0700): > >> >> >> > >> I need a cross-platform way to assign a user.name property in Ant. > >> Is there some way that I can read the username from the environment in >> a cross-platform way

Re: How to echo the empty directories of a fileset ?

2010-05-17 Thread Matt Benson
On May 15, 2010, at 4:30 AM, Bruno Medeiros wrote: On Thu, May 13, 2010 at 7:14 PM, Matt Benson wrote: On May 13, 2010, at 12:48 PM, Bruno Medeiros wrote: Hello. If I do something like this: and projects.dir has

Re: How to echo the empty directories of a fileset ?

2010-05-13 Thread Matt Benson
On May 13, 2010, at 12:48 PM, Bruno Medeiros wrote: Hello. If I do something like this: and projects.dir has some empty directories, then those directories will be copied to destination.dir . Is this normal behavior?

Re: AW: Passing a list of files to javac

2010-03-11 Thread Matt Benson
Have you tried wrapping a refid'd fileset in a (path) element nested in ? That, according to the manual, should work (note that you can nest any filesystem-based resource collection into a path). This presumes you're using Ant 1.7+... HTH, Matt On Mar 11, 2010, at 4:42 AM, Robert Mentee

Re: Ivy + hudson CI - problems downloading artifacts, please, help

2010-03-04 Thread Matt Benson
This bit me today... updated to tip Ivy and seems to be resolved-- thanks Maarten! -Matt On Feb 26, 2010, at 5:50 PM, Maarten Coene wrote: ok, I've found a place in the Ivy code that could cause the resolve to hang. I've fixed that particular problem in SVN trunk. Could you try again with

Re: how to detect a file while looping thru a list of directories

2010-03-04 Thread Matt Benson
Just describe the path with a fileset (or use the fileset directly as this deprecated approach should still work): or if you're wanting to match test.xml at any point in that directory structure... HTH, Matt On Mar 4, 2010, at 5:09 AM, Michael Powe wrote: On Wed, Mar 03, 2010 at 05

Re: AW: Jar and duplicate=preserve

2010-02-26 Thread Matt Benson
liche Nachricht- Von: Matt Benson [mailto:gudnabr...@gmail.com] Gesendet: Freitag, 26. Februar 2010 16:29 An: Ant Users List Betreff: Re: Jar and duplicate=preserve I think duplicate="preserve" actually implies that both entries are retained, per the ability of the format to handle t

Re: Jar and duplicate=preserve

2010-02-26 Thread Matt Benson
I think duplicate="preserve" actually implies that both entries are retained, per the ability of the format to handle this seemingly illogical situation. -Matt On Feb 26, 2010, at 9:21 AM, Antoine Levy Lambert wrote: Hello Juergen, my spontaneous answer is that duplicate="preserve" means

Re: Include Macros Defined in a Single Directory

2010-02-20 Thread Matt Benson
Ant 1.8.0 shipped with the ability to nest any resourcecollection into your import task: Should work for you. -Matt On Feb 19, 2010, at 5:52 PM, James Kennard wrote: Hi, I have been defining macros in individual files and as a result every time I add a new macro I am adding an impo

Re: Ant task to get artifacts from Nexus Repository

2010-02-18 Thread Matt Benson
Maven Ant tasks or Ivy can pull from Nexus, which is fundamentally a Maven repository. -Matt On Feb 18, 2010, at 11:13 AM, Sridhar Bitkuri wrote: Looking for any Ant task to get the ear files or war files from Nexus Repository. Appreciated. -- Sent from my Palm Prē -

Invalid report WAS [IvyDE] Ivy project menu disappears running Hudson IvyDE

2010-02-10 Thread Matt Benson
Actually, I think I lied. I was running an Eclipse profile that was using IvyDE 2.0.0. Sorry! On Feb 10, 2010, at 11:08 AM, Matt Benson wrote: I had to use the Unlocker utility on Windows to unlock the jars from my Ivy cache that Eclipse was using. That freaked out Eclipse such that I

[IvyDE] Ivy project menu disappears running Hudson IvyDE

2010-02-10 Thread Matt Benson
I had to use the Unlocker utility on Windows to unlock the jars from my Ivy cache that Eclipse was using. That freaked out Eclipse such that I had to restart, and now I no longer have my project-level Ivy menu on any of my projects. Any ideas what could be the reason for this? Thanks, M

Re: with refid to support further narrowing

2010-02-03 Thread Matt Benson
In theory you could rebuild the fileset from the restrict resourcecollection, given that you presumably know the original basedir used to create the fileset. A rough outline would be along the lines of: Something along these lines ought to do it in this l

Re: Add new resource to existing ResourceCollection (path) in ANT build script

2010-01-28 Thread Matt Benson
On Jan 28, 2010, at 12:21 PM, Dan Beaulieu wrote: I've got a build script that builds multiple components and jars them up. I currently build a path like so: And this gets called before every compile target. So every time, its loading everything in the

Re: Getting the name of the only file in a directory

2010-01-07 Thread Matt Benson
Another way to keep this as a resourcecollection is: -Matt On Jan 7, 2010, at 4:47 PM, leroybrownbpj wrote: Thank you! ddevienne wrote: On Thu, Jan 7, 2010 at 4:02 PM, leroybrownbpj wrote: I'm working on a project currently where we need to deploy an artifact to a server via

Re: AW: AW: should ant 'id' value be a static string

2009-12-21 Thread Matt Benson
Well, theoretically if some user were using a ${foo} construct as an explicit id, then yes, that would break BC, but I would imagine such situations to be extremely rare and wouldn't have a problem with adding property expansion to the id attribute. -Matt On Dec 21, 2009, at 7:27 AM, wrot

Re: AW: How to know if a perticular macro is defined or not

2009-12-16 Thread Matt Benson
You want the condition. See the list of supported conditions under the task. On Dec 16, 2009, at 6:02 AM, Raja Nagendra Kumar wrote: Thank you jan. It may be good idea to have api to know the list of macros available too (it may be of help in few other contexts than this). Pl. consi

Re: How to copy jars of path variable to dir, excluding some jars?

2009-12-15 Thread Matt Benson
That should work. Have you verified that build.classpath is not empty? You could run Ant in -v verbose or -d debug mode for more information... On Dec 15, 2009, at 2:47 PM, KARR, DAVID (ATTCINW) wrote: I have a path variable that I set in my build script. I'm trying to assemble a deploy

Re: How do you sort and remove duplicates lines from a file ?

2009-11-09 Thread Matt Benson
Assuming yourfile.txt: On Nov 9, 2009, at 12:12 PM, cvsusr wrote: Is it possible to give a complete example with a text file. I dont know how to pass resource to this block. Matt Benson-2 wrote: Well, my example you cited

Re: How do you sort and remove duplicates lines from a file ?

2009-11-09 Thread Matt Benson
n ant. Please let me know. thanks Scot P. Floess wrote: I hate to admit this...I have never used the concat target...I have completely overlooked it in the past :( On Tue, 1 Jul 2008, Matt Benson wrote: All: I just added the following example to the Ant manual i

Re: Creating a fileset from a list of filenames

2009-11-03 Thread Matt Benson
--- On Tue, 11/3/09, Wray, Nathan wrote: > From: Wray, Nathan > Subject: Creating a fileset from a list of filenames > To: user@ant.apache.org > Date: Tuesday, November 3, 2009, 7:16 AM > Hi All; > > > > I'm trying to identify modified java files in an SVN > working copy and > run checksty

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Matt Benson
Okay, the idea of using a fileset to specify possible matches by pattern is right. All you have to add to that is the use of the resourcecount task/condition to count the number of files matched. If you're using a version of Ant earlier than 1.7.0 you can use with an condition to determine

Re: Feature request: ifbool/unlessbool

2009-09-24 Thread Matt Benson
--- On Thu, 9/24/09, Stefan Bodewig wrote: > From: Stefan Bodewig > Subject: Re: Feature request: ifbool/unlessbool > To: user@ant.apache.org > Date: Thursday, September 24, 2009, 5:27 AM > On 2009-09-24, Francis GALIEGUE > > wrote: > > > But ideally, I'd like to use these properties all the

  1   2   3   4   5   6   7   8   >