Multiple files in one package

1 view
Skip to first unread message

Mike Roberts

unread,
Feb 24, 2010, 7:37:15 PM2/24/10
to fig-...@googlegroups.com
Hi all,

Didn't file this a bug since I'm not sure which bit of fig (or me) is
failing.

I want to have 2 files in a package, e.g. sheep.jar and sheep-
sources.jar . I want both files to be extracted when I retrieve to my
local lib folder. To do this I've tried:

config default
append CLASSPATH=@/sheep.jar:@/sheep-sources.jar
end

and

config default
append CLASSPATH=@/sheep.jar
append SOURCEPATH=@/sheep-sources.jar
end

The first of these fails on publish :

$ fig --publish sheep/2.5.5
/home/mroberts/.gem/ruby/1.8/gems/fig-0.1.13/lib/fig/parser.rb:16:in
`parse_package': .: Expected one of include, command, set, end at line
4, column 3 (byte 47) after config default (RuntimeError)

The second doesn't bomb out but only the sheep.jar file ends up in my
local ./lib folder (I have retrieve set to CLASSPATH->lib)

Any ideas?

What I really want is everything in resources.tar.gz to appear in my ./
lib without having to set any variables at all.

Cheers

Mike

Matthew Foemmel

unread,
Feb 24, 2010, 7:49:09 PM2/24/10
to fig-...@googlegroups.com
You'll need to add an extra "retrieve" statement to get the items from the SOURCEPATH out:

    retrieve SOURCEPATH->lib

There's also "experimental" support for retrieving all files from a package like this:

    retrieve @sheep->lib/sheep

That code is checked into git but I don't think we've done a release with it yet. 

On Wed, Feb 24, 2010 at 6:37 PM, Mike Roberts <miker...@me.com> wrote:
Hi all,

Didn't file this a bug since I'm not sure which bit of fig (or me) is failing.

I want to have 2 files in a package, e.g. sheep.jar and sheep-sources.jar . I want both files to be extracted when I retrieve to my local lib folder. To do this I've tried:


config default
 append CLASSPATH=@/sheep.jar:@/sheep-sources.jar
end

and

config default
 append CLASSPATH=@/sheep.jar
 append SOURCEPATH=@/sheep-sources.jar
end

The first of these fails on publish :

$ fig --publish sheep/2.5.5
/home/mroberts/.gem/ruby/1.8/gems/fig-0.1.13/lib/fig/parser.rb:16:in `parse_package': .: Expected one of include, command, set, end at line 4, column 3 (byte 47) after config default (RuntimeError)

The second doesn't bomb out but only the sheep.jar file ends up in my local ./lib folder (I have retrieve set to CLASSPATH->lib)

Any ideas?

What I really want is everything in resources.tar.gz to appear in my ./lib without having to set any variables at all.

Cheers

Mike

Mike Roberts

unread,
Feb 24, 2010, 7:54:07 PM2/24/10
to fig-...@googlegroups.com
Ah, I see, yes that works

And if I want multiple files on my CLASSPATH from one package having separate lines for them does indeed work.

Thanks
Reply all
Reply to author
Forward
0 new messages