*First the build file:
*
println "HELLO"
*
Next we run it and watch it error:*
$ ant
Buildfil
Is there a way of knowing which target was called from the command line?
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
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.
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
when editing a task is there any reason to set an output property using the
redirector
vs. getProject().setProperty() ??
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
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
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
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
is there a standard way to read an arbitrary file (not a properties file)
into a property?
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.
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?
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=""
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:
>
>
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
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.
17 matches
Mail list logo