Project

General

Profile

Eclipse configuration » History » Version 15

Anonymous, 09/03/2017 10:12

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