Input Handler that will echo default if user hits enter

2009-04-06 Thread Dylan Farre
I have written a small installer tool using Ant. One small problem that I have is related to the input task. I want a Input Handler that will echo default if user hits enter but not if user types in a value (even if the value is the same as the default) and then hits enter. Of course, I can just e

Input Handler that will echo default if user hits enter but not if user types in a value and then hits enter

2009-04-06 Thread Dylan Farre
I have written a small installer tool using Ant. One small problem that I have is related to the input task. I want a Input Handler that will echo default if user hits enter but not if user types in a value (even if the value is the same as the default) and then hits enter. Of course, I can just e

Extracting information out of a file

2009-03-31 Thread Dylan Farre
I am looking for a generic way (Ant task) to extract information out of a file. For example I have a sql script that calls other sql scripts. I want to be able to extract the list of these sub scripts. It would be great if the task would put them in an AntXtras strings type contruct, or something e

Using Log4J with Ant on Unix

2009-03-10 Thread Dylan Farre
Hi, I am having a problem, using Log4J with Ant on Unix. My project runs fine on Win and Unix. On Win, Log4J logs all the debug info to a log file for me. On Unix, it does not. It does not give any errors or anything. I have checked the obvious things like, does the file exist and does the user ha

Oracle on Unix help

2009-03-03 Thread Dylan Farre
Hi, any help will me much appreciated. I have been using Incanto for Oracle on Windows, but now I am having some issues using it on Unix, it sort of works, but gives errors. Also looking at the website, there is no mention of Unix. I assumed that it would support it, since that is the Ant philosoph

user@ant.apache.org

2009-02-27 Thread Dylan Farre
I am trying to replace a \ with the character sequence Don't ask why! Im not sure I know just yet. If I use this method: it just replaces \ with \ If I use this method: I get this error: Unexpected internal error near index 1 If I try to build up the sequence with multiple replaces, Ant

I want to send (explicit) quiet output to the screen and (automatic) verbose output to a log file

2009-02-20 Thread Dylan Farre
Hi I am writing an installation program using Ant. Currently I am running my program in quiet mode. This way, I can send user information requests [input] to the screen as well as [echo] specific information that I want the user to see. I can also send other debugging and logging information to var