buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Boisvert <alex.boisv...@gmail.com>
Subject Re: extracting jars from zip
Date Wed, 24 Feb 2010 18:43:57 GMT
Yeah, I think this is the same issue I hit when I was trying your code last
week.

Try adding,

artifact(...).enhance qpid_client_jar

It looks like from(...) doesn't properly wire the dependency to the task but
to the path it generates, so this is a workaround until that issue is fixed.

alex

On Wed, Feb 24, 2010 at 8:55 AM, Adam Crain
<adam.crain@plymouthsystems.com>wrote:

> Hi,
>
> First, thanks for the help last week in getting buildr installed with
> gem 1.3.6 and nice tool! I've now successfully gotten quite of bit
> working with a mixed java/scala set of projects.
>
> I am now trying to get a non-maven artifact dependency setup against a
> downloaded zip file and am having some trouble. I've been using the
> examples at:
>
> http://buildr.apache.org/artifacts.html#downloading
>
> My problem is that I can't seem to ever get the download to trigger...
> here's my build file with the unrelated stuff removed:
>
> ------------------------------------------
> require 'buildr/scala'
>
> GROUP = "frontend"
> COPYRIGHT = ""
>
> # Specify Maven 2.0 remote repositories here, like this:
> repositories.remote << "http://www.ibiblio.org/maven2"
>
> my_layout = Layout.new
> my_layout[:source, :main, :java] = 'src'
>
> #trying to setup an artifact extracted from a remote zip here
> qpid_url =
> 'http://www.apache.org/dist/qpid/0.5/qpid-java-client-0.5.zip'
> download_qpid = download(qpid_url => 'target/qpid.zip')
> unzip_qpid = unzip('target/qpid'=> download_qpid)
> qpid_client_jar =
> file('target/qpid/lib/qpid-client-0.5.jar'=>unzip_qpid)
> QPID_CLIENT =
> artifact('org.apache.qpid:qpid-client:jar:0.5').from(qpid_client_jar)
>
> desc "The scada bus project"
> define "frontend", :layout=>my_layout do
>
>  project.version = VERSION_NUMBER
>  project.group = GROUP
>  manifest["Implementation-Vendor"] = COPYRIGHT
>
>  desc "Front end processor in Scala"
>  define "fep", :layout=>my_layout do
>    compile.with [QPID_CLIENT], projects('javadnp3','fepproto') #I
> expect this should be triggering a download
>  end
>
> end
> ------------------------------------------
>
> The rake error is:
>
> Don't know how to build task
> '/home/adam/code/scada_bus/frontend/target/qpid/lib/qpid-client-0.5.jar'
>
> Apparently it sees the file dependency, but doesn't follow the => unzip
> => download dependency chain. I'm sure I'm just doing something silly...
>
> Thanks,
> Adam
>
>
>
>

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