--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.

Comments:

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!

Posted by Kiran Aghor on September 02, 2008 at 08:37 AM CEST #

Hi Kiran,

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

Regards,
Petr

Posted by Petr on September 02, 2008 at 09:36 AM CEST #

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

Posted by Varun on September 03, 2008 at 07:34 AM CEST #

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).

Posted by Marcin on September 14, 2008 at 10:55 AM CEST #

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

Posted by Petr on September 14, 2008 at 02:13 PM CEST #

Thank you for answer. :-)
M.

Posted by Marcin on September 16, 2008 at 04:12 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blogs is written by NetBeans developers who contribute to the PHP support mainly.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today