Re: How to convert back slashes to forward slashes

2007-08-16 Thread Qazwart
Instead of doing external calls to Perl, Python, or grep, why not use filterChains and filterReaders. You can use the string filter ReplaceString in the TokenFilter. See . On Aug 16, 2007, at 7:03 AM, Mike Stewart wrote:

Re: mail task failure

2007-08-16 Thread Qazwart
I bet you're missing a JAR file. I had the same problem with the task. Take a look at this page: and search for the word "mail.jar". You'll notice that the is dependent upon this jar file, and it is not installed by default.

Re: how to delete a file that matches a particular pattern?

2007-08-16 Thread Qazwart
Won't a fileset take care of this for you? Take a look at the manpage of the task: ant.apache.org/manual/CoreTasks/delete.html> and see how they use a fileset in the examples. Also take a look at the concept of a fileset:

Re: How to use ant in web application without system path setup under linux

2007-08-12 Thread Qazwart
I'm not sure why you cannot simply install Ant as a complete package. I haven't used CentOS, but I know Ant installs with no problems on Redhat. And, you can install Ant completely local to your $HOME directory. The Ant binary distribution runs under any system that has JDK 1.4 or greater

Re: Simple if/else Condition

2007-07-17 Thread Qazwart
On Jul 17, 2007, at 11:18 PM, Evan J wrote: if (condition) perform some task, i.e. echo message="condition met" else perform another task Check out the AntContrib tasks at . There is actually an ant task at

Re: task issue in ANT

2007-06-28 Thread Qazwart
No, Nant and Ant are two totally separate tools. Nant I believe is based upon .NET and not Java (which makes sense since it is for .NET applications). However, Nant and Ant do share many of the similar task types and a very similar build.xml file structure. You define project, run "Target

Re: Javadoc task

2007-06-18 Thread Qazwart
Take a look at the "target" and "source" properties of the task. If you use a higher Java JDK than you want to compile to, you can set these properties to emulate the Java JDK you are compiling for and the Java JDK you will be running on. You can also set the "ant.build.javac.source" and

Re: Rename directories in Ant

2007-06-13 Thread Qazwart
What version of Ant are you using? You seem to take the hard way: If you're using at least version 1.3, you can simply do this: If it's earlier than version 1.3: No need to use a mapper or anything: BTW, the problem you're running into is that regex is naturally greedy, so it always

Re: ant project building problem when one project depend upon another project.

2007-06-04 Thread Qazwart
Separate out the JAR task as a separate target and have both project "A" and project "B" depend upon that target. That way, you're just building the JAR and not the entire project. Or, you can build the JAR with a separate target and call it via an . On Jun 4, 2007, at 12:59 AM, Karamjit wr

Re: Running another target - can it be done?

2007-05-30 Thread Qazwart
Have you looked at and ? These allow you to call another target from inside of another target: ... On May 30, 2007, at 3:15 PM, yitzle wrote: I know. This is not something that you would usually want to do. But I'm sure there is at least 3 valid cases where this would be correct.