Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:developer:eclipse [2019/11/21 21:06]
anupama [Method 2]
en:developer:eclipse [2019/11/21 21:07] (current)
anupama [Method 2]
Line 134: Line 134:
   - Click **Finish**.   - Click **Finish**.
  
-  * If you want to edit and compile GLI and/or the solr extension code, add ''​$GS3SRCHOME/​gli/​src''​ and ''​$GS3SRCHOME/​ext/​solr/​src/​java''​ as src folders too, then right-click on the Eclipse project folder in the Package Explorer > New > Source Folder. Give it a name like ''​glisrc''​ or ''​solrsrc''​.\\ Next, rightclick on this new source folder (e.g. ''​glisrc''​) and then choose Import. Then repeat steps 5-10 for each new code src folder to add.\\ If you forget to create a new source folder then beware that in Eclipse'​s package view, all the code for gli/src and ext/​solr/​src/​java get merged into the org.greenstone.* tree of GS3's src/java if they'​re in the ''​org.greenstone''​ package.\\ Warning: the gli source code added this way will result in "​Access restriction"​ compilation errors that I've not resolved yet. I've only successfully worked with GS3's src/java folder in Eclipse using Method 2.+  * **Warning:​** Additionally adding the gli source code in the way described next will result in "​Access restriction"​ compilation errors that I've not resolved yet. I've only successfully worked with GS3's src/java folder in Eclipse using Method 2.\\ If you want to edit and compile GLI and/or the solr extension code, add ''​$GS3SRCHOME/​gli/​src''​ and ''​$GS3SRCHOME/​ext/​solr/​src/​java''​ as src folders too, then right-click on the Eclipse project folder in the Package Explorer > New > Source Folder. Give it a name like ''​glisrc''​ or ''​solrsrc''​.\\ Next, rightclick on this new source folder (e.g. ''​glisrc''​) and then choose Import. Then repeat steps 5-10 for each new code src folder to add.\\ If you forget to create a new source folder then beware that in Eclipse'​s package view, all the code for gli/src and ext/​solr/​src/​java get merged into the org.greenstone.* tree of GS3's src/java if they'​re in the ''​org.greenstone''​ package.
  
   * Go to Project > Clean to clean the compile products. Then set Project > Build Automatically. In order fix all the compile errors and allow the project to build correctly, and in an output folder of your choosing, you will also need to complete the following steps.   * Go to Project > Clean to clean the compile products. Then set Project > Build Automatically. In order fix all the compile errors and allow the project to build correctly, and in an output folder of your choosing, you will also need to complete the following steps.