Project

General

Profile

Eclipse configuration » History » Version 15

Version 14 (Guanji Wang, 07/03/2017 16:55) → Version 15/16 (Guanji Wang, 09/03/2017 10:12)

h1. Eclipse configuration

h2. 1. Sitools v3 Extra INFO

h3. 1.1 The version of Eclipse:
!Selection_113.jpg!

h3. 1.2 Get the source of sitools2

@git clone https://github.com/SITools2/SITools2-core.git
@

h3. 1.3 Pre-build configuration

@cd sitools2-v2/workspace/fr.cnes.sitools.core@

Edit build.properties and change the value of the HOST property (for example HOST = new-dev)

Make a copy of conf/build/properties/build-example.properties to conf/build/properties/build-new-dev.properties

@cp conf/build/properties/build-example.properties conf/build/properties/build-new-dev.properties@

Edit the newly created file and set the ROOT_DIRECTORY property to the sitools2-v2 folder

h2. 2. Eclipse Configuration

h3. 2.1 Close project sitools-tests-testing

h3. 2.2 Target platform:

# add eclipse/plugin
# add sitools/cots/restlet-2.0.5-patched
Warnings:
# eclipse/plugin: Select only osgi jar
# sitools/cots/restlet-2.0.5-patched : Select all jars except lucene jar, org.restlet.ext.wadl and solr jar

h3. 2.3 Run configuration :

h4. 2.3.1 Add to VM arguments
@'-Djava.net.preferIPv4Stack=true' @

h4. 2.3.2 Add new Java application
RUN -> RUN conifguration: choose the project and the main
!Selection_116.jpg!

h4. 2.3.3 Add dependency of extension project in classpath
Normally, we compile the jar for fr.cnes.sitools.extensions. Add the jar in the java build path:
fr.cnes.sitools.core -> Build Path -> Configuration Build Path -> Choose ' *Libraries* ' menu tab and ' *ADD JARS* '
!Selection_114.jpg!

h3. 2.4 if error for the project 'org.restlet.ext.solr', add JARS solr-core-4.5.0.jar
Open the configuration build path like adding extension Jar, then instruction like the following captured image:
!Selection_115.jpg!

h3. 2.5 The correct project explorer as following:
!Selection_119.jpg!

h2. 3. Build the project

h3. 3.1 Ant refresh-preoperties
h3. 3.2 Ant refresh-userlibraries
h3. 3.3 Run the application

h2. 4. The sitools official github site:
https://github.com/SITools2/SITools2-core

h2. 5. Document of configuration of sitools2 in English is attached in this page,
sitools_configuration.pdf