{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. Nevertheless to have a better Maven integration, it is possible to use IntelliJ IDEA or Netbeans by configuring weasis-launcher as described in Debug or Run from 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 8 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"
http://wiki.eclipse.org/EGit/User_Guide |
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" |
See Weasis commands In Eclipse launcher, '&' needs to be escaped in parameters, so for instance: $dicom:get -w "http://launcher-weasis.rhcloud.com/weasis-pacs-connector/manifest?studyUID=2.16.756.5.5.100.397184556.14391.1373576413.1508\&studyUID=1.3.6.1.4.1.5962.1.1.0.0.0.1168612284.20369.0.1\&studyUID=1.3.6.1.4.1.21367.0.1.13.1021" |
VM arguments, minimal configuration:
-Xms32m -Xmx512m -Dgosh.args="-sc telnetd -p 17179 start" -Dmaven.localRepository="your_path/.m2/repository" |
The maven.localRepository parameter is not required any more from weasis 2.6.0. Replace your_path by your real path and use standard URL syntax, ex : "C:/Documents%20and%20Settings/user/.m2/repository") |
Other VM arguments
Configuration relative to the launcher directory: -Dfelix.config.properties=file:target/conf/config.properties -Dfelix.extended.config.properties=file:target/conf/ext-config.properties -Dfelix.extended.config.properties=file:target/conf/ext-dicomizer.properties URL -Dfelix.extended.config.properties=file:http://mysite.com/weasis/conf/ext-config.properties |
|
-Dfelix.extended.config.properties=file:conf/ext-dicomizer.properties |