protege: protege4/protege-standalone/trunk/osgi/build-knopflerfish.xml
<?xml version = "1.0" encoding = "UTF-8"?>
<project name = "Protege Knopflerfish Distribution Build File" default = "run" basedir = ".">
<!-- =================================================================== -->
<!-- KNOPFLERFISH - create a knopflerfish-based distribution -->
<!-- =================================================================== -->
<target name = "knopflerfish">
<copy todir = "${dist.dir}/knopflerfish">
<fileset dir = "./osgi/knopflerfish"/>
<fileset dir = "." includes = "log4j.xml"/>
</copy>
<copy todir = "${dist.dir}/knopflerfish/jars/protege">
<fileset dir = "${osgi.common}" includes = "*.jar"/>
</copy>
<mkdir dir = "${dist.dir}/knopflerfish/logs"/>
<chmod file = "${dist.dir}/knopflerfish/run.sh" perm = "u+x"/>
<chmod file = "${dist.dir}/knopflerfish/run.command" perm = "u+x"/>
<copy todir = "${dist.dir}/knopflerfish/jars/protege" file = "${commonlibs.jar}"/>
<copy todir = "${dist.dir}/knopflerfish/jars/protege" file = "${core.jar}"/>
<copy todir = "${dist.dir}/knopflerfish/jars/plugins"
failonerror = "false">
<fileset dir="${bundles.dir}"
includes="*.jar"
excludes="${commonlibs.name}.jar, ${core.name}.jar"/>
</copy>
</target>
<!-- =================================================================== -->
<!-- RUN.KNOPFLERFISH -->
<!-- =================================================================== -->
<target name = "run.knopflerfish">
<java fork = "true" dir = "${dist.dir}/knopflerfish"
classname = "org.knopflerfish.framework.Main">
<jvmarg value = "-Dlog4j.configuration=file:log4j.xml"/>
<jvmarg value = "-Dorg.protege.plugin.dir=jars/plugins"/>
<jvmarg value = "-Xmx1500M"/>
<classpath>
<pathelement path="${dist.dir}/knopflerfish/framework.jar"/>
<pathelement path="${dist.dir}/knopflerfish/crimson.jar"/>
</classpath>
</java>
</target>
<!-- =================================================================== -->
<!-- DEBUG.KNOPFLERFISH -->
<!-- =================================================================== -->
<target name = "debug.knopflerfish">
<java fork = "true" dir = "${dist.dir}/knopflerfish" jar = "${dist.dir}/knopflerfish/framework.jar">
<jvmarg value = "-Xmx1500M"/>
<jvmarg value = "-Dlog4j.configuration=file:log4j.xml"/>
<jvmarg value = "-Dlog4j.debug"/>
<jvmarg value = "-Xdebug"/>
<jvmarg value = "-Xrunjdwp:transport=dt_socket,address=8500,server=y,suspend=y"/>
<jvmarg value = "-Dorg.protege.plugin.dir=jars/plugins"/>
</java>
</target>
</project>