[
http://jira.codehaus.org/browse/MOJO-1546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=246322#action_246322
]
Juan Pablo Santos RodrÃguez edited comment on MOJO-1546 at 12/3/10 1:48 PM:
----------------------------------------------------------------------------
latest SNAPSHOT version includes a failonerror parameter (cfr.
http://jira.codehaus.org/browse/MOJO-1246) which will print
exception.getMessage() instead of failing the build.
However, if src directory does not exist, I think it makes more sense if the
plugin does nothing, rather than logging/failing the build. After all, it is
not an error. Attached patch at http://jira.codehaus.org/browse/MOJO-1606 does
fix this just by doing
{panel}
if( src.exists() ) \{
/* execute mojo */
} else \{
/* log: there aren't any files to apply native2ascii */
}
{panel}
was (Author: juanpablo.santos):
latest SNAPSHOT version includes a failonerror parameter (cfr.
http://jira.codehaus.org/browse/MOJO-1246) which will print
exception.getMessage() instead of failing the build.
However, if src directory does not exist, I think it makes more sense if the
plugin does nothing, rather than logging/failing the build. After all, it is
not an error. Attached patch at http://jira.codehaus.org/browse/MOJO-1606 does
fix this just by doing
{panel}
if( src.exists() ) {
/* execute mojo */
} else {
/* log: there aren't any files to apply native2ascii */
}
{panel}
> native2ascii failed if directory not exists
> -------------------------------------------
>
> Key: MOJO-1546
> URL: http://jira.codehaus.org/browse/MOJO-1546
> Project: Mojo
> Issue Type: Bug
> Components: native2ascii
> Environment: maven 2.2.1
> Reporter: Adrian Shum
> Attachments: patch
>
>
> if the src directory of native2ascii does not exists, build failed with fatal
> error.
> I believe native2ascii can simply ignore it if src directory does not exists
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email