protege: protege4/protege-standalone/trunk/osgi/build-osx.xml
<?xml version = "1.0" encoding = "UTF-8"?>
<project name = "Protege Felix Distribution Build File" default = "run" basedir = ".">
<!-- =================================================================== -->
<!-- osx - create an os x application bundle based on felix -->
<!-- =================================================================== -->
<target name = "osx">
<copy todir = "${dist.dir}/Protege.app">
<fileset dir = "./osgi/Protege.app"/>
</copy>
<copy todir = "${dist.dir}/Protege.app/Contents/Resources/Java">
<fileset dir = "./osgi/felix/bin" includes="*.jar"/>
</copy>
<copy todir = "${dist.dir}/Protege.app/Contents/Resources/Java/bundle">
<fileset dir="./osgi/felix/bundles" includes="*.jar"/>
</copy>
<copy todir = "${dist.dir}/Protege.app/Contents/Resources/Java/bundle">
<fileset dir = "${osgi.common}" includes = "org.eclipse.equinox.*.jar"/>
</copy>
<chmod file="${dist.dir}/Protege.app/Contents/MacOS/JavaApplicationStub" perm="u+x"/>
<copy todir = "${dist.dir}/Protege.app/Contents/Resources/Java/bundle" file = "${commonlibs.jar}"/>
<copy todir = "${dist.dir}/Protege.app/Contents/Resources/Java/bundle" file = "${core.jar}"/>
<copy todir = "${dist.dir}/Protege.app/Contents/Resources/Java/plugins"
failonerror = "false">
<fileset dir="${bundles.dir}"
includes="*.jar"
excludes="${commonlibs.name}.jar, ${core.name}.jar"/>
</copy>
</target>
</project>