Skip to content

Commit 12d7ea5

Browse files
committed
add and update documentation from Wiki to repo as md files #245
Signed-off-by: Andre Bossert <anb0s@anbos.de>
1 parent 8d0fa5b commit 12d7ea5

File tree

4 files changed

+186
-23
lines changed

4 files changed

+186
-23
lines changed

docs/How-to-build.md

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# How to build
2+
3+
## Dependencies
4+
* Eclipse IDE for Eclipse Committers, see `https://www.eclipse.org/downloads/packages/release/2022-03/r/eclipse-ide-eclipse-committers`
5+
* Maven: just install the m2e plugin, see https://www.eclipse.org/m2e
6+
* Tycho: do not need separate installation, will be fetched by Maven during the build automattically, see `https://eclipse.org/tycho`
7+
8+
## Get EasyShell plugin sources
9+
* Clone EasyShell from `https://github.com/anb0s/EasyShell.git` to new directory `EasyShell`
10+
* switch to `main` branch
11+
* Import all projects to Eclipse and add them to new "Working Set" **EasyShell**
12+
* **EasyShell**: root project, needed only for readme, headless build etc.
13+
* **de.anbos.eclipse.easyshell.feature**: feature project
14+
* **de.anbos.eclipse.easyshell.platform**: platform definition
15+
* **de.anbos.eclipse.easyshell.plugin**: plugin with main sources
16+
* **de.anbos.eclipse.easyshell.site**: update site
17+
18+
## Get EasyShell web-site (gh-pages)
19+
* Clone EasyShell from `https://github.com/anb0s/EasyShell.git` to new directory `EasyShell-gh-pages`
20+
* switch to `gh-pages` branch
21+
* Import the project to Eclipse and add it to "Wortking Set" **EasyShell**
22+
* **EasyShell-gh-pages**: root project, needed for web- and update-site
23+
24+
## Running and debugging in Eclipse
25+
* select target platform you want to test EasyShell against:
26+
* go to project **de.anbos.eclipse.easyshell.platform**
27+
* open wanted platform definition file, e.g. use **Eclipse-2022-03.target**
28+
* use `Set as Target Platform` and wait until the platform defition is loaded from Eclipse mirrors
29+
* now there should be no build errors anymore
30+
* use `Run | Debug As | Eclipse Application` and wait until the new Eclipse instance is opened
31+
* use EasyShell, set breakpoint etc. :)
32+
33+
## Update version
34+
35+
!!! ATTENTION do not change other versions manually !!!
36+
37+
!!! all versions must be same BEFORE executiong set-version !!!
38+
39+
!!! e.g. in all pom.xml files: `2.3.0-SNAPSHOT` and all eclipse files `[MANIFEST.MF, feature.xml, category.xml]`: `2.3.0.qualifier` !!!
40+
41+
1. update the version in root `pom.xml`: e.g. `<newVersion>2.3.1-SNAPSHOT</newVersion>`
42+
2. run `EasyShell-set-new-version.launch` or execute: `mvn clean tycho-versions:set-version` and all versions are updated now
43+
3. build with `mvn -Dsite.dir=testing clean verify` or just launch config `EasyShell-Testing-Build.launch`
44+
45+
sources:
46+
- http://codeandme.blogspot.co.at/2012/12/tycho-build-9-updating-version-numbers.html
47+
- https://wiki.eclipse.org/Tycho/Packaging_Types#eclipse-plugin
48+
- https://eclipse.org/tycho/sitedocs/tycho-release/tycho-versions-plugin/plugin-info.html
49+
50+
target defintions:
51+
- https://wiki.eclipse.org/Eclipse_Project_Update_Sites
52+
- http://codeandme.blogspot.de/2012/12/tycho-build-8-using-target-platform.html
53+
- https://wiki.eclipse.org/Tycho/Packaging_Types#eclipse-target-definition
54+
- https://bugs.eclipse.org/bugs/show_bug.cgi?id=383865
55+
- http://blog.vogella.com/2013/01/03/tycho-advanced/
56+
57+
## Building EasyShell plugin with update site for testing
58+
* go to project **EasyShell**
59+
* build
60+
* from Eclipse: run launch configuration `EasyShell-Testing-Build`
61+
* from commandline / headless / CI server: `mvn clean verify` with parameter `site.dir=testing`: `mvn -Dsite.dir=testing clean verify`
62+
* go to project **de.anbos.eclipse.easyshell.site** and use one of:
63+
* directory `target\repository` OR
64+
* zip file e.g. `target\de.anbos.eclipse.easyshell.site-2.3.0-SNAPSHOT.zip` OR
65+
* last version from `updates\testing`
66+
* deploy
67+
* new automatic pre-process
68+
* create or reset branch `testing*` to latest from `main` and push, e.g. branch name `testing-my-new-build`
69+
* new PR with the new build will be automatically created for you
70+
* wait for PR to be merged to `main` by a maintainer
71+
* ask maintainer to create and push new tag at main branch for a pre-release with naming patterns
72+
* `v[0-9]+.[0-9]+.[0-9]+-alpha*`
73+
* `v[0-9]+.[0-9]+.[0-9]+-beta*`
74+
* `v[0-9]+.[0-9]+.[0-9]+-rc*`
75+
* new pre-release tag will be auomatically picked up and new pre-release will be created with changelog and new update site at gh-pages
76+
* old deprecated manual process as fallback
77+
* synchronize the directory `updates\testing` to project **EasyShell-gh-pages** directory `testing`
78+
* commit and push project **EasyShell-gh-pages** to GitHub and check the new version from site `http://anb0s.github.io/EasyShell/testing`
79+
80+
## Building EasyShell plugin with update site for releasing
81+
* go to project **EasyShell**
82+
* build
83+
* from Eclipse: run launch configuration `EasyShell-Release-Build`
84+
* from commandline / headless / CI server: `mvn clean verify` with parameter `site.dir=release`: `mvn -Dsite.dir=release clean verify`
85+
* go to project **de.anbos.eclipse.easyshell.site** and use one of:
86+
* directory `target\repository` OR
87+
* zip file e.g. `target\de.anbos.eclipse.easyshell.site-2.3.0-SNAPSHOT.zip` OR
88+
* last version from directory `updates\release`
89+
* deploy
90+
* new automatic pre-process
91+
* create or reset branch `release*` to latest from `main` and push, e.g. branch name `testing-my-new-release`
92+
* new PR with the new build will be automatically created for you
93+
* wait for PR to be merged to `main` by a maintainer
94+
* ask maintainer to create and push new tag at main branch for a release with naming patterns
95+
* `v[0-9]+.[0-9]+.[0-9]+`
96+
* new release tag will be auomatically picked up and new release will be created with changelog and new update site at gh-pages
97+
* old deprecated manual process as fallback
98+
* synchronize the directory `updates\release` to project **EasyShell-gh-pages** directory `release`
99+
* commit and push project **EasyShell-gh-pages** to GitHub and check the new version from site `http://anb0s.github.io/EasyShell`
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Windows Administrator Terminal
2+
3+
## Command Prompt
4+
5+
### Create a new command for `Command Prompt as Admin` terminal
6+
7+
- go to menu `Window -> Preferences -> EasyShell -> (2) Command`
8+
- enter `prompt` in the search field
9+
- select `Command Prompt` and use `Copy...` button
10+
- in the new dialog
11+
- rename to `Command Prompt as Admin` or similar
12+
- select `Working directory` checkbox
13+
- Change command to `powershell.exe "Start-Process cmd -Verb RunAs"`
14+
![image](https://user-images.githubusercontent.com/95811/109027578-3d0d9c80-76c1-11eb-9315-ce016be96667.png)
15+
- accept with `OK`
16+
17+
### Create new menu with the command
18+
19+
- go to menu `Window -> Preferences -> EasyShell -> (1) Menu`
20+
- Use `Add...` button
21+
- enter Filter `admin`
22+
- select `Open - Command Prompt as Admin (User)`
23+
24+
![image](https://user-images.githubusercontent.com/95811/109031691-3e40c880-76c5-11eb-8981-2b48fd9570c8.png)
25+
- accept with `OK`
26+
27+
## Powershell Prompt
28+
29+
### Create a new command for `PowerShell as Admin` terminal
30+
31+
- go to menu `Window -> Preferences -> EasyShell -> (2) Command`
32+
- enter `powershell` in the search field
33+
- select `PowerShell` and use `Copy...` button
34+
- in the new dialog
35+
- rename to `PowerShell as Admin` or similar
36+
- Change command to `powershell.exe -command "Start-Process powershell -Verb RunAs -ArgumentList '-NoExit', '-Command', 'cd ${easyshell:container_loc}'"`
37+
![image](https://user-images.githubusercontent.com/95811/109144127-14d57a80-7761-11eb-9946-df2379afaf9a.png)
38+
- accept with `OK`
39+
40+
### Create new menu with the command
41+
- go to menu `Window -> Preferences -> EasyShell -> (1) Menu`
42+
- Use `Add...` button
43+
- enter Filter `powershell`
44+
- select `Open - PowerShell as Admin (User)`
45+
46+
![image](https://user-images.githubusercontent.com/95811/109031898-70eac100-76c5-11eb-8b00-febe2ae5f1a3.png)
47+
- accept with `OK`
48+
49+
## Arrange menu entries
50+
Now you can select the new menu entries and use buttons `Up` and `Down` to move them to the place in the menu you want.
51+
52+
![image](https://user-images.githubusercontent.com/95811/109032353-dc349300-76c5-11eb-8e5f-9d98cad87904.png)
53+
54+
## Test via `Alt + E` or `Alt + O`
55+
Select the resource in you Eclipse explorer and use `Alt + E` or `Alt + O` or context menu to run EasyShell
56+
57+
![image](https://user-images.githubusercontent.com/95811/109032748-40efed80-76c6-11eb-904c-d444ac729d21.png)

docs/Windows-Terminal-App.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Windows Terminal App
2+
3+
## Open Terminal
4+
See: https://docs.microsoft.com/de-de/windows/terminal/command-line-arguments?tabs=windows
5+
6+
## Create a new command for `Windows Terminal`
7+
Open EasyShell preferences go to `(2) Command` and add new command:
8+
9+
![image](https://user-images.githubusercontent.com/95811/112133452-047fb680-8bcc-11eb-8d31-a41e0a1ffdb1.png)
10+
11+
* Category `Open`
12+
* Name: `Windows Terminal`
13+
* Command: `wt new-tab -d "${easyshell:container_loc}" --title "${easyshell:project_name}"`
14+
15+
Press `OK `and then `Apply and Close` (because of reloading command issues => will fix this later)
16+
17+
Reopen EasyShell preferences go to `(1) Menu` and create new menu and select new command:
18+
19+
![image](https://user-images.githubusercontent.com/95811/112134165-b919d800-8bcc-11eb-8fa0-4434a5b032e5.png)
20+
Filter: `terminal`
21+
Press `OK ` and then move the new menu entry with `Up` and `Down` to wanted place:
22+
23+
![image](https://user-images.githubusercontent.com/95811/112134334-ecf4fd80-8bcc-11eb-8fe9-37f43c712cce.png)
24+
then `Apply and Close`
25+
26+
Now it should open the folder:
27+
28+
![image](https://user-images.githubusercontent.com/95811/112134839-6d1b6300-8bcd-11eb-836e-22e139805d98.png)
29+
30+
![image](https://user-images.githubusercontent.com/95811/112134954-8f14e580-8bcd-11eb-821e-dcc2c51348bc.png)

readme.txt

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)