Re: Programmatically create a fileset and reference

2008-05-05 Thread Jeremy Weber
Seems like the most simple approach. Transforming the csv file to be line delimited is not an issue, however something else seems to be amiss. CSV file after transform: C:\Documents and Settings\jweber\Desktop\db2_test\db2jcc_license_cu.jar C:\Documents and Settings\jweber\Desktop\db2_test\db2

Re: Programmatically create a fileset and reference

2008-05-03 Thread Matt Benson
--- Wascally Wabbit <[EMAIL PROTECTED]> wrote: > If you're not averse to creating a little helper > class, why not > just write a custom file selector that can read your > delimited > file. Then you can just leverage the built in > resource collection > mechanisms like: > > > classname="you

Re: Programmatically create a fileset and reference

2008-05-03 Thread Wascally Wabbit
If you're not averse to creating a little helper class, why not just write a custom file selector that can read your delimited file. Then you can just leverage the built in resource collection mechanisms like: As of 1.7 this item can be used just about wherever the older type was

Re: Programmatically create a fileset and reference

2008-05-02 Thread Scot P. Floess
Interesting... Well if you wouldn't mind...keep me up-to-date on what you discover... Thanks! Flossy Jeremy Weber wrote: Yeah, I have tweaked it a bit to support some stuff it didnt out of the box, it seems to work okay. Everything stays in the jar file but its executable. I think they re

Re: Programmatically create a fileset and reference

2008-05-02 Thread Jeremy Weber
Yeah, I have tweaked it a bit to support some stuff it didnt out of the box, it seems to work okay. Everything stays in the jar file but its executable. I think they real problem is filelist, and that it delimits by spaces. Probably a bug there. I am going to see if I can patch the filelist

Re: Programmatically create a fileset and reference

2008-05-02 Thread Scot P. Floess
I just (really quickly) looked at the link. That's pretty darn cool. I hadn't heard of that project :) So, are you unpacking the jar file first? I thought Ant dealt with the Windows file system (and spaces) correctly? I don't run Windows at all so this is all an assumption on my part ;)

Re: Programmatically create a fileset and reference

2008-05-02 Thread Jeremy Weber
I guess I could try convert the value of the property, but I'd rather not. Yes, all build artifacts are actually in a jar file. Its basically, a customized version of http://antinstaller.sourceforge.net/. I am still thinking that creating my own custom task would be helpful, just cant figure

Re: Programmatically create a fileset and reference

2008-05-02 Thread Scot P. Floess
I see... Have you considered using escape characters where the spaces are in the property? So, curious, you are using build.xml's in a jar file? Or, do you extract from the jar file and then use those files? Jeremy Weber wrote: Sure does, filelist accepts a set of files delimited by a space.

Re: Programmatically create a fileset and reference

2008-05-02 Thread Jeremy Weber
Sure does, filelist accepts a set of files delimited by a space... So when a path has a space it doesnt behave. Have used ant-contrib plenty of times in the past, buts that not an option. The kicker is this isnt a normal ant environment, but actually all the build files, etc are in a jar whe

Re: Programmatically create a fileset and reference

2008-05-02 Thread Scot P. Floess
OK I think I see the problem. It breaks down due to the space? Have you looked at Ant Contrib? They have a task that may help you. It uses delimiters - in this case you can define the delimiter as a comma. You might also want to define in a macrodef (sorry I am a huge huge fan of macrodefs

Re: Programmatically create a fileset and reference

2008-05-02 Thread Jeremy Weber
Not sure that accomplishes what I need to do. The problem I wish to solve is this: I have a property that equates to this: The value of this property is variable. I then have a couple of tasks that perform the following: * * Thi

Re: Programmatically create a fileset and reference

2008-05-01 Thread Scot P. Floess
Have you considered using a macrodef and elements? Maybe something like: Then you can supply whatever you want in as long as it adheres to allowances Jeremy Weber wrote: Hi All, I have created dozen of custom tasks before, but find myself

Programmatically create a fileset and reference

2008-05-01 Thread Jeremy Weber
Hi All, I have created dozen of custom tasks before, but find myself struggling with this one. I wish to create a task that does the following: 1. Accepts a file attribute to represent the absolute path of a file contains comma separated absolute paths. a. this file name will be read in,