Skip to content

Commit

Permalink
fix issue with IBM semu 11
Browse files Browse the repository at this point in the history
  • Loading branch information
slachiewicz committed May 5, 2022
1 parent c97dde6 commit eb2f776
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/it/projects/mexec-29-wrong-signature/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@
*/

def buildLog = new File( basedir, 'build.log' )
assert buildLog.text.contains('java.lang.NoSuchMethodException: no such method: org.codehaus.mojo.exec.Main.main(String[])void')
assert buildLog.text.contains(
'java.lang.Exception: The specified mainClass doesn\'t contain a main method with appropriate signature.')
2 changes: 1 addition & 1 deletion src/main/java/org/codehaus/mojo/exec/ExecJavaMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public void run()

mainHandle.invoke( arguments );
}
catch ( IllegalAccessException e )
catch ( IllegalAccessException | NoSuchMethodException | NoSuchMethodError e )
{ // just pass it on
Thread.currentThread().getThreadGroup().uncaughtException( Thread.currentThread(),
new Exception( "The specified mainClass doesn't contain a main method with appropriate signature.",
Expand Down

0 comments on commit eb2f776

Please sign in to comment.