You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Henri Tremblay (JIRA)" <ji...@codehaus.org> on 2007/09/10 19:06:11 UTC

[jira] Created: (MASSEMBLY-239) In format dir, be able to create a dir without the suffix .dir

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

        

[jira] Commented: (MASSEMBLY-239) In format dir, be able to create a dir without the suffix .dir

Posted by "Henri Tremblay (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106966 ] 

Henri Tremblay commented on MASSEMBLY-239:
------------------------------------------

I can't change it but maybe priority major is a little bit high.

I know that in the case of multiple formats, it won't work. So maybe the solution is to enrich the assembly descriptor to have:

<format>
   <name></name>
   <suffix></suffix>
</format>

Where suffix is by default the name.


> 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

        

[jira] Work started: (MASSEMBLY-239) In format dir, be able to create a dir without the suffix .dir

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on MASSEMBLY-239 started by John Casey.

> 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
>            Assignee: John Casey
>             Fix For: 2.2-beta-3
>
>
> 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

        

[jira] Commented: (MASSEMBLY-239) In format dir, be able to create a dir without the suffix .dir

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ 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

        

[jira] Closed: (MASSEMBLY-239) In format dir, be able to create a dir without the suffix .dir

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MASSEMBLY-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MASSEMBLY-239.
--------------------------------

    Resolution: Fixed

> 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
>            Assignee: John Casey
>             Fix For: 2.2-beta-3
>
>
> 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