# HG changeset patch
# User wenzelm
# Date 1307547151 -7200
# Node ID 8d8b6ed0588cf140794f9eb0818af880f82c886d
# Parent e5dd0ae1b0542e6bc301f906d0405c4a68e7b8ed
removed obsolete Netbeans project setup;
diff -r e5dd0ae1b054 -r 8d8b6ed0588c .hgignore
--- a/.hgignore Wed Jun 08 17:11:00 2011 +0200
+++ b/.hgignore Wed Jun 08 17:32:31 2011 +0200
@@ -21,8 +21,3 @@
^doc-src/.*\.log
^doc-src/.*\.out
^doc-src/.*\.toc
-
-^src/Tools/jEdit/nbproject/private/
-^src/Tools/jEdit/build/
-^src/Tools/jEdit/dist/
-^src/Tools/jEdit/contrib/
diff -r e5dd0ae1b054 -r 8d8b6ed0588c src/Tools/jEdit/README_BUILD
--- a/src/Tools/jEdit/README_BUILD Wed Jun 08 17:11:00 2011 +0200
+++ b/src/Tools/jEdit/README_BUILD Wed Jun 08 17:32:31 2011 +0200
@@ -1,86 +1,29 @@
+Requirements for instantaneous build from sources
+=================================================
-Requirements to build from sources
-==================================
-
-* Proper Java JRE/JDK from Sun, e.g. 1.6.0_24 or 1.6.0_25
+* Proper Java JDK from Sun/Oracle/Apple, e.g. 1.6.0_24 or 1.6.0_25
http://java.sun.com/javase/downloads/index.jsp
-* Netbeans 6.9
- http://www.netbeans.org/downloads/index.html
-
-* Scala for Netbeans: version 6.9v1.1.0
- http://wiki.netbeans.org/Scala
- http://wiki.netbeans.org/Scala68v1
- http://sourceforge.net/projects/erlybird/files/nb-scala/6.9v1.1.0
-
-* jEdit 4.3.2
- http://www.jedit.org/
- Netbeans Project "jEdit": install official sources as ./contrib/jEdit/.
+* Scala Compiler 2.8.1.final
+ http://www.scala-lang.org
-* jEdit plugins:
- Netbeans Library "Console" = $HOME/.jedit/jars/Console.jar
- Netbeans Library "SideKick" = $HOME/.jedit/jars/SideKick.jar
- Netbeans Library "ErrorList" = $HOME/.jedit/jars/ErrorList.jar
- Netbeans Library "Hyperlinks" = $HOME/.jedit/jars/Hyperlinks.jar
-
-* Cobra Renderer 0.98.4
- http://lobobrowser.org/cobra.jsp
- Netbeans Library "Cobra-Renderer" = .../cobra.jar
- Netbenas Library "Rhino-JavaScript" = .../js.jar
-
-* Isabelle/Pure Scala components
- Netbeans Library "Isabelle-Pure" = ~~/lib/classes/Pure.jar
-
-* Scala Compiler 2.8.1.final or 2.9.0.final
- http://www.scala-lang.org
- Netbeans Library "Scala-compiler" = $SCALA_HOME/lib/scala-compiler.jar
+* Auxiliary jedit_build component
+ http://www4.in.tum.de/~wenzelm/test/jedit_build-20110521.tar.gz
-Building and running from command line (recommended)
-====================================================
-
-* Manual build:
+Important settings within Isabelle environment
+==============================================
- ( cd "$HOME/isabelle/repos/src/Pure" && isabelle env ./build-jars )
- ant jar
- makedist -j "$HOME/lib/jedit-4.3.2" #location of original jedit distribution
-
-* Component setup, e.g. in $ISABELLE_HOME_USER/.isabelle/etc/settings:
-
- [ -d "$HOME/isabelle/jedit" ] && init_component "$HOME/isabelle/jedit" #build location
-
-* Run:
-
- isabelle jedit -l HOL Test.thy &
+- JAVA_HOME
+- SCALA_HOME
+- JEDIT_BUILD_HOME (via "init_component .../jedit_build...")
-Running the application within Netbeans (not recommended)
-=========================================================
-
-* Project properties: add "Run" argument like
- -noserver -nobackground -settings=/home/makarius/isabelle/isabelle-jedit/dist
-
-* The Isabelle environment is obtained automatically via
- "$ISABELLE_HOME/bin/isabelle getenv", where ISABELLE_HOME is determined as follows:
-
- (1) via regular Isabelle settings,
- e.g. "isabelle env netbeans"
+Build and run
+=============
- (2) or via ISABELLE_HOME from raw process environment,
- e.g. "env ISABELLE_HOME=.../Isabelle netbeans"
-
- (3) or via JVM system properties (cf. "Run / VM Options")
- e.g. -Disabelle.home=.../Isabelle
-
+isabelle jedit -l HOL Test.thy
-Misc notes
-==========
-
-- Netbeans config/Editors/Preferences/...-CustomPreferences.xml
-
-
-
-
-----------------------------------------------------------------------
To run jedit with remote debugging enabled, I use the following
diff -r e5dd0ae1b054 -r 8d8b6ed0588c src/Tools/jEdit/build.xml
--- a/src/Tools/jEdit/build.xml Wed Jun 08 17:11:00 2011 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,102 +0,0 @@
-
-
-
-
-
- Builds, tests, and runs the project Isabelle-jEdit.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff -r e5dd0ae1b054 -r 8d8b6ed0588c src/Tools/jEdit/contrib/jEdit/build-nb.xml
--- a/src/Tools/jEdit/contrib/jEdit/build-nb.xml Wed Jun 08 17:11:00 2011 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- This target can only run inside the NetBeans IDE.
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff -r e5dd0ae1b054 -r 8d8b6ed0588c src/Tools/jEdit/contrib/jEdit/nbproject/project.xml
--- a/src/Tools/jEdit/contrib/jEdit/nbproject/project.xml Wed Jun 08 17:11:00 2011 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,118 +0,0 @@
-
-
- org.netbeans.modules.ant.freeform
-
-
- jEdit
-
-
-
- jEdit
-
- build-nb.xml
-
-
-
-
- .
- UTF-8
-
-
-
- java
- .
- build/** doc/** icons/** macros/** modes/** package-files/**
- UTF-8
-
-
-
-
-
- build
-
-
-
- clean
-
-
-
- docs-javadoc
-
-
-
- run
-
-
-
- clean
- build
-
-
-
- debug-nb
-
-
-
- jar
- build/jEdit.jar
-
- build
-
-
-
-
-
- .
- build/** doc/** icons/** macros/** modes/** package-files/**
-
-
- ${ant.script}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- .
- .
- build/jEdit.jar
- 1.5
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff -r e5dd0ae1b054 -r 8d8b6ed0588c src/Tools/jEdit/makedist
--- a/src/Tools/jEdit/makedist Wed Jun 08 17:11:00 2011 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,101 +0,0 @@
-#!/usr/bin/env bash
-#
-# makedist -- make Isabelle/jEdit distribution
-
-## self references
-
-PRG="$(basename "$0")"
-THIS="$(cd "$(dirname "$0")"; pwd)"
-SUPER="$(cd "$THIS/.."; pwd)"
-
-
-## diagnostics
-
-JEDIT_HOME=""
-
-function usage()
-{
- echo
- echo "Usage: $PRG [OPTIONS]"
- echo
- echo " Options are:"
- echo " -j DIR specify original jEdit distribution"
- echo
- echo " Produce Isabelle/jEdit distribution from Netbeans build"
- echo " in $THIS/dist"
- echo
- exit 1
-}
-
-fail()
-{
- echo "$1" >&2
- exit 2
-}
-
-
-## process command line
-
-# options
-
-while getopts "j:" OPT
-do
- case "$OPT" in
- j)
- JEDIT_HOME="$OPTARG"
- ;;
- \?)
- usage
- ;;
- esac
-done
-
-shift $(($OPTIND - 1))
-
-
-# args
-
-[ "$#" -ne 0 ] && usage
-
-
-## main
-
-cd "$THIS/dist" || fail "Bad directory: $THIS/dist"
-
-
-# target name
-
-[ -z "$JEDIT_HOME" ] && fail "Unknown JEDIT_HOME"
-[ -n "$ISABELLE_HOME" ] || fail "Missing Isabelle settings environment"
-
-VERSION="$(basename "$JEDIT_HOME")_Isabelle-$("$ISABELLE_TOOL" version -i)"
-JEDIT="jedit-${VERSION}"
-
-rm -rf "$JEDIT" jedit
-mkdir "$JEDIT"
-
-rm -f jedit && ln -s "$JEDIT" jedit
-
-
-# copy stuff
-
-[ "$JEDIT_HOME/jedit.jar" ] || fail "Bad original jEdit directory: $JEDIT_HOME"
-cp -R "$JEDIT_HOME/." "$JEDIT/."
-rm -rf "$JEDIT/jEdit" "$JEDIT/build-support"
-
-mkdir -p "$JEDIT/jars"
-cp -R jars/. "$JEDIT/jars/."
-
-cp -R "$THIS/dist-template/." "$JEDIT/."
-cp "$THIS/README" "$JEDIT/."
-
-perl -i -e 'while (<>) { if (m/NAME="javacc"/) {
- print qq,\n\n,;
- print qq,\n\n,; }
- print; }' "$JEDIT/modes/catalog"
-
-
-# build archive
-
-echo "${JEDIT}.tar.gz"
-tar czf "${JEDIT}.tar.gz" "$JEDIT"
diff -r e5dd0ae1b054 -r 8d8b6ed0588c src/Tools/jEdit/manifest.mf
--- a/src/Tools/jEdit/manifest.mf Wed Jun 08 17:11:00 2011 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-X-COMMENT: Main-Class will be added automatically by build
-
diff -r e5dd0ae1b054 -r 8d8b6ed0588c src/Tools/jEdit/nbproject/build-impl.xml
--- a/src/Tools/jEdit/nbproject/build-impl.xml Wed Jun 08 17:11:00 2011 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,707 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- You must set SCALA_HOME or environment property and append "-J-Dscala.home=scalahomepath"
- property to the end of "netbeans_default_options" in NetBeansInstallationPath/etc/netbeans.conf to point to
- Scala installation directory.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Must set src.dir
- Must set build.dir
- Must set dist.dir
- Must set build.classes.dir
- Must set dist.javadoc.dir
- Must set build.test.classes.dir
- Must set build.test.results.dir
- Must set build.classes.excludes
- Must set dist.jar
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Must set javac.includes
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Must set javac.includes
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Must select some files in the IDE or set javac.includes
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- To run this application from the command line without Ant, try:
-
-
-
-
-
-
- java -cp "${run.classpath.with.dist.jar}" ${main.class}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- To run this application from the command line without Ant, try:
-
- java -jar "${dist.jar.resolved}"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Must select one file in the IDE or set run.class
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Must select one file in the IDE or set debug.class
-
-
-
-
- Must set fix.includes
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Must select some files in the IDE or set javac.includes
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Some tests failed; see details above.
-
-
-
-
-
-
-
-
- Must select some files in the IDE or set test.includes
-
-
-
- Some tests failed; see details above.
-
-
-
-
- Must select one file in the IDE or set test.class
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Must select one file in the IDE or set applet.url
-
-
-
-
-
-
-
-
- Must select one file in the IDE or set applet.url
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff -r e5dd0ae1b054 -r 8d8b6ed0588c src/Tools/jEdit/nbproject/genfiles.properties
--- a/src/Tools/jEdit/nbproject/genfiles.properties Wed Jun 08 17:11:00 2011 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-build.xml.data.CRC32=d2379ac2
-build.xml.script.CRC32=2db9d955
-build.xml.stylesheet.CRC32=ca9d572e
-# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
-# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
-nbproject/build-impl.xml.data.CRC32=8f41dcce
-nbproject/build-impl.xml.script.CRC32=e3e2a5d5
-nbproject/build-impl.xml.stylesheet.CRC32=5220179f@1.3.5
diff -r e5dd0ae1b054 -r 8d8b6ed0588c src/Tools/jEdit/nbproject/project.properties
--- a/src/Tools/jEdit/nbproject/project.properties Wed Jun 08 17:11:00 2011 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,81 +0,0 @@
-application.title=Isabelle-jEdit
-application.vendor=makarius
-application.args=-noserver -nobackground
-build.classes.dir=${build.dir}/classes
-build.classes.excludes=**/*.java,**/*.form,**/*.scala
-# This directory is removed when the project is cleaned:
-build.dir=build
-build.generated.dir=${build.dir}/generated
-# Only compile against the classpath explicitly listed here:
-build.sysclasspath=ignore
-build.test.classes.dir=${build.dir}/test/classes
-build.test.results.dir=${build.dir}/test/results
-debug.classpath=\
- ${run.classpath}
-debug.test.classpath=\
- ${run.test.classpath}
-# This directory is removed when the project is cleaned:
-dist.dir=dist
-# dist can be used as jEdits settings-directory;
-# jEdit searches for plugins in the 'jars' subdirectory
-# must include something like this to private.properties:
-# application.args=-noserver -nobackground -settings=/absolute/path/to/project/dist
-#
-dist.jar=${dist.dir}/jars/Isabelle-jEdit.jar
-dist.javadoc.dir=${dist.dir}/javadoc
-excludes=
-file.reference.isabelle-jedit-src=src
-file.reference.jedit.jar=/home/makarius/lib/jedit/current/jedit.jar
-includes=**
-jar.compress=false
-java.platform.active=java_default_platform
-javac.classpath=\
- ${reference.jEdit.build}:\
- ${libs.Isabelle-Pure.classpath}:\
- ${libs.Cobra-Renderer.classpath}:\
- ${libs.Rhino-JavaScript.classpath}:\
- ${libs.ErrorList.classpath}:\
- ${libs.Hyperlinks.classpath}:\
- ${libs.SideKick.classpath}:\
- ${libs.Console.classpath}:\
- ${libs.Scala-compiler.classpath}
-# Space-separated list of extra javac options
-javac.compilerargs=
-javac.deprecation=false
-javac.source=1.5
-javac.target=1.5
-javac.test.classpath=\
- ${javac.classpath}:\
- ${build.classes.dir}:\
- ${libs.junit.classpath}:\
- ${libs.junit_4.classpath}
-javadoc.additionalparam=
-javadoc.author=false
-javadoc.encoding=${source.encoding}
-javadoc.noindex=false
-javadoc.nonavbar=false
-javadoc.notree=false
-javadoc.private=false
-javadoc.splitindex=true
-javadoc.use=true
-javadoc.version=false
-javadoc.windowtitle=
-main.class=org.gjt.sp.jedit.jEdit
-manifest.file=manifest.mf
-meta.inf.dir=${src.dir}/META-INF
-platform.active=default_platform
-project.jEdit=contrib/jEdit
-reference.jEdit.build=${project.jEdit}/build/jEdit.jar
-run.classpath=\
- ${javac.classpath}:\
- ${build.classes.dir}
-run.jvmargs=-Xms128m -Xmx512m
-run.test.classpath=\
- ${javac.test.classpath}:\
- ${build.test.classes.dir}
-source.encoding=UTF-8
-src.dir=${file.reference.isabelle-jedit-src}
-scalac.compilerargs=
-scalac.deprecation=yes
-scalac.unchecked=yes
-
diff -r e5dd0ae1b054 -r 8d8b6ed0588c src/Tools/jEdit/nbproject/project.xml
--- a/src/Tools/jEdit/nbproject/project.xml Wed Jun 08 17:11:00 2011 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-
-
- org.netbeans.modules.scala.project
-
-
- Isabelle-jEdit
- 1.6.5
-
-
-
-
-
-
-
- jEdit
- jar
-
- build
- clean
- build
-
-
-
-
diff -r e5dd0ae1b054 -r 8d8b6ed0588c src/Tools/jEdit/src/Dummy.java
--- a/src/Tools/jEdit/src/Dummy.java Wed Jun 08 17:11:00 2011 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-/* dummy class to make ant javadoc work */
-package isabelle;
-public class Dummy { }