[nbusers] Re: how to configure NB to use RAM disk?

  • From: Antonio Varela < >
  • To:
  • Subject: [nbusers] Re: how to configure NB to use RAM disk?
  • Date: Fri, 4 Jan 2013 16:55:45 -0700

It is indeed a very nice trick. You should file this as an improvement on NetBeans's issue tracker (the ability to relocate the build dir from the IDE's perferences).


On Fri, Jan 4, 2013 at 4:22 PM, Fabrizio Giudici < " target="_blank"> > wrote:
On Sat, 05 Jan 2013 00:16:22 +0100, Thomas Wolf < " target="_blank"> > wrote:

Just for completeness sake, I figure I'd mention that symlinks by themselves didn't do the trick because the default "clean" target removes the build directory (i.e. the symlink) itself.  Overriding the "-do-clean" target in build.xml to not remove the directory itself did the trick:

    <target depends="init" name="-do-clean">
                <delete includeEmptyDirs="true">
                        <fileset dir="${build.dir}" includes="**/*" defaultexcludes="no"/>
                </delete>
        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
    </target>

If there's a more elegant way, I couldn't think of it (perhaps playing with the ownership/permission of the symlink?)

... that's why I said that working with plain links is not enough with the build. Did you try to just set build.dir and dist.dir to a completely different value? I mean, not using the project basedir, but pointing to the RAM disk folder?



--
Fabrizio Giudici - Java Architect @ Tidalwave s.a.s.
"We make Java work. Everywhere."
http://tidalwave.it/fabrizio/blog - " target="_blank">



--
Antonio Varela
">


[nbusers] how to configure NB to use RAM disk?

Thomas Wolf 01/04/2013

[nbusers] Re: how to configure NB to use RAM disk?

Dan Halbert 01/04/2013

[nbusers] Re: how to configure NB to use RAM disk?

Thomas Wolf 01/04/2013

[nbusers] Re: how to configure NB to use RAM disk?

Thomas Wolf 01/04/2013

[nbusers] Re: how to configure NB to use RAM disk?

Fabrizio Giudici 01/04/2013

[nbusers] Re: how to configure NB to use RAM disk?

Antonio Varela 01/04/2013

[nbusers] Re: how to configure NB to use RAM disk?

Fabrizio Giudici 01/05/2013

[nbusers] Re: how to configure NB to use RAM disk?

Fabrizio Giudici 01/04/2013

[nbusers] Re: how to configure NB to use RAM disk?

Thomas Wolf 01/04/2013

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close