cleaned up build.xml
This commit is contained in:
parent
50b6a75ccc
commit
4e3a68a38d
1 changed files with 23 additions and 81 deletions
68
build.xml
68
build.xml
|
@ -14,19 +14,8 @@
|
||||||
|
|
||||||
<property file="local.properties"/>
|
<property file="local.properties"/>
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
**** CHANGE ME ****
|
|
||||||
|
|
||||||
This setting defines the name of the plugin.
|
|
||||||
This may be the only setting that the developer needs to
|
|
||||||
change.
|
|
||||||
-->
|
|
||||||
<property name = "plugin" value = "de.unibremen.informatik.hets"/>
|
<property name = "plugin" value = "de.unibremen.informatik.hets"/>
|
||||||
|
|
||||||
<!--
|
|
||||||
these properties probably don't need changing
|
|
||||||
-->
|
|
||||||
<property name = "src" location = "./src"/>
|
<property name = "src" location = "./src"/>
|
||||||
<property name = "build" location = "./build"/>
|
<property name = "build" location = "./build"/>
|
||||||
<property name = "bundle.dir" location = "${build}"/>
|
<property name = "bundle.dir" location = "${build}"/>
|
||||||
|
@ -45,7 +34,6 @@
|
||||||
</tstamp>
|
</tstamp>
|
||||||
<mkdir dir = "${build}"/>
|
<mkdir dir = "${build}"/>
|
||||||
<mkdir dir = "${classes}"/>
|
<mkdir dir = "${classes}"/>
|
||||||
<!-- <mkdir dir = "${classes}/lib"/> -->
|
|
||||||
<mkdir dir = "${genlib}"/>
|
<mkdir dir = "${genlib}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -65,14 +53,6 @@
|
||||||
<fail message = "missing protege libraries"/>
|
<fail message = "missing protege libraries"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!--
|
|
||||||
**** CHANGE ME ****
|
|
||||||
|
|
||||||
The following target only needs to be modified if the user
|
|
||||||
needs to change the classpath. It is preconfigured to use
|
|
||||||
the common protege 4 jars, the lib directory and the
|
|
||||||
libraries that have been uncovered in buildlibs.
|
|
||||||
-->
|
|
||||||
<target name = "checkProtegeLibs" depends="init">
|
<target name = "checkProtegeLibs" depends="init">
|
||||||
<echo message="Using Protege Home = ${protege.home} to find protege jars"/>
|
<echo message="Using Protege Home = ${protege.home} to find protege jars"/>
|
||||||
<condition property="libs.found">
|
<condition property="libs.found">
|
||||||
|
@ -80,7 +60,7 @@
|
||||||
<available file="${protege.osgi}" type="file"/>
|
<available file="${protege.osgi}" type="file"/>
|
||||||
<available file="${equinox.common}" type = "file"/>
|
<available file="${equinox.common}" type = "file"/>
|
||||||
<available file="${equinox.registry}" type = "file"/>
|
<available file="${equinox.registry}" type = "file"/>
|
||||||
<!-- <available file="${owl.editor.jar}" type = "file"/> -->
|
<available file="${owl.editor.jar}" type = "file"/>
|
||||||
<available file="${owl.lib}" type="file"/>
|
<available file="${owl.lib}" type="file"/>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -91,21 +71,10 @@
|
||||||
<pathelement location="${equinox.registry}"/>
|
<pathelement location="${equinox.registry}"/>
|
||||||
<pathelement location="${owl.editor.jar}"/>
|
<pathelement location="${owl.editor.jar}"/>
|
||||||
<pathelement location="${owl.lib}"/>
|
<pathelement location="${owl.lib}"/>
|
||||||
<!-- <fileset dir="${lib}"/> -->
|
|
||||||
<fileset dir="${genlib}"/>
|
<fileset dir="${genlib}"/>
|
||||||
</path>
|
</path>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
**** CHANGE ME ****
|
|
||||||
|
|
||||||
The following target only needs to be modified if the
|
|
||||||
developer needs to obtain some jar files that are contained in
|
|
||||||
the Protege bundles. The contents of these jar files are
|
|
||||||
found when Protege 4 runs but may be needed in order to
|
|
||||||
compile the plugin.
|
|
||||||
-->
|
|
||||||
<target name = "buildlibs" depends="checkProtegeLibsAndReport">
|
<target name = "buildlibs" depends="checkProtegeLibsAndReport">
|
||||||
<unjar dest="${build}"
|
<unjar dest="${build}"
|
||||||
src="${common.lib}">
|
src="${common.lib}">
|
||||||
|
@ -116,18 +85,6 @@
|
||||||
</unjar>
|
</unjar>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
**** CHANGE ME ****
|
|
||||||
|
|
||||||
Here is the copy.resources target. It may need modification
|
|
||||||
to copy the right resources into the classes directory. By
|
|
||||||
default it already copies non-java files found in the source
|
|
||||||
directory, the libraries needed by the project and the
|
|
||||||
viewconfig and the plugin.xml. This will be sufficient in
|
|
||||||
many cases.
|
|
||||||
-->
|
|
||||||
<target name="copy.resources" depends="build.manifest">
|
<target name="copy.resources" depends="build.manifest">
|
||||||
<copy todir="${classes}">
|
<copy todir="${classes}">
|
||||||
<fileset dir="${src}">
|
<fileset dir="${src}">
|
||||||
|
@ -137,9 +94,6 @@
|
||||||
<exclude name="**/manifest.mf"/>
|
<exclude name="**/manifest.mf"/>
|
||||||
</fileset>
|
</fileset>
|
||||||
</copy>
|
</copy>
|
||||||
<!-- <copy todir="${classes}/lib">
|
|
||||||
<fileset dir="${lib}" excludes="junit*.jar"/>
|
|
||||||
</copy> -->
|
|
||||||
<copy todir="${classes}">
|
<copy todir="${classes}">
|
||||||
<fileset dir="." includes="*.xml">
|
<fileset dir="." includes="*.xml">
|
||||||
<exclude name="build.xml"/>
|
<exclude name="build.xml"/>
|
||||||
|
@ -152,12 +106,6 @@
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
It is less likely that the developer will want to make changes
|
|
||||||
below this line
|
|
||||||
-->
|
|
||||||
<!-- ============================================================= -->
|
|
||||||
|
|
||||||
<target name = "jjtree">
|
<target name = "jjtree">
|
||||||
<jjtree target="./src/de/unibremen/informatik/hets/grammar/HetCASLGrammar.jjt"
|
<jjtree target="./src/de/unibremen/informatik/hets/grammar/HetCASLGrammar.jjt"
|
||||||
outputdirectory="./src/de/unibremen/informatik/hets/grammar/"
|
outputdirectory="./src/de/unibremen/informatik/hets/grammar/"
|
||||||
|
@ -207,9 +155,10 @@
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name = "run" depends="install">
|
<target name = "run" depends="install">
|
||||||
<java fork = "true"
|
<java dir = "${protege.home}"
|
||||||
dir = "${protege.home}"
|
classname = "org.protege.osgi.framework.Launcher"
|
||||||
jar = "${protege.osgi}">
|
classpath = "${protege.osgi}:${protege.launcher}"
|
||||||
|
fork="true">
|
||||||
<jvmarg value = "-Dfile.encoding=UTF-8"/>
|
<jvmarg value = "-Dfile.encoding=UTF-8"/>
|
||||||
<jvmarg value = "-Xmx500M"/>
|
<jvmarg value = "-Xmx500M"/>
|
||||||
<jvmarg value = "-Dlog4j.configuration=file:log4j.xml"/>
|
<jvmarg value = "-Dlog4j.configuration=file:log4j.xml"/>
|
||||||
|
@ -243,10 +192,6 @@
|
||||||
<echo message = "debug - install the plugin and start protege for debug"/>
|
<echo message = "debug - install the plugin and start protege for debug"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Standard properties that should not require changing
|
|
||||||
-->
|
|
||||||
<property name="equinox.common"
|
<property name="equinox.common"
|
||||||
location="${protege.common}/org.eclipse.equinox.common.jar"/>
|
location="${protege.common}/org.eclipse.equinox.common.jar"/>
|
||||||
<property name="equinox.registry"
|
<property name="equinox.registry"
|
||||||
|
@ -261,7 +206,4 @@
|
||||||
|
|
||||||
<property name="owl.editor.jar"
|
<property name="owl.editor.jar"
|
||||||
location="${protege.plugins}/org.protege.editor.owl.jar"/>
|
location="${protege.plugins}/org.protege.editor.owl.jar"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Reference in a new issue