Maven 2.x Antrun Plugin

sql task does not respect onerror=continue

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Blocker Blocker
  • Resolution: Unresolved
  • Affects Version/s: 1.3
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Maven 2.2.1,
    jRockit (Java 6)
  • Number of attachments :
    0

Description

When defining an sql task, the antrun plugin propagates it's failure although "onerror" is set to "continue": the maven build just terminates without any meaningful error message.

With antrun 1.2 it still works (the build continues in case of SQL error messages), but with the current version the build fails.

Here are the last lines of my mvn output (I removed the irrelevant parts):

[sql] Executing resource: [...]\mut.database-schema.drop.sql
[sql] Failed to execute: grant select on SEQ_MUT_A to rzanner
[sql] java.sql.SQLSyntaxErrorException: ORA-01749: [...]

As you can see there is not even a "BUILD ERROR" message or something similar...

Issue Links

Activity

Hide
Jochen Riedlinger added a comment -

we have exactly the same problem.
environment:
maven 2.2.1
sun jdk 1.5.0 update 11

...and it only occurs with the "sql" task

Show
Jochen Riedlinger added a comment - we have exactly the same problem. environment: maven 2.2.1 sun jdk 1.5.0 update 11 ...and it only occurs with the "sql" task
Hide
Benson Margulies added a comment -

This would appear to be a problem with the sql task in ant; please supply a test case (perhaps using derby?).

Show
Benson Margulies added a comment - This would appear to be a problem with the sql task in ant; please supply a test case (perhaps using derby?).

People

Vote (2)
Watch (3)

Dates

  • Created:
    Updated: