X

An Oracle blog about NetBeans for PHP

--userdir

I work with development builds and I run multiple NetBeans instances at the same time. I have always one instance running where I develop and a second one for testing purposes. Also I change the NetBeans build almost daily. Fortunately there is the  --userdir switch.

This switch has one parameter and this is a path to the folder where NetBeans stores all settings, including information about opened projects.  Basically it's something like a workspace. If I need to work on PHP suppport, I start NetBeans with this command


./netbeans.sh --userdir /space/netbeans/userdirs/php

If I need to fix something in Java Web Support I use


./netbeans.sh --userdir /space/netbeans/userdirs/javaweb

and for testing php build

./netbeans.sh --userdir /space/netbeans/userdirs/phptest

Because  I use development builds, sometimes the userdir can be damaged and I have to delete it and start NetBeans with a clean userdir, but this is not a big issue. Sure, I can lose all my settings, but I have to be aware that I work with the latest builds and this can happen. On the other hand, I have to delete the userdir very rarely.

I don't use installers, I always download NetBeans as a zip file. These are available on nightly build download page, where OS Independent Zip item in has to be selected in the Platform combobox. There are also really fresh builds publicly available on the continual building machine. The PHP builds are available here. There are available only as zip files. The zip file can be unzipped anywhere on your machine. Then just execute the netbeans.sh or netbeans.exe, which is located in the bin folder, with the --userdir switch.

Join the discussion

Comments ( 6 )
  • Kiran Aghor Tuesday, September 2, 2008

    U guys are really kool. U write a useful post everyday (almost) since the day this blog has been started. All of them have been very much helpful and interactive. Thank u and kudos to u!


  • Petr Tuesday, September 2, 2008

    Hi Kiran,

    thanks for your comment. This is nice to read. :)

    Regards,

    Petr


  • Varun Wednesday, September 3, 2008

    I agree with Kiran, you guys have really changed the scenario in past 1 year or less.

    I used PHP support first time, when it was available as a plugin from Update Center in 6.0!

    Tremendous improvement since then...Kudos to all :D


  • Marcin Sunday, September 14, 2008

    Is there any difference between nightly builds and PHP builds from http://deadlock.netbeans.org/hudson/job/PHP-build/ ? I mean differences in PHP plugin.

    Regards (Pozdrawiam).


  • Petr Sunday, September 14, 2008

    Hi Marcin,

    the build from http://deadlock.netbeans.org/hudson/job/PHP-build/ is continual PHP build. The continual built is run more frequently than main trunk build, which builds all NetBeans modules. The nightly build is result of trunk build, which is started at 2 am CET.

    So basically the nightly build should contain the same code as PHP build which is created about 2 am CET.

    Regards,

    Petr


  • Marcin Tuesday, September 16, 2008

    Thank you for answer. :-)

    M.


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.