{style} .panel {-moz-border-radius: 7px; border-radius: 7px;} .panelMacro table {-moz-border-radius: 15px; border-radius: 15px;} {style} |
This page is intended for developers who want to contribute to Weasis and it is a recommendation for developers who want to create their own plug-ins, see also How to build and install a plug-in. |
We highly recommend the use of Eclipse IDE, because all the following instructions are based on it and some settings and the coding conventions can be imported directly into Eclipse. |
Weasis adheres to Sun's Code Conventions for the Java Programming Language
Install the plug-ins into Eclipse
m2eclipse provides comprehensive Maven integration for Eclipse. See http://maven.apache.org/guides/index.html
If you get the error message "Eclipse is running in a JRE, but a JDK is required" when starting Eclipse, you must specify the JDK 6 location in the eclipse.ini file.
In the New dialog, select Maven > Existing Maven Projects, click Next and select the "Weasis" or "weasis-dev" directory
Deselect All and select only the plugins your are interested in (at least weasis-launcher and weasis-framework). |
Connect imported Maven projects to GIT: Select all the projects, right click "Share Project...", select GIT. In Dialog, select "Use or create repository on in parent folder of project"
Right click, Run as > Maven Install (Compiling and installing all the plug-ins in the local Maven repository)
|
Right click, Run as > Run Configurations...
If you have Maven installed on your system, it is sometimes easier to type your command in a console. |
For debugging Weasis, you need to create a Debug configuration:
Program arguments, examples for loading DICOM locally:
$dicom:get -l "/home/user/Images/MRIX LUMBAR" "/home/user/Images/Dicom Test" $dicom:get -l "D:\\images\\dicom" |
VM arguments, minimal configuration:
-Xms32m -Xmx512m -Dmaven.localRepository="your_path/.m2/repository" -Dgosh.args="-sc telnetd -p 17179 start" |
Replace your_path by your real path and use standard URL syntax ex : "C:/Documents%20and%20Settings/user/.m2/repository") |
Other VM arguments
-Dfelix.config.properties=file:conf/config.properties -Djava.ext.dirs="" |
|