Project

General

Profile

Eclipse configuration » History » Version 14

Version 13 (Pablo Alingery, 08/06/2016 10:41) → Version 14/16 (Guanji Wang, 07/03/2017 16:55)

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

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

h3. 1.3 Pre-build configuration

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

Edit build.properties and change
* Choose the value of the HOST property (for example HOST = new-dev) branch Dev3
<pre> git checkout dev-3</pre>


Make a copy * Changement 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
build-$(host).properties and 'host' in file sitools.properties
%{color:red}(which one ? locate this file precisely please
and set give an example of the ROOT_DIRECTORY property to the sitools2-v2 folder

modif done )%

h2. 2. Eclipse Configuration

h3. 2.1 * Close project sitools-tests-testing

h3. 2.2

*
Target platform:

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

#Add
to VM arguments
@'-Djava.net.preferIPv4Stack=true' @ <pre>'-Djava.net.preferIPv4Stack=true' </pre>

h4. 2.3.2 Add new Java application
RUN -> RUN conifguration: choose
# Load the project core starter and the core in main
!Selection_116.jpg! %{color:red}not clear%

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! %{color:red}how ???%

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!

%{color:red}where???%

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. Errors js

* Add semicomma when necessary
%{color:red}example please%

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

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

https://git.ias.u-psud.fr/gwang/Sitools2-V3.0.git