JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net
JPPF

The open source
grid computing
solution

 Home   About   Features   Download   Documentation   Forums 
December 15, 2018, 09:56:09 AM *
Welcome,
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
Home Help Search Login Register
Pages: [1]   Go Down

Author Topic: JPPF Developers: how to setup the development environment  (Read 13135 times)

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2242
    • JPPF Web site
JPPF Developers: how to setup the development environment
« on: June 26, 2006, 02:36:38 PM »

We use Eclipse as our IDE. It has to be Eclipse 3.1 or later (personally I always use the latest milestone or release candidate -which is 3.2 RC7 as of today), since we need support for JDK 1.5
Steps to set up the Eclipse workspace (that's for Eclipse 3.2, it may vary slightly for other versions):
- create your workspace folder. You can call it whatever you want. Let's say "jppf-workspace" for this explanation
- Launch Eclipse, and when asked which workspace to open, select the folder you created
- once Eclipse is started, select the menu "File > Import"
- expand the "Team" node and select "Team Project Set", then click on "next"
- in the next dialog, select the team project set file that you can download from http://www.jppf.org/dev/JPPF-ProjectSet-Anonymous.psf (for anonymous CVS access), or http://www.jppf.org/dev/JPPF-ProjectSet-Developer.psf (for developer access), then click on "finish"
- Eclipse will checkout all the projects from the CVS repository and build the workspace. It will probably ask you for user and password the first time, use your SF.net user id and password.
It will also ask you some questions about security and whether you want to create your SSH keys. I always answer yes to everything and it works well enough.

The only additional plugin we require is the Checkstyle plugin, which you can find at http://eclipse-cs.sourceforge.net/.
We are using it to ensure that a very few - but very strict - policies applied to the source code: header with a legal (LGPL) license disclaimer, full Javadoc, some code metrics.
To set it up:
- once you checked out the source code from CVS (see above) and added the plugin to Eclipse, go to the Eclipse preferences.
- select the Checkstyle preferences,
- Click on "new"
- Select "Project Relative Configuration" in the dropdown list
- Set the name as "JPPF Checks"
- Click on the browse button and select the file "CheckStyle_JPPF_config.xml" in the jppf-workspace/JPPF folder
- Now for each project in the workspace, open the project properties
- Select the checkstyle preferences
- select JPPF Checks from the dropddown list
- check the "Checkstyle active for this project" checkbox.
- click "OK". It will ask you to rebuild the project, answer "yes" and you're done.
Basically, when you see a yellow marker on a class or class member, it means you have something to fix there (generally missing javadoc)
« Last Edit: April 20, 2010, 04:21:31 AM by lolocohen »
Logged

iammahendra

  • Guest
JPPF Developers: how to setup the development environment
« Reply #1 on: June 29, 2006, 04:39:45 PM »

Hi Laurent,

I am getting the connection refused error while browsing to project set file - CheckStyle_JPPF_config.xml on my local machine.

I wonder if this is related to access permissions on the CVS repository.

Can you please check the permissions granted to "iammahendra" user for this project ?

Regards
Mahendra
Logged

iammahendra

  • Guest
JPPF Developers: how to setup the development environment
« Reply #2 on: June 29, 2006, 04:48:40 PM »

The logins to sf.net are currently disabled as i can see at the project UI header. So i believe that is causing the connection refused error.

Regards
Mahendra
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2242
    • JPPF Web site
JPPF Developers: how to setup the development environment
« Reply #3 on: June 29, 2006, 07:38:17 PM »

All right, it's my mistake, the URL should be:
http://www.jppf.org/dev/JPPF-ProjectSet.psf

Sorry about that. I'll fix the initial post.

-Laurent
Logged

iammahendra

  • Guest
JPPF Developers: how to setup the development environment
« Reply #4 on: June 29, 2006, 08:09:34 PM »

No problem. That's fine.
Logged

pbecker

  • JPPF Padawan
  • *
  • Posts: 7
JPPF Developers: how to setup the development environment
« Reply #5 on: July 01, 2006, 06:41:40 PM »

When I activate the CheckStyleBuilder, i get errors of the form

Errors during build.
Errors running builder "CheckstyleBuilder" on project JPPF.
Ein Datei-Set des Projektes "JPPF" hat keine gültige Checkstyle-Konfiguration.
Errors running builder "CheckstyleBuilder" on project node.
Ein Datei-Set des Projektes "node" hat keine gültige Checkstyle-Konfiguration.
...
(translation: a file set of the project "*" has no valid Checkstyle configuration)

It looks like I'm using an incompatible version.
I use CheckStyle 4.0.93 with Eclipse 3.1.2. What should I use?
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2242
    • JPPF Web site
JPPF Developers: how to setup the development environment
« Reply #6 on: July 01, 2006, 06:49:06 PM »

You should use the latest version of Checkstyle plugin: 4.0.0 beta6
Logged
Pages: [1]   Go Up
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads