classpath order wierdness

2007-11-19 Thread Hunter Peress
*First the build file: * println "HELLO" * Next we run it and watch it error:* $ ant Buildfil

How to know which target is running?

2007-07-11 Thread Hunter Peress
Is there a way of knowing which target was called from the command line?

Two good patches for mysql support and generic sql row counting

2006-12-01 Thread Hunter Peress
I submitted two patches a month ago and I would like to know if any of the developers wouldnt mind adding it to a forthcoming release. One of the patches returns the count of the result rows in an efficient manner. The other adds support for mysql which is especially useful when sourcing mysqldum

1.6.2 is reporting 1.6.5

2006-11-21 Thread Hunter Peress
http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.2-bin.tar.bz2 dowload it, run bin/ant -version itll say 1.6.5 amazingly frustrating.

New Patch Solution to error loading a mysqldump file using ant sql task's src

2006-11-07 Thread Hunter Peress
I submitted a new ant task for 1.6.5 named MySQLExec.java It handles the mysql specific delimiter command (found in mysqldumps of triggers and stored procedures) and it handles varchar/text fields that contain -- such as xml comments stored in a text field. http://issues.apache.org/bugzilla/show

Redirector vs. getProject().setProperty(

2006-10-26 Thread Hunter Peress
when editing a task is there any reason to set an output property using the redirector vs. getProject().setProperty() ??

[Solution]: error loading a mysqldump file using ant sql task's src

2006-10-24 Thread Hunter Peress
e JDBC layer gets to parse too? The problem I had (again this was probably 3 years ago) was that for any given line, the line was assumed to contain an entire SQL statement...if the SQL statement spanned multiple lines, a continuation character had to be included in the file. Scot Hunter Peress w

Re: Example: error loading a mysqldump file

2006-10-24 Thread Hunter Peress
ients named above. If you are not the intended recipient, you are hereby notified that you have received > this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its > contents > - Original Message - > From: "Hunter Peres

Example: error loading a mysqldump file

2006-10-24 Thread Hunter Peress
nt > ); > > I had to do this kind of thing: > > create table foo \ > ( \ > bar as int \ > ); > > The problem (again if I can remember correctly) was that each line > (meaning new line/carriage return) was being interpreted as the "whole" > sql statement a

error loading a mysqldump file

2006-10-23 Thread Hunter Peress
using the sql task's src attribute i source a mysqldump file and it errors. mysql can source the file with no problems. but in ant I source it and theres a syntax error. There is no delimiter being set in the source. also if take individually two insert statement and source those it works. but i c

Reading file into a property

2006-10-20 Thread Hunter Peress
is there a standard way to read an arbitrary file (not a properties file) into a property?

Getting output from a custom ant task

2006-10-12 Thread Hunter Peress
Hi, Im writing a custom ant task and I want to know how I can return a string from it back to an ant property.

Did i reinvent the wheel with greaterthan?

2006-10-12 Thread Hunter Peress
Im using ant-contrib to implement a greater-than (for ints only) functionality. Did I miss something in the documentation? Or is this the best approach (i realize I could have written a custom ant task) Did i reinvent some wheel in ant?

Re: Filterchaining individual property

2006-10-11 Thread Hunter Peress
It woud still be easiest if you could give any property to a filterchain instead of having to implement I/O redirection for everything. On 10/11/06, Hunter Peress <[EMAIL PROTECTED]> wrote: OK fixed. http://localhost:8080/manager"; username=""

Re: Filterchaining individual property

2006-10-11 Thread Hunter Peress
n output property but i needed to give the ant task an outputproperty On 10/11/06, Hunter Peress <[EMAIL PROTECTED]> wrote: Hi Matt, The type doesn't support the nested "outputfilterchain" element. On 10/11/06, Matt Benson < [EMAIL PROTECTED]> wrote: > >

Re: Filterchaining individual property

2006-10-11 Thread Hunter Peress
Hi Matt, The type doesn't support the nested "outputfilterchain" element. On 10/11/06, Matt Benson <[EMAIL PROTECTED]> wrote: Tomcat's tasks support nested I/O redirectors. You should be able to specify an outputfilterchain with an outputproperty here. HTH, Matt

Filterchaining individual property

2006-10-11 Thread Hunter Peress
is there a way to filterchain an individual property? The *org.apache.catalina.ant.ServerinfoTask *somehow supports the outputproperty attribute anyway, i only want the first line of that property.