|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Jruby project organizatiion libraries. Not Rails-related.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 |
|
|
Re: Jruby project organizatiion libraries. Not Rails-related.Hi Bob, Sorry for replying so late, I somehow missed this. Please see inline. bob_w wrote: > 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... > 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 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |