FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Jruby project organizatiion libraries. Not Rails-related.

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
bob_w
Posted via mailing list.





PostPosted: Tue Mar 31, 2009 5:23 pm    Post subject: Jruby project organizatiion libraries. Not Rails-related. Reply with quote

Hi All,

Thanks in advance for reading about my confusion. I think I must be
missing something basic. I've been building my apps with emacs/rake,
and am trying to use NetBeans 6.5.

I've got a set of six or so little JRuby applications (app0 ... appn) that
share a
library (lib). I can't figure out how to setup up the projects in
NetBeans 6.5.

My current svn layout looks something like:

all-projects
- app0
- - src
- - - ruby/*.rb
- lib
- - src
- - - ruby/*.rb
- app1
...





So .. I can create the "app0" project with its ruby source, but I
can't seem to figure out how to tell the project about the "lib"
directory. A Java project has the notion of requiring another
project, but I can't seem to find the similar notion in a Ruby
project.

I can add ".../lib/src/ruby" to the source path for "app0" and do OK
until I try to create the "app1" project. When I try to add the same
directory to *its* source path, NetBeans refuses to do so, complaining
that it's already on another project's source path.

I geel sure I'm missing something really basic, as this can't be an
unusual thing to want to do, can it?

Once again, thanks for any help you can offer. I'd be overjoyed at a
response of, "You Idiot!! All you have to do is ...."

Cheers,
--Bob

--
View this message in context: http://www.nabble.com/Jruby-project-organizatiion-libraries.--Not-Rails-related.-tp22805244p22805244.html
Sent from the NetBeans Ruby Users mailing list archive at Nabble.com.
Back to top
Erno Mononen
Posted via mailing list.





PostPosted: Thu Apr 02, 2009 8:03 am    Post subject: Jruby project organizatiion libraries. Not Rails-related. Reply with quote

Hi Bob,

Sorry for replying so late, I somehow missed this. Please see inline.

bob_w wrote:
Quote:
Hi All,

Thanks in advance for reading about my confusion. I think I must be
missing something basic. I've been building my apps with emacs/rake,
and am trying to use NetBeans 6.5.

I've got a set of six or so little JRuby applications (app0 ... appn) that
share a
library (lib). I can't figure out how to setup up the projects in
NetBeans 6.5.

My current svn layout looks something like:

all-projects
- app0
- - src
- - - ruby/*.rb
- lib
- - src
- - - ruby/*.rb
- app1
...





So .. I can create the "app0" project with its ruby source, but I
can't seem to figure out how to tell the project about the "lib"
directory. A Java project has the notion of requiring another
project, but I can't seem to find the similar notion in a Ruby
project.


Unfortunately this is indeed not supported for Ruby projects, but feel
free to file an issue for it. See below first though...

Quote:
I can add ".../lib/src/ruby" to the source path for "app0" and do OK
until I try to create the "app1" project. When I try to add the same
directory to *its* source path, NetBeans refuses to do so, complaining
that it's already on another project's source path.

I geel sure I'm missing something really basic, as this can't be an
unusual thing to want to do, can it?


I guess it depends on what is you exact use case, but wouldn't just
adding the "../lib/src/ruby" to the load path for all the projects that
depend on it suffice? E.g. in the app_x projects, add -I/path/to/lib to
the Ruby options field in Project Properties -> Run.

HTH,
Erno
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB