Skip to content
Snippets Groups Projects
Commit 916311c4 authored by al.schwinn's avatar al.schwinn
Browse files

Add default directory for installation

updated README.md

adwdwd
parent 356d4ae0
No related branches found
No related tags found
No related merge requests found
**Opensilecs Eclipse Plugin** is an Eclipse plugin which simplifies usage of [Opensilecs](https://git.gsi.de/silecs/opensilecs) to configure and access PLC systems via FESA.
## Local build & install
## build with maven
If you want to install Silecs Eclipse Plugin locally from sources (e.g. for development purposes), follow these steps:
......@@ -14,24 +14,46 @@ git clone https://git.gsi.de/silecs/opensilecs-eclipse-plugin.git
opensilecs-eclipse-plugin$ sh build.sh
```
3. Open project in eclipse (recommanded version is 2021-06).
## build and run via eclipse build process
1. Make sure the correct Eclipse platform is defined as target platform:
```
Window --> Preferences --> Plug In Development --> Tatrget Platform
Add --> Default (...) --> Finsih --> Apply & Close
```
<img alt="Target Platform" src="static/target-platform.PNG" width=100%>
1. Open project in eclipse
Define version of feature in file `feature.xml` in `silecs-eclipse-plugin-gsi-feature`.
<img alt="Define feature version " src="static/feature.PNG" width=60%>
4. Open `site.xml`, add new category, select feature created in previous step.
1. Open `site.xml`, add new category, select feature created in previous step.
Build new feature using `Build` button
<img alt="Update site" src="static/site.PNG" width=60%>
4. Open new instance of eclipse. Go to `Help` -> `Install New Software...`.
1. If there are build errors, try to follow the solutions suggested by eclipse. (E.g. here the target Java Version was not available any more)
<img alt="Error in manifest" src="static/MANIFEST1.PNG" width=60%>
<img alt="Suggested Fix" src="static/MANIFEST2.PNG" width=60%>
1. Open new instance of eclipse. Go to `Help` -> `Install New Software...`.
Add new site by clicking `Add`. In pop up window, click on `Local` and choose location of directory `silecs-eclipse-plugin-gsi-update-site`. Press `Add`.
Choose previously created feature. Install it by pressing `Next` accepting License and `Finish`. If there will be Security warning choose `Install anyway`. To apply changes, restart of eclipse is required.
<img alt="Install" src="static/install.PNG" width=60%>
5. After restart, you can open Silecs plugin in `Window` -> `Perspective` -> `Open Perspective` -> `Other` -> `Silecs`. Now you can use the plugin.
1. After restart, you can open Silecs plugin in `Window` -> `Perspective` -> `Open Perspective` -> `Other` -> `Silecs`. Now you can use the plugin.
<img alt="Installed plugin" src="static/installed_plugin.PNG" width=80%>
## Installation
The following script will install the plugin to the global default install folder
```
./silecs-eclipse-plugin-gsi-update-site/install.sh
```
/logs.zip
#!/bin/sh
set -e
INSTALL_DIR=$1
GLOBAL_RELEASE_DIR=/common/usr/cscofe/silecs/silecs-eclipse-plugin-gsi-update-site
if [ -z "$1" ]
then
RELEASE_DIR=$GLOBAL_RELEASE_DIR
else
RELEASE_DIR=$1
fi
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT") # path where this script is located in
mkdir -p ${INSTALL_DIR}
cp -ruv ${SCRIPTPATH}/* ${INSTALL_DIR}
\ No newline at end of file
mkdir -p ${RELEASE_DIR}
cp -ruv ${SCRIPTPATH}/* ${RELEASE_DIR}
# silecs-codegen
This component of the SILECS PLC-framework is used in order to generate and manage silecs-project.
## Getting Started
Please check the lab-specific SILECS-Wikis for more information:
[CERN SILECS Wiki Page][CERN_Wiki]
[GSI SILECS Wiki Page][GSI_Wiki]
## License
Licensed under the GNU GENERAL PUBLIC LICENSE Version 3. See the [LICENSE file][license] for details.
[license]: LICENSE
[CERN_Wiki]: https://wikis.ch/display/SIL/SILECs+Home
[GSI_Wiki]: https://www-acc.gsi.de/wiki/Frontend/SILECS
## Dependencies
### Eclipse Plugins
Install Eclipse plug-in development environment – repo: Official Eclipse repo
install eclipse-core-tool – http://eclipse.org/eclipse/platform-core/updates
### Maven
Configure the Eclipe-Maven:
https://www-acc.gsi.de/wiki/bin/viewauth/IN/Maven
Goto project-folder in console and run:
“mvn install”
Right click on project in eclipse configure → Convert to Maven Project
Goto eclipse and run project-->Build
## Execution
Goto eclipse-perspective
double-click plugin.xml
Launch an Eclipse Application
\ No newline at end of file
static/MANIFEST1.PNG

32.5 KiB

static/MANIFEST2.PNG

34.6 KiB

static/target-platform.PNG

37.6 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment