Exclude a single build.xml from a fileset of build.xmls

2008-08-29 Thread Patrick Aikens
I have a folder structure similar to the following: ${basedir} |--build |--project1 |--subproject1 |--build |--subproject2 |--build |--subproject3 |--build |--project2 |--subproject1 |--build |--subproject2 |--build Hopefully this won't g

Re: calling ANT or Depends?

2008-06-26 Thread Patrick Aikens
Using the task will actually execute a new ant process for each target, which means that in that particular ant process, init has never been called - thus it gets called every time. The depends line you have in your previous mail is still the best way to go - the "prepare something" step should p

Re: Custom Selectors

2008-04-09 Thread Patrick Aikens
t and see if you get your exception. I used: classpath="." > and got: Buildfile: build.xml BUILD FAILED /sandbox/test/ant/build.xml:3: Yep, at least we're selecting Total time: 0 seconds Patrick Aikens wrote: I'm trying to w

Custom Selectors

2008-04-08 Thread Patrick Aikens
I'm trying to write a custom selector. It works fine, except that isSelected is never called. This is using 1.6.5, with the .jar for the selector in ant's lib directory and the jar contains an antlib.xml. Here's the pared down version. Yes, isSelected is set to throw an exception if it's ever ca

Need to make a DirSet from all directories containing a given file in Ant 1.6.5

2008-04-04 Thread Patrick Aikens
I've seen solutions using and javascript, but that's not supported in 1.6.5 as far as I can tell. Unfortunately, I can't upgrade to 1.7.0 just yet. I need to be able to run a task on all project directories using a single build file (genericantfile), but ONLY if those directories contain an ivy