merged in the protege-base repository
Esse commit está contido em:
-147
@@ -1,147 +0,0 @@
|
||||
<?xml version = "1.0" encoding = "UTF-8"?>
|
||||
<project name = "protege" default = "run" basedir = ".">
|
||||
|
||||
<property environment = "env"/>
|
||||
<property name = "protege.home" location="${env.PROTEGE_HOME}"/>
|
||||
|
||||
<property file = "local.properties"/>
|
||||
<property file = "version.properties"/>
|
||||
|
||||
<property name="build" location="./build"/>
|
||||
<property name="src" location="./src/main/java"/>
|
||||
<property name="classes" location="${build}/classes"/>
|
||||
<property name="launcher" location="${build}/ProtegeLauncher.jar"/>
|
||||
|
||||
<target name="init">
|
||||
<echo message="**********************************************************"/>
|
||||
<echo message="Using Protege Home = ${protege.home}"/>
|
||||
<echo message="Using Java Version = ${ant.java.version}" />
|
||||
<echo message="**********************************************************"/>
|
||||
</target>
|
||||
|
||||
|
||||
|
||||
<target name = "add.version">
|
||||
<echo append = "true" file = "${protege.home}/build.properties" message = "core.major.version=${core.major.version}${line.separator}"/>
|
||||
<echo append = "true" file = "${protege.home}/build.properties" message = "core.minor.version=${core.minor.version}${line.separator}"/>
|
||||
<echo append = "true" file = "${protege.home}/build.properties" message = "core.micro.version=${core.micro.version}${line.separator}"/>
|
||||
<echo append = "true" file = "${protege.home}/build.properties" message = "core.build.number=${core.build.number}${line.separator}"/>
|
||||
</target>
|
||||
|
||||
|
||||
|
||||
<target name="build.launcher" depends="init">
|
||||
<mkdir dir="${classes}"/>
|
||||
<javac srcdir="${src}"
|
||||
destdir="${classes}"
|
||||
classpath="./osgi/felix/bin/felix.jar"
|
||||
includeantruntime="false"
|
||||
debug="true"/>
|
||||
<jar basedir="${classes}" destfile="${launcher}"/>
|
||||
</target>
|
||||
|
||||
<target name="install.launcher" depends="build.launcher">
|
||||
<property file="${protege.home}/build.properties"/>
|
||||
<copy file="${launcher}" tofile="${protege.launcher}"/>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- OSGI Targets -->
|
||||
<!-- =================================================================== -->
|
||||
|
||||
<!-- Equinox (not using anymore) -->
|
||||
<target name="equinox" depends="build.launcher">
|
||||
<delete dir="${protege.home}"/>
|
||||
<mkdir dir="${protege.home}"/>
|
||||
<ant antfile="osgi/build-equinox.xml" target="install"/>
|
||||
<antcall target="add.version"/>
|
||||
</target>
|
||||
|
||||
<!-- Felix -->
|
||||
<target name="felix" depends="build.launcher">
|
||||
<delete dir="${protege.home}"/>
|
||||
<mkdir dir="${protege.home}"/>
|
||||
<ant antfile="osgi/build-felix.xml" target="install"/>
|
||||
<antcall target="add.version"/>
|
||||
</target>
|
||||
|
||||
<!-- Knoplerfish (not using anymore) -->
|
||||
<target name="knopflerfish">
|
||||
<delete dir="${protege.home}"/>
|
||||
<mkdir dir="${protege.home}"/>
|
||||
<ant antfile="osgi/build-knopflerfish.xml" target="install"/>
|
||||
<antcall target="add.version"/>
|
||||
</target>
|
||||
|
||||
<!-- Apple -->
|
||||
<target name="osx" depends="build.launcher">
|
||||
<delete dir="${protege.home}"/>
|
||||
<mkdir dir="${protege.home}"/>
|
||||
<ant antfile="osgi/build-osx.xml" target="install"/>
|
||||
<antcall target="add.version"/>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- DEFAULTS -->
|
||||
<!-- =================================================================== -->
|
||||
<target name = "install" depends = "felix"/>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- USAGE -->
|
||||
<!-- =================================================================== -->
|
||||
<target name = "usage">
|
||||
<echo message = "equinox - build an eclipse-based distribution"/>
|
||||
<echo message = "run - build and run the default distribution"/>
|
||||
<echo message = "clean - clean all build output except for manifests"/>
|
||||
<echo message = "debug - start a remote debug (hard-core people only)"/>
|
||||
<echo message = "felix - build a felix distribution"/>
|
||||
<echo message = "knopflerfish - build a knopflerfish distribution"/>
|
||||
<echo message = "osx - build a standalone os x application (based on felix)"/>
|
||||
<echo message = "build.launcher - builds the launcher (non-destructive)"/>
|
||||
<echo message = "install.launcher - installs the launcher (non-destructive)"/>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- RUN -->
|
||||
<!-- =================================================================== -->
|
||||
<target name = "run" depends="init">
|
||||
<property file="${protege.home}/build.properties"/>
|
||||
<property name="run.config" location="${protege.home}/config.xml"/>
|
||||
<java fork = "true" dir = "${protege.home}"
|
||||
classname = "org.protege.osgi.framework.Launcher">
|
||||
<jvmarg value = "-Dlog4j.configuration=file:${basedir}/log4j.xml"/>
|
||||
<jvmarg value = "-Xmx1500M"/>
|
||||
<jvmarg value = "-Dorg.protege.launch.config=${run.config}"/>
|
||||
<classpath>
|
||||
<pathelement path="${protege.osgi}"/>
|
||||
<pathelement path="${protege.launcher}"/>
|
||||
</classpath>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- DEBUG -->
|
||||
<!-- =================================================================== -->
|
||||
<target name = "debug" depends="init">
|
||||
<property file="${protege.home}/build.properties"/>
|
||||
<property name="run.config" location="${protege.home}/config.xml"/>
|
||||
<java fork = "true" dir = "${protege.home}"
|
||||
classname = "org.protege.osgi.framework.Launcher">
|
||||
<jvmarg value = "-Dlog4j.configuration=file:${basedir}/log4j.xml"/>
|
||||
<jvmarg value = "-agentlib:jdwp=transport=dt_socket,address=8500,server=y,suspend=y"/>
|
||||
<jvmarg value = "-Dorg.protege.launch.config=${run.config}"/>
|
||||
<jvmarg value = "-Xmx1500M"/>
|
||||
<classpath>
|
||||
<pathelement path="${protege.osgi}"/>
|
||||
<pathelement path="${protege.launcher}"/>
|
||||
</classpath>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="clean">
|
||||
<delete dir="${build}"/>
|
||||
</target>
|
||||
|
||||
|
||||
|
||||
</project>
|
||||
@@ -1,32 +0,0 @@
|
||||
|
||||
First of all, use the ant scripts to build this project. The Protege
|
||||
team currently only uses the maven scripts to run the nightly tests.
|
||||
For most projects the ant scripts run with no changes. The only thing
|
||||
that needs to be done to run the Protege ant scripts is to set the
|
||||
PROTEGE_HOME environment variable. Some more information on this can
|
||||
be found at the web page:
|
||||
|
||||
http://protegewiki.stanford.edu/wiki/ConfiguringAntBuildFiles
|
||||
|
||||
The ant install target will create the plugin and install it in
|
||||
Protege. The ant jar target will create the plugin in the build
|
||||
directory.
|
||||
|
||||
Troubleshooting:
|
||||
|
||||
Missing protege libraries:
|
||||
|
||||
Sometimes an ant script that depends on other plugins will generate a
|
||||
"Missing protege libraries" message. This means that the copy of
|
||||
Protege pointed to by the PROTEGE_HOME environment variable is missing
|
||||
some plugin that is needed by this ant script. To find out which
|
||||
library is missing, run the ant script with the -v option (ant -v
|
||||
install). There will be an exception at the bottom. Scroll back
|
||||
through the error messages until you find a message like this:
|
||||
|
||||
[available] Unable to find file /tmp/Protege/plugins/org.protege.editor.owl.jar
|
||||
|
||||
This is telling you what file is missing. More information is
|
||||
available at
|
||||
|
||||
http://protegewiki.stanford.edu/wiki/ConfiguringAntBuildFiles#Missing_protege_libraries
|
||||
@@ -1,19 +0,0 @@
|
||||
Bundle-Name: Common Protege Libraries
|
||||
Bundle-Description: Some common libraries
|
||||
Bundle-Vendor: Protege Development Team
|
||||
Bundle-ContactAddress: p4-feedback@lists.stanford.edu
|
||||
Bundle-DocURL: http://protege.stanford.edu
|
||||
Bundle-Category: protege
|
||||
Bundle-SymbolicName: ${plugin};singleton:=true
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Version: ${bundle.version}
|
||||
Built-By: ${user.name}
|
||||
Excluded-Imports: com.sun.*
|
||||
Excluded-Exports: lib
|
||||
Import-Template: javax.*;version="0.0.0",
|
||||
org.apache.log4j.*;version="1.2.14",
|
||||
org.w3c.*;version="0.0.0",
|
||||
org.xml.*;version="0.0.0",
|
||||
org.semanticweb.owlapi.*;version="3.2.4",
|
||||
org.protege.common.*;version="4.1.0",
|
||||
org.protege.editor.*;version="4.1.0"
|
||||
@@ -1,43 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: ***CHANGE ME*** SAMPLE: DL Query Tab
|
||||
Bundle-SymbolicName: ***CHANGE ME*** SAMPLE: org.coode.dlquery;singleton:=true
|
||||
Bundle-Category: protege
|
||||
Bundle-Description: ***CHANGE ME*** SAMPLE: A Plugin allowing dl queries in the Protege OWL Editor
|
||||
Bundle-Vendor: ***CHANGE ME*** SAMPLE: The CO-ODE Group
|
||||
Bundle-DocURL: ***CHANGE ME*** SAMPLE: http://www.co-ode.org
|
||||
Bundle-ClassPath: .
|
||||
Import-Package: org.osgi.framework,
|
||||
org.apache.log4j,
|
||||
javax.swing,
|
||||
javax.swing.border,
|
||||
javax.swing.colorchooser,
|
||||
javax.swing.event,
|
||||
javax.swing.filechooser,
|
||||
javax.swing.plaf,
|
||||
javax.swing.plaf.basic,
|
||||
javax.swing.plaf.metal,
|
||||
javax.swing.plaf.multi,
|
||||
javax.swing.plaf.synth,
|
||||
javax.swing.table,
|
||||
javax.swing.text,
|
||||
javax.swing.text.html,
|
||||
javax.swing.text.html.parser,
|
||||
javax.swing.text.rtf,
|
||||
javax.swing.tree,
|
||||
javax.swing.undo,
|
||||
org.w3c.dom,
|
||||
org.w3c.dom.bootstrap,
|
||||
org.w3c.dom.events,
|
||||
org.w3c.dom.ls,
|
||||
org.xml.sax,
|
||||
org.xml.sax.ext,
|
||||
org.xml.sax.helpers,
|
||||
javax.xml.parsers
|
||||
Bundle-Version: 1.0.3
|
||||
Bundle-Activator: org.protege.editor.core.plugin.DefaultPluginActivator
|
||||
Require-Bundle: org.eclipse.equinox.registry,
|
||||
org.eclipse.equinox.common,
|
||||
org.protege.editor.core.application,
|
||||
org.protege.editor.owl,
|
||||
org.semanticweb.owl.owlapi
|
||||
@@ -1,369 +0,0 @@
|
||||
<?xml version = "1.0" encoding = "utf-8"?>
|
||||
|
||||
<!--
|
||||
*** CHANGE ME *** change the project name.
|
||||
-->
|
||||
<project name = "sample plugin 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}"/>
|
||||
|
||||
<property file="version.properties"/>
|
||||
<property name="major.version" value="1"/>
|
||||
<property name="minor.version" value="0"/>
|
||||
<property name="micro.version" value="0"/>
|
||||
|
||||
<!--
|
||||
**** 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 = "org.protege.owl.examples.tab"/>
|
||||
|
||||
|
||||
<!--
|
||||
these properties probably don't need changing
|
||||
-->
|
||||
<property name = "src" location = "./src"/>
|
||||
<property name = "build" location = "./build"/>
|
||||
<property name = "classes" location = "${build}/classes"/>
|
||||
<property name = "lib" location = "./lib"/>
|
||||
<property name = "genlib" location = "${build}/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"/>
|
||||
<property name = "protege.plugins" location="${protege.home}/plugins"/>
|
||||
<property name = "run.config" location="${protege.home}/config.xml"/>
|
||||
|
||||
<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"/>
|
||||
|
||||
|
||||
<target name = "init">
|
||||
<tstamp>
|
||||
<format property="build.time" pattern="yyyy_MM_dd_hhmm"/>
|
||||
</tstamp>
|
||||
<property name="bundle.version"
|
||||
value="${major.version}.${minor.version}.${micro.version}.${build.time}"/>
|
||||
<mkdir dir = "${build}"/>
|
||||
<mkdir dir = "${classes}"/>
|
||||
<mkdir dir = "${classes}/lib"/>
|
||||
<mkdir dir = "${genlib}"/>
|
||||
<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>
|
||||
|
||||
<!--
|
||||
**** 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">
|
||||
<echo message="**********************************************************"/>
|
||||
<echo message="Using Protege Home = ${protege.home}"/>
|
||||
<echo message="Using Java Version = ${ant.java.version}" />
|
||||
<echo message="**********************************************************"/>
|
||||
<condition property="libs.found">
|
||||
<and>
|
||||
<available file="${protege.osgi}" type="file"/>
|
||||
<available file="${equinox.common}" type = "file"/>
|
||||
<available file="${equinox.registry}" type = "file"/>
|
||||
<available file="${owl.editor.jar}" type = "file"/>
|
||||
<available file="${owl.lib}" type="file"/>
|
||||
</and>
|
||||
</condition>
|
||||
<path id = "project.classpath">
|
||||
<pathelement location="${protege.osgi}"/>
|
||||
<pathelement location="${protege.lib}"/>
|
||||
<pathelement location="${equinox.common}"/>
|
||||
<pathelement location="${equinox.registry}"/>
|
||||
<pathelement location="${owl.editor.jar}"/>
|
||||
<pathelement location="${owl.lib}"/>
|
||||
<!--
|
||||
**** CHANGE ME ****
|
||||
|
||||
Remove this line if you don't have a lib directory.
|
||||
-->
|
||||
<fileset dir="${lib}"/>
|
||||
<fileset dir="${genlib}"/>
|
||||
</path>
|
||||
</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">
|
||||
<unjar dest="${build}"
|
||||
src="${common.lib}">
|
||||
<patternset>
|
||||
<include name = "**/log4j.jar"/>
|
||||
<include name = "**/looks.jar"/>
|
||||
</patternset>
|
||||
</unjar>
|
||||
</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">
|
||||
<copy todir="${classes}">
|
||||
<fileset dir="${src}">
|
||||
<include name="**/*"/>
|
||||
<exclude name="**/*.java"/>
|
||||
<exclude name="**/MANIFEST.MF"/>
|
||||
<exclude name="**/manifest.mf"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
<!--
|
||||
**** CHANGE ME ****
|
||||
|
||||
Remove the copy operation below if you don't have a lib directory.
|
||||
-->
|
||||
<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>
|
||||
|
||||
<target name = "compile" depends = "buildlibs, 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.plugins}"
|
||||
overwrite = "true"/>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- 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"/>
|
||||
<jvmarg value = "-Dorg.protege.launch.config=${run.config}"/>
|
||||
<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"/>
|
||||
<jvmarg value = "-Dorg.protege.launch.config=${run.config}"/>
|
||||
<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 - copyies 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>
|
||||
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Distribution Support - Optional -->
|
||||
<!-- =================================================================== -->
|
||||
|
||||
<!--
|
||||
**** CHANGE ME ****
|
||||
|
||||
This entire last section will probably only need to be setup relatively
|
||||
late in a project. It is optional and you can delete this section
|
||||
if desired (you can always get it from the plugin template later
|
||||
when you need it.) It is designed to make it easier for
|
||||
plugin developers to configure an update.properties file for use with the
|
||||
Protege 4 automatic update feature. Setting up the
|
||||
update.properties file is a tedious process and I am trying to
|
||||
make it simpler. There will be a wiki for this process soon when
|
||||
the new version of the Protege update mechanism is in place.
|
||||
|
||||
This first property is the svn root of this project. The idea is
|
||||
allow the Protege update mechanism to find the update.properties
|
||||
and version-readme.html in the ${svn.root}/etc directory of the
|
||||
svn repository. So all you need to do to make these files
|
||||
available to the Protege update process is to commit them.
|
||||
However, feel free to choose other locations for these files if
|
||||
it makes sense.
|
||||
-->
|
||||
<property name="svn.root" value="http://smi-protege.stanford.edu/repos/protege/protege4/plugins/org.coode.dlquery/trunk"/>
|
||||
|
||||
|
||||
<property name="update.properties.file" value="${svn.root}/etc/update.properties"/>
|
||||
<property name="readme.file" value="${svn.root}/etc/version-readme.html"/>
|
||||
|
||||
<!--
|
||||
**** CHANGE ME ****
|
||||
|
||||
This property contains the location you will use to download
|
||||
your updated copy of the plugin jar file.
|
||||
-->
|
||||
<property name="download" value="http://smi-protege.stanford.edu/protege4/plugins/4.1r/${plugin}.jar"/>
|
||||
|
||||
|
||||
<!--
|
||||
**** CHANGE ME ****
|
||||
|
||||
The name, license and author fields below will probably need
|
||||
adjustment.
|
||||
-->
|
||||
<target name = "dist" depends="jar">
|
||||
<echo file="./etc/update.properties" append="false">
|
||||
id=${plugin}
|
||||
version=${bundle.version}
|
||||
download=${download}
|
||||
name=DL Query Plugin
|
||||
readme=${readme.file}
|
||||
license=http://www.gnu.org/licenses/lgpl.html
|
||||
author=Matthew Horridge for the CO-ODE project
|
||||
</echo>
|
||||
<echo message="The build file should ensure that"/>
|
||||
<echo message="1. The bundle version and id is correct."/>
|
||||
<echo message="Check the following things"/>
|
||||
<echo message="1. The main repository uses "/>
|
||||
<echo message=" ${update.properties.file}"/>
|
||||
<echo message=" to find this update"/>
|
||||
<echo message="2. The update.properties can be found at "/>
|
||||
<echo message=" ${update.properties.file}"/>
|
||||
<echo message=" Usually this is ensured by committing your changed files."/>
|
||||
<echo message="3. The readme file for this update can be found at"/>
|
||||
<echo message=" ${readme.file}"/>
|
||||
<echo message=" Usually this is ensured by committing your changed files."/>
|
||||
<echo message="4. The download for this update can be found at"/>
|
||||
<echo message=" ${download}"/>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
@@ -1,177 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
|
||||
<!-- CHANGE ME -->
|
||||
<!-- The version, group artifact id probably all need to be updated -->
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>protege4</groupId>
|
||||
<artifactId>org.coode.dlquery</artifactId>
|
||||
<packaging>bundle</packaging>
|
||||
<!-- CHANGE ME -->
|
||||
<name>DL Query Plugin</name>
|
||||
<version>1.0.0.SNAPSHOT</version>
|
||||
<!-- <version>1.0.0.2010_12_15_1130</version> -->
|
||||
|
||||
<parent>
|
||||
<groupId>protege4</groupId>
|
||||
<artifactId>masterpom</artifactId>
|
||||
<version>1.0.3</version>
|
||||
</parent>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>1.5</maven.compiler.source>
|
||||
<maven.compiler.target>1.5</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<distributionManagement>
|
||||
<!-- If this pom.xml is executed on a developer's machine (mvn deploy)
|
||||
the developer's local repositories will be used, if executed on the BMIR the BMIR repositories. -->
|
||||
<repository>
|
||||
<id>releases</id>
|
||||
<name>Releases</name>
|
||||
<url>${nexus.path}/bmir-release</url>
|
||||
</repository>
|
||||
|
||||
<snapshotRepository>
|
||||
<id>snapshots</id>
|
||||
<name>Snapshots</name>
|
||||
<url>${nexus.path}/snapshots</url>
|
||||
<!-- <uniqueVersion>false</uniqueVersion> -->
|
||||
</snapshotRepository>
|
||||
|
||||
|
||||
</distributionManagement>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>log4j</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
<version>1.2.16</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>protege4</groupId>
|
||||
<artifactId>org.protege.common</artifactId>
|
||||
<version>4.1.0.b213_2010_12_15_1123</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>protege4</groupId>
|
||||
<artifactId>org.protege.editor.core.application</artifactId>
|
||||
<version>4.1.0.b213_2010_12_15_1123</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>protege4</groupId>
|
||||
<artifactId>org.protege.editor.owl</artifactId>
|
||||
<version>4.1.0.b213_2010_12_15_1705</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>protege4</groupId>
|
||||
<artifactId>org.semanticweb.owl.owlapi</artifactId>
|
||||
<version>3.1.0.Svn_1639_3_1_0_release_2010_12_15_1039</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.testng</groupId>
|
||||
<artifactId>testng</artifactId>
|
||||
<version>5.10</version>
|
||||
<classifier>jdk15</classifier>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<!-- CHANGE ME -->
|
||||
<description>DL Query Plugin</description>
|
||||
<organization>
|
||||
<!-- CHANGE ME -->
|
||||
<name>The Protege Development Team</name>
|
||||
</organization>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<version>1.4.0</version>
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<!-- CHANGE ME -->
|
||||
<Bundle-SymbolicName>org.coode.dlquery;singleton:=true</Bundle-SymbolicName>
|
||||
<Bundle-Vendor>The Protege Development Team</Bundle-Vendor>
|
||||
<Export-Package/>
|
||||
<Import-Package>
|
||||
*
|
||||
</Import-Package>
|
||||
<!-- CHANGE ME -->
|
||||
<Private-Package>org.coode.dlquery.*</Private-Package>
|
||||
<Bundle-Activator>org.protege.editor.owl.ProtegeOWL</Bundle-Activator>
|
||||
<Bundle-ClassPath>.</Bundle-ClassPath>
|
||||
<Include-Resource>plugin.xml,{maven-resources}</Include-Resource>
|
||||
</instructions>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>bundle-manifest</id>
|
||||
<phase>install</phase>
|
||||
<goals>
|
||||
<goal>manifest</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!-- Create jar file -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.3.1</version>
|
||||
</plugin>
|
||||
|
||||
|
||||
<!-- Execution of unit tests Generates output for reporting plugin -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<!-- We set skip to true. So the unit tests can be explicitly defined
|
||||
in xml file reference below -->
|
||||
<skip>true</skip>
|
||||
<systemPropertyVariables>
|
||||
<log4j.configuration>file:log4j.xml</log4j.configuration>
|
||||
</systemPropertyVariables>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>unit-tests</id>
|
||||
<phase>test</phase>
|
||||
<goals>
|
||||
<goal>test</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<skip>false</skip>
|
||||
<suiteXmlFiles>
|
||||
<suiteXmlFile>src/test/resources/unit-tests.xml</suiteXmlFile>
|
||||
</suiteXmlFiles>
|
||||
<systemProperties>
|
||||
<property>
|
||||
<name>log4j.configuration</name>
|
||||
<value>file:log4j.xml</value>
|
||||
</property>
|
||||
</systemProperties>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!-- Compile Java Code -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.0.2</version>
|
||||
<configuration>
|
||||
<source>${maven.compiler.source}</source>
|
||||
<target>${maven.compiler.target}</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
@@ -1,24 +0,0 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2>Core OWL Library Bundle</h2>
|
||||
<p>
|
||||
This is one of the core Protégé plugins and provides
|
||||
access to the owl api library for Protégé owl bundles.
|
||||
</p>
|
||||
<h3>Version info</h3>
|
||||
|
||||
<h4>v4.1.0 Build 102 Update - 22 Mar, 2010</h4>
|
||||
<ul>
|
||||
<li>Certain inferences in the exported inferred ontology missed being
|
||||
included in the Protégé Build 102 version of the OWL
|
||||
API. This update includes that functionality.</li>
|
||||
</ul>
|
||||
|
||||
<h4>v4.1.0 Build 102 (19 Mar, 2010)</h4>
|
||||
<ul>
|
||||
<li>See the <a href="http://protegewiki.stanford.edu/index.php/Protege_4.1_Beta_Release_Notes">
|
||||
Protégé 4 release notes.</a></li>
|
||||
</body>
|
||||
|
||||
</body>
|
||||
</hmtl>
|
||||
@@ -1,58 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
|
||||
|
||||
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
|
||||
|
||||
<appender name="console" class="org.apache.log4j.ConsoleAppender">
|
||||
<param name="Threshold" value="debug"/>
|
||||
<layout class="org.apache.log4j.PatternLayout">
|
||||
<param name="ConversionPattern" value="%m%n"/>
|
||||
</layout>
|
||||
</appender>
|
||||
|
||||
<appender name="file" class="org.apache.log4j.FileAppender">
|
||||
<param name="File" value="protege.log"/>
|
||||
<param name="Threshold" value="debug"/>
|
||||
<layout class="org.apache.log4j.PatternLayout">
|
||||
<param name="ConversionPattern" value="%-4r [%t] %-5p %c %x - %m%n" />
|
||||
</layout>
|
||||
</appender>
|
||||
|
||||
<category name="org.mindswap.pellet">
|
||||
<priority value="error"/>
|
||||
</category>
|
||||
|
||||
<!-- fear not, there is not too much here and it will be
|
||||
useful for a bit -->
|
||||
<category name="org.protege.editor.core.ProtegeApplication">
|
||||
<priority value="debug"/>
|
||||
</category>
|
||||
|
||||
|
||||
<!-- Debugging session specific settings -->
|
||||
<!-- debug the parsing of the axioms from the owl api triple store model
|
||||
<category name="org.protege.owl.rdf.impl.OwlTripleStoreImpl">
|
||||
<priority value="debug"/>
|
||||
</category>
|
||||
-->
|
||||
|
||||
<!-- To debug automatic updates and commits from client
|
||||
<category name="org.protege.owl.server.connection.servlet.ServletClientConnection">
|
||||
<priority value="debug"/>
|
||||
</category>
|
||||
|
||||
<category name="org.protege.editor.owl.client.ClientOntologyBuilder">
|
||||
<priority value="debug"/>
|
||||
</category>
|
||||
-->
|
||||
<!-- End of Debugging session specific settings -->
|
||||
|
||||
|
||||
<root>
|
||||
<priority value ="info" />
|
||||
<appender-ref ref="console" />
|
||||
<appender-ref ref="file"/>
|
||||
</root>
|
||||
|
||||
|
||||
</log4j:configuration>
|
||||
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
|
||||
|
||||
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
|
||||
|
||||
<appender name="console" class="org.apache.log4j.ConsoleAppender">
|
||||
<param name="Threshold" value="INFO"/>
|
||||
<layout class="org.apache.log4j.PatternLayout">
|
||||
<param name="ConversionPattern" value="%m%n"/>
|
||||
</layout>
|
||||
</appender>
|
||||
|
||||
|
||||
<category name="org.mindswap.pellet">
|
||||
<priority value="error"/>
|
||||
</category>
|
||||
|
||||
<!-- fear not, there is not too much here and it will be
|
||||
useful for a bit -->
|
||||
<category name="org.protege.editor.core.ProtegeApplication">
|
||||
<!-- The priority is/was replaced according to filter.properties -->
|
||||
<priority value="${debug-level}"/>
|
||||
</category>
|
||||
|
||||
<root>
|
||||
<priority value ="info" />
|
||||
<appender-ref ref="console" />
|
||||
</root>
|
||||
|
||||
</log4j:configuration>
|
||||
@@ -1,35 +0,0 @@
|
||||
|
||||
// CO-ODE registry
|
||||
//http://www.co-ode.org/downloads/protege-x/plugins/co-ode.registry
|
||||
|
||||
// Protege Contributions Repository
|
||||
//http://protege.stanford.edu/plugins/protege4/protege.registry
|
||||
|
||||
// SKOS editor
|
||||
//http://skoseditor.googlecode.com/svn/trunk/org.sealife.skos/skos-update.properties
|
||||
|
||||
// OPPL
|
||||
//http://www.cs.man.ac.uk/~iannonel/oppl/downloads/update.properties
|
||||
|
||||
// Patterns
|
||||
//http://www.cs.man.ac.uk/~iannonel/oppl/patterns/downloads/update.properties
|
||||
|
||||
// lint
|
||||
//http://www.cs.man.ac.uk/~iannonel/lintRoll/downloads/update.properties
|
||||
|
||||
// ACE views
|
||||
//http://attempto.ifi.uzh.ch/aceview/plugins.repository
|
||||
|
||||
// DL Learner
|
||||
//http://dl-learner.org/files/protege/properties
|
||||
|
||||
// FaCT++
|
||||
// http://factplusplus.googlecode.com/svn/trunk/update.properties
|
||||
|
||||
// Pellet2.0
|
||||
// http://clarkparsia.com/pellet/protege/plugin/update.properties
|
||||
|
||||
// TODO HermiT
|
||||
|
||||
// TODO loads of others (explanation etc)
|
||||
|
||||
Arquivo binário não exibido.
@@ -1 +0,0 @@
|
||||
Bnd-0.0.249
|
||||
@@ -1,5 +0,0 @@
|
||||
#Mon, 15 Apr 2013 13:03:23 -0700
|
||||
core.major.version=4
|
||||
core.minor.version=3
|
||||
core.micro.version=0
|
||||
core.build.number=304
|
||||
Referência em uma Nova Issue
Bloquear um usuário