merged in org.protege.common repository

Esse commit está contido em:
Jennifer Vendetti
2013-09-20 11:13:54 -07:00
commit 72c7d8e6a3
10 arquivos alterados com 0 adições e 262 exclusões
-260
Ver Arquivo
@@ -1,260 +0,0 @@
<?xml version = "1.0" encoding = "utf-8"?>
<project name = "org.protege.common project" default = "install" basedir = ".">
<!--
To run this build file set the environment variable
PROTEGE_HOME to point to a protege distribution and type ant
install or jar.
-->
<property environment="env"/>
<property name = "protege.home" location="${env.PROTEGE_HOME}"/>
<property file = "${protege.home}/build.properties"/>
<property file="local.properties"/>
<property name = "bundlor.home" location="${env.BUNDLOR_HOME}"/>
<!--
This setting defines the name of the plugin.
This may be the only setting that the developer needs to
change.
-->
<property name = "plugin" value = "org.protege.common"/>
<!--
these properties probably don't need changing
-->
<property name = "src" location = "./src/main/java"/>
<property name = "build" location = "./build"/>
<property name = "classes" location = "${build}/classes"/>
<property name = "lib" location = "./lib"/>
<property name = "manifest" location = "${build}/manifest.mf"/>
<property name = "manifest.bundlor" location = "./META-INF/manifest.bundlor"/>
<property name = "protege.common" location="${protege.home}/bundles"/>
<target name = "init">
<tstamp>
<format property="build.time" pattern="yyyy_MM_dd_hhmm"/>
</tstamp>
<property name="bundle.version"
value="${core.major.version}.${core.minor.version}.${core.micro.version}.b${core.build.number}_${build.time}"/>
<mkdir dir = "${build}"/>
<mkdir dir = "${classes}"/>
<mkdir dir = "${classes}/lib"/>
<condition property="use.bundlor">
<and>
<available file="${bundlor.home}" type = "dir"/>
<available file="${manifest.bundlor}" type = "file"/>
</and>
</condition>
</target>
<!-- ============================================================= -->
<!-- Configuring the Compile Classpath -->
<!-- ============================================================= -->
<target name="checkProtegeLibsAndReport" depends="checkProtegeLibs"
unless="libs.found">
<echo message="Missing protege libraries. You need to set "/>
<echo message="the PROTEGE_HOME environment variable to a"/>
<echo message="protege installation directory where the"/>
<echo message="appropriate plugins have been installed."/>
<echo message="Alternatively set the jar libs in local.properties (protege.lib=...)"/>
<echo message="Use the -v option to ant to see what jars are missing."/>
<fail message = "missing protege libraries"/>
</target>
<!--
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">
<echo message="**********************************************************"/>
<echo message="Using Protege Home = ${protege.home}"/>
<echo message="Using Java Version = ${ant.java.version}" />
<echo message="Using OSGi Library = ${protege.osgi}"/>
<echo message="**********************************************************"/>
<condition property="libs.found">
<and>
<available file="${protege.osgi}" type = "file"/>
</and>
</condition>
<path id = "project.classpath">
<pathelement location="${protege.osgi}"/>
<pathelement location="${protege.lib}"/>
<fileset dir="${lib}" includes="*.jar"/>
</path>
</target>
<!--
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">
<copy todir="${classes}">
<fileset dir="${src}">
<include name="**/*"/>
<exclude name="**/*.java"/>
<exclude name="**/MANIFEST*.MF"/>
</fileset>
</copy>
<copy todir="${classes}/lib">
<fileset dir="${lib}" excludes="junit*.jar"/>
</copy>
<copy todir="${classes}">
<fileset dir="." includes="*.xml">
<exclude name="build.xml"/>
</fileset>
</copy>
</target>
<!--
It is less likely that the developer will want to make changes
below this line
-->
<!-- ============================================================= -->
<target name="add.source" depends="init">
<zip destfile="${classes}/${plugin}src.zip">
<fileset dir="${src}"/>
</zip>
</target>
<target name = "compile" depends = "checkProtegeLibsAndReport">
<javac srcdir = "${src}"
destdir = "${classes}"
debug="on"
includeAntRuntime="false">
<classpath refid = "project.classpath"/>
</javac>
</target>
<target name="use.existing.manifest" depends="init" unless="use.bundlor">
<copy tofile="${manifest}"
file="META-INF/MANIFEST.MF" overwrite="true"/>
<manifest file="${manifest}"
mode = "update">
<attribute name="Built-By" value = "${user.name}"/>
<attribute name="Bundle-Version" value="${bundle.version}"/>
</manifest>
</target>
<target name="bundlor.manifest" depends="copy.resources, compile" if="use.bundlor">
<java classname="org.eclipse.virgo.bundlor.commandline.Bundlor"
failonerror="true" fork="true">
<classpath>
<fileset dir="${bundlor.home}/plugins" includes="*.jar"/>
</classpath>
<jvmarg value="-Dbundle.version=${bundle.version}"/>
<jvmarg value="-Duser.name=${user.name}"/>
<jvmarg value="-Dplugin=${plugin}"/>
<arg value = "-i"/> <arg value="${classes}"/>
<arg value = "-m"/> <arg value="./META-INF/manifest.bundlor"/>
<arg value = "-o"/> <arg value = "."/>
</java>
<copy tofile="${manifest}"
file="META-INF/MANIFEST.MF" overwrite="true"/>
</target>
<target name = "jar" depends = "compile, copy.resources, use.existing.manifest, bundlor.manifest">
<jar jarfile = "${build}/${plugin}.jar"
basedir = "${classes}"
manifest = "${build}/manifest.mf"/>
</target>
<target name = "install" depends = "jar">
<!-- flush cache -->
<delete dir = "${protege.home}/configuration/org.eclipse.core.runtime"/>
<delete dir = "${protege.home}/configuration/org.eclipse.osgi"/>
<copy file="${build}/${plugin}.jar"
todir = "${protege.common}"
overwrite = "true"/>
</target>
<target name = "junit"/>
<!-- =================================================================== -->
<!-- RUN -->
<!-- =================================================================== -->
<target name = "run" depends="init">
<java fork = "true" dir = "${protege.home}"
classname = "org.protege.osgi.framework.Launcher">
<jvmarg value = "-Dlog4j.configuration=file:log4j.xml"/>
<jvmarg value = "-Xmx1500M"/>
<classpath>
<pathelement path="${protege.osgi}"/>
<pathelement path="${protege.launcher}"/>
</classpath>
</java>
</target>
<!-- =================================================================== -->
<!-- DEBUG -->
<!-- =================================================================== -->
<target name = "debug" depends="init">
<java fork = "true" dir = "${protege.home}"
classname = "org.protege.osgi.framework.Launcher">
<jvmarg value = "-Dlog4j.configuration=file:log4j.xml"/>
<jvmarg value = "-agentlib:jdwp=transport=dt_socket,address=8500,server=y,suspend=y"/>
<jvmarg value = "-Xmx1500M"/>
<classpath>
<pathelement path="${protege.osgi}"/>
<pathelement path="${protege.launcher}"/>
</classpath>
</java>
</target>
<target name = "clean">
<delete dir = "${build}"/>
</target>
<target name = "usage">
<echo message = "To run this script set the PROTEGE_HOME environment"/>
<echo message = "variable and use one of the following targets"/>
<echo message = "jar - builds the jar (bundle) file for this project"/>
<echo message = "install - installs the bundle into the Protege distribution"/>
<echo message = "copy.resources - copies resources into the classes directory"/>
<echo message = " this can be useful for ide developers - see the wiki"/>
<echo message = "run - runs Protege (requires that Protege has been installed)"/>
<echo message = "debug - starts Protege with the debugger using port 8500"/>
</target>
<!--
Standard properties that should not require changing
-->
<property name="equinox.common"
location="${protege.common}/org.eclipse.equinox.common.jar"/>
<property name="equinox.registry"
location="${protege.common}/org.eclipse.equinox.registry.jar"/>
<property name="protege.lib"
location="${protege.common}/org.protege.editor.core.application.jar"/>
<property name="common.lib"
location="${protege.common}/org.protege.common.jar"/>
<property name="owl.lib"
location="${protege.plugins}/org.semanticweb.owl.owlapi.jar"/>
<property name="owl.editor.jar"
location="${protege.plugins}/org.protege.editor.owl.jar"/>
</project>
BIN
Ver Arquivo
Arquivo binário não exibido.
BIN
Ver Arquivo
Arquivo binário não exibido.
-1
Ver Arquivo
@@ -1 +0,0 @@
1.2.14
-1
Ver Arquivo
@@ -1 +0,0 @@
2.2.1
Ver Arquivo