Protege4 Plugin In Four Minutes

From Protege Wiki
Revision as of 10:25, July 28, 2009 by Tredmond (talk | contribs)

Jump to: navigation, search
10:11:40-> export PROTEGE_HOME=/home/tredmond/dev/workspaces/protege4/owleditor/build/dist/equinox
10:12:00-> ls $PROTEGE_HOME
bundles        log4j.xml  org.eclipse.osgi.jar	run.bat      run.sh
configuration  logs	  plugins		run.command
10:12:05-> mkdir example
10:12:11-> cd example
10:12:14-> mkdir META-INF
10:12:22-> mkdir lib
10:12:24-> mkdir resources
10:12:27-> mkdir src
10:12:30-> ls
lib  META-INF  resources  src
10:12:31-> wget http://smi-protege.stanford.edu/repos/protege/protege4/protege-standalone/trunk/etc/template-plugin-build.xml
--2009-07-28 10:12:42--  http://smi-protege.stanford.edu/repos/protege/protege4/protege-standalone/trunk/etc/template-plugin-build.xml
Resolving smi-protege.stanford.edu... 171.64.249.33
Connecting to smi-protege.stanford.edu|171.64.249.33|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9439 (9.2K) [text/plain]
Saving to: `template-plugin-build.xml'

100%[======================================>] 9,439       --.-K/s   in 0.006s  

2009-07-28 10:12:42 (1.59 MB/s) - `template-plugin-build.xml' saved [9439/9439]

10:12:42-> mv template-plugin-build.xml build.xml
10:13:02-> emacsclient  build.xml
Waiting for Emacs...
10:13:33-> wget http://smi-protege.stanford.edu/repos/protege/protege4/protege-standalone/trunk/etc/template-manifest.mf
--2009-07-28 10:13:44--  http://smi-protege.stanford.edu/repos/protege/protege4/protege-standalone/trunk/etc/template-manifest.mf
Resolving smi-protege.stanford.edu... 171.64.249.33
Connecting to smi-protege.stanford.edu|171.64.249.33|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1286 (1.3K) [text/plain]
Saving to: `template-manifest.mf'

100%[======================================>] 1,286       --.-K/s   in 0s      

2009-07-28 10:13:44 (126 MB/s) - `template-manifest.mf' saved [1286/1286]

10:13:44-> mv template-manifest.mf META-INF/MANIFEST.MF
10:13:52-> emacsclient META-INF/MANIFEST.MF 
Waiting for Emacs...
10:14:53-> ant install
Buildfile: build.xml

init:
    [mkdir] Created dir: /tmp/example/build
    [mkdir] Created dir: /tmp/example/build/classes
    [mkdir] Created dir: /tmp/example/build/classes/lib
    [mkdir] Created dir: /tmp/example/build/lib

checkProtegeLibs:
     [echo] Using Protege Home = /home/tredmond/dev/workspaces/protege4/owleditor/build/dist/equinox to find protege jars

checkProtegeLibsAndReport:

buildlibs:
    [unjar] Expanding: /home/tredmond/dev/workspaces/protege4/owleditor/build/dist/equinox/bundles/org.protege.common.jar into /tmp/example/build

compile:

build.manifest:
     [copy] Copying 1 file to /tmp/example/build

copy.resources:
    [mkdir] Created dir: /tmp/example/build/classes/META-INF
     [copy] Copying 1 file to /tmp/example/build/classes/META-INF

jar:
      [jar] Building jar: /tmp/example/build/org.protege.owl.examples.tab.jar

install:
     [copy] Copying 1 file to /home/tredmond/dev/workspaces/protege4/owleditor/build/dist/equinox/plugins

BUILD SUCCESSFUL
Total time: 0 seconds
10:15:01-> pushd $PROTEGE_HOME
 0  ~/dev/workspaces/protege4/owleditor/build/dist/equinox
 1  /tmp/example
10:15:31-> ls
bundles        log4j.xml  org.eclipse.osgi.jar	run.bat      run.sh
configuration  logs	  plugins		run.command
10:15:33-> sh run.sh
Starting Protege 4 OWL Editor (Version 4.0.113)
Platform:
    Java: JVM 1.5.0_19-b02 Memory: 208M
    Language: en, Country: US
    Framework: Eclipse (1.4.0)
    OS: Linux (2.6.28-13-generic)
    Processor: i386
Installed plugin Cardinality View
Installed plugin Matrix Views
Installed plugin OWLViz
Installed plugin Tutorial Plugin
Installed plugin Factplusplus Plug-in
Installed plugin DL Query Tab
Installed plugin The OWL API
Installed plugin owleditor
	Tutorial Plugin Plugin has no plugin.xml resource
Thank you for using Protege. Goodbye.
10:15:42->