buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rp.andrew.moore" <rp.andrew.mo...@gmail.com>
Subject Resource filtering best practices? or an error filtering binaries?
Date Wed, 03 Dec 2008 21:27:34 GMT

Hi,

I'm trying to filter my resources and I'm running into an error.

I'm trying to understand the best way to handle resource filtering. I
understand if I add a profiles.yaml and a 'filter' node in that file, my
resources will be automatically filtered using the name-value pairs defined
under the 'filter' node. This is great, except if I happen to have a binary
of some kind in the resources directory I'm filtering, I get an error that
says something along the lines of:

buildr aborted!
symbol string may not contain `\0'
/Library/Ruby/Gems/1.8/gems/buildr-1.3.3/lib/buildr/core/filter.rb:276:in
`to_sym'
/Library/Ruby/Gems/1.8/gems/buildr-1.3.3/lib/buildr/core/filter.rb:276:in
`transform'
/Library/Ruby/Gems/1.8/gems/buildr-1.3.3/lib/buildr/core/filter.rb:292:in
`maven_transform'
/Library/Ruby/Gems/1.8/gems/buildr-1.3.3/lib/buildr/core/filter.rb:292:in
`gsub'
/Library/Ruby/Gems/1.8/gems/buildr-1.3.3/lib/buildr/core/filter.rb:292:in
`maven_transform'
/Library/Ruby/Gems/1.8/gems/buildr-1.3.3/lib/buildr/core/filter.rb:276:in
`__send__'
/Library/Ruby/Gems/1.8/gems/buildr-1.3.3/lib/buildr/core/filter.rb:276:in
`transform'
/Library/Ruby/Gems/1.8/gems/buildr-1.3.3/lib/buildr/core/filter.rb:184:in
`run'
/Library/Ruby/Gems/1.8/gems/buildr-1.3.3/lib/buildr/core/filter.rb:177:in
`each'
/Library/Ruby/Gems/1.8/gems/buildr-1.3.3/lib/buildr/core/filter.rb:177:in
`run'
...

I'm not sure if this is a bug, or if I'm just not using the resources,
profiles.yaml and filtering as it was intended. Am I not supposed to have
binaries (zips, jars, .exe, etc...) in a resource directory?

I'll re-read the filtering, etc... in the documentation. My goal is to be
able to stick database connection and other environmental information in
this profiles.yaml file (for our continuous integration environment,
etc...). Are these yaml filter values something that can be overwritten for
each dev using the personal ~/.buildr/settings.yaml file? 

Thanks for the help, advice, and direction!

~ Andrew







-- 
View this message in context: http://n2.nabble.com/Resource-filtering-best-practices--or-an-error-filtering-binaries--tp1610791p1610791.html
Sent from the Apache Buildr - User mailing list archive at Nabble.com.


Mime
View raw message