Project

General

Profile

Eclipse configuration » History » Version 14

« Previous - Version 14/16 (diff) - Next » - Current version
Guanji Wang, 07/03/2017 16:55


Eclipse configuration

1. Sitools v3 Extra INFO

1.1 The version of Eclipse:

1.2 Get the source of sitools2

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

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

2. Eclipse Configuration

2.1 Close project sitools-tests-testing

2.2 Target platform:

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

2.3 Run configuration :

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

2.3.2 Add new Java application
RUN -> RUN conifguration: choose the project and the main

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 '

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:

3. Build the project

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

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

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