Skip to content

Commit 32f39bf

Browse files
authored
Merge pull request #245 from chrisrueger/update-development-instructions
move Development Instructions to github
2 parents d32a36a + 9d8f484 commit 32f39bf

File tree

1 file changed

+1
-83
lines changed

1 file changed

+1
-83
lines changed

development.md

Lines changed: 1 addition & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -4,86 +4,4 @@ description: Guide to checking out and building Bndtools from source.
44
author: Neil Bartlett
55
---
66

7-
**This page is a tutorial for developers wishing to customise and enhance Bndtools itself.** For general documentation please refer to the [Tutorial][1].
8-
9-
10-
There are two ways you can setup a development environment for contributing to Bnd/Bndtools:
11-
12-
1. [Building Bndtools](#building-bndtools) manually: Clone git, build and setup Eclipse.
13-
2. or install our [Development Setups](#development-setups) with a pre-configured Eclipse instance
14-
15-
## Building Bndtools
16-
17-
Bndtools is built with Bndtools! If you want to work on the bndtools source code, you have three options:
18-
19-
* Install the current public release of bndtools from the [Eclipse Marketplace][2] and start working straight away.
20-
* Build Bndtools from the command line, then install the build results into your Eclipse IDE.
21-
* or install one of the pre-configured [development setups](#development-setups)
22-
23-
24-
### Checking Out from GitHub
25-
26-
First check out the source code from GitHub as follows:
27-
28-
git clone git://github.com/bndtools/bnd.git
29-
30-
If you have Bndtools installed in your Eclipse IDE already (e.g. using Marketplace) then skip to **Importing Into Eclipse** below. Otherwise read on...
31-
32-
### Building from the command-line
33-
34-
Read the document [Contribution to Bnd/Bndtools](https://github.com/bndtools/bnd/blob/master/CONTRIBUTING.md#build-environment) to learn how the build works.
35-
36-
Assuming you have Gradle (version 1.11 or better) installed, you can build bndtools from the command line by changing to the root of your checkout and typing:
37-
38-
gradle build dist
39-
40-
After a a short while, two directories - `build/generated/p2` and `build/generated/extras/p2` will appear. These contains an Eclipse Update Sites that you can use to install bndtools from the code you have just built.
41-
42-
To install from the generated Update Sites, open the Help menu in Eclipse and select "Install New Software". In the update dialog, click the "Add" button (near the top left) and then click the "Local" button. Browse to the location of the `build/generated/p2` directory that you just built. Then set the name of this update site to "Bndtools Local Snapshot" (or whatever you like, it's not really important so long as you enter *something*). Click "OK". Do the same for the `build/generated/extras/p2` directory.
43-
44-
Back in the update dialog, Bndtools will appear in the category list. Place a check next to it and click Next. Drive the rest of the wizard to completion... congratulations, you have just built and installed bndtools!
45-
46-
### Importing Into Eclipse
47-
48-
Now you have Bndtools installed in your Eclipse IDE, you can import the bndtools projects into Eclipse to begin working on the source code.
49-
50-
Open the File menu and select "Import" and then "Existing Projects into Workspace" (under the General category). Click "Next". Click the "Browse" button (top right) and select the root directory of the bndtools projects.
51-
52-
Ensure that all projects (sub-directories) are checked.
53-
54-
NB: These projects must all be in the same directory!
55-
56-
Click "Finish"... Eclipse will start to import and build the projects. **If you see a dialog during the import prompting you to "Create a Bnd Configuration Project" click CANCEL.**
57-
58-
You should now have all the bndtools projects in your workspace, ready to begin hacking!
59-
60-
## Development Setups
61-
62-
We also provide pre-configured setups using Eclipse oomph installer, which help you getting started quickly.
63-
This way you get a dedicated Eclipse instance with pre-installed bndtools source code with a simple one-click installer.
64-
65-
Find our different setups and P2 Repositories at:
66-
<https://bndtools.org/bndtools.p2.repo/>
67-
68-
69-
## Launching Bndtools from Eclipse
70-
71-
To launch bndtools from Eclipse (e.g. to try out a change to debug), use one of the `.bndrun` files from the `bndtools.core` project. There are three launchers, one per architecture, i.e.:
72-
73-
* `bndtools.cocoa.macosx.x86_64.bndrun` for running on MacOS (64-bit Intel x86)
74-
* `bndtools.cocoa.macosx.aarch64.bndrun` for running on MacOS (64-bit Apple Silicon / AArch64)
75-
* `bndtools.gtk.linux.x86_64.bndrun` for running on Linux (64-bit Intel x86).
76-
* `bndtools.gtk.linux.x86.bndrun` for running on Linux (32-bit Intel x86).
77-
* `bndtools.win32.x86.bndrun` for running on Win32 (XP, Vista etc).
78-
79-
Right click on the file that matches your computer's architecture and select "Run As" > "Bnd OSGi Run Launcher". If none of these files matches the architecture you want to run on, then please create a new one and submit it back as a patch.
80-
81-
82-
## Running JUnit Tests
83-
84-
85-
The project `biz.aQute.tester.test` contains the unit tests for `biz.aQute.tester` and `biz.aQute.tester.junit-platform`.
86-
See this project's [README](https://github.com/bndtools/bnd/blob/master/biz.aQute.tester.test/readme.md) for instructions of how to execute tests in Eclipse.
87-
88-
[1]: /tutorial.html "Bndtools Tutorial"
89-
[2]: https://marketplace.eclipse.org/ "Eclipse Marketplace"
7+
The Bndtools Developer Guide has moved to [https://github.com/bndtools/bnd/blob/master/CONTRIBUTING.md](https://github.com/bndtools/bnd/blob/master/CONTRIBUTING.md)

0 commit comments

Comments
 (0)