ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Enderling (JIRA)" <>
Subject [jira] [Updated] (EASYANT-53) Option -configfile ignored when starting EasyAnt through easyant.bat/easyant shell-script
Date Tue, 21 May 2013 21:18:21 GMT


Tim Enderling updated EASYANT-53:

    Attachment: EASYANT-53-Easyant-batch-file-shell-script-will-allo.patch

The attached patch is based on the current trunk (SVN revision 1480665). 

It addresses the issue by the following changes:
* Adding the property {{easyant.home}} to {{EASYANT_OPTS}} instead of {{EASYANT_ARGS}} (similar
to what is done with ANT_HOME) so it is available as Java System property (and it can be read
before the project has been intialized).
* Removing of passing in a {{-configfile}} option in the shell/batch script.
* In EasyAntMain use the {{configfile}} option, if given, otherwise fall back to {{<easyant.home>/easyant-conf.xml}},
if it exists to find an EasyAnt config file to load (or load none if neither of the two applies).
> Option -configfile ignored when starting EasyAnt through easyant.bat/easyant shell-script
> -----------------------------------------------------------------------------------------
>                 Key: EASYANT-53
>                 URL:
>             Project: EasyAnt
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.9
>            Reporter: Tim Enderling
>         Attachments: EASYANT-53-Easyant-batch-file-shell-script-will-allo.patch
> Both easyant.bat and the easyant shell script add a {{-configfile}} option pointing to
{{<EASYANT_HOME>/easyant-conf.xml}} to {{EASYANT_ARGS}} and pass it to {{EasyAntMain}}.

> This way it is impossible for someone calling the batch file/shell script to pass a custom
{{-configfile}} option (the value {{<EASYANT_HOME>/easyant-conf.xml}} will always win.
This is a major drawback when using different {{easyant-conf.xml}} (like with different sets
of system plugins) as the only workarounds are to either copy/link {{<EASYANT_HOME>/easyant-conf.xml}}
from these different files or write a custom batch file/shell script.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message