Re: password input task

2005-11-08 Thread Petar Tahchiev
On 09/11/05, Ninju Bohra <[EMAIL PROTECTED]> wrote: > > Nope...not possible to do that in a platform-neutral fashion ;-( > > P.S. This question has been asked many times before (I know because I was > one the "repeat" offenders). Please check the archives before asking a > question :-) > > Ninju >

Re: password input task

2005-11-08 Thread Ninju Bohra
Nope...not possible to do that in a platform-neutral fashion ;-( P.S. This question has been asked many times before (I know because I was one the "repeat" offenders). Please check the archives before asking a question :-) Ninju Jason Novotny <[EMAIL PROTECTED]> wrote: Hi, I'd like to us

password input task

2005-11-08 Thread Jason Novotny
Hi, I'd like to use the input task to ask a user to enter a password, but I don't want the password to be displayed on the screen-- is there a way to do this? Thanks, Jason - To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: List of directories that contain a file (ignore previous message)

2005-11-08 Thread Marc H. Graham
Just a matter of getting rid of the include, which was restricting it to one level. -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 08, 2005 3:02 PM To: Ant Users List Subject: Re: List of directories that contain a file > Can anyone tell me

Re: XSLT Param from ANT Property.

2005-11-08 Thread Dominique Devienne
> Ok, I think the issue was that I had fixed my ANT file (which had been > setting the param incorrectly) but there was some kind of up-to-date > check, and since neither the source XML nor the XSLT files had changed > the output xml wasn't getting regenerated. Right. does a timestamp check. Use

RE: List of directories that contain a file

2005-11-08 Thread Marc H. Graham
I can't say I understand this. And I couldn't get it to work. It seems that it will only look in the immediate subdirectories. I need it to go arbitrarily far down. I ran this: And I got (mi

Re: XSLT Param from ANT Property.

2005-11-08 Thread Robert r. Sanders
Ok, I think the issue was that I had fixed my ANT file (which had been setting the param incorrectly) but there was some kind of up-to-date check, and since neither the source XML nor the XSLT files had changed the output xml wasn't getting regenerated. Dominique Devienne wrote: I'm using the

Re: specify xerces basedir?

2005-11-08 Thread Stefan Bodewig
On Tue, 8 Nov 2005, Dominique Devienne <[EMAIL PROTECTED]> wrote: >> > Does anyone know of a way to tell Xerces to use the legacy >> > script's base directory? >> >> Ant installs an EntityHandler that resolves relative file URIs >> relative to the basedir, but if your legacy build uses the wrong >>

Re: specify xerces basedir?

2005-11-08 Thread Dominique Devienne
> > Does anyone know of a way to tell Xerces to use the legacy script's > > base directory? > > Ant installs an EntityHandler that resolves relative file URIs > relative to the basedir, but if your legacy build uses the wrong form > of URI (i.e. it doesn't use file: at all), you are out of luck. B

Re: Subant supposed to do this??? (newbie)

2005-11-08 Thread Dominique Devienne
> > >verbose="true" > target="compile"> > > > > > Which of course fails, since that file isn't xml. I don't see anything > in the subant documentation that leads me to expect this behavior. The > examples contain: I think you might need to specify directories instead

Re: specify xerces basedir?

2005-11-08 Thread Stefan Bodewig
On Tue, 8 Nov 2005, Brian Kuhn <[EMAIL PROTECTED]> wrote: > Does anyone know of a way to tell Xerces to use the legacy script's > base directory? Ant installs an EntityHandler that resolves relative file URIs relative to the basedir, but if your legacy build uses the wrong form of URI (i.e. it do

Re: XSLT Param from ANT Property.

2005-11-08 Thread Dominique Devienne
> I'm using the XSLT task from within ANT; and can't seem to get the > parameter to work as it seems it should. > > When I open the output xml; the params have been set to the strings > "props.prop1" and "props.prop2" instead of the runtime values. Am I > doing something wrong? Any help would be

Re: The good ol' JUnit problem

2005-11-08 Thread Stefan Bodewig
Hi Jon, long time no see. On Tue, 8 Nov 2005, Jon Skeet <[EMAIL PROTECTED]> wrote: > Assuming I actually *do* still have write-access, shall I add these > two properties to the manual in SVN? No, you don't. This is the current list of people with write access to Ant's svn. ant=rubys,conor,bod

Re: List of directories that contain a file

2005-11-08 Thread Dominique Devienne
> Can anyone tell me how create a directory list such that each directory > contains a file with a given name? dirlist patterns test the name of the > directory. I want to test if the directory contains a file with a given > name. > > I can get the paths to the files with filelist, and then I could

Re: How to reuse a fileset as a Class-Path in a manifest

2005-11-08 Thread Clifton Craig
Use the map element! Genius! Why didn't I think of that? Works like a charm and it's MUCH better than the ad-hoc beanshell I was using in the interim! Thanx Dominque! -- Clifton C. Craig, Software Engineer [EMAIL PROTECTED] On Tuesday 08 November 2005 2:41 pm, Dominique Devienne wrote: > > I'm t

List of directories that contain a file

2005-11-08 Thread Graham, Marc
Can anyone tell me how create a directory list such that each directory contains a file with a given name? dirlist patterns test the name of the directory. I want to test if the directory contains a file with a given name. I can get the paths to the files with filelist, and then I could select th

How to reuse a fileset as a Class-Path in a manifest

2005-11-08 Thread Clifton Craig
Hello All: I'm trying to re-use a fileset pointing to a lib folder containing all of my jars as a manifest Class-Path entry for my project. In short, my approach is to declare a property referencing the fileset object id. This gives me a value such as this: swixml.jar;jdom.jar I am then look

XSLT Param from ANT Property.

