buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ittay Dror (JIRA)" <j...@apache.org>
Subject [jira] Created: (BUILDR-321) ActsAsArtifact#upload and ActsAsArtifact#download assume artifact name is already valid maven file name when uploading
Date Wed, 23 Sep 2009 11:21:16 GMT
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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message