You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bjorn (JIRA)" <ji...@codehaus.org> on 2009/07/14 21:52:22 UTC

[jira] Created: (MASSEMBLY-436) assembly id not available as property for filtering

assembly id not available as property for filtering
---------------------------------------------------

                 Key: MASSEMBLY-436
                 URL: http://jira.codehaus.org/browse/MASSEMBLY-436
             Project: Maven 2.x Assembly Plugin
          Issue Type: Improvement
    Affects Versions: 2.2-beta-4
         Environment: all
            Reporter: Bjorn


I'm building a project for multiple platforms (using multiple assembly descriptors) and need the assembly information (for example one of my assemblies is called "gtk-linux-x86_64")  in the deployment package. Preferably by resource filtering. This information is available in my descriptors as the assembly id. Unfortunately this id is not accessible.

Besides resource filtering the assembly id could also be used in the descriptor itself and could reduce duplication of information.

Example where ID is used as a platform classifier:

<assembly>
	<id>gtk-linux-x86_64</id>

	<formats><format>dir</format>	</formats>

    <dependencySets>
        <dependencySet>
            <outputDirectory>/lib</outputDirectory>
            <includes>
<!-- could use ID here for example -->
                <include>org.eclipse:org.eclipse.swt:jar:${assembly.id}</include>
            </includes>
        </dependencySet>
    </dependencySets>

</assembly>

-- 
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-436) assembly id not available as property for filtering

Posted by "Sergio M C Figueiredo (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MASSEMBLY-436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=206795#action_206795 ] 

Sergio M C Figueiredo commented on MASSEMBLY-436:
-------------------------------------------------

I would like to get some assembly information in my resource files by filtering. Maybe something like:

${assembly.descriptorId} or ${assembly.id} -> ex. 'swing' or 'jar-with-dependencies' ...
${assembly.finalName} -> ex. 'my-project-5.5-swing'
${assemblyArchive.format} -> 'zip' or 'dir' ...

I am assuming 'assemblyArchive' has one instance by assembly descriptor format.



> assembly id not available as property for filtering
> ---------------------------------------------------
>
>                 Key: MASSEMBLY-436
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-436
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.2-beta-4
>         Environment: all
>            Reporter: Bjorn
>
> I'm building a project for multiple platforms (using multiple assembly descriptors) and need the assembly information (for example one of my assemblies is called "gtk-linux-x86_64")  in the deployment package. Preferably by resource filtering. This information is available in my descriptors as the assembly id. Unfortunately this id is not accessible.
> Besides resource filtering the assembly id could also be used in the descriptor itself and could reduce duplication of information.
> Example where ID is used as a platform classifier:
> <assembly>
> 	<id>gtk-linux-x86_64</id>
> 	<formats><format>dir</format>	</formats>
>     <dependencySets>
>         <dependencySet>
>             <outputDirectory>/lib</outputDirectory>
>             <includes>
> <!-- could use ID here for example -->
>                 <include>org.eclipse:org.eclipse.swt:jar:${assembly.id}</include>
>             </includes>
>         </dependencySet>
>     </dependencySets>
> </assembly>

-- 
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] (MASSEMBLY-436) assembly id not available as property for filtering

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MASSEMBLY-436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MASSEMBLY-436:
--------------------------------------

    Component/s: filtering
    
> assembly id not available as property for filtering
> ---------------------------------------------------
>
>                 Key: MASSEMBLY-436
>                 URL: https://jira.codehaus.org/browse/MASSEMBLY-436
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Improvement
>          Components: filtering
>    Affects Versions: 2.2-beta-4
>         Environment: all
>            Reporter: Bjorn
>
> I'm building a project for multiple platforms (using multiple assembly descriptors) and need the assembly information (for example one of my assemblies is called "gtk-linux-x86_64")  in the deployment package. Preferably by resource filtering. This information is available in my descriptors as the assembly id. Unfortunately this id is not accessible.
> Besides resource filtering the assembly id could also be used in the descriptor itself and could reduce duplication of information.
> Example where ID is used as a platform classifier:
> <assembly>
> 	<id>gtk-linux-x86_64</id>
> 	<formats><format>dir</format>	</formats>
>     <dependencySets>
>         <dependencySet>
>             <outputDirectory>/lib</outputDirectory>
>             <includes>
> <!-- could use ID here for example -->
>                 <include>org.eclipse:org.eclipse.swt:jar:${assembly.id}</include>
>             </includes>
>         </dependencySet>
>     </dependencySets>
> </assembly>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira