---
# System prepended metadata

title: Eclipse bndtools 使用
tags: [OSGI, Bndtool, Eclipse]

---

# Eclipse bndtools 使用

###### tags: `OSGI` `Eclipse` `Bndtool`

## 如果是Maven專案，bnd.bnd需要額外加上

```
src: src
bin: target/classes
```

## bundle自己打包jar來使用
```
Include-Resource: \
	/Users/leo/Desktop/felix/jar/java-json.jar,\
	
Bundle-ClassPath: \
        .,\
        java-json.jar,\
```

## include file

```
Include-Resource: \
	./OSGI-INF/config.properties
```