|
2 | 2 | set -e
|
3 | 3 |
|
4 | 4 | extract_export_package_value_for_buildxml() {
|
5 |
| - sed -z -E 's:\r?\n ::g' "$1" | grep '^Export-Package' | sed 's/^Export-Package: //' | sed 's/",/",\n/g' | sed 's/1\.0\.0/${osgi.version}/g' | sed 's/"/\"/g' |
| 5 | + sed -z -E 's:\r?\n ::g' "$1" \ |
| 6 | + | grep '^Export-Package' \ |
| 7 | + | sed 's/^Export-Package: //' \ |
| 8 | + | sed 's/",/",\n/g' \ |
| 9 | + | sed 's/1\.0\.0/${osgi.version}/g' \ |
| 10 | + | sed 's/"/\"/g' |
6 | 11 | }
|
7 | 12 |
|
8 | 13 | rm -rf tmp
|
| 14 | + |
9 | 15 | mkdir tmp
|
| 16 | + |
10 | 17 | cp -r src tmp
|
11 |
| -mvn -f create-export-package-metadata-pom.xml clean package -DsourceDirectory=tmp/src -DoutputDirectory=tmp/target -DexportedPackages=com.sun.jna,com.sun.jna.ptr,com.sun.jna.win32 |
| 18 | + |
| 19 | +mvn \ |
| 20 | +-f create-export-package-metadata-pom.xml \ |
| 21 | +-DsourceDirectory=tmp/src \ |
| 22 | +-DoutputDirectory=tmp/target \ |
| 23 | +-DexportedPackages=com.sun.jna,com.sun.jna.ptr,com.sun.jna.win32 \ |
| 24 | +clean package |
| 25 | + |
12 | 26 | cp -r contrib/platform/src tmp
|
13 |
| -mvn -f create-export-package-metadata-pom.xml clean package -DsourceDirectory=tmp/src -DoutputDirectory=tmp/target-platform -DexportedPackages=com.sun.jna.platform,com.sun.jna.platform.dnd,com.sun.jna.platform.linux,com.sun.jna.platform.mac,com.sun.jna.platform.unix,com.sun.jna.platform.unix.aix,com.sun.jna.platform.unix.solaris,com.sun.jna.platform.win32,com.sun.jna.platform.win32.COM,com.sun.jna.platform.win32.COM.tlb,com.sun.jna.platform.win32.COM.tlb.imp,com.sun.jna.platform.win32.COM.util,com.sun.jna.platform.win32.COM.util.annotation,com.sun.jna.platform.wince -DimportedPackages=com.sun.jna,com.sun.jna.ptr,com.sun.jna.win32 |
| 27 | + |
| 28 | +mvn \ |
| 29 | +-f create-export-package-metadata-pom.xml \ |
| 30 | +-DsourceDirectory=tmp/src \ |
| 31 | +-DoutputDirectory=tmp/target-platform \ |
| 32 | +-DexportedPackages=\ |
| 33 | +com.sun.jna.platform,\ |
| 34 | +com.sun.jna.platform.dnd,\ |
| 35 | +com.sun.jna.platform.linux,\ |
| 36 | +com.sun.jna.platform.mac,\ |
| 37 | +com.sun.jna.platform.unix,\ |
| 38 | +com.sun.jna.platform.unix.aix,\ |
| 39 | +com.sun.jna.platform.unix.solaris,\ |
| 40 | +com.sun.jna.platform.win32,\ |
| 41 | +com.sun.jna.platform.win32.COM,\ |
| 42 | +com.sun.jna.platform.win32.COM.tlb,\ |
| 43 | +com.sun.jna.platform.win32.COM.tlb.imp,\ |
| 44 | +com.sun.jna.platform.win32.COM.util,\ |
| 45 | +com.sun.jna.platform.win32.COM.util.annotation,\ |
| 46 | +com.sun.jna.platform.wince \ |
| 47 | +-DimportedPackages=com.sun.jna,com.sun.jna.ptr,com.sun.jna.win32 \ |
| 48 | +clean package |
14 | 49 |
|
15 | 50 | echo 'build.xml: Export-Package:'
|
16 | 51 | echo
|
|
0 commit comments