Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 | * contributor license agreements. See the NOTICE file distributed with |
| 4 | * this work for additional information regarding copyright ownership. |
| 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 | * (the "License"); you may not use this file except in compliance with |
| 7 | * the License. You may obtain a copy of the License at |
| 8 | * |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
| 17 | |
| 18 | Welcome to Apache Felix Dependency Manager |
| 19 | ========================================== |
| 20 | |
| 21 | Apache Felix Dependency Manager is a versatile java API, allowing to declaratively |
| 22 | register, acquire, and manage dynamic OSGi services. |
| 23 | |
Pierre De Rop | 342c200 | 2016-02-01 10:16:56 +0000 | [diff] [blame^] | 24 | In addition to the original DM API, a new DM-lambda library also allows to define |
| 25 | OSGI components using a fluent, concise, and more type-safe API, based on java8 lambdas. |
| 26 | |
Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 27 | Building and testing Apache Felix Dependency Manager |
| 28 | ==================================================== |
| 29 | |
| 30 | ** Compilation Using gradle: |
| 31 | |
| 32 | - If necessary, configure your https proxy settings: |
| 33 | |
| 34 | export GRADLE_OPTS="-Dhttps.proxyHost=www.somehost.org -Dhttps.proxyPort=8080" |
| 35 | |
| 36 | - If you are building a released org.apache.felix.dependencymanager-r<n>-src.zip artifact, then |
| 37 | you also have to unfold the org.apache.felix.dependencymanager-r<n>-deps.zip on the same directory where you have unfolded the source archive. |
| 38 | (no need to do this if you have checked out from the felix-trunk). |
| 39 | |
Pierre De Rop | 342c200 | 2016-02-01 10:16:56 +0000 | [diff] [blame^] | 40 | - Install java8. |
Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 41 | |
| 42 | - Compile Dependendency Manager annotations bndtools plugin: |
| 43 | |
| 44 | $ ./gradlew org.apache.felix.dependencymanager.annotation:jar |
| 45 | |
| 46 | - Compile all other bundles: |
| 47 | |
| 48 | $ ./gradlew jar |
| 49 | |
| 50 | - run junit tests: |
| 51 | |
| 52 | $ ./gradlew test |
| 53 | |
| 54 | - run integration tests: |
| 55 | |
| 56 | $ ./gradlew check |
| 57 | |
| 58 | ** Compilation Using Eclipse: |
| 59 | |
Pierre De Rop | 342c200 | 2016-02-01 10:16:56 +0000 | [diff] [blame^] | 60 | - Install latest Eclipse Mars, and configure a JRE for java8: |
Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 61 | |
| 62 | * go to Windows -> Preferences -> Java -> Installed JREs |
Pierre De Rop | 342c200 | 2016-02-01 10:16:56 +0000 | [diff] [blame^] | 63 | * Then add a java8 JRE of your choice. |
Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 64 | |
Pierre De Rop | a291216 | 2015-11-22 18:43:28 +0000 | [diff] [blame] | 65 | - Install BndTools 3.0.0 |
| 66 | |
Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 67 | - Open BndTools perspective |
Pierre De Rop | a291216 | 2015-11-22 18:43:28 +0000 | [diff] [blame] | 68 | |
Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 69 | - Import Dependency Manager into Eclipse, and compile everything |
Pierre De Rop | a291216 | 2015-11-22 18:43:28 +0000 | [diff] [blame] | 70 | |
Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 71 | - if it's the first time you import the project into eclipse, it may happen that some modules that requires the |
| 72 | Dependency Manager Annotations bnd plugin don't compile: It's a know issue. To work around, restart eclipse and |
| 73 | rebuild every modules. |
Pierre De Rop | a291216 | 2015-11-22 18:43:28 +0000 | [diff] [blame] | 74 | |
Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 75 | - Click on org.apache.felix.dependencymanager project and run it as "JUnit test". |
Pierre De Rop | a291216 | 2015-11-22 18:43:28 +0000 | [diff] [blame] | 76 | |
Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 77 | - Click on org.apache.felix.dependencymanager.shell and run it as "JUnit test" |
Pierre De Rop | a291216 | 2015-11-22 18:43:28 +0000 | [diff] [blame] | 78 | |
Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 79 | - Click on org.apache.felix.dependencymanager.itest and run it as "Bnd OSGi Test Launcer (Junit)". |
Pierre De Rop | a291216 | 2015-11-22 18:43:28 +0000 | [diff] [blame] | 80 | |
Pierre De Rop | 3a00a21 | 2015-03-01 09:27:46 +0000 | [diff] [blame] | 81 | - Click on org.apache.felix.dependencymanager.runtime.itest and run it as ""Bnd OSGi Test Launcer (Junit)". |
| 82 | |
| 83 | Getting Started |
| 84 | =============== |
| 85 | |
| 86 | To start using Apache Felix Dependency Manager, please go to our website and read the |
| 87 | getting started guide for users: |
| 88 | |
| 89 | http://felix.apache.org/documentation/subprojects/apache-felix-dependency-manager.html |
| 90 | |
| 91 | Many examples are also available from the dependency manager samples module. |
| 92 | See ./org.apache.felix.dependencymanager.samples/README.samples |
| 93 | |
| 94 | Many thanks for using Apache Felix Dependency Manager. |
| 95 | |
| 96 | The Felix Team |