Re: Issue with sql task accessing MySql
Eric Fetzer <[email protected]> Thu, 29 Aug 2019 13:47:50 +0000 (UTC)
| Newsgroups | gmane.comp.jakarta.ant.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks Stefan! Took the easy path and outsourced the update to a simple bash script that ssh's to the MySql Server and runs the SProc there. Thanks for all your help!
On Wednesday, August 28, 2019, 04:02:17 PM EDT, Stefan Bodewig <[email protected]> wrote:
On 2019-08-28, Eric Fetzer wrote:
> Is there a way to set that version JUST for this call?
I'm afraid there is no way to run the <sql> task in a different JVM than
the rest of Ant.
Judging from
https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-versions.html
your MySQL Connector requires Java8 as a minimum.
But then again the same page also claims the Connector version 5.1 -
which only requires Java 5 - would work with the latest MySQL server
(except for using certain ciphers in TLS).
By no means am I a MySQL expert.
> We're building a legacy application here that CANNOT upgrade to a
> newer version of Java...
Understood.
You could try to move the sql part to a different build file and only
run that in a different JVM (via <exec>, <ant> will not fork a new
VM). Or you could try to build with Java8 and tell all your <javac>
tasks to use the compiler of Java7.
In either case this sounds like quite a bit of work. I'm sorry I haven't
got any better news. Maybe anybody with more MySQL experience than I has
has more ideas.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]