[Raven-devel] Building and Using Raven 2.0

Jesse Bouwman jbouwman at herzumsoftware.com
Thu Apr 5 17:01:02 EDT 2007


Hi Brian,

I don't know enough about that code to be sure, but I suspect that the
method removal was unintentional, so I suggest you restore it and send
the patch to this list

I have been working on dependencies for, oh, about a day now, and I'm
inclined to think that they should be addable both locally and
repository resolution.  I'm doing a few things with maven interaction
right now  (import, transitivity), and have been on this list for about
a week, but I'll do the best I can with any other questions you have?

Regards
Jesse Bouwman

Brian Ehmann wrote:
> Thanks Jesse, that was it.
>
> Ok, another noob question. (forgive me)
>
> Way the hell back in revision 49 the libs=(l) method was removed from  
> the DependencyTask class in deps_tasks.rb.  As a result, the  
> following, although documented in the rdoc, fails with an undefined  
> method exception for libs=
>
> dependency 'compile_deps' do |t|
>      t.libs = Dir.glob('lib/**/*.jar')
> end
>
> If the libs= method is returned everything works as expected.  Was  
> this method removal intended?  Is the "gem" way of using jars  
> expected to be the only way of adding dependencies?
>
> - Brian
>
> On Apr 5, 2007, at 3:10 PM, jbouwman wrote:
>
>   
>> Hi Brian,
>>
>> I've found it useful to put Ant into the CLASSPATH environment  
>> variable,
>> something like:
>>
>>     LOCAL_LIB=/usr/local/lib/java
>>     COMPILER_CP=$LOCAL_LIB/jdk1.5.0/lib/tools.jar
>>     ANT_CP=$LOCAL_LIB/apache-ant-1.6.5/lib/ant.jar:$LOCAL_LIB/ 
>> apache-ant-1.6.5/lib/ant-launcher.jar
>>     export CLASSPATH=$COMPILER_CP:$ANT_CP
>>
>>
>> This seem to do it.  I'm quite new to jruby, so I inferred this from
>> looking at trunk/test/run. Some of the load path semantics are still a
>> little hazy...hope this helps?
>>
>> Regards,
>> Jesse
>>
>> Brian Ehmann wrote:
>>     
>>> Hello Everyone,
>>>
>>> Earlier today I joined the Raven-Devel mailing list so forgive me if
>>> this is a duplicate/dumb question.
>>>
>>> 1) I checked out the source tree and added raven/trunk/vendor/jruby/
>>> bin to my path so that all ruby commands would be run off of this
>>> version. (no other version of ruby is on the path)
>>> 2) I built (using the included ant build file) jruby and installed
>>> the gems rake and antwrap
>>> 3) Next I built the raven gem with the command "rake gem" and
>>> installed the resulting raven-2.0.gem file into jruby (with "gem
>>> install raven-2.0.gem")
>>> 4) Finally I attempted to compile a simple project that compiled
>>> properly with raven-1.2.2 however I am receiving the following
>>> exception:
>>>
>>> ========= start error ===========
>>> % rake compile
>>> (in /Users/behmann/src/opensource/river)
>>> /Users/behmann/src/opensource/raven/trunk/vendor/jruby/lib/ruby/gems/
>>> 1.8/gems/raven-2.0/lib/raven/gem_init.rb:107:Warning: require_gem is
>>> obsolete.  Use gem instead.
>>> Exception in thread "main" java.lang.NoClassDefFoundError: org/ 
>>> apache/
>>> tools/ant/launch/AntMain
>>> ========= end error ===========
>>>
>>> Did I miss a step or should I download and add the jar which contains
>>> this class to my classpath?  I would very much like to help port
>>> functionality from ANT to Raven but I'm confused as to why I can not
>>> create a functional gem.
>>>
>>> Thanks for your help,
>>>
>>> - Brian Ehmann
>>> _______________________________________________
>>> Raven-devel mailing list
>>> Raven-devel at rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/raven-devel
>>>
>>>       
>
> _______________________________________________
> Raven-devel mailing list
> Raven-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/raven-devel
>   



More information about the Raven-devel mailing list