[
http://jira.codehaus.org/browse/MASSEMBLY-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_120872
]
Benjamin Bentmann commented on MASSEMBLY-239:
---------------------------------------------
The plugin's trunk already supports the suppression of the "dir" suffix via a
new mojo parameter:
{code:java}
/**
* If this flag is set, the ".dir" suffix will be suppressed in the output
* directory name when using assembly/format == 'dir' and other formats
* that begin with 'dir'.
*
* @parameter default-value="false"
*/
private boolean ignoreDirFormatExtensions;
{code}
What I dislike about this is the default value being "false". Sure, that would
keep backward compatibility with the existing plugin versions. However, I
personally would have called the current behavior a bug. Where on earth do
people want to append ".dir" to a directory? Are there really any use-cases for
this? If not, I do not see the point in keeping a bug enabled by default.
Instead, the philosophy "convention over configuration" should take precedence
such that users get the intended behavior out-of-the-box.
> In format dir, be able to create a dir without the suffix .dir
> --------------------------------------------------------------
>
> Key: MASSEMBLY-239
> URL: http://jira.codehaus.org/browse/MASSEMBLY-239
> Project: Maven 2.x Assembly Plugin
> Issue Type: Improvement
> Affects Versions: 2.2-beta-1
> Reporter: Henri Tremblay
>
> For a assembly in format directory, it would be nice to be able to get rid of
> the format suffix (".dir").
> In a general way, I think being able to change the file extension would be
> nice. This will allow to remote the .dir (make sure le dot is also removable)
--
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