[
https://issues.apache.org/jira/browse/BUILDR-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638863#action_12638863
]
Marko Sibakov commented on BUILDR-164:
--------------------------------------
This issue contains downloading mechanism for source code attachment jars.
This can be easily done by adding something like this to artifact.rb
+ remote.find do |repo_url|
+ begin
+ sources = name.sub(/\.jar$/, "-sources.jar")
+ path = "#{group_path}/#{id}/#{version}/#{File.basename(sources)}"
+ mkpath File.dirname(name), :verbose=>false
+ URI.download repo_url + path, sources
+ true
+ rescue
+ false
+ end
+ end
BUILDR-165 is for adding source code attachment reference to Eclipse .classpath
and IDEA .iml like this:
Eclipse .classpath
<classpathentry kind="var"
path="M2_REPO/org/apache/wicket/wicket/1.3.4/wicket-1.3.4.jar"
sourcepath="M2_REPO/org/apache/wicket/wicket/1.3.4/wicket-1.3.4-sources.jar"/>
IDEA .iml
<library>
<CLASSES>
<root
url="jar://$M2_REPO$/org/apache/wicket/wicket/1.3.4/wicket-1.3.4.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root
url="jar://$M2_REPO$/org/apache/wicket/wicket/1.3.4/wicket-1.3.4-sources.jar!/"
/>
</SOURCES>
</library>
> add possibility to download source code attachments for downloaded artifact
> jars
> --------------------------------------------------------------------------------
>
> Key: BUILDR-164
> URL: https://issues.apache.org/jira/browse/BUILDR-164
> Project: Buildr
> Issue Type: Improvement
> Components: Core features, Dependency management
> Affects Versions: 1.3.3
> Reporter: Marko Sibakov
> Fix For: 1.3.4
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.