
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
Re: running a v7 NB from hg
checkout?
Stephen Bannasch wrote:
I'd like an easier way to keep up-to-date
with v7 of NB on my Mac OS X 10.5.6 system.
[...]
Can I setup an mac app structure where
the code I downloaded above is just checked out using mercurial right
into the test app?
I do not know the answer to the above,
not having Mac, hopefully someone else jumps in.
I've got a Ruby version (with additional Java clutser) of NB v7
working in a mac app. The code was downloaded from hudson artfacts
hosted here:
http://deadlock.netbeans.org/hudson/job/trunk/lastStableBuild/artifact/nbbuild/dist/zip/
I downloaded and installed into my template mac app dir earlier
versions of these kinds of artifacts:
netbeans-hudson-trunk-4705-ruby.zip
moduleclusters/netbeans-hudson-trunk-4705-java.zip
This works great and I've been using and learning about the NB
and the Ruby debugger which I like.
But these MB artifacts produced by hudson keep changing -- so I
want to build these artifacts from the source (I don't need the final
zip packaging stage -- just the artifacts before zipping).
That way using mercurial I can just update, build and have a new
NB instance -- or since I have the repo I can back off to any earlier
version very easily.
I just cloned the netbeans repo:
mkdir netbeans
cd netbeaqns
hg clone http://hg.netbeans.org/main/
cd main
I had to set pergem and heap mem absurdly high otherwise ant ran
out of permgen space while compiling:
export ANT_OPTS=-'Xmx2048m -XX:MaxPermSize=2048m'
ant
I'm running Apache Ant version 1.7.1 on MacOS 10.5.6, with Java
1.5.0_16
Then I copied the existing v7 netbeans app I had made (just to
reuse its macapp dir form), deleted the netbeans dir in
Contents/Resources:
NetBeans_v7_trunk.app/Contents/Resources/netbeans
Then I created a symbolic link in the Resources dir named
netbeans pointing to the netbeans execuatbleI just built in the hg
clone.
ln -s
/Users/stephen/dev/java/src/netbeans/main/nbbuild/netbeans
netbeans
Seems to work fine.
The only problem is that after I did an hg pull -u running ant to
update the code for the app still took 30m.
Is there an incremental/smarter way to build NB than just running
the default ant task?
Also -- can I use NB with trunk JRuby
instead of the JRuby 1.1.4 that comes installed?
Sure, just add it as a new platform in the platform manager and point
your project to it.
http://wiki.netbeans.org/FaqRubyPlatformPerProject
Let me know if the above link does not
help.
Thanks, that worked.
However I got these errors when selecting Tools:Ruby Gems -- not
sure what they mean ??