buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Toulme (JIRA)" <j...@apache.org>
Subject [jira] Commented: (BUILDR-217) separate 'type' from 'extension' in packages
Date Sun, 28 Feb 2010 19:36:05 GMT

    [ https://issues.apache.org/jira/browse/BUILDR-217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839483#action_12839483
] 

Antoine Toulme commented on BUILDR-217:
---------------------------------------

That's because of the semantic overlap with ActsAsArtifact which assumes that type is the
extension of the file.

Would it be ok to have a different reader for the packaging type ?

something like: package(:osgi).pkg_type => :osgi

I don't see much of a use for this though.

> separate 'type' from 'extension' in packages
> --------------------------------------------
>
>                 Key: BUILDR-217
>                 URL: https://issues.apache.org/jira/browse/BUILDR-217
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>    Affects Versions: 1.3.2
>            Reporter: Ittay Dror
>
> #package currently uses spec[:type] for both the 'type' of the artifact and the extension
given to the file name.
> but sometimes files with the same extension may be of different types. in OSGI for example,
the extension is always .jar, but they can be bundles or fragements. another example is source
jars or zips. their type is 'source', regardless of the extension (as long as it is some sort
of zip of course).
> in maven, ArtifactHandler separates between extension and 'packaging' i think it would
be good for buildr to have the same

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message