Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,5 @@ ReloadMojo.reloadingApp = Reloading application at {0}
#

tomcatHttpStatusError = Tomcat return http status error: {0}, Reason Phrase: {1}
tomcatHttpDeployBodyError = FAIL
tomcatHttpBodyError = Tomcat return http body error: {0}
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,6 @@ UndeployMojo.undeployError = N'a pas pu retirer l'application : {0}

ReloadMojo.reloadingApp = Rechargement de l'application sur {0}

tomcatHttpStatusError = Tomcat a retourn\u00E9 un code HTTP en erreur: {0}, raison: {1}
tomcatHttpStatusError = Tomcat a retourn\u00E9 un code HTTP en erreur: {0}, raison: {1}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't that wrong? As far as I know French always puts a space before the colon.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct. I just added the space.

tomcatHttpDeployBodyError = ECHEC
tomcatHttpBodyError = Tomcat a retourn\u00E9 un corps HTTP en erreur: {0}
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ protected void checkTomcatResponse( TomcatManagerResponse tomcatResponse )
messagesProvider.getMessage( "tomcatHttpStatusError", statusCode,
tomcatResponse.getReasonPhrase() ) + ": "
+ tomcatResponse.getHttpResponseBody() );
}
} else if(tomcatResponse.getHttpResponseBody().startsWith(messagesProvider.getMessage("tomcatHttpDeployBodyError"))) {
{
getLog().error( messagesProvider.getMessage( "tomcatHttpBodyError",
tomcatResponse.getHttpResponseBody() ) );
throw new MojoExecutionException(
messagesProvider.getMessage( "tomcatHttpBodyError",
tomcatResponse.getHttpResponseBody() ));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ protected void checkTomcatResponse( TomcatManagerResponse tomcatResponse )
messagesProvider.getMessage( "tomcatHttpStatusError", statusCode,
tomcatResponse.getReasonPhrase() ) + ": "
+ tomcatResponse.getHttpResponseBody() );
} else if(tomcatResponse.getHttpResponseBody().startsWith(messagesProvider.getMessage("tomcatHttpDeployBodyError"))) {
{
getLog().error( messagesProvider.getMessage( "tomcatHttpBodyError",
tomcatResponse.getHttpResponseBody() ) );
throw new MojoExecutionException(
messagesProvider.getMessage( "tomcatHttpBodyError",
tomcatResponse.getHttpResponseBody() ));
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ protected void checkTomcatResponse( TomcatManagerResponse tomcatResponse )
messagesProvider.getMessage( "tomcatHttpStatusError", statusCode,
tomcatResponse.getReasonPhrase() ) + ": "
+ tomcatResponse.getHttpResponseBody() );
}
} else if(tomcatResponse.getHttpResponseBody().startsWith(messagesProvider.getMessage("tomcatHttpDeployBodyError"))) {
{
getLog().error( messagesProvider.getMessage( "tomcatHttpBodyError",
tomcatResponse.getHttpResponseBody() ) );
throw new MojoExecutionException(
messagesProvider.getMessage( "tomcatHttpBodyError",
tomcatResponse.getHttpResponseBody() ));
}
}
}