Note: You are currently viewing documentation for Moodle 3.9. Up-to-date documentation for the latest stable version of Moodle may be available here: Setting up Netbeans.

Development:Setting up Netbeans: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
Line 3: Line 3:
Netbeans has got a good PHP support.
Netbeans has got a good PHP support.


1. Checkout your Moodle project with a CVS client - see [[CVS (developer)|Moodle CVS for developers]]. I personaly prefer to use an external client in order to realise the CVS Delete operation on my own. It's why I use another client for file deletion operation.
1. Checkout your Moodle project with a CVS client - see [[CVS (developer)|Moodle CVS for developers]]. I personaly prefer to use an external client in order to realise the CVS Delete operation on my own.


2. Download [http://www.netbeans.org/ Netbeans Early Access for PHP]
2. Download [http://www.netbeans.org/ Netbeans Early Access for PHP]


3. Install and Use it
3. Install and run it


4. Click on File > New Project > PHP > PHP Application > Next
you're now going to set the project. Name, Location and Folder are used by Netbeans, so you can choose whatever you like, except your source folder. Sources has to be your checked out Moodle branch/head. The rest is clear enough, don't forget to choose UTF-8 for encoding.
Example:
          Project Name:        Moodle 1.9 Stable
          Project Location:    C:\Users\jerome\Documents\NetBeansProjects
          Project Folder:      C:\Users\jerome\Documents\NetBeansProjects\Moodle 1.9 Stable
          Project Sources:    C:\Users\jerome\Projects\branch19_STABLE\moodle
          Project URL:        http://localhost/moodle19/
          Index File:          index.php
          Create:              unchecked
          Default Encoding:    UTF-8
          Set as Main Project: unchecked


- CVS integration: see all changes, lines deletion, diff in real time
- CVS integration: see all changes, lines deletion, diff in real time

Revision as of 01:42, 19 May 2008

--- IN CONSTRUCTION ---

Netbeans has got a good PHP support.

1. Checkout your Moodle project with a CVS client - see Moodle CVS for developers. I personaly prefer to use an external client in order to realise the CVS Delete operation on my own.

2. Download Netbeans Early Access for PHP

3. Install and run it

4. Click on File > New Project > PHP > PHP Application > Next you're now going to set the project. Name, Location and Folder are used by Netbeans, so you can choose whatever you like, except your source folder. Sources has to be your checked out Moodle branch/head. The rest is clear enough, don't forget to choose UTF-8 for encoding.

Example:

         Project Name:        Moodle 1.9 Stable
         Project Location:    C:\Users\jerome\Documents\NetBeansProjects
         Project Folder:      C:\Users\jerome\Documents\NetBeansProjects\Moodle 1.9 Stable
         Project Sources:     C:\Users\jerome\Projects\branch19_STABLE\moodle
         Project URL:         http://localhost/moodle19/
         Index File:          index.php
         Create:              unchecked
         Default Encoding:    UTF-8
         Set as Main Project: unchecked

- CVS integration: see all changes, lines deletion, diff in real time - Ctrl+Click: Go to declaration - Apply Diff Patch - Easy to navigate - List of functions - Search very quick (you can still work during) - Very few bug (I only had two Notice during I set up my projects)