Hi Stephen,
Stephen Bannasch wrote:
>> 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/Alternatively you can clone main-golden, which is guaranteed to be safe
to pull from (main can be broken from time to time).
> 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
For me 512m is enough, but I'm on Linux.
>
> 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?
If you don't need to whole IDE, you can build just one cluster which is
generally much faster and you can avoid the zip file creation by using
the build-nozip target. So for example you can build the ruby cluster
(i.e. the Ruby IDE) by doing:
ant -Dcluster.config=ruby build-nozip
It is possible to create your own cluster configurations if you want for
example Java and Ruby but nothing else, please see
http://wiki.netbeans.org/WorkingWithNetBeansSources for more info (looks
like the page is not entirely up-to-date, so let us know if you have any
problems with this).
HTH,
Erno
---------------------------------------------------------------------
To unsubscribe, e-mail:
dev-unsubscribe@...
For additional commands, e-mail:
dev-help@...