Project

General

Profile

Eclipse configuration » History » Version 15

Guanji Wang, 09/03/2017 10:12

1 1 Guanji Wang
h1. Eclipse configuration
2 1 Guanji Wang
3 14 Guanji Wang
h2. 1. Sitools v3 Extra INFO
4 2 Guanji Wang
5 14 Guanji Wang
h3. 1.1 The version of Eclipse:
6 14 Guanji Wang
!Selection_113.jpg!
7 1 Guanji Wang
8 14 Guanji Wang
h3. 1.2 Get the source of sitools2
9 1 Guanji Wang
10 14 Guanji Wang
@git clone https://github.com/SITools2/SITools2-core.git 
11 14 Guanji Wang
@
12 1 Guanji Wang
13 14 Guanji Wang
h3. 1.3 Pre-build configuration
14 1 Guanji Wang
15 14 Guanji Wang
@cd sitools2-v2/workspace/fr.cnes.sitools.core@
16 14 Guanji Wang
17 14 Guanji Wang
Edit build.properties and change the value of the HOST property (for example HOST = new-dev)
18 14 Guanji Wang
19 14 Guanji Wang
Make a copy of conf/build/properties/build-example.properties to conf/build/properties/build-new-dev.properties
20 14 Guanji Wang
21 14 Guanji Wang
@cp conf/build/properties/build-example.properties conf/build/properties/build-new-dev.properties@
22 14 Guanji Wang
23 14 Guanji Wang
Edit the newly created file and set the ROOT_DIRECTORY property to the sitools2-v2 folder
24 14 Guanji Wang
25 14 Guanji Wang
26 14 Guanji Wang
h2. 2. Eclipse Configuration
27 14 Guanji Wang
28 14 Guanji Wang
h3. 2.1  Close project sitools-tests-testing
29 14 Guanji Wang
30 14 Guanji Wang
h3. 2.2 Target platform:
31 14 Guanji Wang
32 1 Guanji Wang
# add eclipse/plugin
33 1 Guanji Wang
# add sitools/cots/restlet-2.0.5-patched
34 1 Guanji Wang
Warnings:
35 1 Guanji Wang
# eclipse/plugin: Select only osgi jar
36 1 Guanji Wang
# sitools/cots/restlet-2.0.5-patched : Select all jars except lucene jar, org.restlet.ext.wadl and solr jar
37 1 Guanji Wang
38 1 Guanji Wang
39 14 Guanji Wang
h3. 2.3  Run configuration : 
40 1 Guanji Wang
41 14 Guanji Wang
h4. 2.3.1 Add to VM arguments 
42 14 Guanji Wang
@'-Djava.net.preferIPv4Stack=true' @ 
43 2 Guanji Wang
44 14 Guanji Wang
h4. 2.3.2 Add new Java application
45 14 Guanji Wang
RUN -> RUN conifguration: choose the project and the main
46 14 Guanji Wang
!Selection_116.jpg!
47 10 Pablo Alingery
48 14 Guanji Wang
h4. 2.3.3 Add dependency of extension project in classpath
49 14 Guanji Wang
  Normally, we compile the jar for fr.cnes.sitools.extensions. Add the jar in the java build path:
50 14 Guanji Wang
  fr.cnes.sitools.core -> Build Path -> Configuration Build Path -> Choose ' *Libraries* ' menu tab and ' *ADD JARS* '
51 14 Guanji Wang
!Selection_114.jpg!
52 1 Guanji Wang
53 14 Guanji Wang
h3. 2.4 if error for the project 'org.restlet.ext.solr', add JARS solr-core-4.5.0.jar
54 14 Guanji Wang
  Open the configuration build path like adding extension Jar, then instruction like the following captured image:
55 14 Guanji Wang
!Selection_115.jpg!
56 2 Guanji Wang
57 15 Guanji Wang
h3. 2.5 The correct project explorer as following:
58 15 Guanji Wang
!Selection_119.jpg!
59 15 Guanji Wang
60 14 Guanji Wang
h2. 3. Build the project
61 12 Pablo Alingery
62 14 Guanji Wang
h3. 3.1 Ant refresh-preoperties
63 14 Guanji Wang
h3. 3.2 Ant refresh-userlibraries
64 14 Guanji Wang
h3. 3.3 Run the application
65 2 Guanji Wang
66 1 Guanji Wang
67 14 Guanji Wang
h2. 4. The sitools official github site: 
68 14 Guanji Wang
https://github.com/SITools2/SITools2-core
69 1 Guanji Wang
70 14 Guanji Wang
h2. 5. Document of configuration of sitools2 in English is attached in this page,
71 14 Guanji Wang
sitools_configuration.pdf