protege: protege4/protege-standalone/trunk/osgi/build-equinox.xml
<?xml version = "1.0" encoding = "UTF-8"?>
<project name = "Protege Equinox Distribution Build File" default = "run" basedir = ".">
<!-- =================================================================== -->
<!-- EQUINOX - create an equinox-based distribution -->
<!-- =================================================================== -->
<target name = "equinox">
<!-- flush cache -->
<delete dir = "${dist.dir}/equinox/configuration"/>
<copy todir = "${dist.dir}/equinox">
<fileset dir = "./osgi/equinox"/>
<fileset dir = "." includes = "log4j.xml"/>
</copy>
<mkdir dir = "${dist.dir}/equinox/logs"/>
<chmod file = "${dist.dir}/equinox/run.sh" perm = "a+x"/>
<chmod file = "${dist.dir}/equinox/run.command" perm = "a+x"/>
<copy todir = "${dist.dir}/equinox/bundles" file = "${commonlibs.jar}"/>
<copy todir = "${dist.dir}/equinox/bundles" file = "${core.jar}"/>
<copy todir = "${dist.dir}/equinox/plugins"
failonerror = "false">
<fileset dir="${bundles.dir}"
includes="*.jar"
excludes="${commonlibs.name}.jar, ${core.name}.jar"/>
</copy>
</target>
<!-- =================================================================== -->
<!-- RUN.EQUINOX -->
<!-- =================================================================== -->
<target name = "run.equinox">
<java fork = "true" dir = "${dist.dir}/equinox" jar = "${dist.dir}/equinox/org.eclipse.osgi.jar">
<jvmarg value = "-Xmx500M"/>
<jvmarg value = "-Dlog4j.configuration=file:log4j.xml"/>
</java>
</target>
<!-- =================================================================== -->
<!-- DEBUG.EQUINOX - create an equinox-based distribution -->
<!-- =================================================================== -->
<target name = "debug.equinox">
<java fork = "true" dir = "${dist.dir}/equinox" jar = "${dist.dir}/equinox/org.eclipse.osgi.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"/>
<arg value = "-console"/>
</java>
</target>
</project>