buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Donald (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (BUILDR-321) ActsAsArtifact#upload and ActsAsArtifact#download assume artifact name is already valid maven file name when uploading
Date Wed, 22 Jun 2011 10:11:01 GMT

     [ https://issues.apache.org/jira/browse/BUILDR-321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Peter Donald closed BUILDR-321.
-------------------------------


> ActsAsArtifact#upload and ActsAsArtifact#download assume artifact name is already valid
maven file name when uploading
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: BUILDR-321
>                 URL: https://issues.apache.org/jira/browse/BUILDR-321
>             Project: Buildr
>          Issue Type: Bug
>            Reporter: Ittay Dror
>
> In ActsAsArtifact#install, the path in the local repository is computed as: Buildr.repositories.locate(self).
this uses only the artifact spec to create the file name.
> ActsAsArtifact#upload does:       path = group.gsub('.', '/') + "/#{id}/#{version}/#{File.basename(name)}",
which assumes that 'name' is already of the form "#{id}-#{version}" 
> same for ActsAsArtifact#download
> I suggest to use something like the locate method in both

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message