buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Boisvert" <>
Subject Re: download sources for artifacts
Date Tue, 15 Apr 2008 19:26:43 GMT
On Tue, Apr 15, 2008 at 10:03 AM, atul singh <> wrote:

> I am a new user of buildr. I was looking for how to download sources for
> artifacts and then i found the jira issue
> Download sources, is kind of important from the developer perspective...
> Are there any updates on this one.Or is there a way one can suggest here,
> which i can implement on my own.

I haven't had time to get to it yet...

If you have some time, I think that would be a good starter task to get into
Buildr hacking since most of it would be contained in lib/ide/eclipse.rb.

On the top of my head, it could look like,
1) Add an option in the Eclipse task to download sources or not
    You could use something like ENV['DOWNLOAD_SOURCES'] and default to yes
2) Generate source artifact names using the "-sources" qualifier convention
3) Force download of source artifacts;  ignore if doesn't exist or download
4) Add available source jars as classpathentry attribute,

<classpathentry kind="var"


5) Write a test case (probably the toughest part since we don't have tests
for Eclipse task right now)

Hope this helps...


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message