2005-11-08 Thread Robert r. Sanders
I'm using ANT 1.6.5; Java 1.5.0_04; Win 2000 sp4. I'm using the XSLT task from within ANT; and can't seem to get the parameter to work as it seems it should. After trying to look it up I haven't been able to find anything useful in explaining it. Basically I have:

Re: How to reuse a fileset as a Class-Path in a manifest

2005-11-08 Thread Dominique Devienne
> I'm trying to re-use a fileset pointing to a lib folder containing all of my > jars as a manifest Class-Path entry for my project. > [...] > I don't want to use any complexity or trickery to acheive my result (for > example a custom task or a script task) but I just don't see any other way. > I'm

specify xerces basedir?

2005-11-08 Thread Brian Kuhn
Hi all, I need to run some targets on a legacy build script. I'm running them from a new build script in another directory using the 'ant' task. Unfortunately, the legacy script uses XML entity includes and I'm getting FileNotFoundExceptions when I run the targets. It seems like my xml parser (I'v

Re: problems creating war file

2005-11-08 Thread Clifton Craig
It looks like you got some redundancy in your war task there. You're grabbing everything under ${outDir}/web/webapp/WEB-INF with the subelement and then you're going out and specifically grabbing the lib and classes folders under your ${outDir}/web/webapp/WEB-INF folder with the lib and classe

Re: problems creating war file

2005-11-08 Thread Andrew Goktepe
Use the 'duplicate' attribute of the task to prevent this. http://ant.apache.org/manual/CoreTasks/war.html If you set duplicate="fail" then the task will fail if it finds duplicates. You can use this to fix any unnecessary redundancy in the source paths. If the duplicates in the source paths are

problems creating war file

2005-11-08 Thread Lothar Krenzien
Hi there, I'm trying to create a war file using the Ant war-task. The creted file seems to be ok but all the files under WEB-INF/classes and WEB-INF/lib exists twice or even 3-times (with the same name in the same dir). Of course I can skip the duplicate files but it confuse me ;) My app look

How to reuse a fileset as a Class-Path in a manifest

2005-11-08 Thread Clifton Craig
Hello All: I'm trying to re-use a fileset pointing to a lib folder containing all of my jars as a manifest Class-Path entry for my project. In short, my approach is to declare a property referencing the fileset object id. This gives me a value such as this: swixml.jar;jdom.jar I am then look

RE: The good ol' JUnit problem

2005-11-08 Thread Matt Benson
--- Jon Skeet <[EMAIL PROTECTED]> wrote: [SNIP] > I've made the change (as well as fixing up some HTML > problems) and > mailed the file to Steve for check-in. It looks like > I don't have SVN > access after all - either that, or I've got a > different username or > password to before. > To commi

RE: The good ol' JUnit problem

2005-11-08 Thread Jon Skeet
> FYI ${ant.home} is documented on > using.html#built-in-props > > ${ant.library.dir} should probably be documented alongside it > and share its caveat. Yup - I noticed that when I dived into SVN. (It's not in the online manual, which is what I was looking at before.) I've made the change (

Re: The good ol' JUnit problem

2005-11-08 Thread Matt Benson
--- Steve Loughran <[EMAIL PROTECTED]> wrote: > Jon Skeet wrote: > > Steve wrote: > > > >>${ant.home}/lib > >>${user.home}/.ant/lib > > > > > > Having just checked the source, it's even easier > than that (for the > > first one): ${ant.library.dir} > > > > Both ant.home and ant.library.dir w

Re: Issue using ReplaceRegExp

2005-11-08 Thread Andrew Goktepe
Remove the leading forward slash character in your pattern: -Andrew On 11/8/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I tried using the pattern something like this; > > > byline="true"> > > > > > But I am seeing no changes in my log.txt file altough now I am not getting > any

RE: The good ol' JUnit problem

2005-11-08 Thread Jon Skeet
Steve wrote (replying to me): > > I think if Ant provided a property for its "home" location > ${ant.home}/lib > ${user.home}/.ant/lib You star. Could I suggest that ant.home should be added to the manual? (I did look on the website first, honest!) I suppose I could just edit it in CVS myself

Re: The good ol' JUnit problem

2005-11-08 Thread Steve Loughran
Jon Skeet wrote: Steve wrote: ${ant.home}/lib ${user.home}/.ant/lib Having just checked the source, it's even easier than that (for the first one): ${ant.library.dir} Both ant.home and ant.library.dir work from Eclipse, too, which I had worried about a little bit... Assuming I actually *do

RE: The good ol' JUnit problem

2005-11-08 Thread Jon Skeet
Steve wrote: > ${ant.home}/lib > ${user.home}/.ant/lib Having just checked the source, it's even easier than that (for the first one): ${ant.library.dir} Both ant.home and ant.library.dir work from Eclipse, too, which I had worried about a little bit... Assuming I actually *do* still have write-

Re: The good ol' JUnit problem

2005-11-08 Thread Steve Loughran
Jon Skeet wrote: This is a similar issue with the xalan classes in the 1.4 jdk. they're exposed directly by sun (and other jvm's) as org.apache.*. basically they just imported xalan and possibly other apache classes into the jvm. this gives your entire application (jvm) one chance to override

RE: Issue using ReplaceRegExp

2005-11-08 Thread pritesh.saharey
I tried using the pattern something like this; But I am seeing no changes in my log.txt file altough now I am not getting any error message and ant console output is showing me try-rep: [replaceregexp] Replacing pattern '/\[java\] pa

RE: The good ol' JUnit problem

2005-11-08 Thread Jon Skeet
> This is a similar issue with the xalan classes in the 1.4 jdk. > they're exposed directly by sun (and other jvm's) as org.apache.*. > basically they just imported xalan and possibly other apache > classes into the jvm. this gives your entire application > (jvm) one chance to override the ver