You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2018/01/23 11:48:46 UTC

[GitHub] geertjanw closed pull request #383: NetBeans-303: Removing lib.terminal.examples since it contains/references binaries

geertjanw closed pull request #383: NetBeans-303: Removing lib.terminal.examples since it contains/references binaries
URL: https://github.com/apache/incubator-netbeans/pull/383
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/lib.terminalemulator/examples/README b/lib.terminalemulator/examples/README
deleted file mode 100644
index 8b9396adc..000000000
--- a/lib.terminalemulator/examples/README
+++ /dev/null
@@ -1,32 +0,0 @@
-Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.
-
-"README"
-
-Current examples
-----------------
-
-lib.richexecution
-	A pure NB module (not dependent on other NB modules) which provides
-	native excecution and tty/pty access via JNA.
-
-TermExample
-	A NB module with examples of how to hook up Terminal, the Term-based
-	IOProvider, with io as well as various interactive testing facilities.
-
-TermSuite
-	Suite for hosting lib.richexecution and TermExample.
-
-TermApp
-	A standalone terminal emulator application.
-	-E option enables compiler error processing which requires -t dtterm
-	as well for hyperlinks to work.
-
-Older examples
---------------
-buildtool
-	A simple make based build tool which demonstrates hyperlinking
-	and glyph gutter functionality in ActiveTerm.
-
-telnet	An old telnet application that depends on an external (not supplied)
-	Java telnet library.
-
diff --git a/lib.terminalemulator/examples/TermApp/build.xml b/lib.terminalemulator/examples/TermApp/build.xml
deleted file mode 100644
index 0c3cc0900..000000000
--- a/lib.terminalemulator/examples/TermApp/build.xml
+++ /dev/null
@@ -1,167 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<!-- You may freely edit this file. See commented blocks below for -->
-<!-- some examples of how to customize the build. -->
-<!-- (If you delete it and reopen the project it will be recreated.) -->
-<!-- By default, only the Clean and Build commands use this build script. -->
-<!-- Commands such as Run, Debug, and Test only use this build script if -->
-<!-- the Compile on Save feature is turned off for the project. -->
-<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
-<!-- in the project's Project Properties dialog box.-->
-<project name="TermApp" default="default" basedir=".">
-    <description>Builds, tests, and runs the project TermApp.</description>
-    <import file="nbproject/build-impl.xml"/>
-
-
-    <target name="distribution">
-        <echo message="Creating distribution..."/>
-
-        <!-- doesn't like ${dist.jar.dir} -->
-        <tar destfile="dist/termapp.tar">
-            <tarfileset dir="dist"
-                        prefix="termapp"
-                        includes="**/*.jar" />
-            <tarfileset dir="dist"
-                        prefix="termapp"
-                        includes="nbterm,nbterm64"
-                        filemode="775"/>
-            <tarfileset dir="dist"
-                        prefix="termapp"
-                        includes="term,lib/process_start.sh,lib/process_start-*"
-                        filemode="775"/>
-        </tar>
-    </target>
-
-    <target name="copy-binaries">
-        <!-- we have to do this by hand because the release/ convention is
-             only for bonafide NB modules
-          -->
-
-        <echo message="Copying nbterm to dist ..." />
-        <copy file="release/nbterm"
-              preservelastmodified="true"
-              todir="${dist.jar.dir}" />
-        <chmod file="${dist.jar.dir}/nbterm"
-               perm="+x" />
-
-        <echo message="Copying nbterm64 to dist ..." />
-        <copy file="release/nbterm64"
-              preservelastmodified="true"
-              todir="${dist.jar.dir}" />
-        <chmod file="${dist.jar.dir}/nbterm64"
-               perm="+x" />
-
-        <echo message="Copying process_start* to dist/lib ..." />
-        <dirname property="richexecution.dist.dir"
-                 file="${reference.org_netbeans_lib_richexecution.module}" />
-        <echo message="richexecution dist is at ${richexecution.dist.dir}" />
-        <property name="richexecution.module.dir"
-                  value="${project.org_netbeans_lib_richexecution}" />
-        <echo message="richexecution module is at ${richexecution.module.dir}" />
-
-        <mkdir dir="${dist.jar.dir}/lib"/>
-
-	<!-- unzip all existing process-starts -->
-        <unzip src="${richexecution.module.dir}/process_start-mac-intel.zip"
-               dest="${dist.jar.dir}/lib" />
-        <unzip src="${richexecution.module.dir}/process_start-linux-intel.zip"
-               dest="${dist.jar.dir}/lib" />
-        <unzip src="${richexecution.module.dir}/process_start-solaris-intel.zip"
-               dest="${dist.jar.dir}/lib" />
-        <unzip src="${richexecution.module.dir}/process_start-solaris-sparc.zip"
-               dest="${dist.jar.dir}/lib" />
-
-	<!-- copy the latest process-start on the current platform for good measure -->
-        <copy todir="${dist.jar.dir}/lib" flatten="true" verbose="true">
-            <fileset dir="${richexecution.dist.dir}/lib"
-                     includes="process_start.sh,process_start-*" />
-        </copy>
-        <chmod perm="+x" >
-            <fileset dir="${dist.jar.dir}/lib"
-                     includes="process_start.sh,process_start-*" />
-        </chmod>
-    </target>
-
-    <target name="-post-jar" depends="copy-binaries,distribution" />
-
-    <!--
-
-    There exist several targets which are by default empty and which can be 
-    used for execution of your tasks. These targets are usually executed 
-    before and after some main targets. They are: 
-
-      -pre-init:                 called before initialization of project properties
-      -post-init:                called after initialization of project properties
-      -pre-compile:              called before javac compilation
-      -post-compile:             called after javac compilation
-      -pre-compile-single:       called before javac compilation of single file
-      -post-compile-single:      called after javac compilation of single file
-      -pre-compile-test:         called before javac compilation of JUnit tests
-      -post-compile-test:        called after javac compilation of JUnit tests
-      -pre-compile-test-single:  called before javac compilation of single JUnit test
-      -post-compile-test-single: called after javac compilation of single JUunit test
-      -pre-jar:                  called before JAR building
-      -post-jar:                 called after JAR building
-      -post-clean:               called after cleaning build products
-
-    (Targets beginning with '-' are not intended to be called on their own.)
-
-    Example of inserting an obfuscator after compilation could look like this:
-
-        <target name="-post-compile">
-            <obfuscate>
-                <fileset dir="${build.classes.dir}"/>
-            </obfuscate>
-        </target>
-
-    For list of available properties check the imported 
-    nbproject/build-impl.xml file. 
-
-
-    Another way to customize the build is by overriding existing main targets.
-    The targets of interest are: 
-
-      -init-macrodef-javac:     defines macro for javac compilation
-      -init-macrodef-junit:     defines macro for junit execution
-      -init-macrodef-debug:     defines macro for class debugging
-      -init-macrodef-java:      defines macro for class execution
-      -do-jar-with-manifest:    JAR building (if you are using a manifest)
-      -do-jar-without-manifest: JAR building (if you are not using a manifest)
-      run:                      execution of project 
-      -javadoc-build:           Javadoc generation
-      test-report:              JUnit report generation
-
-    An example of overriding the target for project execution could look like this:
-
-        <target name="run" depends="TermApp-impl.jar">
-            <exec dir="bin" executable="launcher.exe">
-                <arg file="${dist.jar}"/>
-            </exec>
-        </target>
-
-    Notice that the overridden target depends on the jar target and not only on 
-    the compile target as the regular run target does. Again, for a list of available 
-    properties which you can use, check the target you are overriding in the
-    nbproject/build-impl.xml file. 
-
-    -->
-</project>
diff --git a/lib.terminalemulator/examples/TermApp/manifest.mf b/lib.terminalemulator/examples/TermApp/manifest.mf
deleted file mode 100644
index 328e8e5bc..000000000
--- a/lib.terminalemulator/examples/TermApp/manifest.mf
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-X-COMMENT: Main-Class will be added automatically by build
-
diff --git a/lib.terminalemulator/examples/TermApp/nbproject/build-impl.xml b/lib.terminalemulator/examples/TermApp/nbproject/build-impl.xml
deleted file mode 100644
index f054160f1..000000000
--- a/lib.terminalemulator/examples/TermApp/nbproject/build-impl.xml
+++ /dev/null
@@ -1,1483 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-*** GENERATED FROM project.xml - DO NOT EDIT  ***
-***         EDIT ../build.xml INSTEAD         ***
-
-For the purpose of easier reading the script
-is divided into following sections:
-
-  - initialization
-  - compilation
-  - jar
-  - execution
-  - debugging
-  - javadoc
-  - test compilation
-  - test execution
-  - test debugging
-  - applet
-  - cleanup
-
-        -->
-<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="TermApp-impl">
-    <fail message="Please build using Ant 1.8.0 or higher.">
-        <condition>
-            <not>
-                <antversion atleast="1.8.0"/>
-            </not>
-        </condition>
-    </fail>
-    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
-    <!-- 
-                ======================
-                INITIALIZATION SECTION 
-                ======================
-            -->
-    <target name="-pre-init">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="-pre-init" name="-init-private">
-        <property file="nbproject/private/config.properties"/>
-        <property file="nbproject/private/configs/${config}.properties"/>
-        <property file="nbproject/private/private.properties"/>
-    </target>
-    <target depends="-pre-init,-init-private" name="-init-user">
-        <property file="${user.properties.file}"/>
-        <!-- The two properties below are usually overridden -->
-        <!-- by the active platform. Just a fallback. -->
-        <property name="default.javac.source" value="1.4"/>
-        <property name="default.javac.target" value="1.4"/>
-    </target>
-    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
-        <property file="nbproject/configs/${config}.properties"/>
-        <property file="nbproject/project.properties"/>
-    </target>
-    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
-        <property name="platform.java" value="${java.home}/bin/java"/>
-        <available file="${manifest.file}" property="manifest.available"/>
-        <condition property="splashscreen.available">
-            <and>
-                <not>
-                    <equals arg1="${application.splash}" arg2="" trim="true"/>
-                </not>
-                <available file="${application.splash}"/>
-            </and>
-        </condition>
-        <condition property="main.class.available">
-            <and>
-                <isset property="main.class"/>
-                <not>
-                    <equals arg1="${main.class}" arg2="" trim="true"/>
-                </not>
-            </and>
-        </condition>
-        <condition property="profile.available">
-            <and>
-                <isset property="javac.profile"/>
-                <length length="0" string="${javac.profile}" when="greater"/>
-                <matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
-            </and>
-        </condition>
-        <condition property="do.archive">
-            <or>
-                <not>
-                    <istrue value="${jar.archive.disabled}"/>
-                </not>
-                <istrue value="${not.archive.disabled}"/>
-            </or>
-        </condition>
-        <condition property="do.mkdist">
-            <and>
-                <isset property="do.archive"/>
-                <isset property="libs.CopyLibs.classpath"/>
-                <not>
-                    <istrue value="${mkdist.disabled}"/>
-                </not>
-            </and>
-        </condition>
-        <condition property="do.archive+manifest.available">
-            <and>
-                <isset property="manifest.available"/>
-                <istrue value="${do.archive}"/>
-            </and>
-        </condition>
-        <condition property="do.archive+main.class.available">
-            <and>
-                <isset property="main.class.available"/>
-                <istrue value="${do.archive}"/>
-            </and>
-        </condition>
-        <condition property="do.archive+splashscreen.available">
-            <and>
-                <isset property="splashscreen.available"/>
-                <istrue value="${do.archive}"/>
-            </and>
-        </condition>
-        <condition property="do.archive+profile.available">
-            <and>
-                <isset property="profile.available"/>
-                <istrue value="${do.archive}"/>
-            </and>
-        </condition>
-        <condition property="have.tests">
-            <or>
-                <available file="${test.src.dir}"/>
-            </or>
-        </condition>
-        <condition property="have.sources">
-            <or>
-                <available file="${src.dir}"/>
-            </or>
-        </condition>
-        <condition property="netbeans.home+have.tests">
-            <and>
-                <isset property="netbeans.home"/>
-                <isset property="have.tests"/>
-            </and>
-        </condition>
-        <condition property="no.javadoc.preview">
-            <and>
-                <isset property="javadoc.preview"/>
-                <isfalse value="${javadoc.preview}"/>
-            </and>
-        </condition>
-        <property name="run.jvmargs" value=""/>
-        <property name="run.jvmargs.ide" value=""/>
-        <property name="javac.compilerargs" value=""/>
-        <property name="work.dir" value="${basedir}"/>
-        <condition property="no.deps">
-            <and>
-                <istrue value="${no.dependencies}"/>
-            </and>
-        </condition>
-        <property name="javac.debug" value="true"/>
-        <property name="javadoc.preview" value="true"/>
-        <property name="application.args" value=""/>
-        <property name="source.encoding" value="${file.encoding}"/>
-        <property name="runtime.encoding" value="${source.encoding}"/>
-        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
-            <and>
-                <isset property="javadoc.encoding"/>
-                <not>
-                    <equals arg1="${javadoc.encoding}" arg2=""/>
-                </not>
-            </and>
-        </condition>
-        <property name="javadoc.encoding.used" value="${source.encoding}"/>
-        <property name="includes" value="**"/>
-        <property name="excludes" value=""/>
-        <property name="do.depend" value="false"/>
-        <condition property="do.depend.true">
-            <istrue value="${do.depend}"/>
-        </condition>
-        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
-        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
-            <and>
-                <isset property="endorsed.classpath"/>
-                <not>
-                    <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
-                </not>
-            </and>
-        </condition>
-        <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
-            <isset property="profile.available"/>
-        </condition>
-        <condition else="false" property="jdkBug6558476">
-            <and>
-                <matches pattern="1\.[56]" string="${java.specification.version}"/>
-                <not>
-                    <os family="unix"/>
-                </not>
-            </and>
-        </condition>
-        <condition else="false" property="javac.fork">
-            <or>
-                <istrue value="${jdkBug6558476}"/>
-                <istrue value="${javac.external.vm}"/>
-            </or>
-        </condition>
-        <property name="jar.index" value="false"/>
-        <property name="jar.index.metainf" value="${jar.index}"/>
-        <property name="copylibs.rebase" value="true"/>
-        <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
-        <condition property="junit.available">
-            <or>
-                <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
-                <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
-            </or>
-        </condition>
-        <condition property="testng.available">
-            <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
-        </condition>
-        <condition property="junit+testng.available">
-            <and>
-                <istrue value="${junit.available}"/>
-                <istrue value="${testng.available}"/>
-            </and>
-        </condition>
-        <condition else="testng" property="testng.mode" value="mixed">
-            <istrue value="${junit+testng.available}"/>
-        </condition>
-        <condition else="" property="testng.debug.mode" value="-mixed">
-            <istrue value="${junit+testng.available}"/>
-        </condition>
-        <property name="java.failonerror" value="true"/>
-    </target>
-    <target name="-post-init">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
-        <fail unless="src.dir">Must set src.dir</fail>
-        <fail unless="test.src.dir">Must set test.src.dir</fail>
-        <fail unless="build.dir">Must set build.dir</fail>
-        <fail unless="dist.dir">Must set dist.dir</fail>
-        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
-        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
-        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
-        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
-        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
-        <fail unless="dist.jar">Must set dist.jar</fail>
-    </target>
-    <target name="-init-macrodef-property">
-        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
-            <attribute name="name"/>
-            <attribute name="value"/>
-            <sequential>
-                <property name="@{name}" value="${@{value}}"/>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
-        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${src.dir}" name="srcdir"/>
-            <attribute default="${build.classes.dir}" name="destdir"/>
-            <attribute default="${javac.classpath}" name="classpath"/>
-            <attribute default="${javac.processorpath}" name="processorpath"/>
-            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="${javac.debug}" name="debug"/>
-            <attribute default="${empty.dir}" name="sourcepath"/>
-            <attribute default="${empty.dir}" name="gensrcdir"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property location="${build.dir}/empty" name="empty.dir"/>
-                <mkdir dir="${empty.dir}"/>
-                <mkdir dir="@{apgeneratedsrcdir}"/>
-                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
-                    <src>
-                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
-                            <include name="*"/>
-                        </dirset>
-                    </src>
-                    <classpath>
-                        <path path="@{classpath}"/>
-                    </classpath>
-                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
-                    <compilerarg line="${javac.profile.cmd.line.arg}"/>
-                    <compilerarg line="${javac.compilerargs}"/>
-                    <compilerarg value="-processorpath"/>
-                    <compilerarg path="@{processorpath}:${empty.dir}"/>
-                    <compilerarg line="${ap.processors.internal}"/>
-                    <compilerarg line="${annotation.processing.processor.options}"/>
-                    <compilerarg value="-s"/>
-                    <compilerarg path="@{apgeneratedsrcdir}"/>
-                    <compilerarg line="${ap.proc.none.internal}"/>
-                    <customize/>
-                </javac>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
-        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${src.dir}" name="srcdir"/>
-            <attribute default="${build.classes.dir}" name="destdir"/>
-            <attribute default="${javac.classpath}" name="classpath"/>
-            <attribute default="${javac.processorpath}" name="processorpath"/>
-            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="${javac.debug}" name="debug"/>
-            <attribute default="${empty.dir}" name="sourcepath"/>
-            <attribute default="${empty.dir}" name="gensrcdir"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property location="${build.dir}/empty" name="empty.dir"/>
-                <mkdir dir="${empty.dir}"/>
-                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
-                    <src>
-                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
-                            <include name="*"/>
-                        </dirset>
-                    </src>
-                    <classpath>
-                        <path path="@{classpath}"/>
-                    </classpath>
-                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
-                    <compilerarg line="${javac.profile.cmd.line.arg}"/>
-                    <compilerarg line="${javac.compilerargs}"/>
-                    <customize/>
-                </javac>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
-        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${src.dir}" name="srcdir"/>
-            <attribute default="${build.classes.dir}" name="destdir"/>
-            <attribute default="${javac.classpath}" name="classpath"/>
-            <sequential>
-                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
-                    <classpath>
-                        <path path="@{classpath}"/>
-                    </classpath>
-                </depend>
-            </sequential>
-        </macrodef>
-        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${build.classes.dir}" name="destdir"/>
-            <sequential>
-                <fail unless="javac.includes">Must set javac.includes</fail>
-                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
-                    <path>
-                        <filelist dir="@{destdir}" files="${javac.includes}"/>
-                    </path>
-                    <globmapper from="*.java" to="*.class"/>
-                </pathconvert>
-                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
-                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
-                <delete>
-                    <files includesfile="${javac.includesfile.binary}"/>
-                </delete>
-                <delete>
-                    <fileset file="${javac.includesfile.binary}"/>
-                </delete>
-            </sequential>
-        </macrodef>
-    </target>
-    <target if="${junit.available}" name="-init-macrodef-junit-init">
-        <condition else="false" property="nb.junit.batch" value="true">
-            <and>
-                <istrue value="${junit.available}"/>
-                <not>
-                    <isset property="test.method"/>
-                </not>
-            </and>
-        </condition>
-        <condition else="false" property="nb.junit.single" value="true">
-            <and>
-                <istrue value="${junit.available}"/>
-                <isset property="test.method"/>
-            </and>
-        </condition>
-    </target>
-    <target name="-init-test-properties">
-        <property name="test.binaryincludes" value="&lt;nothing&gt;"/>
-        <property name="test.binarytestincludes" value=""/>
-        <property name="test.binaryexcludes" value=""/>
-    </target>
-    <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
-        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property name="junit.forkmode" value="perTest"/>
-                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
-                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
-                    <syspropertyset>
-                        <propertyref prefix="test-sys-prop."/>
-                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <formatter type="brief" usefile="false"/>
-                    <formatter type="xml"/>
-                    <jvmarg value="-ea"/>
-                    <customize/>
-                </junit>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
-        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property name="junit.forkmode" value="perTest"/>
-                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
-                    <batchtest todir="${build.test.results.dir}">
-                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
-                            <filename name="@{testincludes}"/>
-                        </fileset>
-                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
-                            <filename name="${test.binarytestincludes}"/>
-                        </fileset>
-                    </batchtest>
-                    <syspropertyset>
-                        <propertyref prefix="test-sys-prop."/>
-                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <formatter type="brief" usefile="false"/>
-                    <formatter type="xml"/>
-                    <jvmarg value="-ea"/>
-                    <customize/>
-                </junit>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
-    <target if="${testng.available}" name="-init-macrodef-testng">
-        <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
-                    <isset property="test.method"/>
-                </condition>
-                <union id="test.set">
-                    <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
-                        <filename name="@{testincludes}"/>
-                    </fileset>
-                </union>
-                <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
-                <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="TermApp" testname="TestNG tests" workingDir="${work.dir}">
-                    <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
-                    <propertyset>
-                        <propertyref prefix="test-sys-prop."/>
-                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
-                    </propertyset>
-                    <customize/>
-                </testng>
-            </sequential>
-        </macrodef>
-    </target>
-    <target name="-init-macrodef-test-impl">
-        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element implicit="true" name="customize" optional="true"/>
-            <sequential>
-                <echo>No tests executed.</echo>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
-        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element implicit="true" name="customize" optional="true"/>
-            <sequential>
-                <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
-                    <customize/>
-                </j2seproject3:junit>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
-        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element implicit="true" name="customize" optional="true"/>
-            <sequential>
-                <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
-                    <customize/>
-                </j2seproject3:testng>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
-        <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <sequential>
-                <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
-                    <customize>
-                        <classpath>
-                            <path path="${run.test.classpath}"/>
-                        </classpath>
-                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
-                        <jvmarg line="${run.jvmargs}"/>
-                        <jvmarg line="${run.jvmargs.ide}"/>
-                    </customize>
-                </j2seproject3:test-impl>
-            </sequential>
-        </macrodef>
-    </target>
-    <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
-        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property name="junit.forkmode" value="perTest"/>
-                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
-                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
-                    <syspropertyset>
-                        <propertyref prefix="test-sys-prop."/>
-                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <formatter type="brief" usefile="false"/>
-                    <formatter type="xml"/>
-                    <jvmarg value="-ea"/>
-                    <jvmarg line="${debug-args-line}"/>
-                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
-                    <customize/>
-                </junit>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
-        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property name="junit.forkmode" value="perTest"/>
-                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
-                    <batchtest todir="${build.test.results.dir}">
-                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
-                            <filename name="@{testincludes}"/>
-                        </fileset>
-                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
-                            <filename name="${test.binarytestincludes}"/>
-                        </fileset>
-                    </batchtest>
-                    <syspropertyset>
-                        <propertyref prefix="test-sys-prop."/>
-                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <formatter type="brief" usefile="false"/>
-                    <formatter type="xml"/>
-                    <jvmarg value="-ea"/>
-                    <jvmarg line="${debug-args-line}"/>
-                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
-                    <customize/>
-                </junit>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
-        <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element implicit="true" name="customize" optional="true"/>
-            <sequential>
-                <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
-                    <customize/>
-                </j2seproject3:junit-debug>
-            </sequential>
-        </macrodef>
-    </target>
-    <target if="${testng.available}" name="-init-macrodef-testng-debug">
-        <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${main.class}" name="testClass"/>
-            <attribute default="" name="testMethod"/>
-            <element name="customize2" optional="true"/>
-            <sequential>
-                <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
-                    <isset property="test.method"/>
-                </condition>
-                <condition else="-suitename TermApp -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
-                    <matches pattern=".*\.xml" string="@{testClass}"/>
-                </condition>
-                <delete dir="${build.test.results.dir}" quiet="true"/>
-                <mkdir dir="${build.test.results.dir}"/>
-                <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
-                    <customize>
-                        <customize2/>
-                        <jvmarg value="-ea"/>
-                        <arg line="${testng.debug.mode}"/>
-                        <arg line="-d ${build.test.results.dir}"/>
-                        <arg line="-listener org.testng.reporters.VerboseReporter"/>
-                        <arg line="${testng.cmd.args}"/>
-                    </customize>
-                </j2seproject3:debug>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
-        <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${main.class}" name="testClass"/>
-            <attribute default="" name="testMethod"/>
-            <element implicit="true" name="customize2" optional="true"/>
-            <sequential>
-                <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
-                    <customize2/>
-                </j2seproject3:testng-debug>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
-        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <attribute default="${main.class}" name="testClass"/>
-            <attribute default="" name="testMethod"/>
-            <sequential>
-                <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
-                    <customize>
-                        <classpath>
-                            <path path="${run.test.classpath}"/>
-                        </classpath>
-                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
-                        <jvmarg line="${run.jvmargs}"/>
-                        <jvmarg line="${run.jvmargs.ide}"/>
-                    </customize>
-                </j2seproject3:test-debug-impl>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
-        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <attribute default="${main.class}" name="testClass"/>
-            <attribute default="" name="testMethod"/>
-            <sequential>
-                <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
-                    <customize2>
-                        <syspropertyset>
-                            <propertyref prefix="test-sys-prop."/>
-                            <mapper from="test-sys-prop.*" to="*" type="glob"/>
-                        </syspropertyset>
-                    </customize2>
-                </j2seproject3:testng-debug-impl>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
-    <!--
-                pre NB7.2 profiling section; consider it deprecated
-            -->
-    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
-    <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
-        <macrodef name="resolve">
-            <attribute name="name"/>
-            <attribute name="value"/>
-            <sequential>
-                <property name="@{name}" value="${env.@{value}}"/>
-            </sequential>
-        </macrodef>
-        <macrodef name="profile">
-            <attribute default="${main.class}" name="classname"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property environment="env"/>
-                <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
-                <java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
-                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
-                    <jvmarg value="${profiler.info.jvmargs.agent}"/>
-                    <jvmarg line="${profiler.info.jvmargs}"/>
-                    <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
-                    <arg line="${application.args}"/>
-                    <classpath>
-                        <path path="${run.classpath}"/>
-                    </classpath>
-                    <syspropertyset>
-                        <propertyref prefix="run-sys-prop."/>
-                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <customize/>
-                </java>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
-        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
-        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
-    </target>
-    <!--
-                end of pre NB7.2 profiling section
-            -->
-    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
-        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
-            <attribute default="${main.class}" name="name"/>
-            <attribute default="${debug.classpath}" name="classpath"/>
-            <attribute default="" name="stopclassname"/>
-            <sequential>
-                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
-                    <classpath>
-                        <path path="@{classpath}"/>
-                    </classpath>
-                </nbjpdastart>
-            </sequential>
-        </macrodef>
-        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
-            <attribute default="${build.classes.dir}" name="dir"/>
-            <sequential>
-                <nbjpdareload>
-                    <fileset dir="@{dir}" includes="${fix.classes}">
-                        <include name="${fix.includes}*.class"/>
-                    </fileset>
-                </nbjpdareload>
-            </sequential>
-        </macrodef>
-    </target>
-    <target name="-init-debug-args">
-        <property name="version-output" value="java version &quot;${ant.java.version}"/>
-        <condition property="have-jdk-older-than-1.4">
-            <or>
-                <contains string="${version-output}" substring="java version &quot;1.0"/>
-                <contains string="${version-output}" substring="java version &quot;1.1"/>
-                <contains string="${version-output}" substring="java version &quot;1.2"/>
-                <contains string="${version-output}" substring="java version &quot;1.3"/>
-            </or>
-        </condition>
-        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
-            <istrue value="${have-jdk-older-than-1.4}"/>
-        </condition>
-        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
-            <os family="windows"/>
-        </condition>
-        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
-            <isset property="debug.transport"/>
-        </condition>
-    </target>
-    <target depends="-init-debug-args" name="-init-macrodef-debug">
-        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${main.class}" name="classname"/>
-            <attribute default="${debug.classpath}" name="classpath"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
-                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
-                    <jvmarg line="${debug-args-line}"/>
-                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
-                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
-                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
-                    <jvmarg line="${run.jvmargs}"/>
-                    <jvmarg line="${run.jvmargs.ide}"/>
-                    <classpath>
-                        <path path="@{classpath}"/>
-                    </classpath>
-                    <syspropertyset>
-                        <propertyref prefix="run-sys-prop."/>
-                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <customize/>
-                </java>
-            </sequential>
-        </macrodef>
-    </target>
-    <target name="-init-macrodef-java">
-        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
-            <attribute default="${main.class}" name="classname"/>
-            <attribute default="${run.classpath}" name="classpath"/>
-            <attribute default="jvm" name="jvm"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
-                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
-                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
-                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
-                    <jvmarg line="${run.jvmargs}"/>
-                    <jvmarg line="${run.jvmargs.ide}"/>
-                    <classpath>
-                        <path path="@{classpath}"/>
-                    </classpath>
-                    <syspropertyset>
-                        <propertyref prefix="run-sys-prop."/>
-                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <customize/>
-                </java>
-            </sequential>
-        </macrodef>
-    </target>
-    <target name="-init-macrodef-copylibs">
-        <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${manifest.file}" name="manifest"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
-                <pathconvert property="run.classpath.without.build.classes.dir">
-                    <path path="${run.classpath}"/>
-                    <map from="${build.classes.dir.resolved}" to=""/>
-                </pathconvert>
-                <pathconvert pathsep=" " property="jar.classpath">
-                    <path path="${run.classpath.without.build.classes.dir}"/>
-                    <chainedmapper>
-                        <flattenmapper/>
-                        <filtermapper>
-                            <replacestring from=" " to="%20"/>
-                        </filtermapper>
-                        <globmapper from="*" to="lib/*"/>
-                    </chainedmapper>
-                </pathconvert>
-                <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
-                <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
-                    <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
-                    <manifest>
-                        <attribute name="Class-Path" value="${jar.classpath}"/>
-                        <customize/>
-                    </manifest>
-                </copylibs>
-            </sequential>
-        </macrodef>
-    </target>
-    <target name="-init-presetdef-jar">
-        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
-            <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
-                <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
-            </jar>
-        </presetdef>
-    </target>
-    <target name="-init-ap-cmdline-properties">
-        <property name="annotation.processing.enabled" value="true"/>
-        <property name="annotation.processing.processors.list" value=""/>
-        <property name="annotation.processing.processor.options" value=""/>
-        <property name="annotation.processing.run.all.processors" value="true"/>
-        <property name="javac.processorpath" value="${javac.classpath}"/>
-        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
-        <condition property="ap.supported.internal" value="true">
-            <not>
-                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
-            </not>
-        </condition>
-    </target>
-    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
-        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
-            <isfalse value="${annotation.processing.run.all.processors}"/>
-        </condition>
-        <condition else="" property="ap.proc.none.internal" value="-proc:none">
-            <isfalse value="${annotation.processing.enabled}"/>
-        </condition>
-    </target>
-    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
-        <property name="ap.cmd.line.internal" value=""/>
-    </target>
-    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
-    <!--
-                ===================
-                COMPILATION SECTION
-                ===================
-            -->
-    <target name="-deps-jar-init" unless="built-jar.properties">
-        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
-        <delete file="${built-jar.properties}" quiet="true"/>
-    </target>
-    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
-        <echo level="warn" message="Cycle detected: TermApp was already built"/>
-    </target>
-    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
-        <mkdir dir="${build.dir}"/>
-        <touch file="${built-jar.properties}" verbose="false"/>
-        <property file="${built-jar.properties}" prefix="already.built.jar."/>
-        <antcall target="-warn-already-built-jar"/>
-        <propertyfile file="${built-jar.properties}">
-            <entry key="${basedir}" value=""/>
-        </propertyfile>
-        <antcall target="-maybe-call-dep">
-            <param name="call.built.properties" value="${built-jar.properties}"/>
-            <param location="${project.TermSupport}" name="call.subproject"/>
-            <param location="${project.TermSupport}/build.xml" name="call.script"/>
-            <param name="call.target" value="jar"/>
-            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
-            <param name="transfer.not.archive.disabled" value="true"/>
-        </antcall>
-        <antcall target="-maybe-call-dep">
-            <param name="call.built.properties" value="${built-jar.properties}"/>
-            <param location="${project.TermSupport-1}" name="call.subproject"/>
-            <param location="${project.TermSupport-1}/build.xml" name="call.script"/>
-            <param name="call.target" value="jar"/>
-            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
-            <param name="transfer.not.archive.disabled" value="true"/>
-        </antcall>
-        <antcall target="-maybe-call-dep">
-            <param name="call.built.properties" value="${built-jar.properties}"/>
-            <param location="${project.org_netbeans_lib_richexecution}" name="call.subproject"/>
-            <param location="${project.org_netbeans_lib_richexecution}/build.xml" name="call.script"/>
-            <param name="call.target" value="netbeans"/>
-            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
-            <param name="transfer.not.archive.disabled" value="true"/>
-        </antcall>
-        <antcall target="-maybe-call-dep">
-            <param name="call.built.properties" value="${built-jar.properties}"/>
-            <param location="${project.org_netbeans_lib_terminalemulator}" name="call.subproject"/>
-            <param location="${project.org_netbeans_lib_terminalemulator}/build.xml" name="call.script"/>
-            <param name="call.target" value="netbeans"/>
-            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
-            <param name="transfer.not.archive.disabled" value="true"/>
-        </antcall>
-    </target>
-    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
-    <target depends="init" name="-check-automatic-build">
-        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
-    </target>
-    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
-        <antcall target="clean"/>
-    </target>
-    <target depends="init,deps-jar" name="-pre-pre-compile">
-        <mkdir dir="${build.classes.dir}"/>
-    </target>
-    <target name="-pre-compile">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target if="do.depend.true" name="-compile-depend">
-        <pathconvert property="build.generated.subdirs">
-            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
-                <include name="*"/>
-            </dirset>
-        </pathconvert>
-        <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
-    </target>
-    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
-        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
-        <copy todir="${build.classes.dir}">
-            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
-        </copy>
-    </target>
-    <target if="has.persistence.xml" name="-copy-persistence-xml">
-        <mkdir dir="${build.classes.dir}/META-INF"/>
-        <copy todir="${build.classes.dir}/META-INF">
-            <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
-        </copy>
-    </target>
-    <target name="-post-compile">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
-    <target name="-pre-compile-single">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
-        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
-        <j2seproject3:force-recompile/>
-        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
-    </target>
-    <target name="-post-compile-single">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
-    <!--
-                ====================
-                JAR BUILDING SECTION
-                ====================
-            -->
-    <target depends="init" name="-pre-pre-jar">
-        <dirname file="${dist.jar}" property="dist.jar.dir"/>
-        <mkdir dir="${dist.jar.dir}"/>
-    </target>
-    <target name="-pre-jar">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
-        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
-        <touch file="${tmp.manifest.file}" verbose="false"/>
-    </target>
-    <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
-        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
-        <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
-    </target>
-    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
-        <manifest file="${tmp.manifest.file}" mode="update">
-            <attribute name="Main-Class" value="${main.class}"/>
-        </manifest>
-    </target>
-    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
-        <manifest file="${tmp.manifest.file}" mode="update">
-            <attribute name="Profile" value="${javac.profile}"/>
-        </manifest>
-    </target>
-    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
-        <basename file="${application.splash}" property="splashscreen.basename"/>
-        <mkdir dir="${build.classes.dir}/META-INF"/>
-        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
-        <manifest file="${tmp.manifest.file}" mode="update">
-            <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
-        </manifest>
-    </target>
-    <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
-        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
-        <echo level="info">To run this application from the command line without Ant, try:</echo>
-        <property location="${dist.jar}" name="dist.jar.resolved"/>
-        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
-    </target>
-    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
-        <j2seproject1:jar manifest="${tmp.manifest.file}"/>
-        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
-        <property location="${dist.jar}" name="dist.jar.resolved"/>
-        <pathconvert property="run.classpath.with.dist.jar">
-            <path path="${run.classpath}"/>
-            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
-        </pathconvert>
-        <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
-            <isset property="main.class.available"/>
-        </condition>
-        <condition else="debug" property="jar.usage.level" value="info">
-            <isset property="main.class.available"/>
-        </condition>
-        <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
-    </target>
-    <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
-        <delete>
-            <fileset file="${tmp.manifest.file}"/>
-        </delete>
-    </target>
-    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
-    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
-    <target name="-post-jar">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
-    <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
-    <!--
-                =================
-                EXECUTION SECTION
-                =================
-            -->
-    <target depends="init,compile" description="Run a main class." name="run">
-        <j2seproject1:java>
-            <customize>
-                <arg line="${application.args}"/>
-            </customize>
-        </j2seproject1:java>
-    </target>
-    <target name="-do-not-recompile">
-        <property name="javac.includes.binary" value=""/>
-    </target>
-    <target depends="init,compile-single" name="run-single">
-        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
-        <j2seproject1:java classname="${run.class}"/>
-    </target>
-    <target depends="init,compile-test-single" name="run-test-with-main">
-        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
-        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
-    </target>
-    <!--
-                =================
-                DEBUGGING SECTION
-                =================
-            -->
-    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
-        <j2seproject1:nbjpdastart name="${debug.class}"/>
-    </target>
-    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
-        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
-    </target>
-    <target depends="init,compile" name="-debug-start-debuggee">
-        <j2seproject3:debug>
-            <customize>
-                <arg line="${application.args}"/>
-            </customize>
-        </j2seproject3:debug>
-    </target>
-    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
-    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
-        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
-    </target>
-    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
-    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
-        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
-        <j2seproject3:debug classname="${debug.class}"/>
-    </target>
-    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
-    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
-        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
-        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
-    </target>
-    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
-    <target depends="init" name="-pre-debug-fix">
-        <fail unless="fix.includes">Must set fix.includes</fail>
-        <property name="javac.includes" value="${fix.includes}.java"/>
-    </target>
-    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
-        <j2seproject1:nbjpdareload/>
-    </target>
-    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
-    <!--
-                =================
-                PROFILING SECTION
-                =================
-            -->
-    <!--
-                pre NB7.2 profiler integration
-            -->
-    <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
-        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
-        <nbprofiledirect>
-            <classpath>
-                <path path="${run.classpath}"/>
-            </classpath>
-        </nbprofiledirect>
-        <profile/>
-    </target>
-    <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
-        <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
-        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
-        <nbprofiledirect>
-            <classpath>
-                <path path="${run.classpath}"/>
-            </classpath>
-        </nbprofiledirect>
-        <profile classname="${profile.class}"/>
-    </target>
-    <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
-        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
-        <nbprofiledirect>
-            <classpath>
-                <path path="${run.classpath}"/>
-            </classpath>
-        </nbprofiledirect>
-        <profile classname="sun.applet.AppletViewer">
-            <customize>
-                <arg value="${applet.url}"/>
-            </customize>
-        </profile>
-    </target>
-    <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
-        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
-        <nbprofiledirect>
-            <classpath>
-                <path path="${run.test.classpath}"/>
-            </classpath>
-        </nbprofiledirect>
-        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
-            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
-            <jvmarg value="${profiler.info.jvmargs.agent}"/>
-            <jvmarg line="${profiler.info.jvmargs}"/>
-            <test name="${profile.class}"/>
-            <classpath>
-                <path path="${run.test.classpath}"/>
-            </classpath>
-            <syspropertyset>
-                <propertyref prefix="test-sys-prop."/>
-                <mapper from="test-sys-prop.*" to="*" type="glob"/>
-            </syspropertyset>
-            <formatter type="brief" usefile="false"/>
-            <formatter type="xml"/>
-        </junit>
-    </target>
-    <!--
-                end of pre NB72 profiling section
-            -->
-    <target if="netbeans.home" name="-profile-check">
-        <condition property="profiler.configured">
-            <or>
-                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
-                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
-            </or>
-        </condition>
-    </target>
-    <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
-        <startprofiler/>
-        <antcall target="run"/>
-    </target>
-    <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent">
-        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
-        <startprofiler/>
-        <antcall target="run-single"/>
-    </target>
-    <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
-    <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
-        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
-        <startprofiler/>
-        <antcall target="test-single"/>
-    </target>
-    <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
-        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
-        <startprofiler/>
-        <antcall target="run-test-with-main"/>
-    </target>
-    <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
-        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
-        <startprofiler/>
-        <antcall target="run-applet"/>
-    </target>
-    <!--
-                ===============
-                JAVADOC SECTION
-                ===============
-            -->
-    <target depends="init" if="have.sources" name="-javadoc-build">
-        <mkdir dir="${dist.javadoc.dir}"/>
-        <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
-            <and>
-                <isset property="endorsed.classpath.cmd.line.arg"/>
-                <not>
-                    <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
-                </not>
-            </and>
-        </condition>
-        <condition else="" property="bug5101868workaround" value="*.java">
-            <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
-        </condition>
-        <javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
-            <classpath>
-                <path path="${javac.classpath}"/>
-            </classpath>
-            <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
-                <filename name="**/*.java"/>
-            </fileset>
-            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
-                <include name="**/*.java"/>
-                <exclude name="*.java"/>
-            </fileset>
-            <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
-        </javadoc>
-        <copy todir="${dist.javadoc.dir}">
-            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
-                <filename name="**/doc-files/**"/>
-            </fileset>
-            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
-                <include name="**/doc-files/**"/>
-            </fileset>
-        </copy>
-    </target>
-    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
-        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
-    </target>
-    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
-    <!--
-                =========================
-                TEST COMPILATION SECTION
-                =========================
-            -->
-    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
-        <mkdir dir="${build.test.classes.dir}"/>
-    </target>
-    <target name="-pre-compile-test">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target if="do.depend.true" name="-compile-test-depend">
-        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
-    </target>
-    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
-        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
-        <copy todir="${build.test.classes.dir}">
-            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
-        </copy>
-    </target>
-    <target name="-post-compile-test">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
-    <target name="-pre-compile-test-single">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
-        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
-        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
-        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
-        <copy todir="${build.test.classes.dir}">
-            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
-        </copy>
-    </target>
-    <target name="-post-compile-test-single">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
-    <!--
-                =======================
-                TEST EXECUTION SECTION
-                =======================
-            -->
-    <target depends="init" if="have.tests" name="-pre-test-run">
-        <mkdir dir="${build.test.results.dir}"/>
-    </target>
-    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
-        <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
-    </target>
-    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
-        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
-    </target>
-    <target depends="init" if="have.tests" name="test-report"/>
-    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
-    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
-    <target depends="init" if="have.tests" name="-pre-test-run-single">
-        <mkdir dir="${build.test.results.dir}"/>
-    </target>
-    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
-        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
-        <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
-    </target>
-    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
-        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
-    </target>
-    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
-    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
-        <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
-        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
-        <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
-    </target>
-    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
-        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
-    </target>
-    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
-    <!--
-                =======================
-                TEST DEBUGGING SECTION
-                =======================
-            -->
-    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
-        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
-        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
-    </target>
-    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
-        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
-        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
-        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
-    </target>
-    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
-        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
-    </target>
-    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
-    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
-    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
-        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
-    </target>
-    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
-    <!--
-                =========================
-                APPLET EXECUTION SECTION
-                =========================
-            -->
-    <target depends="init,compile-single" name="run-applet">
-        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
-        <j2seproject1:java classname="sun.applet.AppletViewer">
-            <customize>
-                <arg value="${applet.url}"/>
-            </customize>
-        </j2seproject1:java>
-    </target>
-    <!--
-                =========================
-                APPLET DEBUGGING  SECTION
-                =========================
-            -->
-    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
-        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
-        <j2seproject3:debug classname="sun.applet.AppletViewer">
-            <customize>
-                <arg value="${applet.url}"/>
-            </customize>
-        </j2seproject3:debug>
-    </target>
-    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
-    <!--
-                ===============
-                CLEANUP SECTION
-                ===============
-            -->
-    <target name="-deps-clean-init" unless="built-clean.properties">
-        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
-        <delete file="${built-clean.properties}" quiet="true"/>
-    </target>
-    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
-        <echo level="warn" message="Cycle detected: TermApp was already built"/>
-    </target>
-    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
-        <mkdir dir="${build.dir}"/>
-        <touch file="${built-clean.properties}" verbose="false"/>
-        <property file="${built-clean.properties}" prefix="already.built.clean."/>
-        <antcall target="-warn-already-built-clean"/>
-        <propertyfile file="${built-clean.properties}">
-            <entry key="${basedir}" value=""/>
-        </propertyfile>
-        <antcall target="-maybe-call-dep">
-            <param name="call.built.properties" value="${built-clean.properties}"/>
-            <param location="${project.TermSupport}" name="call.subproject"/>
-            <param location="${project.TermSupport}/build.xml" name="call.script"/>
-            <param name="call.target" value="clean"/>
-            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
-            <param name="transfer.not.archive.disabled" value="true"/>
-        </antcall>
-        <antcall target="-maybe-call-dep">
-            <param name="call.built.properties" value="${built-clean.properties}"/>
-            <param location="${project.TermSupport-1}" name="call.subproject"/>
-            <param location="${project.TermSupport-1}/build.xml" name="call.script"/>
-            <param name="call.target" value="clean"/>
-            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
-            <param name="transfer.not.archive.disabled" value="true"/>
-        </antcall>
-        <antcall target="-maybe-call-dep">
-            <param name="call.built.properties" value="${built-clean.properties}"/>
-            <param location="${project.org_netbeans_lib_richexecution}" name="call.subproject"/>
-            <param location="${project.org_netbeans_lib_richexecution}/build.xml" name="call.script"/>
-            <param name="call.target" value="clean"/>
-            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
-            <param name="transfer.not.archive.disabled" value="true"/>
-        </antcall>
-        <antcall target="-maybe-call-dep">
-            <param name="call.built.properties" value="${built-clean.properties}"/>
-            <param location="${project.org_netbeans_lib_terminalemulator}" name="call.subproject"/>
-            <param location="${project.org_netbeans_lib_terminalemulator}/build.xml" name="call.script"/>
-            <param name="call.target" value="clean"/>
-            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
-            <param name="transfer.not.archive.disabled" value="true"/>
-        </antcall>
-    </target>
-    <target depends="init" name="-do-clean">
-        <delete dir="${build.dir}"/>
-        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
-    </target>
-    <target name="-post-clean">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
-    <target name="-check-call-dep">
-        <property file="${call.built.properties}" prefix="already.built."/>
-        <condition property="should.call.dep">
-            <and>
-                <not>
-                    <isset property="already.built.${call.subproject}"/>
-                </not>
-                <available file="${call.script}"/>
-            </and>
-        </condition>
-    </target>
-    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
-        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
-            <propertyset>
-                <propertyref prefix="transfer."/>
-                <mapper from="transfer.*" to="*" type="glob"/>
-            </propertyset>
-        </ant>
-    </target>
-</project>
diff --git a/lib.terminalemulator/examples/TermApp/nbproject/configs/64bit.properties b/lib.terminalemulator/examples/TermApp/nbproject/configs/64bit.properties
deleted file mode 100644
index 1358661f0..000000000
--- a/lib.terminalemulator/examples/TermApp/nbproject/configs/64bit.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-run.jvmargs=-d64
diff --git a/lib.terminalemulator/examples/TermApp/nbproject/genfiles.properties b/lib.terminalemulator/examples/TermApp/nbproject/genfiles.properties
deleted file mode 100644
index e0009bbc9..000000000
--- a/lib.terminalemulator/examples/TermApp/nbproject/genfiles.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-build.xml.data.CRC32=dcf35fec
-build.xml.script.CRC32=118d8120
-build.xml.stylesheet.CRC32=958a1d3e
-# 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=85df0b09
-nbproject/build-impl.xml.script.CRC32=d879da4d
-nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48
diff --git a/lib.terminalemulator/examples/TermApp/nbproject/project.properties b/lib.terminalemulator/examples/TermApp/nbproject/project.properties
deleted file mode 100644
index ed4301894..000000000
--- a/lib.terminalemulator/examples/TermApp/nbproject/project.properties
+++ /dev/null
@@ -1,98 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-annotation.processing.enabled=true
-annotation.processing.enabled.in.editor=false
-annotation.processing.processors.list=
-annotation.processing.run.all.processors=true
-application.title=PtyTest
-application.vendor=ivan
-build.classes.dir=${build.dir}/classes
-build.classes.excludes=**/*.java,**/*.form
-# This directory is removed when the project is cleaned:
-build.dir=build
-build.generated.dir=${build.dir}/generated
-build.generated.sources.dir=${build.dir}/generated-sources
-# 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.jar=${dist.dir}/TermApp.jar
-dist.javadoc.dir=${dist.dir}/javadoc
-endorsed.classpath=
-excludes=
-file.reference.jna-4.1.0.jar=../../../nbbuild/netbeans/platform/modules/ext/jna-4.1.0.jar
-file.reference.org-netbeans-lib-terminalemulator.jar=../../../nbbuild/netbeans/cnd/modules/org-netbeans-lib-terminalemulator.jar
-includes=**
-jar.compress=false
-javac.classpath=\
-    ${libs.swing-layout.classpath}:\
-    ${reference.org_netbeans_lib_terminalemulator.module}:\
-    ${reference.org_netbeans_lib_richexecution.module}:\
-    ${file.reference.jna-4.1.0.jar}
-# Space-separated list of extra javac options
-javac.compilerargs=
-javac.deprecation=false
-javac.external.vm=false
-javac.processorpath=\
-    ${javac.classpath}
-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=nbterm.Main
-manifest.file=manifest.mf
-meta.inf.dir=${src.dir}/META-INF
-mkdist.disabled=false
-no.dependencies=true
-platform.active=default_platform
-project.org_netbeans_lib_richexecution=../lib.richexecution
-project.org_netbeans_lib_terminalemulator=../..
-reference.org_netbeans_lib_richexecution.module=${project.org_netbeans_lib_richexecution}/../TermSuite/build/cluster/modules/org-netbeans-lib-richexecution.jar
-reference.org_netbeans_lib_terminalemulator.module=${project.org_netbeans_lib_terminalemulator}/../nbbuild/netbeans/ide/modules/org-netbeans-lib-terminalemulator.jar
-run.classpath=\
-    ${javac.classpath}:\
-    ${build.classes.dir}
-# Space-separated list of JVM arguments used when running the project
-# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
-# or test-sys-prop.name=value to set system properties for unit tests):
-run.jvmargs=-ea -Dswing.aatext=true -Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.dpiaware=true -Dorg.netbeans.editor.aa.extra.hints=true -Dsun.awt.disableMixing=true\n
-run.test.classpath=\
-    ${javac.test.classpath}:\
-    ${build.test.classes.dir}
-source.encoding=UTF-8
-src.dir=src
-test.src.dir=test
diff --git a/lib.terminalemulator/examples/TermApp/nbproject/project.xml b/lib.terminalemulator/examples/TermApp/nbproject/project.xml
deleted file mode 100644
index b1451afb9..000000000
--- a/lib.terminalemulator/examples/TermApp/nbproject/project.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<project xmlns="http://www.netbeans.org/ns/project/1">
-    <type>org.netbeans.modules.java.j2seproject</type>
-    <configuration>
-        <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
-            <name>TermApp</name>
-            <minimum-ant-version>1.6.5</minimum-ant-version>
-            <source-roots>
-                <root id="src.dir"/>
-            </source-roots>
-            <test-roots>
-                <root id="test.src.dir"/>
-            </test-roots>
-        </data>
-        <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
-            <reference>
-                <foreign-project>TermSupport</foreign-project>
-                <artifact-type>jar</artifact-type>
-                <script>build.xml</script>
-                <target>jar</target>
-                <clean-target>clean</clean-target>
-                <id>jar</id>
-            </reference>
-            <reference>
-                <foreign-project>TermSupport-1</foreign-project>
-                <artifact-type>jar</artifact-type>
-                <script>build.xml</script>
-                <target>jar</target>
-                <clean-target>clean</clean-target>
-                <id>jar</id>
-            </reference>
-            <reference>
-                <foreign-project>org_netbeans_lib_richexecution</foreign-project>
-                <artifact-type>jar</artifact-type>
-                <script>build.xml</script>
-                <target>netbeans</target>
-                <clean-target>clean</clean-target>
-                <id>module</id>
-            </reference>
-            <reference>
-                <foreign-project>org_netbeans_lib_terminalemulator</foreign-project>
-                <artifact-type>jar</artifact-type>
-                <script>build.xml</script>
-                <target>netbeans</target>
-                <clean-target>clean</clean-target>
-                <id>module</id>
-            </reference>
-        </references>
-    </configuration>
-</project>
diff --git a/lib.terminalemulator/examples/TermApp/release/nbterm b/lib.terminalemulator/examples/TermApp/release/nbterm
deleted file mode 100755
index 7583fe687..000000000
--- a/lib.terminalemulator/examples/TermApp/release/nbterm
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-# nterm -- A simple Java based ANSI terminal emulator
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-
-if [ -h $0 ]
-then
-	ME=$(ls -l $0)
-	ME=${ME#*-> }
-else
-	ME=$0
-fi
-MEDIR=`/usr/bin/dirname $ME`
-INSTALLDIR=`cd ${MEDIR}; /bin/pwd`
-
-exec java -jar $INSTALLDIR/TermApp.jar $*
diff --git a/lib.terminalemulator/examples/TermApp/release/nbterm64 b/lib.terminalemulator/examples/TermApp/release/nbterm64
deleted file mode 100644
index 96e6d58b3..000000000
--- a/lib.terminalemulator/examples/TermApp/release/nbterm64
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-# nterm -- A simple Java based ANSI terminal emulator
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-if [ -h $0 ]
-then
-	ME=$(ls -l $0)
-	ME=${ME#*-> }
-else
-	ME=$0
-fi
-MEDIR=`/usr/bin/dirname $ME`
-INSTALLDIR=`cd ${MEDIR}; /bin/pwd`
-
-exec java -d64 -jar $INSTALLDIR/TermApp.jar $*
diff --git a/lib.terminalemulator/examples/TermApp/src/nbterm/ErrorProcessor.java b/lib.terminalemulator/examples/TermApp/src/nbterm/ErrorProcessor.java
deleted file mode 100644
index 39bf4ae22..000000000
--- a/lib.terminalemulator/examples/TermApp/src/nbterm/ErrorProcessor.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package nbterm;
-
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import org.netbeans.lib.terminalemulator.support.LineFilter;
-
-class ErrorProcessor extends LineFilter {
-
-    @Override
-    public void processLine(String line, LineSink sink) {
-        // handle stuff of the form
-        // <filename>:<line>: warning: <error>
-        // <filename>:<line>: error: <error>
-
-        final Pattern errPattern =
-            Pattern.compile("((.*):(\\d+):)( (.*): .*$)");
-            // group         12    3       4 5
-
-        Matcher errMatcher = errPattern.matcher(line);
-        if (errMatcher.find()) {
-            String location = errMatcher.group(1);
-            String file = errMatcher.group(2);
-            String lineno = errMatcher.group(3);
-            String msg = errMatcher.group(4);
-            String kind = errMatcher.group(5);
-
-            StringBuilder buf = new StringBuilder();
-
-            buf.append((char) 27);  // ESC
-            if (kind.equals("error")) {
-                buf.append("[01;31m");  // red
-            } else if (kind.equals("warning")) {
-                buf.append("[01;30m");  // grey
-            }
-            buf.append(hyperlink(file + ":" + lineno, location));
-            buf.append(msg);
-            buf.append((char) 27);  // ESC
-            buf.append("[0m");
-            sink.forwardLine(buf.toString());
-            return;
-        }
-
-        sink.forwardLine(line);
-    }
-}
diff --git a/lib.terminalemulator/examples/TermApp/src/nbterm/Injector.java b/lib.terminalemulator/examples/TermApp/src/nbterm/Injector.java
deleted file mode 100644
index 1dcbff842..000000000
--- a/lib.terminalemulator/examples/TermApp/src/nbterm/Injector.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package nbterm;
-
-import org.netbeans.lib.terminalemulator.TermStream;
-
-/**
- * Utility to inject text into the terminal i/o stream as if it
- * was typed by the user.
- */
-class Injector extends TermStream {
-
-    /**
-     * Inject text into the terminal i/o stream as if it was typed
-     * by the user.
-     */
-    public void inject(String text) {
-        toDCE.sendChars(text.toCharArray(), 0, text.length());
-    }
-
-    @Override
-    public void flush() {
-        toDTE.flush();
-    }
-
-    @Override
-    public void putChar(char c) {
-        toDTE.putChar(c);
-    }
-
-    @Override
-    public void putChars(char[] buf, int offset, int count) {
-        toDTE.putChars(buf, offset, count);
-    }
-
-    @Override
-    public void sendChar(char c) {
-        toDCE.sendChar(c);
-    }
-
-    @Override
-    public void sendChars(char[] c, int offset, int count) {
-        toDCE.sendChars(c, offset, count);
-    }
-}
diff --git a/lib.terminalemulator/examples/TermApp/src/nbterm/Main.java b/lib.terminalemulator/examples/TermApp/src/nbterm/Main.java
deleted file mode 100644
index 37c74e760..000000000
--- a/lib.terminalemulator/examples/TermApp/src/nbterm/Main.java
+++ /dev/null
@@ -1,211 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package nbterm;
-
-
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import java.util.ArrayList;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import org.netbeans.lib.richexecution.Pty.Mode;
-import org.netbeans.lib.richexecution.program.Command;
-import org.netbeans.lib.richexecution.program.Program;
-import org.netbeans.lib.richexecution.program.Shell;
-
-/**
- *
- * @author ivan
- */
-public class Main {
-    // defaults for unix
-    static Boolean optLineDiscipline = null;  // line_discipline overriden by options
-    static Mode mode = Mode.REGULAR;
-    static String termType = "xterm-16color";
-    static boolean debug = false;
-    static boolean processErrors = false;
-    static int rows = 24;
-    static int cols = 80;
-    static ArrayList<String> command = new ArrayList<String>();
-
-    static private Terminal editorTerminal;
-    static private Injector injector;
-    static private String currentFile = "";
-
-    private static void help() {
-        System.out.printf("usage: term [ <option> ... ]\n");
-        System.out.printf("\t-e <executable> [ <arg> ... ] (has to appear last)\n");
-        System.out.printf("\t-geometry CCxRR\n");
-        System.out.printf("\t-m pipe|pty_raw|pty|pty_packet (default = pty)\n");
-        System.out.printf("\t-t dumb|xterm|ansi|dtterm (default = ansi)\n");
-        System.out.printf("\t-l\tDon't use Term's own line discipline\n");
-        System.out.printf("\t+l\tDo use Term's own line discipline\n");
-        System.out.printf("\t-d\tTurn on term debugging\n");
-        System.out.printf("\t-E\tProcess compilation Errors and turn them to hyperlinks\n");
-        System.out.printf("\t-h\tHelp\n");
-        System.out.printf("\t---------------------------------------------\n");
-        System.out.printf("\t      pipe: Use raw i/o. Implies +l\n");
-        System.out.printf("\t   pty_raw: Use raw pty's. Equivalent to 'pipe'\n");
-        System.out.printf("\t       pty: Use standard pty's. Implies -l\n");
-        System.out.printf("\tpty_packet: Enhanced pty functionality: track window size change\n");
-    }
-
-    private static void uerror(String fmt, Object...args) {
-        System.out.printf(fmt + "\n", args);
-        help();
-        System.exit(1);
-    }
-
-
-    static TermExecutor executor() {
-        TermExecutor executor = new TermExecutor();
-        executor.setMode(mode);
-        executor.setLineDiscipline(optLineDiscipline);
-        executor.setDebug(debug);
-        return executor;
-    }
-
-    static void start() {
-        final Program program;
-        if (command.isEmpty()) {
-            program = new Shell();
-        } else {
-            program = new Program(command);
-        }
-
-        TermExecutor executor = executor();
-        Terminal terminal = new Terminal(executor, termType, program, processErrors, rows, cols);
-        executor.setTitledWindow(terminal);
-        Thread thread = new Thread(terminal);
-        thread.start();
-    }
-
-    /**
-     * If there isn't one bring up a terminal running vi and have it
-     * go to the given file and lineno.
-     */
-    static void showInEditor(String file, int lineno) {
-        if (file == null)
-            return;
-
-        if (editorTerminal == null) {
-            Program program = new Command("vi");
-            editorTerminal = new Terminal(executor(), termType, program, false, rows, cols);
-
-            editorTerminal.addWindowListener(new WindowAdapter() {
-                @Override
-                public void windowClosed(WindowEvent e) {
-                    editorTerminal = null;
-                    currentFile = "";
-                }
-            });
-
-            injector = new Injector();
-            editorTerminal.term().pushStream(injector);
-
-            Thread thread = new Thread(editorTerminal);
-            thread.start();
-
-            // Give it some time to come up otherwise it's not receptive
-            try {
-                Thread.sleep(1000);
-            } catch (InterruptedException ex) {
-                Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
-            }
-        }
-
-        if (!file.equals(currentFile)) {
-            injector.inject("" + (char) 27 + ":e " + file + "\r\n");
-            currentFile = file;
-        }
-        injector.inject("" + (char) 27 + lineno + "G");
-    }
-
-    /**
-     * @param args the command line arguments
-     */
-    public static void main(String[] args) {
-
-        //
-        // Process arguments
-        //
-        for (int cx = 0; cx < args.length; cx++) {
-            if (args[cx].startsWith("-") || args[cx].startsWith("+")) {
-                if (args[cx].equals("-m")) {
-                    cx++;
-                    if (cx >= args.length || args[cx].startsWith("-")) 
-                        uerror("expected argument after -m");
-                    if (args[cx].equals("pipe"))
-                        mode = Mode.NONE;
-                    else if (args[cx].equals("pty_raw"))
-                        mode = Mode.RAW;
-                    else if (args[cx].equals("pty"))
-                        mode = Mode.REGULAR;
-                    else if (args[cx].equals("pty_packet"))
-                        mode = Mode.PACKET;
-                    else
-                        uerror("Unrecognized mode '%s'", args[cx]);
-                } else if (args[cx].equals("-t")) {
-                    cx++;
-                    if (cx >= args.length || args[cx].startsWith("-")) 
-                        uerror("expected argument after -t");
-                    termType = args[cx];
-                } else if (args[cx].equals("-l")) {
-                    optLineDiscipline = Boolean.FALSE;
-                } else if (args[cx].equals("+l")) {
-                    optLineDiscipline = Boolean.TRUE;
-                } else if (args[cx].equals("-E")) {
-                    processErrors = true;
-                } else if (args[cx].equals("-d")) {
-                    debug = true;
-                } else if (args[cx].equals("-h")) {
-                    help();
-                    System.exit(0);
-                } else if (args[cx].equals("-e")) {
-                    cx++;
-                    if (cx >= args.length || args[cx].startsWith("-"))
-                        uerror("expected argument after -e");
-                    command.add(args[cx++]);
-                    while (cx < args.length)
-                        command.add(args[cx++]);
-                } else if (args[cx].equals("-geometry")) {
-                    cx++;
-                    if (cx >= args.length || args[cx].startsWith("-"))
-                        uerror("expected argument after -geometry");
-                    String gs = args[cx];
-                    int xx = gs.indexOf('x');
-                    if (xx == -1)
-                        uerror("Geometry contains no x");
-                    String cc = gs.substring(0, xx);
-                    String rr = gs.substring(xx+1);
-                    System.out.printf("rr %s  cc %s\n", rr, cc);
-                    rows = Integer.parseInt(rr);
-                    cols = Integer.parseInt(cc);
-                } else {
-                    uerror("Unrecognized option '%s'", args[cx]);
-                }
-            } else {
-                uerror("Unrecognized argument '%s'", args[cx]);
-            }
-        }
-        start();
-    }
-
-}
diff --git a/lib.terminalemulator/examples/TermApp/src/nbterm/TermExecutor.java b/lib.terminalemulator/examples/TermApp/src/nbterm/TermExecutor.java
deleted file mode 100644
index 738fc7db9..000000000
--- a/lib.terminalemulator/examples/TermApp/src/nbterm/TermExecutor.java
+++ /dev/null
@@ -1,223 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package nbterm;
-
-import org.netbeans.lib.richexecution.PtyProcess;
-import org.netbeans.lib.richexecution.PtyExecutor;
-import org.netbeans.lib.richexecution.OS;
-import org.netbeans.lib.richexecution.program.Program;
-import java.awt.Dimension;
-import java.util.Map;
-import javax.swing.JFrame;
-import org.netbeans.lib.terminalemulator.LineDiscipline;
-import org.netbeans.lib.terminalemulator.StreamTerm;
-import org.netbeans.lib.terminalemulator.Term;
-import org.netbeans.lib.terminalemulator.TermListener;
-import org.netbeans.lib.richexecution.Pty;
-import org.netbeans.lib.richexecution.Pty.Mode;
-
-/**
- * Execute a program connected to a Term.
- * @author ivan
- */
-public final class TermExecutor {
-    private final static OS os = OS.get();
-    private final PtyExecutor delegate = new PtyExecutor();
-    private Boolean lineDiscipline = null;
-    private boolean debug = false;
-    private JFrame titledWindow;
-
-    public TermExecutor() {
-        switch (os) {
-            case WINDOWS:
-		delegate.setMode(Mode.NONE);
-                break;
-	    default:
-		break;
-        }
-    }
-
-    private class MyTermListener implements TermListener {
-        private final Pty pty;
-
-        public MyTermListener(Pty pty) {
-            this.pty = pty;
-        }
-
-        public void sizeChanged(Dimension cells, Dimension pixels) {
-            /* LATER
-            if (pty.isRaw())
-                return;     // otherwise SWINSZ will give us an IOException
-            */
-
-            // On Linux, Solaris and Mac setting WINSZ from the master
-            // fd works.
-            // On Linux and (I think) on Solaris and Mac setting it from the
-            // slave fd works.
-	    switch (OS.get()) {
-		/* OLD
-		case MACOS:
-		    pty.slaveTIOCSWINSZ(cells.height, cells.width,
-					 pixels.height, pixels.width);
-		    break;
-		 */
-		default:
-		    pty.masterTIOCSWINSZ(cells.height, cells.width,
-					 pixels.height, pixels.width);
-		    break;
-	    }
-        }
-
-        public void titleChanged(String title) {
-            if (titledWindow != null)
-                titledWindow.setTitle(title);
-        }
-
-        public void cwdChanged(String cwd) {
-            // ignore -- for now
-       }
-
-	public void externalToolCalled(String command) {
-            // ignore -- for now
-	}
-    }
-
-    private static void error(String fmt, Object...args) {
-        String msg = String.format(fmt, args);
-        throw new IllegalStateException(msg);
-    }
-
-    /**
-     * Set whether Terms line discipline should be used.
-     * Should be called before start().
-     */
-    public void setLineDiscipline(Boolean lineDiscipline) {
-        this.lineDiscipline = lineDiscipline;
-    }
-
-    /**
-     * Allows control of Term debugging
-     */
-    public void setDebug(boolean debug) {
-        this.debug = debug;
-    }
-
-    /**
-     * Start this program running under the given Term.
-     * @return The wrapper process.
-     */
-    public PtyProcess start(Program program, StreamTerm term) {
-        if (program.command().isEmpty())
-            error("Empty command");
-
-        Pty pty = null;
-
-        //
-        // Check and adjust arguments
-        //
-        switch (os) {
-            case WINDOWS:
-                if (delegate.getMode() != Mode.NONE)
-                    error("Can only use 'pipe' mode on windows");
-                break;
-            case LINUX:
-                break;
-        }
-
-        //
-        // Create pty
-        //
-        switch (delegate.getMode()) {
-            case NONE:
-                break;
-            case REGULAR:
-                try {
-                    pty = Pty.create(Pty.Mode.REGULAR);
-                } catch (Exception x) {
-                    System.out.printf("Exception %s\n",x);
-                }
-                break;
-            case RAW:
-                error("raw pty mode not supported yet");
-                break;
-            case PACKET:
-                error("packet pty mode not supported yet");
-                break;
-        }
-
-        //
-        // Create Term
-        //
-        if (debug)
-            term.setDebugFlags(Term.DEBUG_INPUT |
-                               Term.DEBUG_OUTPUT |
-                               Term.DEBUG_OPS |
-			       Term.DEBUG_KEYS);
-
-        if (pty != null)
-            term.addListener(new MyTermListener(pty));
-
-        //
-        // Push own line discipline if needed or overriden
-        //
-        if (lineDiscipline != null) {
-            if (lineDiscipline)
-                term.pushStream(new LineDiscipline());
-        } else {
-            switch (delegate.getMode()) {
-                case NONE:
-                case RAW:
-                    term.pushStream(new LineDiscipline());
-                    break;
-            }
-        }
-
-        //
-        // Start program and connect it to term
-        //
-        Map<String, String> env = program.environment();
-        env.put("TERM", term.getEmulation());
-	PtyProcess ptyProcess = delegate.start(program, pty);
-
-        if (false) {
-            String charSet;
-            // charSet = "ISO-8859-1";
-            charSet = "UTF-8";           // won't render ansi graphics chars correctly.
-            term.connect(ptyProcess.getOutputStream(), ptyProcess.getInputStream(), null, charSet);
-        } else {
-            term.connect(ptyProcess.getOutputStream(), ptyProcess.getInputStream(), null);
-        }
-
-        // TMP reaper = ptyProcess.getReaper();
-        return ptyProcess;
-    }
-
-    public void setMode(Mode mode) {
-        delegate.setMode(mode);
-    }
-
-    public Mode getMode() {
-        return delegate.getMode();
-    }
-
-    public void setTitledWindow(JFrame titledWindow) {
-        this.titledWindow = titledWindow;
-    }
-}
diff --git a/lib.terminalemulator/examples/TermApp/src/nbterm/Terminal.java b/lib.terminalemulator/examples/TermApp/src/nbterm/Terminal.java
deleted file mode 100644
index 9707ddfc9..000000000
--- a/lib.terminalemulator/examples/TermApp/src/nbterm/Terminal.java
+++ /dev/null
@@ -1,594 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package nbterm;
-
-import org.netbeans.lib.terminalemulator.support.LineFilter;
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Font;
-import java.awt.Point;
-import java.awt.event.ActionEvent;
-import java.awt.event.InputEvent;
-import java.awt.event.KeyEvent;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.PrintStream;
-import java.util.HashSet;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import java.util.prefs.Preferences;
-import javax.swing.AbstractAction;
-import javax.swing.Action;
-import javax.swing.ActionMap;
-import javax.swing.InputMap;
-import javax.swing.JCheckBoxMenuItem;
-import javax.swing.JComponent;
-import javax.swing.JDialog;
-import javax.swing.JFrame;
-import javax.swing.JOptionPane;
-import javax.swing.JPopupMenu;
-import javax.swing.JSeparator;
-import javax.swing.KeyStroke;
-import javax.swing.SwingUtilities;
-import javax.swing.WindowConstants;
-import javax.swing.event.PopupMenuEvent;
-import javax.swing.event.PopupMenuListener;
-
-import org.netbeans.lib.richexecution.program.Program;
-import org.netbeans.lib.richexecution.PtyProcess;
-
-import org.netbeans.lib.terminalemulator.ActiveRegion;
-import org.netbeans.lib.terminalemulator.ActiveTerm;
-import org.netbeans.lib.terminalemulator.ActiveTermListener;
-import org.netbeans.lib.terminalemulator.Term;
-import org.netbeans.lib.terminalemulator.support.DefaultFindState;
-import org.netbeans.lib.terminalemulator.support.FindBar;
-import org.netbeans.lib.terminalemulator.support.FindState;
-import org.netbeans.lib.terminalemulator.support.TermOptions;
-import org.netbeans.lib.terminalemulator.support.TermOptionsPanel;
-
-class Terminal extends JFrame implements Runnable {
-
-    private final TermExecutor executor;
-    private final Program program;
-    private final ActiveTerm term;
-    private final FindState findState;
-    private final FindBar findBar;
-    private PtyProcess ptyProcess;
-
-    private static final Preferences prefs =
-        Preferences.userNodeForPackage(Terminal.class);
-    private static final TermOptions termOptions = TermOptions.getDefault(prefs);
-
-    private static final String BOOLEAN_STATE_ACTION_KEY = "boolean_state_action";
-    private static final String BOOLEAN_STATE_ENABLED_KEY = "boolean_state_enabled";
-
-
-    /**
-     * Print something into the terminal in the bold font.
-     * @param fmt
-     * @param args
-     */
-    private void tprintf(String fmt, Object... args) {
-        String msg = String.format(fmt, args);
-        term.setAttribute(1);   // bold
-        term.appendText(msg, true);
-        term.setAttribute(0);   // default
-    }
-
-    Terminal(TermExecutor executor, String termType, Program program, boolean processErrors, int rows, int cols) {
-        super();
-
-        setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
-
-        this.executor = executor;
-        this.program = program;
-
-        term = new ActiveTerm();
-        term.setCursorVisible(true);
-        term.setRowsColumns(rows, cols);
-
-        term.setHorizontallyScrollable(false);
-        term.setEmulation(termType);
-        if (!term.getEmulation().equals(termType))
-            tprintf("nbterm: Terminal type '%s' not supported -- reverting to '%s'\n", termType, term.getEmulation());
-        term.setBackground(Color.white);
-        term.setHistorySize(4000);
-
-        applyTermOptions(true);
-
-	final Set<Action> actions = new HashSet<Action>();
-	actions.add(newAction);
-        actions.add(newAction);
-        actions.add(copyAction);
-        actions.add(pasteAction);
-        actions.add(findAction);
-        actions.add(wrapAction);
-        actions.add(logSequencesAction);
-        actions.add(dumpSequencesAction);
-        actions.add(clearAction);
-        actions.add(optionsAction);
-	setupKeymap(actions);
-
-        if (processErrors) {
-            term.setActionListener(new ActiveTermListener() {
-                public void action(ActiveRegion r, InputEvent e) {
-                    if (r.isLink()) {
-                        String cookie = (String) r.getUserObject();
-                        int colonx = cookie.indexOf(':');
-                        String file = cookie.substring(0, colonx);
-                        String line = cookie.substring(colonx+1);
-                        // tprintf("clicked '%s' -> '%s' '%s'\n", cookie, file, line);
-                        int lineno = Integer.parseInt(line);
-
-                        Main.showInEditor(file, lineno);
-                    }
-                }
-            });
-            LineFilter.pushInto(new ErrorProcessor(), term, 100);
-        }
-
-        this.findState = new DefaultFindState(term);
-        this.findBar = new FindBar(new FindBar.Owner() {
-
-            public void close(FindBar fb) {
-                findBar.getState().setVisible(false);
-                getContentPane().remove(findBar);
-                validate();
-            }
-        });
-        getContentPane().setLayout(new BorderLayout());
-        term.getScreen().addMouseListener(new MouseAdapter() {
-
-            @Override
-            public void mousePressed(MouseEvent e) {
-                if (e.isPopupTrigger()) {
-                    Point p = SwingUtilities.convertPoint((Component) e.getSource(), e.getPoint(), term.getScreen());
-                    postPopupMenu(p);
-                }
-            }
-        });
-
-        getContentPane().add(term, BorderLayout.CENTER);
-        pack();
-    }
-
-    public Term term() {
-        return term;
-    }
-
-    private void applyTermOptions(boolean initial) {
-        Font font = term.getFont();
-        /* OLD
-        if (font != null) {
-            Font newFont = new Font(font.getName(),
-                                    font.getStyle(),
-                                    termOptions.getFontSize());
-            term.setFont(newFont);
-        } else {
-            Font newFont = new Font("monospaced",
-                                    java.awt.Font.PLAIN,
-                                    termOptions.getFontSize());
-            term.setFont(newFont);
-        }
-        */
-        term.setFixedFont(true);
-        term.setFont(termOptions.getFont());
-
-        term.setBackground(termOptions.getBackground());
-        term.setForeground(termOptions.getForeground());
-        term.setHighlightColor(termOptions.getSelectionBackground());
-        term.setHistorySize(termOptions.getHistorySize());
-        term.setTabSize(termOptions.getTabSize());
-
-        term.setClickToType(termOptions.getClickToType());
-        term.setScrollOnInput(termOptions.getScrollOnInput());
-        term.setScrollOnOutput(termOptions.getScrollOnOutput());
-        if (initial)
-            term.setHorizontallyScrollable(!termOptions.getLineWrap());
-
-        // If we change the font from smaller to bigger, the size
-        // calculations go awry and the last few lines are forever hidden.
-        setSize(getPreferredSize());
-        validate();
-
-    }
-
-    private final class NewAction extends AbstractAction {
-
-        public NewAction() {
-            super("New");
-            /* LATER
-            KeyStroke accelerator = KeyStroke.getKeyStroke(KeyEvent.VK_F, InputEvent.ALT_MASK);
-            System.out.printf("Accelerator for Find: %s\n", accelerator);
-            putValue(ACCELERATOR_KEY, accelerator);
-            */
-        }
-
-        public void actionPerformed(ActionEvent e) {
-            if (!isEnabled())
-                return;
-            Main.start();
-        }
-    }
-
-    private final class ClearAction extends AbstractAction {
-
-        public ClearAction() {
-            super("Clear");
-            KeyStroke accelerator = KeyStroke.getKeyStroke(KeyEvent.VK_E, InputEvent.ALT_MASK);
-            putValue(ACCELERATOR_KEY, accelerator);
-        }
-
-        public void actionPerformed(ActionEvent e) {
-            if (!isEnabled())
-                return;
-            term.clear();
-        }
-    }
-
-    private final class OptionsAction extends AbstractAction {
-
-        public OptionsAction() {
-            super("Options");
-            KeyStroke accelerator = KeyStroke.getKeyStroke(KeyEvent.VK_O, InputEvent.ALT_MASK);
-            putValue(ACCELERATOR_KEY, accelerator);
-        }
-
-        public void actionPerformed(ActionEvent e) {
-            if (!isEnabled())
-                return;
-
-            TermOptions clonedTermOptions = termOptions.makeCopy();
-            TermOptionsPanel subPanel = new TermOptionsPanel();
-            subPanel.setTermOptions(clonedTermOptions);
-
-            JOptionPane optionPane = new JOptionPane(subPanel,
-                                                     JOptionPane.PLAIN_MESSAGE,
-                                                     JOptionPane.OK_CANCEL_OPTION
-                                                     );
-                JDialog dialog = optionPane.createDialog(Terminal.this,
-                                                         "NBTerm Options");
-                dialog.setVisible(true);      // WILL BLOCK!
-
-                if (optionPane.getValue() == null)
-                    return;     // was closed at the window level
-
-                switch ((Integer) optionPane.getValue()) {
-                    case JOptionPane.OK_OPTION:
-                        System.out.printf("Dialog returned OK\n");
-                        termOptions.assign(clonedTermOptions);
-                        applyTermOptions(false);
-                        termOptions.storeTo(prefs);
-                        break;
-                    case JOptionPane.CANCEL_OPTION:
-                        System.out.printf("Dialog returned CANCEL\n");
-                        break;
-                    case JOptionPane.CLOSED_OPTION:
-                        System.out.printf("Dialog returned CLOSED\n");
-                        break;
-                    default:
-                        System.out.printf("Dialog returned OTHER: %s\n",
-                                          optionPane.getValue());
-                        break;
-                }
-        }
-    }
-
-    private final class CopyAction extends AbstractAction {
-
-        public CopyAction() {
-            super("Copy");
-            KeyStroke accelerator = KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.ALT_MASK);
-            System.out.printf("Accelerator for Copy: %s\n", accelerator);
-            putValue(ACCELERATOR_KEY, accelerator);
-        }
-
-        public void actionPerformed(ActionEvent e) {
-            if (!isEnabled())
-                return;
-            term.copyToClipboard();
-        }
-    }
-
-    private final class PasteAction extends AbstractAction {
-
-        public PasteAction() {
-            super("Paste");
-            KeyStroke accelerator = KeyStroke.getKeyStroke(KeyEvent.VK_V, InputEvent.ALT_MASK);
-            System.out.printf("Accelerator for Paste: %s\n", accelerator);
-            putValue(ACCELERATOR_KEY, accelerator);
-        }
-
-        public void actionPerformed(ActionEvent e) {
-            if (!isEnabled())
-                return;
-            term.pasteFromClipboard();
-        }
-    }
-
-    private final class FindAction extends AbstractAction {
-
-        public FindAction() {
-            super("Find");
-            KeyStroke accelerator = KeyStroke.getKeyStroke(KeyEvent.VK_F, InputEvent.ALT_MASK);
-            System.out.printf("Accelerator for Find: %s\n", accelerator);
-            putValue(ACCELERATOR_KEY, accelerator);
-        }
-
-        public void actionPerformed(ActionEvent e) {
-            if (!isEnabled())
-                return;
-
-            if (findState.isVisible())
-                return;
-            findState.setVisible(true);
-            findBar.setState(findState);
-            add(findBar, BorderLayout.SOUTH);
-            validate();
-        }
-    }
-
-    private final class WrapAction extends AbstractAction {
-
-        public WrapAction() {
-            super("Wrap text");
-            // LATER KeyStroke accelerator = Utilities.stringToKey("A-R");
-            putValue(BOOLEAN_STATE_ACTION_KEY, true);
-        }
-
-        public void actionPerformed(ActionEvent e) {
-            if (!isEnabled())
-                return;
-            boolean hs = term.isHorizontallyScrollable();
-            term.setHorizontallyScrollable(!hs);
-        }
-
-        @Override
-        public Object getValue(String key) {
-            if (key.equals(BOOLEAN_STATE_ENABLED_KEY)) {
-                return !term.isHorizontallyScrollable();
-            } else {
-                return super.getValue(key);
-            }
-        }
-    }
-
-    private final class LogSequencesAction extends AbstractAction {
-
-        public LogSequencesAction() {
-            super("Log Sequences");
-            putValue(BOOLEAN_STATE_ACTION_KEY, true);
-        }
-
-        public void actionPerformed(ActionEvent e) {
-            if (term.isSequenceLogging())
-                term.setSequenceLogging(false);
-            else
-                term.setSequenceLogging(true);
-        }
-
-        @Override
-        public Object getValue(String key) {
-            if (key.equals(BOOLEAN_STATE_ENABLED_KEY)) {
-                return term.isSequenceLogging();
-            } else {
-                return super.getValue(key);
-            }
-        }
-    }
-
-    private final class DumpSequencesAction extends AbstractAction {
-
-        public DumpSequencesAction() {
-            super("Dump Sequences");
-        }
-
-        private void dump(String title, Set<String> set) {
-            File file = new File(String.format("/tmp/term-sequences-%s", title));
-            PrintStream ps;
-            try {
-                ps = new PrintStream(file);
-            } catch (FileNotFoundException ex) {
-                Logger.getLogger(Terminal.class.getName()).log(Level.SEVERE, null, ex);
-                return;
-            }
-
-            if (set != null) {
-                for (String s : set)
-                    ps.printf("%s\n", s);
-            }
-
-            ps.close();
-        }
-
-        public void actionPerformed(ActionEvent e) {
-            if (!isEnabled())
-                return;
-            dump("completed", term.getCompletedSequences());
-            dump("unrecognized", term.getUnrecognizedSequences());
-        }
-    }
-
-    private final class PrintStatsAction extends AbstractAction {
-
-        public PrintStatsAction() {
-            super("Print Stats");
-        }
-
-        public void actionPerformed(ActionEvent e) {
-            if (!isEnabled())
-                return;
-            term.printStats("Stats");
-        }
-    }
-
-    private boolean isBooleanStateAction(Action a) {
-        Boolean isBooleanStateAction = (Boolean) a.getValue(BOOLEAN_STATE_ACTION_KEY);
-        return isBooleanStateAction != null && isBooleanStateAction;
-    }
-
-    private void addMenuItem(JPopupMenu menu, Object o) {
-        if (o instanceof JSeparator) {
-            menu.add((JSeparator) o);
-        } else if (o instanceof Action) {
-            Action a = (Action) o;
-            if (isBooleanStateAction(a)) {
-                JCheckBoxMenuItem item = new JCheckBoxMenuItem(a);
-                item.setSelected((Boolean) a.getValue(BOOLEAN_STATE_ENABLED_KEY));
-                menu.add(item);
-            } else {
-                menu.add((Action) o);
-            }
-        }
-    }
-
-    private void printActionMap(ActionMap actionMap) {
-	System.out.printf("-------- Original ActionMap -----------\n");
-	Object[] allkeys = actionMap.allKeys();
-	if (allkeys == null) {
-	    System.out.printf("\t<empty>\n");
-	} else {
-	    for (Object k : allkeys) {
-		Action a = actionMap.get(k);
-		System.out.printf("\t%s %s\n", k, a);
-	    }
-	}
-	System.out.printf("%s\n", actionMap);
-    }
-
-    private void setupKeymap(Set<Action> actions) {
-	JComponent comp = term.getScreen();
-
-	ActionMap actionMap = comp.getActionMap();
-	ActionMap newActionMap = new ActionMap();
-	newActionMap.setParent(actionMap);
-
-	printActionMap(actionMap);
-
-	InputMap inputMap = comp.getInputMap();
-	InputMap newInputMap = new InputMap();
-	newInputMap.setParent(inputMap);
-
-	Set<KeyStroke> passKeystrokes = new HashSet<KeyStroke>();
-
-	for (Action a : actions) {
-	    String name = (String) a.getValue(Action.NAME);
-            KeyStroke accelerator = (KeyStroke) a.getValue(Action.ACCELERATOR_KEY);
-	    System.out.printf("Registering %s for %s\n", accelerator, name);
-	    if (accelerator == null)
-		continue;
-	    newInputMap.put(accelerator, name);
-	    newActionMap.put(name, a);
-	    passKeystrokes.add(accelerator);
-	}
-
-	comp.setActionMap(newActionMap);
-	comp.setInputMap(JComponent.WHEN_FOCUSED, newInputMap);
-
-        term.setKeyStrokeSet((HashSet) passKeystrokes);
-    }
-
-    private void postPopupMenu(Point p) {
-        JPopupMenu menu = new JPopupMenu();
-        addMenuItem(menu, newAction);
-        addMenuItem(menu, new JSeparator());
-        addMenuItem(menu, copyAction);
-        addMenuItem(menu, pasteAction);
-        addMenuItem(menu, new JSeparator());
-        addMenuItem(menu, findAction);
-        addMenuItem(menu, new JSeparator());
-        addMenuItem(menu, wrapAction);
-        addMenuItem(menu, new JSeparator());
-        addMenuItem(menu, clearAction);
-        addMenuItem(menu, new JSeparator());
-        addMenuItem(menu, optionsAction);
-        addMenuItem(menu, new JSeparator());
-        addMenuItem(menu, logSequencesAction);
-        addMenuItem(menu, dumpSequencesAction);
-        addMenuItem(menu, printStatsAction);
-
-        findAction.setEnabled(!findState.isVisible());
-
-        menu.addPopupMenuListener(new PopupMenuListener() {
-
-            public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
-            }
-
-            public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
-            }
-
-            public void popupMenuCanceled(PopupMenuEvent e) {
-            }
-        });
-        menu.show(term.getScreen(), p.x, p.y);
-    }
-
-    private final Action newAction = new NewAction();
-    private final Action copyAction = new CopyAction();
-    private final Action pasteAction = new PasteAction();
-    private final Action findAction = new FindAction();
-    private final Action wrapAction = new WrapAction();
-    private final Action logSequencesAction = new LogSequencesAction();
-    private final Action dumpSequencesAction = new DumpSequencesAction();
-    private final Action printStatsAction = new PrintStatsAction();
-    private final Action clearAction = new ClearAction();
-    private final Action optionsAction = new OptionsAction();
-
-    public void run() {
-        try {
-            run2();
-        } catch (Exception x) {
-            System.out.printf("Exception in thread\n%s\n", x);
-        }
-    }
-
-    private void run2() {
-        //
-        // Start process
-        //
-        ptyProcess = executor.start(program, term);
-        addWindowListener(new WindowAdapter() {
-
-            @Override
-            public void windowClosing(WindowEvent e) {
-                try {
-                    ptyProcess.hangup();
-                } catch (IllegalStateException x) {
-                }
-            }
-        });
-
-        // Make main window visible
-        setVisible(true);
-
-        //
-        // Wait for process to exit
-        //
-        ptyProcess.waitFor();
-
-        dispose();
-    }
-}
diff --git a/lib.terminalemulator/examples/TermDriver/build.xml b/lib.terminalemulator/examples/TermDriver/build.xml
deleted file mode 100644
index 65897eac5..000000000
--- a/lib.terminalemulator/examples/TermDriver/build.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<!-- You may freely edit this file. See commented blocks below for -->
-<!-- some examples of how to customize the build. -->
-<!-- (If you delete it and reopen the project it will be recreated.) -->
-<!-- By default, only the Clean and Build commands use this build script. -->
-<!-- Commands such as Run, Debug, and Test only use this build script if -->
-<!-- the Compile on Save feature is turned off for the project. -->
-<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
-<!-- in the project's Project Properties dialog box.-->
-<project name="TermDriver" default="default" basedir=".">
-    <description>Builds, tests, and runs the project TermDriver.</description>
-    <import file="nbproject/build-impl.xml"/>
-    <!--
-
-    There exist several targets which are by default empty and which can be
-    used for execution of your tasks. These targets are usually executed
-    before and after some main targets. They are:
-
-      -pre-init:                 called before initialization of project properties
-      -post-init:                called after initialization of project properties
-      -pre-compile:              called before javac compilation
-      -post-compile:             called after javac compilation
-      -pre-compile-single:       called before javac compilation of single file
-      -post-compile-single:      called after javac compilation of single file
-      -pre-compile-test:         called before javac compilation of JUnit tests
-      -post-compile-test:        called after javac compilation of JUnit tests
-      -pre-compile-test-single:  called before javac compilation of single JUnit test
-      -post-compile-test-single: called after javac compilation of single JUunit test
-      -pre-jar:                  called before JAR building
-      -post-jar:                 called after JAR building
-      -post-clean:               called after cleaning build products
-
-    (Targets beginning with '-' are not intended to be called on their own.)
-
-    Example of inserting an obfuscator after compilation could look like this:
-
-        <target name="-post-compile">
-            <obfuscate>
-                <fileset dir="${build.classes.dir}"/>
-            </obfuscate>
-        </target>
-
-    For list of available properties check the imported 
-    nbproject/build-impl.xml file. 
-
-
-    Another way to customize the build is by overriding existing main targets.
-    The targets of interest are: 
-
-      -init-macrodef-javac:     defines macro for javac compilation
-      -init-macrodef-junit:     defines macro for junit execution
-      -init-macrodef-debug:     defines macro for class debugging
-      -init-macrodef-java:      defines macro for class execution
-      -do-jar:                  JAR building
-      run:                      execution of project 
-      -javadoc-build:           Javadoc generation
-      test-report:              JUnit report generation
-
-    An example of overriding the target for project execution could look like this:
-
-        <target name="run" depends="TermDriver-impl.jar">
-            <exec dir="bin" executable="launcher.exe">
-                <arg file="${dist.jar}"/>
-            </exec>
-        </target>
-
-    Notice that the overridden target depends on the jar target and not only on 
-    the compile target as the regular run target does. Again, for a list of available 
-    properties which you can use, check the target you are overriding in the
-    nbproject/build-impl.xml file. 
-
-    -->
-</project>
diff --git a/lib.terminalemulator/examples/TermDriver/manifest.mf b/lib.terminalemulator/examples/TermDriver/manifest.mf
deleted file mode 100644
index 328e8e5bc..000000000
--- a/lib.terminalemulator/examples/TermDriver/manifest.mf
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-X-COMMENT: Main-Class will be added automatically by build
-
diff --git a/lib.terminalemulator/examples/TermDriver/nbproject/build-impl.xml b/lib.terminalemulator/examples/TermDriver/nbproject/build-impl.xml
deleted file mode 100644
index b1570f2b1..000000000
--- a/lib.terminalemulator/examples/TermDriver/nbproject/build-impl.xml
+++ /dev/null
@@ -1,1451 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-*** GENERATED FROM project.xml - DO NOT EDIT  ***
-***         EDIT ../build.xml INSTEAD         ***
-
-For the purpose of easier reading the script
-is divided into following sections:
-
-  - initialization
-  - compilation
-  - jar
-  - execution
-  - debugging
-  - javadoc
-  - test compilation
-  - test execution
-  - test debugging
-  - applet
-  - cleanup
-
-        -->
-<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="TermDriver-impl">
-    <fail message="Please build using Ant 1.8.0 or higher.">
-        <condition>
-            <not>
-                <antversion atleast="1.8.0"/>
-            </not>
-        </condition>
-    </fail>
-    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
-    <!-- 
-                ======================
-                INITIALIZATION SECTION 
-                ======================
-            -->
-    <target name="-pre-init">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="-pre-init" name="-init-private">
-        <property file="nbproject/private/config.properties"/>
-        <property file="nbproject/private/configs/${config}.properties"/>
-        <property file="nbproject/private/private.properties"/>
-    </target>
-    <target depends="-pre-init,-init-private" name="-init-user">
-        <property file="${user.properties.file}"/>
-        <!-- The two properties below are usually overridden -->
-        <!-- by the active platform. Just a fallback. -->
-        <property name="default.javac.source" value="1.4"/>
-        <property name="default.javac.target" value="1.4"/>
-    </target>
-    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
-        <property file="nbproject/configs/${config}.properties"/>
-        <property file="nbproject/project.properties"/>
-    </target>
-    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
-        <property name="platform.java" value="${java.home}/bin/java"/>
-        <available file="${manifest.file}" property="manifest.available"/>
-        <condition property="splashscreen.available">
-            <and>
-                <not>
-                    <equals arg1="${application.splash}" arg2="" trim="true"/>
-                </not>
-                <available file="${application.splash}"/>
-            </and>
-        </condition>
-        <condition property="main.class.available">
-            <and>
-                <isset property="main.class"/>
-                <not>
-                    <equals arg1="${main.class}" arg2="" trim="true"/>
-                </not>
-            </and>
-        </condition>
-        <condition property="profile.available">
-            <and>
-                <isset property="javac.profile"/>
-                <length length="0" string="${javac.profile}" when="greater"/>
-                <matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
-            </and>
-        </condition>
-        <condition property="do.archive">
-            <or>
-                <not>
-                    <istrue value="${jar.archive.disabled}"/>
-                </not>
-                <istrue value="${not.archive.disabled}"/>
-            </or>
-        </condition>
-        <condition property="do.mkdist">
-            <and>
-                <isset property="do.archive"/>
-                <isset property="libs.CopyLibs.classpath"/>
-                <not>
-                    <istrue value="${mkdist.disabled}"/>
-                </not>
-            </and>
-        </condition>
-        <condition property="do.archive+manifest.available">
-            <and>
-                <isset property="manifest.available"/>
-                <istrue value="${do.archive}"/>
-            </and>
-        </condition>
-        <condition property="do.archive+main.class.available">
-            <and>
-                <isset property="main.class.available"/>
-                <istrue value="${do.archive}"/>
-            </and>
-        </condition>
-        <condition property="do.archive+splashscreen.available">
-            <and>
-                <isset property="splashscreen.available"/>
-                <istrue value="${do.archive}"/>
-            </and>
-        </condition>
-        <condition property="do.archive+profile.available">
-            <and>
-                <isset property="profile.available"/>
-                <istrue value="${do.archive}"/>
-            </and>
-        </condition>
-        <condition property="have.tests">
-            <or>
-                <available file="${test.src.dir}"/>
-            </or>
-        </condition>
-        <condition property="have.sources">
-            <or>
-                <available file="${src.dir}"/>
-            </or>
-        </condition>
-        <condition property="netbeans.home+have.tests">
-            <and>
-                <isset property="netbeans.home"/>
-                <isset property="have.tests"/>
-            </and>
-        </condition>
-        <condition property="no.javadoc.preview">
-            <and>
-                <isset property="javadoc.preview"/>
-                <isfalse value="${javadoc.preview}"/>
-            </and>
-        </condition>
-        <property name="run.jvmargs" value=""/>
-        <property name="run.jvmargs.ide" value=""/>
-        <property name="javac.compilerargs" value=""/>
-        <property name="work.dir" value="${basedir}"/>
-        <condition property="no.deps">
-            <and>
-                <istrue value="${no.dependencies}"/>
-            </and>
-        </condition>
-        <property name="javac.debug" value="true"/>
-        <property name="javadoc.preview" value="true"/>
-        <property name="application.args" value=""/>
-        <property name="source.encoding" value="${file.encoding}"/>
-        <property name="runtime.encoding" value="${source.encoding}"/>
-        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
-            <and>
-                <isset property="javadoc.encoding"/>
-                <not>
-                    <equals arg1="${javadoc.encoding}" arg2=""/>
-                </not>
-            </and>
-        </condition>
-        <property name="javadoc.encoding.used" value="${source.encoding}"/>
-        <property name="includes" value="**"/>
-        <property name="excludes" value=""/>
-        <property name="do.depend" value="false"/>
-        <condition property="do.depend.true">
-            <istrue value="${do.depend}"/>
-        </condition>
-        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
-        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
-            <and>
-                <isset property="endorsed.classpath"/>
-                <not>
-                    <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
-                </not>
-            </and>
-        </condition>
-        <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
-            <isset property="profile.available"/>
-        </condition>
-        <condition else="false" property="jdkBug6558476">
-            <and>
-                <matches pattern="1\.[56]" string="${java.specification.version}"/>
-                <not>
-                    <os family="unix"/>
-                </not>
-            </and>
-        </condition>
-        <condition else="false" property="javac.fork">
-            <or>
-                <istrue value="${jdkBug6558476}"/>
-                <istrue value="${javac.external.vm}"/>
-            </or>
-        </condition>
-        <property name="jar.index" value="false"/>
-        <property name="jar.index.metainf" value="${jar.index}"/>
-        <property name="copylibs.rebase" value="true"/>
-        <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
-        <condition property="junit.available">
-            <or>
-                <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
-                <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
-            </or>
-        </condition>
-        <condition property="testng.available">
-            <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
-        </condition>
-        <condition property="junit+testng.available">
-            <and>
-                <istrue value="${junit.available}"/>
-                <istrue value="${testng.available}"/>
-            </and>
-        </condition>
-        <condition else="testng" property="testng.mode" value="mixed">
-            <istrue value="${junit+testng.available}"/>
-        </condition>
-        <condition else="" property="testng.debug.mode" value="-mixed">
-            <istrue value="${junit+testng.available}"/>
-        </condition>
-        <property name="java.failonerror" value="true"/>
-    </target>
-    <target name="-post-init">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
-        <fail unless="src.dir">Must set src.dir</fail>
-        <fail unless="test.src.dir">Must set test.src.dir</fail>
-        <fail unless="build.dir">Must set build.dir</fail>
-        <fail unless="dist.dir">Must set dist.dir</fail>
-        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
-        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
-        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
-        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
-        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
-        <fail unless="dist.jar">Must set dist.jar</fail>
-    </target>
-    <target name="-init-macrodef-property">
-        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
-            <attribute name="name"/>
-            <attribute name="value"/>
-            <sequential>
-                <property name="@{name}" value="${@{value}}"/>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
-        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${src.dir}" name="srcdir"/>
-            <attribute default="${build.classes.dir}" name="destdir"/>
-            <attribute default="${javac.classpath}" name="classpath"/>
-            <attribute default="${javac.processorpath}" name="processorpath"/>
-            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="${javac.debug}" name="debug"/>
-            <attribute default="${empty.dir}" name="sourcepath"/>
-            <attribute default="${empty.dir}" name="gensrcdir"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property location="${build.dir}/empty" name="empty.dir"/>
-                <mkdir dir="${empty.dir}"/>
-                <mkdir dir="@{apgeneratedsrcdir}"/>
-                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
-                    <src>
-                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
-                            <include name="*"/>
-                        </dirset>
-                    </src>
-                    <classpath>
-                        <path path="@{classpath}"/>
-                    </classpath>
-                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
-                    <compilerarg line="${javac.profile.cmd.line.arg}"/>
-                    <compilerarg line="${javac.compilerargs}"/>
-                    <compilerarg value="-processorpath"/>
-                    <compilerarg path="@{processorpath}:${empty.dir}"/>
-                    <compilerarg line="${ap.processors.internal}"/>
-                    <compilerarg line="${annotation.processing.processor.options}"/>
-                    <compilerarg value="-s"/>
-                    <compilerarg path="@{apgeneratedsrcdir}"/>
-                    <compilerarg line="${ap.proc.none.internal}"/>
-                    <customize/>
-                </javac>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
-        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${src.dir}" name="srcdir"/>
-            <attribute default="${build.classes.dir}" name="destdir"/>
-            <attribute default="${javac.classpath}" name="classpath"/>
-            <attribute default="${javac.processorpath}" name="processorpath"/>
-            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="${javac.debug}" name="debug"/>
-            <attribute default="${empty.dir}" name="sourcepath"/>
-            <attribute default="${empty.dir}" name="gensrcdir"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property location="${build.dir}/empty" name="empty.dir"/>
-                <mkdir dir="${empty.dir}"/>
-                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
-                    <src>
-                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
-                            <include name="*"/>
-                        </dirset>
-                    </src>
-                    <classpath>
-                        <path path="@{classpath}"/>
-                    </classpath>
-                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
-                    <compilerarg line="${javac.profile.cmd.line.arg}"/>
-                    <compilerarg line="${javac.compilerargs}"/>
-                    <customize/>
-                </javac>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
-        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${src.dir}" name="srcdir"/>
-            <attribute default="${build.classes.dir}" name="destdir"/>
-            <attribute default="${javac.classpath}" name="classpath"/>
-            <sequential>
-                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
-                    <classpath>
-                        <path path="@{classpath}"/>
-                    </classpath>
-                </depend>
-            </sequential>
-        </macrodef>
-        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${build.classes.dir}" name="destdir"/>
-            <sequential>
-                <fail unless="javac.includes">Must set javac.includes</fail>
-                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
-                    <path>
-                        <filelist dir="@{destdir}" files="${javac.includes}"/>
-                    </path>
-                    <globmapper from="*.java" to="*.class"/>
-                </pathconvert>
-                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
-                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
-                <delete>
-                    <files includesfile="${javac.includesfile.binary}"/>
-                </delete>
-                <delete>
-                    <fileset file="${javac.includesfile.binary}"/>
-                </delete>
-            </sequential>
-        </macrodef>
-    </target>
-    <target if="${junit.available}" name="-init-macrodef-junit-init">
-        <condition else="false" property="nb.junit.batch" value="true">
-            <and>
-                <istrue value="${junit.available}"/>
-                <not>
-                    <isset property="test.method"/>
-                </not>
-            </and>
-        </condition>
-        <condition else="false" property="nb.junit.single" value="true">
-            <and>
-                <istrue value="${junit.available}"/>
-                <isset property="test.method"/>
-            </and>
-        </condition>
-    </target>
-    <target name="-init-test-properties">
-        <property name="test.binaryincludes" value="&lt;nothing&gt;"/>
-        <property name="test.binarytestincludes" value=""/>
-        <property name="test.binaryexcludes" value=""/>
-    </target>
-    <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
-        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property name="junit.forkmode" value="perTest"/>
-                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
-                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
-                    <syspropertyset>
-                        <propertyref prefix="test-sys-prop."/>
-                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <formatter type="brief" usefile="false"/>
-                    <formatter type="xml"/>
-                    <jvmarg value="-ea"/>
-                    <customize/>
-                </junit>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
-        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property name="junit.forkmode" value="perTest"/>
-                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
-                    <batchtest todir="${build.test.results.dir}">
-                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
-                            <filename name="@{testincludes}"/>
-                        </fileset>
-                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
-                            <filename name="${test.binarytestincludes}"/>
-                        </fileset>
-                    </batchtest>
-                    <syspropertyset>
-                        <propertyref prefix="test-sys-prop."/>
-                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <formatter type="brief" usefile="false"/>
-                    <formatter type="xml"/>
-                    <jvmarg value="-ea"/>
-                    <customize/>
-                </junit>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
-    <target if="${testng.available}" name="-init-macrodef-testng">
-        <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
-                    <isset property="test.method"/>
-                </condition>
-                <union id="test.set">
-                    <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
-                        <filename name="@{testincludes}"/>
-                    </fileset>
-                </union>
-                <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
-                <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="TermDriver" testname="TestNG tests" workingDir="${work.dir}">
-                    <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
-                    <propertyset>
-                        <propertyref prefix="test-sys-prop."/>
-                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
-                    </propertyset>
-                    <customize/>
-                </testng>
-            </sequential>
-        </macrodef>
-    </target>
-    <target name="-init-macrodef-test-impl">
-        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element implicit="true" name="customize" optional="true"/>
-            <sequential>
-                <echo>No tests executed.</echo>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
-        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element implicit="true" name="customize" optional="true"/>
-            <sequential>
-                <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
-                    <customize/>
-                </j2seproject3:junit>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
-        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element implicit="true" name="customize" optional="true"/>
-            <sequential>
-                <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
-                    <customize/>
-                </j2seproject3:testng>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
-        <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <sequential>
-                <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
-                    <customize>
-                        <classpath>
-                            <path path="${run.test.classpath}"/>
-                        </classpath>
-                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
-                        <jvmarg line="${run.jvmargs}"/>
-                        <jvmarg line="${run.jvmargs.ide}"/>
-                    </customize>
-                </j2seproject3:test-impl>
-            </sequential>
-        </macrodef>
-    </target>
-    <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
-        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property name="junit.forkmode" value="perTest"/>
-                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
-                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
-                    <syspropertyset>
-                        <propertyref prefix="test-sys-prop."/>
-                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <formatter type="brief" usefile="false"/>
-                    <formatter type="xml"/>
-                    <jvmarg value="-ea"/>
-                    <jvmarg line="${debug-args-line}"/>
-                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
-                    <customize/>
-                </junit>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
-        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property name="junit.forkmode" value="perTest"/>
-                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
-                    <batchtest todir="${build.test.results.dir}">
-                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
-                            <filename name="@{testincludes}"/>
-                        </fileset>
-                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
-                            <filename name="${test.binarytestincludes}"/>
-                        </fileset>
-                    </batchtest>
-                    <syspropertyset>
-                        <propertyref prefix="test-sys-prop."/>
-                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <formatter type="brief" usefile="false"/>
-                    <formatter type="xml"/>
-                    <jvmarg value="-ea"/>
-                    <jvmarg line="${debug-args-line}"/>
-                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
-                    <customize/>
-                </junit>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
-        <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element implicit="true" name="customize" optional="true"/>
-            <sequential>
-                <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
-                    <customize/>
-                </j2seproject3:junit-debug>
-            </sequential>
-        </macrodef>
-    </target>
-    <target if="${testng.available}" name="-init-macrodef-testng-debug">
-        <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${main.class}" name="testClass"/>
-            <attribute default="" name="testMethod"/>
-            <element name="customize2" optional="true"/>
-            <sequential>
-                <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
-                    <isset property="test.method"/>
-                </condition>
-                <condition else="-suitename TermDriver -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
-                    <matches pattern=".*\.xml" string="@{testClass}"/>
-                </condition>
-                <delete dir="${build.test.results.dir}" quiet="true"/>
-                <mkdir dir="${build.test.results.dir}"/>
-                <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
-                    <customize>
-                        <customize2/>
-                        <jvmarg value="-ea"/>
-                        <arg line="${testng.debug.mode}"/>
-                        <arg line="-d ${build.test.results.dir}"/>
-                        <arg line="-listener org.testng.reporters.VerboseReporter"/>
-                        <arg line="${testng.cmd.args}"/>
-                    </customize>
-                </j2seproject3:debug>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
-        <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${main.class}" name="testClass"/>
-            <attribute default="" name="testMethod"/>
-            <element implicit="true" name="customize2" optional="true"/>
-            <sequential>
-                <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
-                    <customize2/>
-                </j2seproject3:testng-debug>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
-        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <attribute default="${main.class}" name="testClass"/>
-            <attribute default="" name="testMethod"/>
-            <sequential>
-                <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
-                    <customize>
-                        <classpath>
-                            <path path="${run.test.classpath}"/>
-                        </classpath>
-                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
-                        <jvmarg line="${run.jvmargs}"/>
-                        <jvmarg line="${run.jvmargs.ide}"/>
-                    </customize>
-                </j2seproject3:test-debug-impl>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
-        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <attribute default="${main.class}" name="testClass"/>
-            <attribute default="" name="testMethod"/>
-            <sequential>
-                <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
-                    <customize2>
-                        <syspropertyset>
-                            <propertyref prefix="test-sys-prop."/>
-                            <mapper from="test-sys-prop.*" to="*" type="glob"/>
-                        </syspropertyset>
-                    </customize2>
-                </j2seproject3:testng-debug-impl>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
-    <!--
-                pre NB7.2 profiling section; consider it deprecated
-            -->
-    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
-    <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
-        <macrodef name="resolve">
-            <attribute name="name"/>
-            <attribute name="value"/>
-            <sequential>
-                <property name="@{name}" value="${env.@{value}}"/>
-            </sequential>
-        </macrodef>
-        <macrodef name="profile">
-            <attribute default="${main.class}" name="classname"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property environment="env"/>
-                <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
-                <java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
-                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
-                    <jvmarg value="${profiler.info.jvmargs.agent}"/>
-                    <jvmarg line="${profiler.info.jvmargs}"/>
-                    <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
-                    <arg line="${application.args}"/>
-                    <classpath>
-                        <path path="${run.classpath}"/>
-                    </classpath>
-                    <syspropertyset>
-                        <propertyref prefix="run-sys-prop."/>
-                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <customize/>
-                </java>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
-        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
-        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
-    </target>
-    <!--
-                end of pre NB7.2 profiling section
-            -->
-    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
-        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
-            <attribute default="${main.class}" name="name"/>
-            <attribute default="${debug.classpath}" name="classpath"/>
-            <attribute default="" name="stopclassname"/>
-            <sequential>
-                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
-                    <classpath>
-                        <path path="@{classpath}"/>
-                    </classpath>
-                </nbjpdastart>
-            </sequential>
-        </macrodef>
-        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
-            <attribute default="${build.classes.dir}" name="dir"/>
-            <sequential>
-                <nbjpdareload>
-                    <fileset dir="@{dir}" includes="${fix.classes}">
-                        <include name="${fix.includes}*.class"/>
-                    </fileset>
-                </nbjpdareload>
-            </sequential>
-        </macrodef>
-    </target>
-    <target name="-init-debug-args">
-        <property name="version-output" value="java version &quot;${ant.java.version}"/>
-        <condition property="have-jdk-older-than-1.4">
-            <or>
-                <contains string="${version-output}" substring="java version &quot;1.0"/>
-                <contains string="${version-output}" substring="java version &quot;1.1"/>
-                <contains string="${version-output}" substring="java version &quot;1.2"/>
-                <contains string="${version-output}" substring="java version &quot;1.3"/>
-            </or>
-        </condition>
-        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
-            <istrue value="${have-jdk-older-than-1.4}"/>
-        </condition>
-        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
-            <os family="windows"/>
-        </condition>
-        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
-            <isset property="debug.transport"/>
-        </condition>
-    </target>
-    <target depends="-init-debug-args" name="-init-macrodef-debug">
-        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${main.class}" name="classname"/>
-            <attribute default="${debug.classpath}" name="classpath"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
-                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
-                    <jvmarg line="${debug-args-line}"/>
-                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
-                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
-                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
-                    <jvmarg line="${run.jvmargs}"/>
-                    <jvmarg line="${run.jvmargs.ide}"/>
-                    <classpath>
-                        <path path="@{classpath}"/>
-                    </classpath>
-                    <syspropertyset>
-                        <propertyref prefix="run-sys-prop."/>
-                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <customize/>
-                </java>
-            </sequential>
-        </macrodef>
-    </target>
-    <target name="-init-macrodef-java">
-        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
-            <attribute default="${main.class}" name="classname"/>
-            <attribute default="${run.classpath}" name="classpath"/>
-            <attribute default="jvm" name="jvm"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
-                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
-                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
-                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
-                    <jvmarg line="${run.jvmargs}"/>
-                    <jvmarg line="${run.jvmargs.ide}"/>
-                    <classpath>
-                        <path path="@{classpath}"/>
-                    </classpath>
-                    <syspropertyset>
-                        <propertyref prefix="run-sys-prop."/>
-                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <customize/>
-                </java>
-            </sequential>
-        </macrodef>
-    </target>
-    <target name="-init-macrodef-copylibs">
-        <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${manifest.file}" name="manifest"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
-                <pathconvert property="run.classpath.without.build.classes.dir">
-                    <path path="${run.classpath}"/>
-                    <map from="${build.classes.dir.resolved}" to=""/>
-                </pathconvert>
-                <pathconvert pathsep=" " property="jar.classpath">
-                    <path path="${run.classpath.without.build.classes.dir}"/>
-                    <chainedmapper>
-                        <flattenmapper/>
-                        <filtermapper>
-                            <replacestring from=" " to="%20"/>
-                        </filtermapper>
-                        <globmapper from="*" to="lib/*"/>
-                    </chainedmapper>
-                </pathconvert>
-                <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
-                <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
-                    <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
-                    <manifest>
-                        <attribute name="Class-Path" value="${jar.classpath}"/>
-                        <customize/>
-                    </manifest>
-                </copylibs>
-            </sequential>
-        </macrodef>
-    </target>
-    <target name="-init-presetdef-jar">
-        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
-            <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
-                <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
-            </jar>
-        </presetdef>
-    </target>
-    <target name="-init-ap-cmdline-properties">
-        <property name="annotation.processing.enabled" value="true"/>
-        <property name="annotation.processing.processors.list" value=""/>
-        <property name="annotation.processing.processor.options" value=""/>
-        <property name="annotation.processing.run.all.processors" value="true"/>
-        <property name="javac.processorpath" value="${javac.classpath}"/>
-        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
-        <condition property="ap.supported.internal" value="true">
-            <not>
-                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
-            </not>
-        </condition>
-    </target>
-    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
-        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
-            <isfalse value="${annotation.processing.run.all.processors}"/>
-        </condition>
-        <condition else="" property="ap.proc.none.internal" value="-proc:none">
-            <isfalse value="${annotation.processing.enabled}"/>
-        </condition>
-    </target>
-    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
-        <property name="ap.cmd.line.internal" value=""/>
-    </target>
-    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
-    <!--
-                ===================
-                COMPILATION SECTION
-                ===================
-            -->
-    <target name="-deps-jar-init" unless="built-jar.properties">
-        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
-        <delete file="${built-jar.properties}" quiet="true"/>
-    </target>
-    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
-        <echo level="warn" message="Cycle detected: TermDriver was already built"/>
-    </target>
-    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
-        <mkdir dir="${build.dir}"/>
-        <touch file="${built-jar.properties}" verbose="false"/>
-        <property file="${built-jar.properties}" prefix="already.built.jar."/>
-        <antcall target="-warn-already-built-jar"/>
-        <propertyfile file="${built-jar.properties}">
-            <entry key="${basedir}" value=""/>
-        </propertyfile>
-        <antcall target="-maybe-call-dep">
-            <param name="call.built.properties" value="${built-jar.properties}"/>
-            <param location="${project.org_netbeans_lib_richexecution}" name="call.subproject"/>
-            <param location="${project.org_netbeans_lib_richexecution}/build.xml" name="call.script"/>
-            <param name="call.target" value="netbeans"/>
-            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
-            <param name="transfer.not.archive.disabled" value="true"/>
-        </antcall>
-        <antcall target="-maybe-call-dep">
-            <param name="call.built.properties" value="${built-jar.properties}"/>
-            <param location="${project.org_netbeans_lib_terminalemulator}" name="call.subproject"/>
-            <param location="${project.org_netbeans_lib_terminalemulator}/build.xml" name="call.script"/>
-            <param name="call.target" value="netbeans"/>
-            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
-            <param name="transfer.not.archive.disabled" value="true"/>
-        </antcall>
-    </target>
-    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
-    <target depends="init" name="-check-automatic-build">
-        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
-    </target>
-    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
-        <antcall target="clean"/>
-    </target>
-    <target depends="init,deps-jar" name="-pre-pre-compile">
-        <mkdir dir="${build.classes.dir}"/>
-    </target>
-    <target name="-pre-compile">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target if="do.depend.true" name="-compile-depend">
-        <pathconvert property="build.generated.subdirs">
-            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
-                <include name="*"/>
-            </dirset>
-        </pathconvert>
-        <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
-    </target>
-    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
-        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
-        <copy todir="${build.classes.dir}">
-            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
-        </copy>
-    </target>
-    <target if="has.persistence.xml" name="-copy-persistence-xml">
-        <mkdir dir="${build.classes.dir}/META-INF"/>
-        <copy todir="${build.classes.dir}/META-INF">
-            <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
-        </copy>
-    </target>
-    <target name="-post-compile">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
-    <target name="-pre-compile-single">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
-        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
-        <j2seproject3:force-recompile/>
-        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
-    </target>
-    <target name="-post-compile-single">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
-    <!--
-                ====================
-                JAR BUILDING SECTION
-                ====================
-            -->
-    <target depends="init" name="-pre-pre-jar">
-        <dirname file="${dist.jar}" property="dist.jar.dir"/>
-        <mkdir dir="${dist.jar.dir}"/>
-    </target>
-    <target name="-pre-jar">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
-        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
-        <touch file="${tmp.manifest.file}" verbose="false"/>
-    </target>
-    <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
-        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
-        <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
-    </target>
-    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
-        <manifest file="${tmp.manifest.file}" mode="update">
-            <attribute name="Main-Class" value="${main.class}"/>
-        </manifest>
-    </target>
-    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
-        <manifest file="${tmp.manifest.file}" mode="update">
-            <attribute name="Profile" value="${javac.profile}"/>
-        </manifest>
-    </target>
-    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
-        <basename file="${application.splash}" property="splashscreen.basename"/>
-        <mkdir dir="${build.classes.dir}/META-INF"/>
-        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
-        <manifest file="${tmp.manifest.file}" mode="update">
-            <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
-        </manifest>
-    </target>
-    <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
-        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
-        <echo level="info">To run this application from the command line without Ant, try:</echo>
-        <property location="${dist.jar}" name="dist.jar.resolved"/>
-        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
-    </target>
-    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
-        <j2seproject1:jar manifest="${tmp.manifest.file}"/>
-        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
-        <property location="${dist.jar}" name="dist.jar.resolved"/>
-        <pathconvert property="run.classpath.with.dist.jar">
-            <path path="${run.classpath}"/>
-            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
-        </pathconvert>
-        <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
-            <isset property="main.class.available"/>
-        </condition>
-        <condition else="debug" property="jar.usage.level" value="info">
-            <isset property="main.class.available"/>
-        </condition>
-        <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
-    </target>
-    <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
-        <delete>
-            <fileset file="${tmp.manifest.file}"/>
-        </delete>
-    </target>
-    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
-    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
-    <target name="-post-jar">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
-    <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
-    <!--
-                =================
-                EXECUTION SECTION
-                =================
-            -->
-    <target depends="init,compile" description="Run a main class." name="run">
-        <j2seproject1:java>
-            <customize>
-                <arg line="${application.args}"/>
-            </customize>
-        </j2seproject1:java>
-    </target>
-    <target name="-do-not-recompile">
-        <property name="javac.includes.binary" value=""/>
-    </target>
-    <target depends="init,compile-single" name="run-single">
-        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
-        <j2seproject1:java classname="${run.class}"/>
-    </target>
-    <target depends="init,compile-test-single" name="run-test-with-main">
-        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
-        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
-    </target>
-    <!--
-                =================
-                DEBUGGING SECTION
-                =================
-            -->
-    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
-        <j2seproject1:nbjpdastart name="${debug.class}"/>
-    </target>
-    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
-        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
-    </target>
-    <target depends="init,compile" name="-debug-start-debuggee">
-        <j2seproject3:debug>
-            <customize>
-                <arg line="${application.args}"/>
-            </customize>
-        </j2seproject3:debug>
-    </target>
-    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
-    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
-        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
-    </target>
-    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
-    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
-        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
-        <j2seproject3:debug classname="${debug.class}"/>
-    </target>
-    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
-    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
-        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
-        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
-    </target>
-    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
-    <target depends="init" name="-pre-debug-fix">
-        <fail unless="fix.includes">Must set fix.includes</fail>
-        <property name="javac.includes" value="${fix.includes}.java"/>
-    </target>
-    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
-        <j2seproject1:nbjpdareload/>
-    </target>
-    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
-    <!--
-                =================
-                PROFILING SECTION
-                =================
-            -->
-    <!--
-                pre NB7.2 profiler integration
-            -->
-    <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
-        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
-        <nbprofiledirect>
-            <classpath>
-                <path path="${run.classpath}"/>
-            </classpath>
-        </nbprofiledirect>
-        <profile/>
-    </target>
-    <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
-        <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
-        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
-        <nbprofiledirect>
-            <classpath>
-                <path path="${run.classpath}"/>
-            </classpath>
-        </nbprofiledirect>
-        <profile classname="${profile.class}"/>
-    </target>
-    <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
-        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
-        <nbprofiledirect>
-            <classpath>
-                <path path="${run.classpath}"/>
-            </classpath>
-        </nbprofiledirect>
-        <profile classname="sun.applet.AppletViewer">
-            <customize>
-                <arg value="${applet.url}"/>
-            </customize>
-        </profile>
-    </target>
-    <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
-        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
-        <nbprofiledirect>
-            <classpath>
-                <path path="${run.test.classpath}"/>
-            </classpath>
-        </nbprofiledirect>
-        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
-            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
-            <jvmarg value="${profiler.info.jvmargs.agent}"/>
-            <jvmarg line="${profiler.info.jvmargs}"/>
-            <test name="${profile.class}"/>
-            <classpath>
-                <path path="${run.test.classpath}"/>
-            </classpath>
-            <syspropertyset>
-                <propertyref prefix="test-sys-prop."/>
-                <mapper from="test-sys-prop.*" to="*" type="glob"/>
-            </syspropertyset>
-            <formatter type="brief" usefile="false"/>
-            <formatter type="xml"/>
-        </junit>
-    </target>
-    <!--
-                end of pre NB72 profiling section
-            -->
-    <target if="netbeans.home" name="-profile-check">
-        <condition property="profiler.configured">
-            <or>
-                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
-                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
-            </or>
-        </condition>
-    </target>
-    <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
-        <startprofiler/>
-        <antcall target="run"/>
-    </target>
-    <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent">
-        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
-        <startprofiler/>
-        <antcall target="run-single"/>
-    </target>
-    <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
-    <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
-        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
-        <startprofiler/>
-        <antcall target="test-single"/>
-    </target>
-    <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
-        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
-        <startprofiler/>
-        <antcall target="run-test-with-main"/>
-    </target>
-    <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
-        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
-        <startprofiler/>
-        <antcall target="run-applet"/>
-    </target>
-    <!--
-                ===============
-                JAVADOC SECTION
-                ===============
-            -->
-    <target depends="init" if="have.sources" name="-javadoc-build">
-        <mkdir dir="${dist.javadoc.dir}"/>
-        <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
-            <and>
-                <isset property="endorsed.classpath.cmd.line.arg"/>
-                <not>
-                    <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
-                </not>
-            </and>
-        </condition>
-        <condition else="" property="bug5101868workaround" value="*.java">
-            <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
-        </condition>
-        <javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
-            <classpath>
-                <path path="${javac.classpath}"/>
-            </classpath>
-            <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
-                <filename name="**/*.java"/>
-            </fileset>
-            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
-                <include name="**/*.java"/>
-                <exclude name="*.java"/>
-            </fileset>
-            <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
-        </javadoc>
-        <copy todir="${dist.javadoc.dir}">
-            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
-                <filename name="**/doc-files/**"/>
-            </fileset>
-            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
-                <include name="**/doc-files/**"/>
-            </fileset>
-        </copy>
-    </target>
-    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
-        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
-    </target>
-    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
-    <!--
-                =========================
-                TEST COMPILATION SECTION
-                =========================
-            -->
-    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
-        <mkdir dir="${build.test.classes.dir}"/>
-    </target>
-    <target name="-pre-compile-test">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target if="do.depend.true" name="-compile-test-depend">
-        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
-    </target>
-    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
-        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
-        <copy todir="${build.test.classes.dir}">
-            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
-        </copy>
-    </target>
-    <target name="-post-compile-test">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
-    <target name="-pre-compile-test-single">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
-        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
-        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
-        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
-        <copy todir="${build.test.classes.dir}">
-            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
-        </copy>
-    </target>
-    <target name="-post-compile-test-single">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
-    <!--
-                =======================
-                TEST EXECUTION SECTION
-                =======================
-            -->
-    <target depends="init" if="have.tests" name="-pre-test-run">
-        <mkdir dir="${build.test.results.dir}"/>
-    </target>
-    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
-        <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
-    </target>
-    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
-        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
-    </target>
-    <target depends="init" if="have.tests" name="test-report"/>
-    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
-    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
-    <target depends="init" if="have.tests" name="-pre-test-run-single">
-        <mkdir dir="${build.test.results.dir}"/>
-    </target>
-    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
-        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
-        <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
-    </target>
-    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
-        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
-    </target>
-    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
-    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
-        <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
-        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
-        <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
-    </target>
-    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
-        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
-    </target>
-    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
-    <!--
-                =======================
-                TEST DEBUGGING SECTION
-                =======================
-            -->
-    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
-        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
-        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
-    </target>
-    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
-        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
-        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
-        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
-    </target>
-    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
-        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
-    </target>
-    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
-    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
-    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
-        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
-    </target>
-    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
-    <!--
-                =========================
-                APPLET EXECUTION SECTION
-                =========================
-            -->
-    <target depends="init,compile-single" name="run-applet">
-        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
-        <j2seproject1:java classname="sun.applet.AppletViewer">
-            <customize>
-                <arg value="${applet.url}"/>
-            </customize>
-        </j2seproject1:java>
-    </target>
-    <!--
-                =========================
-                APPLET DEBUGGING  SECTION
-                =========================
-            -->
-    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
-        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
-        <j2seproject3:debug classname="sun.applet.AppletViewer">
-            <customize>
-                <arg value="${applet.url}"/>
-            </customize>
-        </j2seproject3:debug>
-    </target>
-    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
-    <!--
-                ===============
-                CLEANUP SECTION
-                ===============
-            -->
-    <target name="-deps-clean-init" unless="built-clean.properties">
-        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
-        <delete file="${built-clean.properties}" quiet="true"/>
-    </target>
-    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
-        <echo level="warn" message="Cycle detected: TermDriver was already built"/>
-    </target>
-    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
-        <mkdir dir="${build.dir}"/>
-        <touch file="${built-clean.properties}" verbose="false"/>
-        <property file="${built-clean.properties}" prefix="already.built.clean."/>
-        <antcall target="-warn-already-built-clean"/>
-        <propertyfile file="${built-clean.properties}">
-            <entry key="${basedir}" value=""/>
-        </propertyfile>
-        <antcall target="-maybe-call-dep">
-            <param name="call.built.properties" value="${built-clean.properties}"/>
-            <param location="${project.org_netbeans_lib_richexecution}" name="call.subproject"/>
-            <param location="${project.org_netbeans_lib_richexecution}/build.xml" name="call.script"/>
-            <param name="call.target" value="clean"/>
-            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
-            <param name="transfer.not.archive.disabled" value="true"/>
-        </antcall>
-        <antcall target="-maybe-call-dep">
-            <param name="call.built.properties" value="${built-clean.properties}"/>
-            <param location="${project.org_netbeans_lib_terminalemulator}" name="call.subproject"/>
-            <param location="${project.org_netbeans_lib_terminalemulator}/build.xml" name="call.script"/>
-            <param name="call.target" value="clean"/>
-            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
-            <param name="transfer.not.archive.disabled" value="true"/>
-        </antcall>
-    </target>
-    <target depends="init" name="-do-clean">
-        <delete dir="${build.dir}"/>
-        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
-    </target>
-    <target name="-post-clean">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
-    <target name="-check-call-dep">
-        <property file="${call.built.properties}" prefix="already.built."/>
-        <condition property="should.call.dep">
-            <and>
-                <not>
-                    <isset property="already.built.${call.subproject}"/>
-                </not>
-                <available file="${call.script}"/>
-            </and>
-        </condition>
-    </target>
-    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
-        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
-            <propertyset>
-                <propertyref prefix="transfer."/>
-                <mapper from="transfer.*" to="*" type="glob"/>
-            </propertyset>
-        </ant>
-    </target>
-</project>
diff --git a/lib.terminalemulator/examples/TermDriver/nbproject/genfiles.properties b/lib.terminalemulator/examples/TermDriver/nbproject/genfiles.properties
deleted file mode 100644
index 9bde5e929..000000000
--- a/lib.terminalemulator/examples/TermDriver/nbproject/genfiles.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-build.xml.data.CRC32=c98ded75
-build.xml.script.CRC32=8597ffbf
-build.xml.stylesheet.CRC32=8064a381@1.75.2.48
-# 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=c98ded75
-nbproject/build-impl.xml.script.CRC32=cf084a43
-nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48
diff --git a/lib.terminalemulator/examples/TermDriver/nbproject/project.properties b/lib.terminalemulator/examples/TermDriver/nbproject/project.properties
deleted file mode 100644
index 65abe2cb3..000000000
--- a/lib.terminalemulator/examples/TermDriver/nbproject/project.properties
+++ /dev/null
@@ -1,96 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-annotation.processing.enabled=true
-annotation.processing.enabled.in.editor=false
-annotation.processing.processors.list=
-annotation.processing.run.all.processors=true
-application.title=TermDriver
-application.vendor=ivan
-build.classes.dir=${build.dir}/classes
-build.classes.excludes=**/*.java,**/*.form
-# This directory is removed when the project is cleaned:
-build.dir=build
-build.generated.dir=${build.dir}/generated
-build.generated.sources.dir=${build.dir}/generated-sources
-# 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
-# Uncomment to specify the preferred debugger connection transport:
-#debug.transport=dt_socket
-debug.classpath=\
-    ${run.classpath}
-debug.test.classpath=\
-    ${run.test.classpath}
-# This directory is removed when the project is cleaned:
-dist.dir=dist
-dist.jar=${dist.dir}/TermDriver.jar
-dist.javadoc.dir=${dist.dir}/javadoc
-endorsed.classpath=
-excludes=
-file.reference.jna-4.1.0.jar=../../../nbbuild/netbeans/platform/modules/ext/jna-4.1.0.jar
-includes=**
-jar.compress=false
-javac.classpath=\
-    ${reference.org_netbeans_lib_richexecution.module}:\
-    ${reference.org_netbeans_lib_terminalemulator.module}:\
-    ${file.reference.jna-4.1.0.jar}
-# Space-separated list of extra javac options
-javac.compilerargs=
-javac.deprecation=false
-javac.processorpath=\
-    ${javac.classpath}
-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=termdriver.Main
-manifest.file=manifest.mf
-meta.inf.dir=${src.dir}/META-INF
-mkdist.disabled=false
-platform.active=default_platform
-project.org_netbeans_lib_richexecution=../lib.richexecution
-project.org_netbeans_lib_terminalemulator=../..
-reference.org_netbeans_lib_richexecution.module=${project.org_netbeans_lib_richexecution}/../TermSuite/build/cluster/modules/org-netbeans-lib-richexecution.jar
-reference.org_netbeans_lib_terminalemulator.module=${project.org_netbeans_lib_terminalemulator}/../nbbuild/netbeans/ide/modules/org-netbeans-lib-terminalemulator.jar
-run.classpath=\
-    ${javac.classpath}:\
-    ${build.classes.dir}
-# Space-separated list of JVM arguments used when running the project
-# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
-# or test-sys-prop.name=value to set system properties for unit tests):
-run.jvmargs=
-run.test.classpath=\
-    ${javac.test.classpath}:\
-    ${build.test.classes.dir}
-source.encoding=UTF-8
-src.dir=src
-test.src.dir=test
diff --git a/lib.terminalemulator/examples/TermDriver/nbproject/project.xml b/lib.terminalemulator/examples/TermDriver/nbproject/project.xml
deleted file mode 100644
index ee230db5d..000000000
--- a/lib.terminalemulator/examples/TermDriver/nbproject/project.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<project xmlns="http://www.netbeans.org/ns/project/1">
-    <type>org.netbeans.modules.java.j2seproject</type>
-    <configuration>
-        <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
-            <name>TermDriver</name>
-            <minimum-ant-version>1.6.5</minimum-ant-version>
-            <source-roots>
-                <root id="src.dir"/>
-            </source-roots>
-            <test-roots>
-                <root id="test.src.dir"/>
-            </test-roots>
-        </data>
-        <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
-            <reference>
-                <foreign-project>org_netbeans_lib_richexecution</foreign-project>
-                <artifact-type>jar</artifact-type>
-                <script>build.xml</script>
-                <target>netbeans</target>
-                <clean-target>clean</clean-target>
-                <id>module</id>
-            </reference>
-            <reference>
-                <foreign-project>org_netbeans_lib_terminalemulator</foreign-project>
-                <artifact-type>jar</artifact-type>
-                <script>build.xml</script>
-                <target>netbeans</target>
-                <clean-target>clean</clean-target>
-                <id>module</id>
-            </reference>
-        </references>
-    </configuration>
-</project>
diff --git a/lib.terminalemulator/examples/TermDriver/src/termdriver/Main.java b/lib.terminalemulator/examples/TermDriver/src/termdriver/Main.java
deleted file mode 100644
index b1b276eda..000000000
--- a/lib.terminalemulator/examples/TermDriver/src/termdriver/Main.java
+++ /dev/null
@@ -1,171 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package termdriver;
-
-import com.sun.jna.Native;
-import java.io.*;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import org.netbeans.lib.richexecution.CLibrary;
-import org.netbeans.lib.richexecution.Util;
-
-/**
- * An application to be run under terminals being tested by "Term Tester".
- * It takes a pty slave name as a side channel and shuttles from it to
- * stdout.
- * @author ivan
- */
-public class Main {
-
-    private static void error(String fmt, Object... args) {
-        System.out.printf("termdriver: ");
-        System.out.printf(fmt, args);
-        System.out.printf("\r\n");
-        try {
-            Thread.sleep(1000 * 10);
-        } catch (InterruptedException ex) {
-            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
-        }
-        System.exit(-1);
-    }
-
-    private static String strerror(int errno) {
-        return CLibrary.INSTANCE.strerror(errno);
-    }
-
-    /**
-     * Make out own i/o be raw.
-     */
-    private static void makeRaw() {
-        String ttyName = "/dev/tty";
-        int ofd = Util.getFd(FileDescriptor.out);
-
-        CLibrary.LinuxTermios termios = new CLibrary.LinuxTermios();
-
-        // check existing settings
-        // If we don't do this tcssetattr() will return EINVAL.
-        if (CLibrary.INSTANCE.tcgetattr(ofd, termios) == -1) {
-            error("tcgetattr(\"" + ttyName + "\", <termios>) failed -- " + strerror(Native.getLastError()));
-        }
-
-        // System.out.printf("tcgetattr() gives %s\r\n", termios);
-
-        // initialize values relevant for raw mode
-        CLibrary.INSTANCE.cfmakeraw(termios);
-
-        // System.out.printf("cfmakeraw() gives %s\r\n", termios);
-
-        // apply them
-        if (CLibrary.INSTANCE.tcsetattr(ofd, CLibrary.INSTANCE.TCSANOW(), termios) == -1) {
-            error("tcsetattr(\"" + ttyName + "\", TCSANOW, <termios>) failed -- " + strerror(Native.getLastError()));
-        }
-    }
-
-    /**
-     * @param args the command line arguments
-     */
-    public static void main(String[] args) {
-        makeRaw();
-        System.out.printf("termdriver: hello\r\n");
-
-        String slave = null;
-
-        for (String arg : args) {
-            if (arg.startsWith("-")) {
-                error("Unrecognized option '%s'", arg);
-            } else {
-                if (slave != null)
-                    error("Extra argument '%s'", arg);
-                else
-                    slave = arg;
-            }
-        }
-
-        if (slave == null) {
-            error("Missing slave argument");
-        }
-
-        //
-        // Open the input pty
-        //
-        File file = new File(slave);
-        FileReader fr = null;
-        OutputStreamWriter fw = null;
-        if (!file.exists())
-            error("No such file '%s'", slave);
-
-        try {
-            fr = new FileReader(file);
-        } catch (IOException ex) {
-            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
-        }
-
-        try {
-            fw = new FileWriter(file);
-        } catch (IOException ex) {
-            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
-        }
-
-        final OutputStreamWriter ffw = fw;
-
-        //
-        // Shuttle what we see in stdin to pty
-        //
-        Thread shuttle = new Thread() {
-            @Override
-            public void run() {
-                while (true) {
-                    char c = '\n';
-                    try {
-                        c = (char) System.in.read();
-                    } catch (IOException ex) {
-                        Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
-                        return;
-                    }
-                    try {
-                        ffw.write(c);
-                        ffw.flush();
-                        // System.out.printf("ECHO '%c'\r\n", c);
-                    } catch (IOException ex) {
-                        Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
-                    }
-                }
-            }
-        };
-        shuttle.start();
-
-        //
-        // Shuttle input from pty to stdout ...
-        //
-        try{
-            int c;
-            while ((c = fr.read()) != -1) {
-                System.out.write(c);
-                System.out.flush();
-            }
-        } catch (IOException x) {
-            // pty closure often causes unwarranted versions of this
-            // error("read failed");
-
-        }
-
-        System.out.printf("termdriver: goodbye\r\n");
-    }
-}
diff --git a/lib.terminalemulator/examples/TermExample/build.xml b/lib.terminalemulator/examples/TermExample/build.xml
deleted file mode 100644
index 382307ba6..000000000
--- a/lib.terminalemulator/examples/TermExample/build.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
-<!-- for some information on what you could do (e.g. targets to override). -->
-<!-- If you delete this file and reopen the project it will be recreated. -->
-<project name="org.netbeans.terminal.example" default="netbeans" basedir=".">
-    <description>Builds, tests, and runs the project org.netbeans.terminal.example.</description>
-    <import file="nbproject/build-impl.xml"/>
-</project>
diff --git a/lib.terminalemulator/examples/TermExample/make_filter.awk b/lib.terminalemulator/examples/TermExample/make_filter.awk
deleted file mode 100644
index c75bcf6be..000000000
--- a/lib.terminalemulator/examples/TermExample/make_filter.awk
+++ /dev/null
@@ -1,40 +0,0 @@
-# "make_filter.awk"
-# Convert errors and warnings to Term hyperlinks
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-
-/^.*:[[:digit:]]+: warning: / {
-	printf "]10;WARNING;"
-	printf $0
-	printf "\07"
-	printf "\n"
-	next
-}
-
-/^.*:[[:digit:]]+: / {
-	printf "]10;ERROR;"
- 	printf $0
-	printf "\07"
-	printf "\n"
-	next
-}
-
-{
-	print
-}
diff --git a/lib.terminalemulator/examples/TermExample/manifest.mf b/lib.terminalemulator/examples/TermExample/manifest.mf
deleted file mode 100644
index 0de1476a7..000000000
--- a/lib.terminalemulator/examples/TermExample/manifest.mf
+++ /dev/null
@@ -1,7 +0,0 @@
-Manifest-Version: 1.0
-OpenIDE-Module: org.netbeans.terminal.example
-OpenIDE-Module-Layer: org/netbeans/terminal/example/layer.xml
-OpenIDE-Module-Localizing-Bundle: org/netbeans/terminal/example/Bundle.properties
-OpenIDE-Module-Requires: org.openide.windows.WindowManager
-OpenIDE-Module-Specification-Version: 1.1
-
diff --git a/lib.terminalemulator/examples/TermExample/nbproject/build-impl.xml b/lib.terminalemulator/examples/TermExample/nbproject/build-impl.xml
deleted file mode 100644
index c1eb56c15..000000000
--- a/lib.terminalemulator/examples/TermExample/nbproject/build-impl.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-*** GENERATED FROM project.xml - DO NOT EDIT  ***
-***         EDIT ../build.xml INSTEAD         ***
--->
-<project name="org.netbeans.terminal.example-impl" basedir="..">
-    <fail message="Please build using Ant 1.7.1 or higher.">
-        <condition>
-            <not>
-                <antversion atleast="1.7.1"/>
-            </not>
-        </condition>
-    </fail>
-    <property file="nbproject/private/suite-private.properties"/>
-    <property file="nbproject/suite.properties"/>
-    <fail unless="suite.dir">You must set 'suite.dir' to point to your containing module suite</fail>
-    <property file="${suite.dir}/nbproject/private/platform-private.properties"/>
-    <property file="${suite.dir}/nbproject/platform.properties"/>
-    <macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2">
-        <attribute name="name"/>
-        <attribute name="value"/>
-        <sequential>
-            <property name="@{name}" value="${@{value}}"/>
-        </sequential>
-    </macrodef>
-    <macrodef name="evalprops" uri="http://www.netbeans.org/ns/nb-module-project/2">
-        <attribute name="property"/>
-        <attribute name="value"/>
-        <sequential>
-            <property name="@{property}" value="@{value}"/>
-        </sequential>
-    </macrodef>
-    <property file="${user.properties.file}"/>
-    <nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
-    <nbmproject2:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
-    <nbmproject2:evalprops property="cluster.path.evaluated" value="${cluster.path}" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
-    <fail message="Path to 'platform' cluster missing in $${cluster.path} property or using corrupt Netbeans Platform (missing harness).">
-        <condition>
-            <not>
-                <contains string="${cluster.path.evaluated}" substring="platform"/>
-            </not>
-        </condition>
-    </fail>
-    <import file="${harness.dir}/build.xml"/>
-</project>
diff --git a/lib.terminalemulator/examples/TermExample/nbproject/genfiles.properties b/lib.terminalemulator/examples/TermExample/nbproject/genfiles.properties
deleted file mode 100644
index e6b3473d6..000000000
--- a/lib.terminalemulator/examples/TermExample/nbproject/genfiles.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-build.xml.data.CRC32=cf7a2172
-build.xml.script.CRC32=85e55efa
-build.xml.stylesheet.CRC32=a56c6a5b@2.56.1
-# 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=a7251470
-nbproject/build-impl.xml.script.CRC32=e1a78598
-nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.71.1
diff --git a/lib.terminalemulator/examples/TermExample/nbproject/platform.properties b/lib.terminalemulator/examples/TermExample/nbproject/platform.properties
deleted file mode 100644
index 7d2171c3b..000000000
--- a/lib.terminalemulator/examples/TermExample/nbproject/platform.properties
+++ /dev/null
@@ -1,30 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# Deprecated since 5.0u1; for compatibility with 5.0:
-disabled.clusters=\
-    apisupport
-enabled.clusters=\
-    cnd,\
-    dlight,\
-    harness,\
-    ide,\
-    java,\
-    nb,\
-    platform
-nbjdk.active=default
-nbplatform.active=default
diff --git a/lib.terminalemulator/examples/TermExample/nbproject/project.properties b/lib.terminalemulator/examples/TermExample/nbproject/project.properties
deleted file mode 100644
index 4e5155149..000000000
--- a/lib.terminalemulator/examples/TermExample/nbproject/project.properties
+++ /dev/null
@@ -1,19 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-javac.source=1.5
-javac.compilerargs=-Xlint -Xlint:-serial
-nbm.homepage=http://wiki.netbeans.org/TerminalEmulator
diff --git a/lib.terminalemulator/examples/TermExample/nbproject/project.xml b/lib.terminalemulator/examples/TermExample/nbproject/project.xml
deleted file mode 100644
index b1b368f48..000000000
--- a/lib.terminalemulator/examples/TermExample/nbproject/project.xml
+++ /dev/null
@@ -1,154 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<project xmlns="http://www.netbeans.org/ns/project/1">
-    <type>org.netbeans.modules.apisupport.project</type>
-    <configuration>
-        <data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
-            <code-name-base>org.netbeans.terminal.example</code-name-base>
-            <suite-component/>
-            <module-dependencies>
-                <dependency>
-                    <code-name-base>org.netbeans.lib.richexecution</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>1.0</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.netbeans.lib.terminalemulator</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>1.6</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.netbeans.modules.dlight.nativeexecution</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <implementation-version/>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.netbeans.modules.languages.diff</code-name-base>
-                    <run-dependency>
-                        <specification-version>1.11</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.netbeans.modules.settings</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <release-version>1</release-version>
-                        <specification-version>1.25</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.netbeans.modules.terminal</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>1.0</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.netbeans.modules.terminal.nb</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>1.0</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.openide.actions</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>6.37</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.openide.awt</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>7.21</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.openide.dialogs</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>7.14</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.openide.io</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>1.23</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.openide.util</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>9.3</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.openide.util.lookup</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>8.2</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.openide.util.ui</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>9.3</specification-version>
-                    </run-dependency>
-                </dependency>
-                <dependency>
-                    <code-name-base>org.openide.windows</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <specification-version>6.21</specification-version>
-                    </run-dependency>
-                </dependency>
-            </module-dependencies>
-            <public-packages>
-                <package>org.netbeans.terminal.example</package>
-            </public-packages>
-        </data>
-    </configuration>
-</project>
diff --git a/lib.terminalemulator/examples/TermExample/nbproject/suite.properties b/lib.terminalemulator/examples/TermExample/nbproject/suite.properties
deleted file mode 100644
index 012fe2211..000000000
--- a/lib.terminalemulator/examples/TermExample/nbproject/suite.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-suite.dir=${basedir}/../TermSuite
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/Bundle.properties b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/Bundle.properties
deleted file mode 100644
index 27cbb3e9b..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/Bundle.properties
+++ /dev/null
@@ -1,31 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-Actions/Other/org-netbeans-terminal-example-iofeatures-IOFeaturesProviderAction.instance=IOfeaturesProviderAction (test IOProvider features)
-Actions/Other/org-netbeans-terminal-example-termdirect-CommandTermDirectAction.instance=Command with pty and direct access to Terminals
-OpenIDE-Module-Display-Category=Infrastructure
-OpenIDE-Module-Long-Description=\
-    Terminal feature examples\n<br>\nSee <a href="http://wiki.netbeans.org/TerminalEmulatorAndOutput">TerminalEmulatorAndOutput</a>
-OpenIDE-Module-Name=TermExample
-OpenIDE-Module-Short-Description=Terminal feature examples
-
-CTL_CmdTermAction=Command Term
-CTL_ShellTermAction=Shell Term
-CTL_TermWindowAction=Terminal
-
-CmdTermDialog.cmdLabel.text=Command
-CmdTermDialog.okButton.text=OK
-CmdTermDialog.cancelButton.text=Cancel
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/CmdTermAction.java b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/CmdTermAction.java
deleted file mode 100644
index 6a49dc7e3..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/CmdTermAction.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.netbeans.terminal.example;
-
-import java.awt.event.ActionEvent;
-import javax.swing.AbstractAction;
-import javax.swing.JOptionPane;
-
-import org.openide.util.NbBundle;
-import org.openide.windows.IOContainer;
-import org.openide.windows.IOProvider;
-
-/**
- * Action which runs a command under a shell under a Term component.
- */
-public class CmdTermAction extends AbstractAction {
-
-    public CmdTermAction() {
-        super(NbBundle.getMessage(CmdTermAction.class, "CTL_CmdTermAction"));
-//        putValue(SMALL_ICON, new ImageIcon(Utilities.loadImage(TermTopComponent.ICON_PATH, true)));
-    }
-
-    public void actionPerformed(ActionEvent evt) {
-        // Ask user what command they want to run
-        String cmd = JOptionPane.showInputDialog("Command");
-        if (cmd == null || cmd.trim().equals(""))
-            return;
-
-	Config config = Config.getCmdConfig(cmd);
-	final TerminalIOProviderSupport support = new TerminalIOProviderSupport(config);
-
-	IOContainer container = TerminalIOProviderSupport.getIOContainer(config);
-	container = null;	// work with default IO container
-
-	IOProvider iop = TerminalIOProviderSupport.getIOProvider();
-	support.executeRichCommand(iop, container);
-    }
-}
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/Config.java b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/Config.java
deleted file mode 100644
index 0a31820eb..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/Config.java
+++ /dev/null
@@ -1,192 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.terminal.example;
-
-/**
- *
- * @author ivan
- */
-public final class Config {
-    public static enum Provider {
-	DEFAULT,
-	TERM,
-    }
-
-    public static enum DispatchThread {
-	EDT,
-	RP,
-    }
-
-    public static enum Execution {
-	RICH,
-	NATIVE,
-    }
-
-    public static enum IOShuttling {
-	INTERNAL,
-	EXTERNAL,
-    }
-
-    public static enum ContainerStyle {
-	TABBED,
-	MUXED,
-    }
-
-    public enum AllowClose {
-	 /**
-	  * Tab is unclosable.
-	  * This will control IOVisibility.setClosable()
-	  */
-	NEVER,
-
-	/**
-	 * Tab is closable. a vetoableChange() will always be called on
-	 * IOVisibility.VISIBILITY.
-	 */
-	ALWAYS,
-	/**
-	 * Tab is closable. a vetoableChange() will always be called on
-	 * IOVisibility.VISIBILITY and it's supposed to allow closing
-	 * w/o confirmation if IOConnect.isConnected() is false.
-	 */
-	DISCONNECTED
-    }
-
-    private final String command;
-    private final Provider containerProvider;
-    private final Provider ioProvider;
-    private final AllowClose allowClose;
-    private final DispatchThread dispatchThread;
-    private final Execution execution;
-    private final IOShuttling ioShuttling;
-    private final ContainerStyle containerStyle;
-    private final boolean restartable;
-    private final boolean hupOnClose;
-    private final boolean keep;
-    private final boolean debug;
-
-    public Config(
-		String command,
-		Provider containerProvider,
-		Provider ioProvider,
-		AllowClose allowClose,
-		DispatchThread dispatchThread,
-		Execution execution,
-		IOShuttling ioShuttling,
-		ContainerStyle containerStyle,
-		boolean restartable,
-		boolean hupOnClose,
-		boolean keep,
-                boolean debug
-	    ) {
-	this.command  = command;
-	this.containerProvider  = containerProvider;
-	this.ioProvider  = ioProvider;
-	this.allowClose  = allowClose;
-	this.dispatchThread  = dispatchThread;
-	this.execution  = execution;
-	this.ioShuttling  = ioShuttling;
-	this.containerStyle = containerStyle;
-	this.restartable  = restartable;
-	this.hupOnClose  = hupOnClose;
-	this.keep = keep;
-	this.debug = debug;
-    }
-
-    public static Config getShellConfig() {
-	return new Config("/bin/bash",
-	                  null,
-	                  null,
-	                  AllowClose.ALWAYS,
-	                  null,
-	                  null,
-	                  IOShuttling.INTERNAL,
-			  ContainerStyle.TABBED,
-	                  false,	// restartable
-	                  true,		// hupOnClose
-			  false,	// keep
-                          false         // debug
-			  );
-    }
-
-    public static Config getCmdConfig(String command) {
-	return new Config(command,
-	                  null,
-	                  null,
-	                  AllowClose.ALWAYS,
-	                  null,
-	                  null,
-	                  IOShuttling.INTERNAL,
-			  ContainerStyle.TABBED,
-	                  true,		// restartable
-	                  true,		// hupOnClose
-			  false,	// keep
-                          false         // debug
-			  );
-    }
-
-    public String getCommand() {
-	return command;
-    }
-
-    public Provider getContainerProvider() {
-	return containerProvider;
-    }
-
-    public Provider getIOProvider() {
-	return ioProvider;
-    }
-
-    public AllowClose getAllowClose() {
-	return allowClose;
-    }
-
-    public DispatchThread getThread() {
-	return dispatchThread;
-    }
-
-    public Execution getExecution() {
-	return execution;
-    }
-
-    public boolean isRestartable() {
-	return restartable;
-    }
-
-    public boolean isHUPOnClose() {
-	return hupOnClose;
-    }
-
-    public boolean isKeep() {
-	return keep;
-    }
-
-    public boolean isDebug() {
-        return debug;
-    }
-
-    public IOShuttling getIOShuttling() {
-	return ioShuttling;
-    }
-
-    public ContainerStyle getContainerStyle() {
-	return containerStyle;
-    }
-}
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/IOShuttle.java b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/IOShuttle.java
deleted file mode 100644
index 303922c37..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/IOShuttle.java
+++ /dev/null
@@ -1,140 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.terminal.example;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.OutputStream;
-import java.io.OutputStreamWriter;
-import java.io.Reader;
-import java.io.Writer;
-import org.openide.ErrorManager;
-import org.openide.windows.OutputWriter;
-
-/**
- * Shuttles data between the io of a {@link java.lang.Process}, or any
- * sort of derivative/mimic, and an NB-style IOProvider.
- * @author ivan
- */
-final class IOShuttle {
-
-    private final OutputMonitor outputMonitor;
-    private final InputMonitor inputMonitor;
-
-    public IOShuttle(OutputStream pin, InputStream pout,
-                      OutputWriter toIO, Reader fromIO) {
-        InputStreamReader fromProc = new InputStreamReader(pout);
-        outputMonitor = new IOShuttle.OutputMonitor(fromProc, toIO);
-        if (fromIO != null) {
-            final OutputStreamWriter toProc = new OutputStreamWriter(pin);
-            inputMonitor = new IOShuttle.InputMonitor(fromIO, toProc);
-        } else {
-            inputMonitor = null;
-        }
-    }
-
-    public void run() {
-        outputMonitor.start();
-        if (inputMonitor != null)
-            inputMonitor.start();
-    }
-
-    private static class OutputMonitor extends Thread {
-
-        private final InputStreamReader reader;
-        private final Writer writer;
-        private static int nextSerial = 0;
-        private int serial = nextSerial++;
-        private static final int BUFSZ = 1024;
-        private final char[] buf = new char[BUFSZ];
-
-        OutputMonitor(InputStreamReader reader, Writer writer) {
-            super("ExecutorUnix.OutputMonitor");
-            // NOI18N
-            this.reader = reader;
-            this.writer = writer;
-
-            // see bug 4921071
-            setPriority(1);
-        }
-
-        @Override
-        public void run() {
-            try {
-                while (true) {
-                    int nread = reader.read(buf, 0, BUFSZ);
-                    if (nread == -1) {
-                        break;
-                    }
-                    writer.write(buf, 0, nread);
-                }
-            } catch (IOException e) {
-            } finally {
-                try {
-                    writer.close();
-                } catch (IOException e) {
-                    ErrorManager.getDefault().notify(e);
-                }
-            }
-        }
-    }
-
-    /**
-     * Copies kestrokes in io window to external process.
-     */
-    private static class InputMonitor extends Thread {
-
-        private final Reader reader;
-        private final Writer writer;
-        private static int nextSerial = 0;
-        private int serial = nextSerial++;
-        private static final int BUFSZ = 1024;
-        private final char[] buf = new char[BUFSZ];
-
-        InputMonitor(Reader reader, Writer writer) {
-            super("ExecutorUnix.InputMonitor");			// NOI18N
-            this.reader = reader;
-            this.writer = writer;
-
-            // see bug 4921071
-            setPriority(1);
-        }
-
-        @Override
-        public void run() {
-            try {
-                while (true) {
-                    int nread = reader.read(buf, 0, BUFSZ);
-                    if (nread == -1) {
-                        break;
-                    }
-                    writer.write(buf, 0, nread);
-                    writer.flush();
-                }
-                writer.close();
-            } catch (IOException e) {
-		// no-op
-            } catch (Exception e) {
-                ErrorManager.getDefault().notify(e);
-            }
-        }
-    }
-}
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/ShellTermAction.java b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/ShellTermAction.java
deleted file mode 100644
index 71e356d90..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/ShellTermAction.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.netbeans.terminal.example;
-
-import java.awt.event.ActionEvent;
-import javax.swing.AbstractAction;
-import org.openide.util.NbBundle;
-import org.openide.windows.IOContainer;
-import org.openide.windows.IOProvider;
-
-/**
- * Action which starts a shell under a Term component.
- */
-public class ShellTermAction extends AbstractAction {
-
-    public ShellTermAction() {
-        super(NbBundle.getMessage(ShellTermAction.class, "CTL_ShellTermAction"));
-//        putValue(SMALL_ICON, new ImageIcon(Utilities.loadImage(TermTopComponent.ICON_PATH, true)));
-    }
-
-    public void actionPerformed(ActionEvent evt) {
-	Config config = Config.getShellConfig();
-	final TerminalIOProviderSupport support = new TerminalIOProviderSupport(config);
-
-	IOContainer container = TerminalIOProviderSupport.getIOContainer(config);
-	container = null;	// work with default IO container
-
-	IOProvider iop = TerminalIOProviderSupport.getIOProvider();
-	support.executeRichCommand(iop, container);
-    }
-}
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/TermExecutor.java b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/TermExecutor.java
deleted file mode 100644
index 2283da4bf..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/TermExecutor.java
+++ /dev/null
@@ -1,216 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.terminal.example;
-
-import org.netbeans.lib.richexecution.PtyProcess;
-import org.netbeans.lib.richexecution.PtyExecutor;
-import org.netbeans.lib.richexecution.OS;
-import org.netbeans.lib.richexecution.program.Program;
-import java.awt.Dimension;
-import java.util.Map;
-import org.netbeans.lib.terminalemulator.LineDiscipline;
-import org.netbeans.lib.terminalemulator.StreamTerm;
-import org.netbeans.lib.terminalemulator.Term;
-import org.netbeans.lib.terminalemulator.TermListener;
-import org.netbeans.lib.richexecution.Pty;
-import org.netbeans.lib.richexecution.Pty.Mode;
-
-/**
- * Execute a program connected to a Term.
- * @author ivan
- */
-public final class TermExecutor {
-    private final static OS os = OS.get();
-    private final PtyExecutor delegate = new PtyExecutor();
-    private Boolean lineDiscipline = null;
-    private boolean debug = false;
-
-    public TermExecutor() {
-        switch (os) {
-            case WINDOWS:
-		delegate.setMode(Mode.NONE);
-                break;
-	    default:
-		break;
-        }
-    }
-
-    private class MyTermListener implements TermListener {
-        private final Pty pty;
-
-        public MyTermListener(Pty pty) {
-            this.pty = pty;
-        }
-
-        public void sizeChanged(Dimension cells, Dimension pixels) {
-            /* LATER
-            if (pty.isRaw())
-                return;     // otherwise SWINSZ will give us an IOException
-            */
-
-            // On Linux, Solaris and Mac setting WINSZ from the master
-            // fd works.
-            // On Linux and (I think) on Solaris and Mac setting it from the
-            // slave fd works.
-	    switch (OS.get()) {
-		/* OLD
-		case MACOS:
-		    pty.slaveTIOCSWINSZ(cells.height, cells.width,
-					 pixels.height, pixels.width);
-		    break;
-		 */
-		default:
-		    pty.masterTIOCSWINSZ(cells.height, cells.width,
-					 pixels.height, pixels.width);
-		    break;
-	    }
-        }
-
-        public void titleChanged(String title) {
-            ;   // ignore - for now
-        }
-
-        public void cwdChanged(String cwd) {
-            ;   // ignore - for now
-        }
-
-	public void externalToolCalled(String command) {
-            ;   // ignore - for now
-	}
-    }
-
-    private static void error(String fmt, Object...args) {
-        String msg = String.format(fmt, args);
-        throw new IllegalStateException(msg);
-    }
-
-    /**
-     * Set whether Terms line discipline should be used.
-     * Should be called before start().
-     */
-    public void setLineDiscipline(Boolean lineDiscipline) {
-        this.lineDiscipline = lineDiscipline;
-    }
-
-    /**
-     * Allows control of Term debugging
-     */
-    public void setDebug(boolean debug) {
-        this.debug = debug;
-    }
-
-    /**
-     * Start this program running under the given Term.
-     * @return The wrapper process.
-     */
-    public PtyProcess start(Program program, StreamTerm term) {
-        if (program.command().isEmpty())
-            error("Empty command");
-
-        Pty pty = null;
-
-        //
-        // Check and adjust arguments
-        //
-        switch (os) {
-            case WINDOWS:
-                if (delegate.getMode() != Mode.NONE)
-                    error("Can only use 'pipe' mode on windows");
-                break;
-            case LINUX:
-                break;
-        }
-
-        //
-        // Create pty
-        //
-        switch (delegate.getMode()) {
-            case NONE:
-                break;
-            case REGULAR:
-                try {
-                    pty = Pty.create(Pty.Mode.REGULAR);
-                } catch (Exception x) {
-                    System.out.printf("Exception %s\n",x);
-                }
-                break;
-            case RAW:
-                error("raw pty mode not supported yet");
-                break;
-            case PACKET:
-                error("packet pty mode not supported yet");
-                break;
-        }
-
-        //
-        // Create Term
-        //
-        if (debug)
-            term.setDebugFlags(Term.DEBUG_INPUT |
-                               Term.DEBUG_OUTPUT |
-                               Term.DEBUG_OPS |
-			       Term.DEBUG_KEYS);
-
-        if (pty != null)
-            term.addListener(new MyTermListener(pty));
-        
-        // 
-        // Push own line discipline if needed or overriden
-        //
-        if (lineDiscipline != null) {
-            if (lineDiscipline)
-                term.pushStream(new LineDiscipline());
-        } else {
-            switch (delegate.getMode()) {
-                case NONE:
-                case RAW:
-                    term.pushStream(new LineDiscipline());
-                    break;
-            }
-        }
-        
-        //
-        // Start program and connect it to term
-        //
-        Map<String, String> env = program.environment();
-        env.put("TERM", term.getEmulation());
-	PtyProcess ptyProcess = delegate.start(program, pty);
-
-        /* OLD
-        if (pty == null) {
-            term.connect(ptyProcess.getOutputStream(), ptyProcess.getInputStream(), null);
-        } else {
-            term.connect(pty.getOutputStream(), pty.getInputStream(), null);
-        }
-        */
-        term.connect(ptyProcess.getOutputStream(), ptyProcess.getInputStream(), null);
-
-        // TMP reaper = ptyProcess.getReaper();
-        return ptyProcess;
-    }
-
-    public void setMode(Mode mode) {
-        delegate.setMode(mode);
-    }
-
-    public Mode getMode() {
-        return delegate.getMode();
-    }
-}
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/TermWindowAction.java b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/TermWindowAction.java
deleted file mode 100644
index eda2e1922..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/TermWindowAction.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.netbeans.terminal.example;
-
-import java.awt.event.ActionEvent;
-import javax.swing.AbstractAction;
-
-import org.openide.util.NbBundle;
-
-import org.netbeans.terminal.example.topcomponent.TerminalTopComponent;
-
-/**
- * Action which shows Term component.
- */
-public class TermWindowAction extends AbstractAction {
-
-    public TermWindowAction() {
-        super(NbBundle.getMessage(TermWindowAction.class, "CTL_TermWindowAction"));
-//        putValue(SMALL_ICON, new ImageIcon(Utilities.loadImage(TermTopComponent.ICON_PATH, true)));
-    }
-
-    public void actionPerformed(ActionEvent evt) {
-        TerminalTopComponent ttc = TerminalTopComponent.findInstance();
-        ttc.open();
-        ttc.requestActive();
-    }
-}
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/TerminalIOProviderSupport.java b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/TerminalIOProviderSupport.java
deleted file mode 100644
index 84b5dd362..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/TerminalIOProviderSupport.java
+++ /dev/null
@@ -1,785 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.terminal.example;
-
-import java.awt.Color;
-import java.awt.Dimension;
-import java.awt.event.ActionEvent;
-import java.beans.PropertyChangeEvent;
-import java.beans.PropertyChangeListener;
-import java.beans.PropertyVetoException;
-import java.beans.VetoableChangeListener;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.io.Reader;
-import java.util.Map;
-import javax.swing.AbstractAction;
-import javax.swing.Action;
-import javax.swing.ImageIcon;
-import javax.swing.SwingUtilities;
-
-import org.netbeans.lib.richexecution.program.Command;
-import org.netbeans.lib.richexecution.program.Program;
-import org.netbeans.lib.richexecution.Pty;
-import org.netbeans.lib.richexecution.PtyException;
-import org.netbeans.lib.richexecution.PtyExecutor;
-import org.netbeans.lib.richexecution.PtyProcess;
-import org.netbeans.lib.terminalemulator.Term;
-import org.netbeans.modules.nativeexecution.api.ExecutionEnvironment;
-import org.netbeans.modules.nativeexecution.api.ExecutionEnvironmentFactory;
-import org.netbeans.modules.nativeexecution.api.NativeProcess;
-import org.netbeans.modules.nativeexecution.api.NativeProcessBuilder;
-import org.netbeans.modules.nativeexecution.api.pty.PtySupport;
-import org.netbeans.modules.terminal.api.IOConnect;
-
-import org.netbeans.modules.terminal.api.IOEmulation;
-import org.netbeans.modules.terminal.api.IONotifier;
-import org.netbeans.modules.terminal.api.IOResizable;
-import org.netbeans.modules.terminal.api.ui.IOTerm;
-import org.netbeans.modules.terminal.api.ui.IOVisibility;
-import org.netbeans.terminal.example.Config.AllowClose;
-import org.netbeans.terminal.example.control.ControlModel;
-import org.netbeans.terminal.example.topcomponent.MuxableTerminalTopComponent;
-import org.netbeans.terminal.example.topcomponent.TerminalTopComponent;
-import org.openide.DialogDescriptor;
-import org.openide.DialogDisplayer;
-import org.openide.NotifyDescriptor;
-
-import org.openide.util.Exceptions;
-import org.openide.util.ImageUtilities;
-import org.openide.windows.IOColorLines;
-import org.openide.windows.IOColorPrint;
-import org.openide.windows.IOContainer;
-import org.openide.windows.IOProvider;
-import org.openide.windows.IOTab;
-import org.openide.windows.InputOutput;
-import org.openide.windows.OutputEvent;
-import org.openide.windows.OutputListener;
-import org.openide.windows.OutputWriter;
-
-/**
- * Support for running @{link Command}s under @{link IOProvider}s.
- * @author ivan
- */
-public final class TerminalIOProviderSupport {
-
-    private static abstract class ExecutionSupport {
-	protected enum State {
-	    INIT,
-	    RUNNING,
-	    EXITED,
-	};
-
-	private boolean restartable = false;
-	private boolean interalIOShuttle = true;	// use Term.connect()
-	private State state = State.INIT;
-
-	protected Action stopAction;
-	protected Action rerunAction;
-	protected InputOutput io;
-
-	private boolean hupOnClose;
-	private AllowClose allowClose;
-
-	public void setRestartable(Action stopAction, Action rerunAction) {
-	    this.restartable = true;
-	    this.stopAction = stopAction;
-	    this.rerunAction = rerunAction;
-	}
-
-	protected final boolean isRestartable() {
-	    return restartable;
-	}
-
-	public void setInternalIOShuttle(boolean internalIOShuttle) {
-	    this.interalIOShuttle = internalIOShuttle;
-	}
-
-	public boolean isInternalIOShuttle() {
-	    return interalIOShuttle;
-	}
-
-	public final void setState(State state) {
-	    this.state = state;
-
-	    switch (this.state) {
-		case INIT:
-		    break;
-		case RUNNING:
-		    if (isRestartable()) {
-			stopAction.setEnabled(true);
-			rerunAction.setEnabled(false);
-		    }
-		    break;
-		case EXITED:
-		    if (isRestartable() /* LATER && !closing */) {
-			stopAction.setEnabled(false);
-			rerunAction.setEnabled(true);
-		    } else {
-			/* LATER
-			closing = true;
-			closeWork();
-			*/
-		    }
-		    break;
-	    }
-	}
-
-	public final State getState() {
-	    return state;
-	}
-
-	public final boolean isRunning() {
-	    return state == State.RUNNING;
-	}
-
-	private void tprintln(String msg) {
-	    try {
-		IOColorLines.println(io, msg + "\r", Color.GREEN);
-	    } catch (IOException ex) {
-		Exceptions.printStackTrace(ex);
-	    }
-	}
-
-	private class VetoListener implements VetoableChangeListener {
-
-	    private void confirmClose(PropertyChangeEvent evt) throws PropertyVetoException {
-		DialogDescriptor dd = new DialogDescriptor("Really close?", "Close?");
-		Object closer = DialogDisplayer.getDefault().notify(dd);
-		if (closer != NotifyDescriptor.OK_OPTION)
-		    throw new PropertyVetoException("don't close", evt);
-	    }
-
-	    public void vetoableChange(PropertyChangeEvent evt) throws PropertyVetoException {
-		if (evt.getPropertyName().equals(IOVisibility.PROP_VISIBILITY) &&
-		    evt.getNewValue().equals(Boolean.FALSE)) {
-
-		    InputOutput src = (InputOutput) evt.getSource();
-		    // A request for closing of this IO has been submitted
-		    switch (allowClose) {
-			case NEVER:
-			    // should never get here
-			    break;
-			case ALWAYS:
-			    confirmClose(evt);
-			    break;
-			case DISCONNECTED:
-			    if (IOConnect.isConnected(src))
-				confirmClose(evt);
-			    break;
-		    }
-		}
-	    }
-	}
-
-	private class CloseListener implements PropertyChangeListener {
-	    private final Config config;
-
-	    public CloseListener(Config config) {
-		this.config = config;
-	    }
-	    public void propertyChange(PropertyChangeEvent evt) {
-		if (evt.getPropertyName().equals(IOVisibility.PROP_VISIBILITY) &&
-		    evt.getNewValue().equals(Boolean.FALSE)) {
-		    checkClose(config);
-		}
-	    }
-	}
-
-	private boolean streamClosed = false;
-	private boolean terminated = false;
-
-	/**
-	 * Terminal actually closed.
-	 */
-	private void checkClose(Config config) {
-	    assert SwingUtilities.isEventDispatchThread();
-	    if (streamClosed) {
-		// process already reaped and it's io drained
-		// clean up all resources
-		if (! config.isKeep())
-		    io.closeInputOutput();
-	    } else {
-
-		if (hupOnClose) {
-		    terminated = true;
-
-		    // This will eventualy wake up the reaper waiting
-		    // in waitFor().
-		    // be quiet if process is already gone;
-		    hangup();
-		}
-	    }
-	}
-
-	private void checkTermination(Config config) {
-	    assert SwingUtilities.isEventDispatchThread();
-	   if (terminated) {
-		// clean up all resources
-		if (! config.isKeep())
-		    io.closeInputOutput();
-	    } else {
-		streamClosed = true;
-	    }
-	}
-
-	private abstract static class AbstractOutputListener implements OutputListener {
-	    private static InputOutput chosen;
-	    private InputOutput io;
-
-	    public void outputLineSelected(OutputEvent ev) { }
-	    public void outputLineCleared(OutputEvent ev) { }
-
-	    public void outputLineAction(OutputEvent ev) {
-		io = ev.getInputOutput();
-		outputAction(ev, io);
-	    }
-
-	    abstract void outputAction(OutputEvent ev, InputOutput io);
-
-	    protected static void choose(InputOutput io) {
-		chosen = io;
-	    }
-
-	    protected final InputOutput chosen() {
-		if (chosen != null)
-		    return chosen;
-		else
-		    return io;
-	    }
-	}
-
-
-	private OutputListener choose = new AbstractOutputListener() {
-	    public void outputAction(OutputEvent ev, InputOutput io) {
-		choose(io);
-	    }
-	};
-
-	private OutputListener unChoose = new AbstractOutputListener() {
-	    public void outputAction(OutputEvent ev, InputOutput io) {
-		choose(null);
-	    }
-	};
-
-	private OutputListener selectChosen = new AbstractOutputListener() {
-	    public void outputAction(OutputEvent ev, InputOutput io) {
-		if (chosen() != null)
-		    chosen().select();
-	    }
-	};
-
-	private OutputListener makeClosable = new AbstractOutputListener() {
-	    public void outputAction(OutputEvent ev, InputOutput io) {
-		IOVisibility.setClosable(chosen(), true);
-	    }
-	};
-
-	private OutputListener makeUnClosable = new AbstractOutputListener() {
-	    public void outputAction(OutputEvent ev, InputOutput io) {
-		IOVisibility.setClosable(chosen(), false);
-	    }
-	};
-
-	private OutputListener enableToolTip = new AbstractOutputListener() {
-	    public void outputAction(OutputEvent ev, InputOutput io) {
-		IOTab.setToolTipText(chosen(), "Tooltip");
-	    }
-	};
-
-	private OutputListener disableToolTip = new AbstractOutputListener() {
-	    public void outputAction(OutputEvent ev, InputOutput io) {
-		IOTab.setToolTipText(chosen(), null);
-	    }
-	};
-
-	private OutputListener enableIcon = new AbstractOutputListener() {
-	    public void outputAction(OutputEvent ev, InputOutput io) {
-		String iconResource = "org/netbeans/terminal/example/resources/sunsky.png";
-		IOTab.setIcon(chosen(), ImageUtilities.loadImageIcon(iconResource, false));
-	    }
-	};
-
-	private OutputListener disableIcon = new AbstractOutputListener() {
-	    public void outputAction(OutputEvent ev, InputOutput io) {
-		IOTab.setIcon(chosen(), null);
-	    }
-	};
-
-	private OutputListener reset = new AbstractOutputListener() {
-	    public void outputAction(OutputEvent ev, InputOutput io) {
-		try {
-		    chosen().getOut().reset();
-		} catch (IOException ex) {
-		    Exceptions.printStackTrace(ex);
-		}
-	    }
-	};
-
-	public final InputOutput setupIO(IOProvider iop,
-			     IOContainer ioContainer,
-			     String title,
-			     Config config) {
-	    this.allowClose = config.getAllowClose();
-	    this.hupOnClose = config.isHUPOnClose();
-	    Action[] actions = null;
-	    if (isRestartable()) {
-		actions = new Action[] {rerunAction, stopAction};
-	    } else {
-		actions = new Action[0];
-	    }
-
-	    title = "" + serialNo++ + ":" + title;
-
-	    io = iop.getIO(title, actions, ioContainer);
-
-	    if (IONotifier.isSupported(io)) {
-		IONotifier.addVetoableChangeListener(io, new VetoListener());
-		IONotifier.addPropertyChangeListener(io, new CloseListener(config));
-	    }
-
-	    if (IOVisibility.isSupported(io)) {
-		IOVisibility.setClosable(io, allowClose != AllowClose.NEVER);
-	    }
-
-	    // comment out to verify fix for bug #181064
-	    io.select();
-
-            if (config.isDebug()) {
-                if (IOTerm.isSupported(io)) {
-                    Term term = IOTerm.term(io);
-                    term.setDebugFlags(Term.DEBUG_INPUT|Term.DEBUG_OUTPUT |Term.DEBUG_OPS);
-                }
-            }
-	    tprintln("GREETINGS");
-	    try {
-		if (IOColorPrint.isSupported(io)) {
-		    IOColorPrint.print(io, "Choose ", choose, false, Color.BLUE);
-		    IOColorPrint.print(io, "Unchoose ", unChoose, false, Color.RED);
-		    IOColorPrint.print(io, "Select chosen\r\n", selectChosen, false, Color.ORANGE);
-		} else {
-		    IOColorLines.println(io, "Choose\r", choose, false, Color.BLUE);
-		    IOColorLines.println(io, "Unchoose\r", unChoose, false, Color.RED);
-		    IOColorLines.println(io, "Select chosen\r", selectChosen, false, Color.ORANGE);
-		}
-		IOColorLines.println(io, "\r", null, false, Color.RED);
-
-		IOColorLines.println(io, "Make closable\r", makeClosable, false, Color.BLUE);
-		IOColorLines.println(io, "Make unClosable\r", makeUnClosable, false, Color.RED);
-		IOColorLines.println(io, "\r", null, false, Color.RED);
-
-		if (IOTab.isSupported(io)) {
-		    IOColorLines.println(io, "enableToolTip\r", enableToolTip, false, Color.BLUE);
-		    IOColorLines.println(io, "disableToolTip\r", disableToolTip, false, Color.RED);
-		    IOColorLines.println(io, "\r", null, false, Color.RED);
-
-		    IOColorLines.println(io, "enableIcon\r", enableIcon, false, Color.BLUE);
-		    IOColorLines.println(io, "disableIcon\r", disableIcon, false, Color.RED);
-		    IOColorLines.println(io, "\r", null, false, Color.RED);
-		} else {
-		    IOColorLines.println(io, "IOTab is not supported\r", null, false, Color.BLACK);
-		}
-
-		IOColorLines.println(io, "Reset\r", reset, false, Color.CYAN);
-		IOColorLines.println(io, "\r", null, false, Color.CYAN);
-	    } catch (IOException ex) {
-		Exceptions.printStackTrace(ex);
-	    }
-
-	    ControlModel.add(io, config, title);
-
-	    return io;
-	}
-
-	/* *
-	 * It's important to start the reaper after setting up the io
-	 * connections because a very short-lived process might finish before
-	 * the io is setup and we'll be in a situatin of disconnecting before
-	 * connecting.
-	 */
-	protected final void startReaper(final Config config) {
-	    //
-	    // Start a reaper and wait for processes completion
-	    //
-	    Thread reaperThread = new Thread() {
-		@Override
-		public void run() {
-		    final int exitValue = waitFor();
-
-		    if (isInternalIOShuttle() && IOTerm.isSupported(io)) {
-//			System.out.printf("Process exited. Calling disconnect ...\n");
-			IOTerm.disconnect(io, new Runnable() {
-			    public void run() {
-//				System.out.printf("Disconnected.\n");
-				String exitMsg = String.format("Exited with %d", exitValue);
-				tprintln(exitMsg);
-				io.getOut().close();
-				setState(ExecutionSupport.State.EXITED);
-
-				checkTermination(config);
-			    }
-			});
-		    } else {
-//			System.out.printf("Process exited.\n");
-		    }
-		}
-	    };
-	    reaperThread.start();
-	}
-
-	protected final void startShuttle(OutputStream pin, InputStream pout) {
-	    OutputWriter toIO = io.getOut();
-	    Reader fromIO = io.getIn();
-	    IOShuttle shuttle = new IOShuttle(pin, pout, toIO, fromIO);
-	    shuttle.run();
-	}
-
-	public abstract void execute(String cmd);
-	public abstract int waitFor();
-	public abstract void sizeChanged(Dimension c, Dimension p);
-	public abstract void reRun();
-	public abstract void stop();
-	public abstract void hangup();
-    }
-
-    private final class RichExecutionSupport extends ExecutionSupport {
-	private PtyProcess richProcess;
-	private Pty pty;
-	private Program lastProgram;
-
-	public void execute(String cmd) {
-	    Program program = new Command(cmd);
-	    startProgram(program);
-	}
-
-	public int waitFor() {
-	    return richProcess.waitFor();
-	}
-
-	public void sizeChanged(Dimension cells, Dimension pixels) {
-	    pty.masterTIOCSWINSZ(cells.height, cells.width,
-				 pixels.height, pixels.width);
-	}
-
-	private void startProgram(Program program) {
-	    //
-	    // Create a pty, handle window size changes
-	    //
-	    try {
-		pty = Pty.create(Pty.Mode.REGULAR);
-	    } catch (PtyException ex) {
-		Exceptions.printStackTrace(ex);
-		return;
-	    }
-
-	    if (IOResizable.isSupported(io)) {
-		IONotifier.addPropertyChangeListener(io, new PropertyChangeListener() {
-		    public void propertyChange(PropertyChangeEvent evt) {
-			if (evt.getPropertyName().equals(IOResizable.PROP_SIZE)) {
-			    IOResizable.Size size = (IOResizable.Size) evt.getNewValue();
-			    RichExecutionSupport.this.sizeChanged(size.cells, size.pixels);
-			}
-		    }
-		});
-	    }
-
-	    Map<String, String> env = program.environment();
-	    if (IOEmulation.isSupported(io)) {
-		env.put("TERM", IOEmulation.getEmulation(io));
-	    } else {
-		env.put("TERM", "dumb");
-	    }
-
-	    if (isRestartable()) {
-		lastProgram = program;
-	    } else {
-		lastProgram = null;
-	    }
-
-	    PtyExecutor executor = new PtyExecutor();
-	    richProcess = executor.start(program, pty);
-
-	    setState(State.RUNNING);
-
-	    //
-	    // connect them up
-	    //
-
-	    // Hmm, what's the difference between the PtyProcess io streams
-	    // and the Pty's io streams?
-	    // Nothing.
-	    OutputStream pin = pty.getOutputStream();
-	    InputStream pout = pty.getInputStream();
-
-	    if (isInternalIOShuttle() && IOTerm.isSupported(io)) {
-		IOTerm.connect(io, pin, pout, null);
-	    } else {
-		startShuttle(pin, pout);
-	    }
-
-	    startReaper(config);
-	}
-
-	public void reRun() {
-            if (lastProgram != null)
-		startProgram(lastProgram);
-	}
-
-	public void stop() {
-            richProcess.terminate();
-	}
-
-	public void hangup() {
-	    richProcess.hangup();
-	}
-    }
-
-    private final class NativeExecutionSupport extends ExecutionSupport {
-	private String cmd;
-	private NativeProcess nativeProcess;
-
-	public void execute(String cmd) {
-	    this.cmd = cmd;
-
-	    ExecutionEnvironment ee = ExecutionEnvironmentFactory.getLocal();
-	    NativeProcessBuilder pb =
-		    NativeProcessBuilder.newProcessBuilder(ee);
-	    // pb = pb.setCommandLine(cmd);
-	    pb.setExecutable("/bin/sh");
-	    pb.setArguments(new String[] {
-		    "-c",
-		    cmd
-		});
-	    pb = pb.setUsePty(true);
-	    if (IOEmulation.isSupported(io))
-		pb.getEnvironment().put("TERM", IOEmulation.getEmulation(io));
-	    else
-		pb.getEnvironment().put("TERM", "dumb");
-
-	    //
-	    // Start the command
-	    //
-	    try {
-		nativeProcess = pb.call();
-	    } catch (IOException ex) {
-		Exceptions.printStackTrace(ex);
-		return;
-	    }
-
-	    setState(State.RUNNING);
-
-	    //
-	    // Connect the IO
-	    //
-	    if (isInternalIOShuttle() && IOTerm.isSupported(io)) {
-                PtySupport.connect(io, nativeProcess);
-	    } else {
-		startShuttle(nativeProcess.getOutputStream(), nativeProcess.getInputStream());
-	    }
-
-	    if (IOResizable.isSupported(io)) {
-		IONotifier.addPropertyChangeListener(io, new PropertyChangeListener() {
-		    public void propertyChange(PropertyChangeEvent evt) {
-			if (evt.getPropertyName().equals(IOResizable.PROP_SIZE)) {
-			    IOResizable.Size size = (IOResizable.Size) evt.getNewValue();
-			    NativeExecutionSupport.this.sizeChanged(size.cells, size.pixels);
-			}
-		    }
-		});
-	    }
-
-	    startReaper(config);
-	}
-
-	public int waitFor() {
-	    try {
-		return nativeProcess.waitFor();
-	    } catch (InterruptedException ex) {
-		Exceptions.printStackTrace(ex);
-		return 0;
-	    }
-	}
-
-	public void sizeChanged(Dimension c, Dimension p) {
-	    // TMP impl.masterTIOCSWINSZ(c.width, c.height, p.width, p.height);
-	}
-
-	public void reRun() {
-	    if (cmd != null)
-		execute(cmd);
-	}
-
-	public void stop() {
-	    nativeProcess.destroy();
-	}
-
-	public void hangup() {
-	    // not sure if destroy is it.
-	    nativeProcess.destroy();
-	}
-    }
-
-    private static int serialNo = 0;
-
-    private final Config config;
-
-    private ExecutionSupport richExecutionSupport = new RichExecutionSupport();
-    private ExecutionSupport nativeExecutionSupport = new NativeExecutionSupport();
-
-    public TerminalIOProviderSupport(Config config) {
-	this.config = config;
-    }
-
-    private final class RerunAction extends AbstractAction {
-	private final ExecutionSupport executionSupport;
-
-        public RerunAction(ExecutionSupport executionSupport) {
-	    this.executionSupport = executionSupport;
-            setEnabled(false);
-        }
-
-        @Override
-        public Object getValue(String key) {
-            if (key.equals(Action.SMALL_ICON)) {
-                return new ImageIcon(TerminalIOProviderSupport.class.getResource("rerun.png"));
-            } else if (key.equals(Action.SHORT_DESCRIPTION)) {
-                return "Re-run";
-            } else {
-                return super.getValue(key);
-            }
-        }
-
-        public void actionPerformed(ActionEvent e) {
-//            System.out.printf("Re-run pressed!\n");
-            if (!isEnabled())
-                return;
-	    if (executionSupport.getState() == ExecutionSupport.State.RUNNING)
-                return;     // still someone running
-            // TMP setEnabled(false);
-	    executionSupport.reRun();
-        }
-    }
-
-    private final class StopAction extends AbstractAction {
-	private final ExecutionSupport executionSupport;
-
-        public StopAction(ExecutionSupport executionSupport) {
-	    this.executionSupport = executionSupport;
-            setEnabled(false);
-        }
-
-        @Override
-        public Object getValue(String key) {
-            if (key.equals(Action.SMALL_ICON)) {
-                return new ImageIcon(TerminalIOProviderSupport.class.getResource("stop.png"));
-            } else if (key.equals(Action.SHORT_DESCRIPTION)) {
-                return "Stop";
-            } else {
-                return super.getValue(key);
-            }
-        }
-
-        public void actionPerformed(ActionEvent e) {
-//            System.out.printf("Stop pressed!\n");
-            if (!isEnabled())
-                return;
-	    if (executionSupport.getState() != ExecutionSupport.State.RUNNING)
-                return;
-            // TMP setEnabled(false);
-	    executionSupport.stop();
-        }
-    }
-
-
-    public static IOContainer getIOContainer(Config config) {
-	switch (config.getContainerStyle()) {
-	    case MUXED: {
-		MuxableTerminalTopComponent ttc = MuxableTerminalTopComponent.findInstance();
-		return ttc.ioContainer();
-		}
-	    case TABBED:
-	    default: {
-		TerminalTopComponent ttc = TerminalTopComponent.findInstance();
-		return ttc.ioContainer();
-		}
-	}
-    }
-
-    public static IOProvider getIOProvider() {
-        IOProvider iop = IOProvider.get("Terminal");       // NOI18N
-        if (iop == null) {
-//            System.out.printf("IOProviderActionSupport.getTermIOProvider() couldn't find our provider\n");
-            iop = IOProvider.getDefault();
-        }
-        return iop;
-    }
-
-
-    /**
-     * Declare whether io to 'io' is internal to the IDE or external, via a pty.
-     * For internal io Term requires a proper line discipline, for example,
-     * to convert the "\n" emitted by println() to a "\n\r" and so on.
-     * @param io The InputOutput to modify.
-     * @param b Add line discipline if true.
-     */
-    public static void setInternal(InputOutput io, boolean b) {
-	if (IOEmulation.isSupported(io) && b)
-	    IOEmulation.setDisciplined(io);
-    }
-
-
-    public InputOutput executeRichCommand(IOProvider iop, IOContainer ioContainer) {
-	if (richExecutionSupport.isRunning())
-            throw new IllegalStateException("Process already running");
-
-	final String title = "Cmd: " + config.getCommand();
-	if (config.isRestartable()) {
-	    Action stopAction = new StopAction(richExecutionSupport);
-	    Action rerunAction = new RerunAction(richExecutionSupport);
-	    richExecutionSupport.setRestartable(stopAction, rerunAction);
-	}
-
-	richExecutionSupport.setInternalIOShuttle(config.getIOShuttling() == Config.IOShuttling.INTERNAL);
-	InputOutput io = richExecutionSupport.setupIO(iop, ioContainer, title, config);
-
-	richExecutionSupport.execute(config.getCommand());
-	return io;
-    }
-
-    public InputOutput executeNativeCommand(IOProvider iop, IOContainer ioContainer) {
-	if (nativeExecutionSupport.isRunning())
-            throw new IllegalStateException("Process already running");
-
-	final String title = "Cmd: " + config.getCommand();
-
-	if (config.isRestartable()) {
-	    Action stopAction = new StopAction(nativeExecutionSupport);
-	    Action rerunAction = new RerunAction(nativeExecutionSupport);
-	    nativeExecutionSupport.setRestartable(stopAction, rerunAction);
-	}
-
-	nativeExecutionSupport.setInternalIOShuttle(config.getIOShuttling() == Config.IOShuttling.INTERNAL);
-	InputOutput io = nativeExecutionSupport.setupIO(iop, ioContainer, title, config);
-
-	nativeExecutionSupport.execute(config.getCommand());
-	return io;
-    }
-}
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/comprehensive/Bundle.properties b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/comprehensive/Bundle.properties
deleted file mode 100644
index 5b90fc64f..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/comprehensive/Bundle.properties
+++ /dev/null
@@ -1,61 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-CTL_CommandTerminalAction=Test Terminal with Rich/Native Execution
-CTL_SelectLastAction=Select Last
-TerminalDialog.commandLabel.text=Command:
-TerminalDialog.commandTextField.text=jTextField1
-TerminalDialog.tcLabel.text=TopComponent:
-TerminalDialog.tcRadioButtonDefault.text=Default
-TerminalDialog.tcRadioButtonDedicated.text=Dedicated
-TerminalDialog.providerLabel.text=Provider:
-TerminalDialog.providerRadioButton_Default.text=Default IOProvider
-TerminalDialog.providerRadioButton_Term.text=TermIOProvider
-TerminalDialog.providerRadioButton_Direct.text=Direct API use
-TerminalPanel.commandLabel.text=Command:
-TerminalPanel.commandTextField.text=bash
-TerminalPanel.containerProviderLabel.text=Container provider:
-TerminalPanel.containerProviderRadioButton_DEFAULT.text=Default
-TerminalPanel.containerProviderRadioButton_TERM.text=Term
-TerminalPanel.jLabel1.text=IO provider:
-TerminalPanel.ioProviderRadioButton_DEFAULT.text=Default
-TerminalPanel.ioProviderRadioButton_TERM.text=Term
-TerminalPanel.threadLabel.text=Thread:
-TerminalPanel.threadRadioButton_EDT.text=EDT
-TerminalPanel.rpRadioButton.text=RP
-TerminalPanel.restartableLabel.text=Restartable:
-TerminalPanel.restartableCheckBox.text=
-TerminalPanel.excutionLabel.text=Execution:
-TerminalPanel.executionRadioButton_RICH.text=Rich
-TerminalPanel.excutionRadioButton_NATIVE.text=Native
-TerminalPanel.restartableLabel.toolTipText=ReRun and Stop Actions
-TerminalPanel.ioShuttlingLabel.text=I/O shuttling:
-TerminalPanel.ioShutlingRadioButton_INTERNAL.text=Internal
-TerminalPanel.ioShuttlingRadioButton_EXTERNAL.text=External
-TerminalPanel.allowCloseLabel.text=Allow Close:
-TerminalPanel.allowCloseRadioButton_NEVER.text=Never
-TerminalPanel.allowCloseRadioButton_ALWAYS.text=Unconditionally
-TerminalPanel.allowCloseRadioButton_DISCONNECTED.text=Only if disconnected
-TerminalPanel.hupOnCloseLabel.text=HUP on Close:
-TerminalPanel.hupOnCloseCheckBox.text=
-TerminalPanel.keepCheckBox.text=
-TerminalPanel.keepLabel.text=Keep:
-TerminalPanel.tabbedRadioButton.text=Tabbed
-TerminalPanel.multiplexedRadioButton.text=Multiplexed
-TerminalPanel.keepCheckBox1.text=
-TerminalPanel.keepLabel1.text=Keep:
-TerminalPanel.debugLabel.text=Debug:
-TerminalPanel.debugCheckBox.text=
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/comprehensive/CommandTerminalAction.java b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/comprehensive/CommandTerminalAction.java
deleted file mode 100644
index f808dfc78..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/comprehensive/CommandTerminalAction.java
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.terminal.example.comprehensive;
-
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import javax.swing.SwingUtilities;
-import org.netbeans.terminal.example.Config;
-
-import org.openide.DialogDescriptor;
-import org.openide.DialogDisplayer;
-import org.openide.windows.IOProvider;
-import org.openide.windows.IOContainer;
-
-
-import org.netbeans.terminal.example.TerminalIOProviderSupport;
-import org.openide.util.RequestProcessor;
-import org.openide.windows.InputOutput;
-
-public final class CommandTerminalAction implements ActionListener {
-
-    private final TerminalPanel terminalPanel = new TerminalPanel();
-
-    public static InputOutput lastIO;
-
-    public void actionPerformed(ActionEvent e) {
-
-	DialogDescriptor dd = new DialogDescriptor(
-		terminalPanel,
-		"Start Terminal",
-		true,
-		new Object[] {
-		    DialogDescriptor.OK_OPTION,
-		    DialogDescriptor.CANCEL_OPTION,
-		},
-		DialogDescriptor.CANCEL_OPTION,
-		DialogDescriptor.BOTTOM_ALIGN,
-		null,		// HelpCtx
-		null		// ActionListener
-		);
-
-	// null means all options close dialog:
-        // 0-sized array means no option closes dialog
-	dd.setClosingOptions(null);
-
-	Object closer = DialogDisplayer.getDefault().notify(dd);
-	if (closer == DialogDescriptor.CANCEL_OPTION) {
-//	    System.out.printf("Dialog cancelled\n");
-	    return;
-	}
-	if (closer == DialogDescriptor.CLOSED_OPTION) {
-//	    System.out.printf("Dialog closed\n");
-	    return;
-	}
-
-
-	final Config config = terminalPanel.getConfig();
-	final String cmd = config.getCommand();
-        if (cmd == null || cmd.trim().equals(""))
-            return;
-
-	final TerminalIOProviderSupport support = new TerminalIOProviderSupport(config);
-	final IOContainer container;
-	final IOProvider iop;
-
-	switch (config.getContainerProvider()) {
-	    case TERM:
-		container = TerminalIOProviderSupport.getIOContainer(config);
-		break;
-	    case DEFAULT:
-	    default:
-		container = null;
-		break;
-	}
-
-	switch (config.getIOProvider()) {
-	    case TERM:
-		iop = TerminalIOProviderSupport.getIOProvider();
-		break;
-	    case DEFAULT:
-	    default:
-		iop = IOProvider.getDefault();
-		break;
-	}
-
-	final Runnable runnable = new Runnable() {
-	    public void run() {
-		final InputOutput io;
-		switch (config.getExecution()) {
-		    case RICH:
-			io = support.executeRichCommand(iop, container);
-			break;
-		    case NATIVE:
-			io = support.executeNativeCommand(iop, container);
-			break;
-		    default:
-			io = null;
-			break;
-		}
-		lastIO = io;
-	    }
-	};
-
-	switch (config.getThread()) {
-	    case EDT:
-		SwingUtilities.invokeLater(runnable);
-		break;
-	    case RP:
-		RequestProcessor.getDefault().execute(runnable);
-		break;
-	}
-    }
-}
\ No newline at end of file
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/comprehensive/SelectLastAction.java b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/comprehensive/SelectLastAction.java
deleted file mode 100644
index 28589731a..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/comprehensive/SelectLastAction.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.terminal.example.comprehensive;
-
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-
-public final class SelectLastAction implements ActionListener {
-
-    public void actionPerformed(ActionEvent e) {
-	if (CommandTerminalAction.lastIO == null)
-	    return;
-	else
-	    CommandTerminalAction.lastIO.select();
-    }
-}
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/comprehensive/TerminalPanel.form b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/comprehensive/TerminalPanel.form
deleted file mode 100644
index 013b5b6d5..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/comprehensive/TerminalPanel.form
+++ /dev/null
@@ -1,495 +0,0 @@
-<?xml version="1.1" encoding="UTF-8" ?>
-
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-
-<Form version="1.5" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
-  <NonVisualComponents>
-    <Component class="javax.swing.ButtonGroup" name="tcButtonGroup">
-    </Component>
-    <Component class="javax.swing.ButtonGroup" name="providerButtonGroup">
-    </Component>
-    <Component class="javax.swing.ButtonGroup" name="containerProviderButtonGroup">
-    </Component>
-    <Component class="javax.swing.ButtonGroup" name="ioProviderButtonGroup">
-    </Component>
-    <Component class="javax.swing.ButtonGroup" name="threadButtonGroup">
-    </Component>
-    <Component class="javax.swing.ButtonGroup" name="executionButtonGroup">
-    </Component>
-    <Component class="javax.swing.ButtonGroup" name="ioShuttlingButtonGroup">
-    </Component>
-    <Component class="javax.swing.ButtonGroup" name="allowCloseButtonGroup">
-    </Component>
-    <Component class="javax.swing.ButtonGroup" name="conainerStyleButtonGroup">
-    </Component>
-    <Component class="javax.swing.JCheckBox" name="keepCheckBox1">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.keepCheckBox1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JLabel" name="keepLabel1">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.keepLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-  </NonVisualComponents>
-  <AuxValues>
-    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/>
-    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
-    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/>
-    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
-    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
-    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
-  </AuxValues>
-
-  <Layout>
-    <DimensionLayout dim="0">
-      <Group type="103" groupAlignment="0" attributes="0">
-          <Group type="102" alignment="0" attributes="0">
-              <EmptySpace min="-2" pref="43" max="-2" attributes="0"/>
-              <Group type="103" groupAlignment="1" attributes="0">
-                  <Component id="debugLabel" alignment="1" min="-2" max="-2" attributes="0"/>
-                  <Component id="keepLabel" alignment="1" min="-2" max="-2" attributes="0"/>
-                  <Component id="hupOnCloseLabel" alignment="1" min="-2" max="-2" attributes="0"/>
-                  <Component id="restartableLabel" alignment="1" min="-2" max="-2" attributes="0"/>
-                  <Component id="threadLabel" alignment="1" min="-2" max="-2" attributes="0"/>
-                  <Component id="excutionLabel" alignment="1" min="-2" max="-2" attributes="0"/>
-                  <Group type="103" alignment="1" groupAlignment="1" max="-2" attributes="0">
-                      <Group type="103" alignment="0" groupAlignment="1" attributes="0">
-                          <Component id="containerProviderLabel" alignment="1" min="-2" max="-2" attributes="0"/>
-                          <Component id="commandLabel" min="-2" max="-2" attributes="0"/>
-                      </Group>
-                      <Component id="jLabel1" alignment="1" min="-2" max="-2" attributes="0"/>
-                      <Component id="ioShuttlingLabel" alignment="1" min="-2" max="-2" attributes="0"/>
-                      <Component id="allowCloseLabel" alignment="1" min="-2" max="-2" attributes="0"/>
-                  </Group>
-              </Group>
-              <EmptySpace type="separate" max="-2" attributes="0"/>
-              <Group type="103" groupAlignment="0" attributes="0">
-                  <Component id="commandTextField" alignment="0" min="-2" pref="179" max="-2" attributes="0"/>
-                  <Group type="102" alignment="0" attributes="0">
-                      <Component id="containerProviderRadioButton_DEFAULT" min="-2" max="-2" attributes="0"/>
-                      <EmptySpace type="separate" max="-2" attributes="0"/>
-                      <Component id="containerProviderRadioButton_TERM" min="-2" max="-2" attributes="0"/>
-                  </Group>
-                  <Group type="102" attributes="0">
-                      <Component id="ioProviderRadioButton_DEFAULT" min="-2" max="-2" attributes="0"/>
-                      <EmptySpace type="separate" max="-2" attributes="0"/>
-                      <Component id="ioProviderRadioButton_TERM" min="-2" max="-2" attributes="0"/>
-                  </Group>
-                  <Group type="102" alignment="0" attributes="0">
-                      <Group type="103" groupAlignment="0" attributes="0">
-                          <Component id="allowCloseRadioButton_NEVER" min="-2" max="-2" attributes="0"/>
-                          <Component id="ioShuttlingRadioButton_EXTERNAL" min="-2" max="-2" attributes="0"/>
-                      </Group>
-                      <Group type="103" groupAlignment="0" attributes="0">
-                          <Group type="102" alignment="0" attributes="0">
-                              <EmptySpace type="unrelated" max="-2" attributes="0"/>
-                              <Component id="ioShutlingRadioButton_INTERNAL" min="-2" max="-2" attributes="0"/>
-                          </Group>
-                          <Group type="102" alignment="0" attributes="0">
-                              <EmptySpace min="-2" pref="9" max="-2" attributes="0"/>
-                              <Group type="103" groupAlignment="0" attributes="0">
-                                  <Component id="excutionRadioButton_NATIVE" alignment="0" min="-2" max="-2" attributes="0"/>
-                                  <Group type="102" alignment="0" attributes="0">
-                                      <Component id="allowCloseRadioButton_ALWAYS" min="-2" max="-2" attributes="0"/>
-                                      <EmptySpace type="separate" max="-2" attributes="0"/>
-                                      <Component id="allowCloseRadioButton_DISCONNECTED" min="-2" max="-2" attributes="0"/>
-                                  </Group>
-                                  <Component id="rpRadioButton" alignment="0" min="-2" max="-2" attributes="0"/>
-                              </Group>
-                          </Group>
-                      </Group>
-                  </Group>
-                  <Group type="102" attributes="0">
-                      <Component id="tabbedRadioButton" min="-2" max="-2" attributes="0"/>
-                      <EmptySpace type="separate" max="-2" attributes="0"/>
-                      <Component id="multiplexedRadioButton" min="-2" max="-2" attributes="0"/>
-                  </Group>
-                  <Component id="executionRadioButton_RICH" min="-2" max="-2" attributes="0"/>
-                  <Component id="threadRadioButton_EDT" min="-2" max="-2" attributes="0"/>
-                  <Component id="restartableCheckBox" min="-2" max="-2" attributes="0"/>
-                  <Component id="hupOnCloseCheckBox" min="-2" max="-2" attributes="0"/>
-                  <Component id="keepCheckBox" min="-2" max="-2" attributes="0"/>
-                  <Component id="debugCheckBox" min="-2" max="-2" attributes="0"/>
-              </Group>
-              <EmptySpace pref="76" max="32767" attributes="0"/>
-          </Group>
-      </Group>
-    </DimensionLayout>
-    <DimensionLayout dim="1">
-      <Group type="103" groupAlignment="0" attributes="0">
-          <Group type="102" alignment="0" attributes="0">
-              <EmptySpace max="-2" attributes="0"/>
-              <Group type="103" groupAlignment="3" attributes="0">
-                  <Component id="commandTextField" alignment="3" min="-2" max="-2" attributes="0"/>
-                  <Component id="commandLabel" alignment="3" min="-2" max="-2" attributes="0"/>
-              </Group>
-              <EmptySpace type="unrelated" max="-2" attributes="0"/>
-              <Group type="103" groupAlignment="3" attributes="0">
-                  <Component id="containerProviderLabel" alignment="3" min="-2" max="-2" attributes="0"/>
-                  <Component id="containerProviderRadioButton_DEFAULT" alignment="3" min="-2" max="-2" attributes="0"/>
-                  <Component id="containerProviderRadioButton_TERM" alignment="3" min="-2" max="-2" attributes="0"/>
-              </Group>
-              <EmptySpace max="-2" attributes="0"/>
-              <Group type="103" groupAlignment="3" attributes="0">
-                  <Component id="tabbedRadioButton" alignment="3" min="-2" max="-2" attributes="0"/>
-                  <Component id="multiplexedRadioButton" alignment="3" min="-2" max="-2" attributes="0"/>
-              </Group>
-              <EmptySpace max="-2" attributes="0"/>
-              <Group type="103" groupAlignment="3" attributes="0">
-                  <Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/>
-                  <Component id="ioProviderRadioButton_DEFAULT" alignment="3" min="-2" max="-2" attributes="0"/>
-                  <Component id="ioProviderRadioButton_TERM" alignment="3" min="-2" max="-2" attributes="0"/>
-              </Group>
-              <EmptySpace type="unrelated" max="-2" attributes="0"/>
-              <Group type="103" groupAlignment="3" attributes="0">
-                  <Component id="ioShuttlingLabel" alignment="3" min="-2" max="-2" attributes="0"/>
-                  <Component id="ioShuttlingRadioButton_EXTERNAL" alignment="3" min="-2" max="-2" attributes="0"/>
-                  <Component id="ioShutlingRadioButton_INTERNAL" alignment="3" min="-2" max="-2" attributes="0"/>
-              </Group>
-              <EmptySpace type="unrelated" max="-2" attributes="0"/>
-              <Group type="103" groupAlignment="3" attributes="0">
-                  <Component id="allowCloseLabel" alignment="3" min="-2" max="-2" attributes="0"/>
-                  <Component id="allowCloseRadioButton_NEVER" alignment="3" min="-2" max="-2" attributes="0"/>
-                  <Component id="allowCloseRadioButton_DISCONNECTED" alignment="3" min="-2" max="-2" attributes="0"/>
-                  <Component id="allowCloseRadioButton_ALWAYS" alignment="3" min="-2" max="-2" attributes="0"/>
-              </Group>
-              <EmptySpace pref="6" max="32767" attributes="0"/>
-              <Group type="103" groupAlignment="3" attributes="0">
-                  <Component id="excutionLabel" alignment="3" min="-2" max="-2" attributes="0"/>
-                  <Component id="executionRadioButton_RICH" alignment="3" min="-2" max="-2" attributes="0"/>
-                  <Component id="excutionRadioButton_NATIVE" alignment="3" min="-2" max="-2" attributes="0"/>
-              </Group>
-              <EmptySpace type="unrelated" max="-2" attributes="0"/>
-              <Group type="103" groupAlignment="3" attributes="0">
-                  <Component id="threadLabel" alignment="3" min="-2" max="-2" attributes="0"/>
-                  <Component id="threadRadioButton_EDT" alignment="3" min="-2" max="-2" attributes="0"/>
-                  <Component id="rpRadioButton" alignment="3" min="-2" max="-2" attributes="0"/>
-              </Group>
-              <EmptySpace min="-2" pref="4" max="-2" attributes="0"/>
-              <Group type="103" groupAlignment="1" attributes="0">
-                  <Component id="restartableLabel" min="-2" max="-2" attributes="0"/>
-                  <Component id="restartableCheckBox" min="-2" max="-2" attributes="0"/>
-              </Group>
-              <EmptySpace max="-2" attributes="0"/>
-              <Group type="103" groupAlignment="1" attributes="0">
-                  <Component id="hupOnCloseLabel" min="-2" max="-2" attributes="0"/>
-                  <Component id="hupOnCloseCheckBox" min="-2" max="-2" attributes="0"/>
-              </Group>
-              <EmptySpace max="-2" attributes="0"/>
-              <Group type="103" groupAlignment="1" attributes="0">
-                  <Component id="keepLabel" min="-2" max="-2" attributes="0"/>
-                  <Component id="keepCheckBox" min="-2" max="-2" attributes="0"/>
-              </Group>
-              <EmptySpace max="-2" attributes="0"/>
-              <Group type="103" groupAlignment="3" attributes="0">
-                  <Component id="debugLabel" alignment="3" min="-2" max="-2" attributes="0"/>
-                  <Component id="debugCheckBox" alignment="3" min="-2" max="-2" attributes="0"/>
-              </Group>
-              <EmptySpace min="-2" pref="24" max="-2" attributes="0"/>
-          </Group>
-      </Group>
-    </DimensionLayout>
-  </Layout>
-  <SubComponents>
-    <Component class="javax.swing.JLabel" name="commandLabel">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.commandLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JTextField" name="commandTextField">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.commandTextField.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JLabel" name="containerProviderLabel">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.containerProviderLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JRadioButton" name="containerProviderRadioButton_DEFAULT">
-      <Properties>
-        <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
-          <ComponentRef name="containerProviderButtonGroup"/>
-        </Property>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.containerProviderRadioButton_DEFAULT.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JRadioButton" name="containerProviderRadioButton_TERM">
-      <Properties>
-        <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
-          <ComponentRef name="containerProviderButtonGroup"/>
-        </Property>
-        <Property name="selected" type="boolean" value="true"/>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.containerProviderRadioButton_TERM.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JLabel" name="jLabel1">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.jLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JRadioButton" name="ioProviderRadioButton_DEFAULT">
-      <Properties>
-        <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
-          <ComponentRef name="ioProviderButtonGroup"/>
-        </Property>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.ioProviderRadioButton_DEFAULT.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JRadioButton" name="ioProviderRadioButton_TERM">
-      <Properties>
-        <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
-          <ComponentRef name="ioProviderButtonGroup"/>
-        </Property>
-        <Property name="selected" type="boolean" value="true"/>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.ioProviderRadioButton_TERM.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JLabel" name="threadLabel">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.threadLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JRadioButton" name="threadRadioButton_EDT">
-      <Properties>
-        <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
-          <ComponentRef name="threadButtonGroup"/>
-        </Property>
-        <Property name="selected" type="boolean" value="true"/>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.threadRadioButton_EDT.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JRadioButton" name="rpRadioButton">
-      <Properties>
-        <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
-          <ComponentRef name="threadButtonGroup"/>
-        </Property>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.rpRadioButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JLabel" name="restartableLabel">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.restartableLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-        <Property name="toolTipText" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.restartableLabel.toolTipText" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JCheckBox" name="restartableCheckBox">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.restartableCheckBox.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JLabel" name="excutionLabel">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.excutionLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JRadioButton" name="executionRadioButton_RICH">
-      <Properties>
-        <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
-          <ComponentRef name="executionButtonGroup"/>
-        </Property>
-        <Property name="selected" type="boolean" value="true"/>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.executionRadioButton_RICH.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JRadioButton" name="excutionRadioButton_NATIVE">
-      <Properties>
-        <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
-          <ComponentRef name="executionButtonGroup"/>
-        </Property>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.excutionRadioButton_NATIVE.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JLabel" name="ioShuttlingLabel">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.ioShuttlingLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JRadioButton" name="ioShutlingRadioButton_INTERNAL">
-      <Properties>
-        <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
-          <ComponentRef name="ioShuttlingButtonGroup"/>
-        </Property>
-        <Property name="selected" type="boolean" value="true"/>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.ioShutlingRadioButton_INTERNAL.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JRadioButton" name="ioShuttlingRadioButton_EXTERNAL">
-      <Properties>
-        <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
-          <ComponentRef name="ioShuttlingButtonGroup"/>
-        </Property>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.ioShuttlingRadioButton_EXTERNAL.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JLabel" name="allowCloseLabel">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.allowCloseLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JRadioButton" name="allowCloseRadioButton_NEVER">
-      <Properties>
-        <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
-          <ComponentRef name="allowCloseButtonGroup"/>
-        </Property>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.allowCloseRadioButton_NEVER.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JRadioButton" name="allowCloseRadioButton_ALWAYS">
-      <Properties>
-        <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
-          <ComponentRef name="allowCloseButtonGroup"/>
-        </Property>
-        <Property name="selected" type="boolean" value="true"/>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.allowCloseRadioButton_ALWAYS.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JRadioButton" name="allowCloseRadioButton_DISCONNECTED">
-      <Properties>
-        <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
-          <ComponentRef name="allowCloseButtonGroup"/>
-        </Property>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.allowCloseRadioButton_DISCONNECTED.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JLabel" name="hupOnCloseLabel">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.hupOnCloseLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JCheckBox" name="hupOnCloseCheckBox">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.hupOnCloseCheckBox.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JLabel" name="keepLabel">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.keepLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JCheckBox" name="keepCheckBox">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.keepCheckBox.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JRadioButton" name="tabbedRadioButton">
-      <Properties>
-        <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
-          <ComponentRef name="conainerStyleButtonGroup"/>
-        </Property>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.tabbedRadioButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JRadioButton" name="multiplexedRadioButton">
-      <Properties>
-        <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
-          <ComponentRef name="conainerStyleButtonGroup"/>
-        </Property>
-        <Property name="selected" type="boolean" value="true"/>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.multiplexedRadioButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JLabel" name="debugLabel">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.debugLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-    <Component class="javax.swing.JCheckBox" name="debugCheckBox">
-      <Properties>
-        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-          <ResourceString bundle="org/netbeans/terminal/example/comprehensive/Bundle.properties" key="TerminalPanel.debugCheckBox.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
-        </Property>
-      </Properties>
-    </Component>
-  </SubComponents>
-</Form>
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/comprehensive/TerminalPanel.java b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/comprehensive/TerminalPanel.java
deleted file mode 100644
index 59864a93e..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/comprehensive/TerminalPanel.java
+++ /dev/null
@@ -1,447 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/*
- * TerminalPanel.java
- *
- * Created on Feb 16, 2010, 5:44:59 PM
- */
-
-package org.netbeans.terminal.example.comprehensive;
-
-import org.netbeans.terminal.example.Config;
-import org.netbeans.terminal.example.Config.AllowClose;
-import org.netbeans.terminal.example.Config.ContainerStyle;
-import org.netbeans.terminal.example.Config.Provider;
-import org.netbeans.terminal.example.Config.DispatchThread;
-import org.netbeans.terminal.example.Config.Execution;
-import org.netbeans.terminal.example.Config.IOShuttling;
-
-/**
- *
- * @author ivan
- */
-public final class TerminalPanel extends javax.swing.JPanel {
-
-    /** Creates new form TerminalPanel */
-    public TerminalPanel() {
-        initComponents();
-    }
-
-    public Config getConfig() {
-	return new Config(
-		getCommand(),
-		getContainerProvider(),
-		getIOProvider(),
-		getAllowClose(),
-		getThread(),
-		getExecution(),
-		getIOShuttling(),
-		getContainerStyle(),
-		isRestartable(),
-		isHUPOnClose(),
-		isKeep(),
-                isDebug()
-		);
-    }
-
-    private String getCommand() {
-	return commandTextField.getText();
-    }
-
-    private Provider getContainerProvider() {
-	if (containerProviderRadioButton_DEFAULT.isSelected())
-	    return Provider.DEFAULT;
-	else
-	    return Provider.TERM;
-    }
-
-    private Provider getIOProvider() {
-	if (ioProviderRadioButton_DEFAULT.isSelected())
-	    return Provider.DEFAULT;
-	else
-	    return Provider.TERM;
-    }
-
-    private AllowClose getAllowClose() {
-	if (allowCloseRadioButton_ALWAYS.isSelected())
-	    return AllowClose.ALWAYS;
-	else if (allowCloseRadioButton_NEVER.isSelected())
-	    return AllowClose.NEVER;
-	else if (allowCloseRadioButton_DISCONNECTED.isSelected())
-	    return AllowClose.DISCONNECTED;
-	else
-	    return AllowClose.ALWAYS;
-    }
-
-    private DispatchThread getThread() {
-	if (threadRadioButton_EDT.isSelected())
-	    return DispatchThread.EDT;
-	else
-	    return DispatchThread.RP;
-    }
-
-    private Execution getExecution() {
-	if (executionRadioButton_RICH.isSelected())
-	    return Execution.RICH;
-	else
-	    return Execution.NATIVE;
-    }
-
-    private boolean isRestartable() {
-	return restartableCheckBox.isSelected();
-    }
-
-    private boolean isHUPOnClose() {
-	return hupOnCloseCheckBox.isSelected();
-    }
-
-    private boolean isKeep() {
-	return keepCheckBox.isSelected();
-    }
-
-    private boolean isDebug() {
-	return debugCheckBox.isSelected();
-    }
-
-    private IOShuttling getIOShuttling() {
-	if (ioShutlingRadioButton_INTERNAL.isSelected())
-	    return IOShuttling.INTERNAL;
-	else
-	    return IOShuttling.EXTERNAL;
-    }
-
-    private Config.ContainerStyle getContainerStyle() {
-	if (tabbedRadioButton.isSelected())
-	    return ContainerStyle.TABBED;
-	else
-	    return ContainerStyle.MUXED;
-    }
-
-    /** This method is called from within the constructor to
-     * initialize the form.
-     * WARNING: Do NOT modify this code. The content of this method is
-     * always regenerated by the Form Editor.
-     */
-
-    @SuppressWarnings("unchecked")
-        // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
-        private void initComponents() {
-
-                tcButtonGroup = new javax.swing.ButtonGroup();
-                providerButtonGroup = new javax.swing.ButtonGroup();
-                containerProviderButtonGroup = new javax.swing.ButtonGroup();
-                ioProviderButtonGroup = new javax.swing.ButtonGroup();
-                threadButtonGroup = new javax.swing.ButtonGroup();
-                executionButtonGroup = new javax.swing.ButtonGroup();
-                ioShuttlingButtonGroup = new javax.swing.ButtonGroup();
-                allowCloseButtonGroup = new javax.swing.ButtonGroup();
-                conainerStyleButtonGroup = new javax.swing.ButtonGroup();
-                keepCheckBox1 = new javax.swing.JCheckBox();
-                keepLabel1 = new javax.swing.JLabel();
-                commandLabel = new javax.swing.JLabel();
-                commandTextField = new javax.swing.JTextField();
-                containerProviderLabel = new javax.swing.JLabel();
-                containerProviderRadioButton_DEFAULT = new javax.swing.JRadioButton();
-                containerProviderRadioButton_TERM = new javax.swing.JRadioButton();
-                jLabel1 = new javax.swing.JLabel();
-                ioProviderRadioButton_DEFAULT = new javax.swing.JRadioButton();
-                ioProviderRadioButton_TERM = new javax.swing.JRadioButton();
-                threadLabel = new javax.swing.JLabel();
-                threadRadioButton_EDT = new javax.swing.JRadioButton();
-                rpRadioButton = new javax.swing.JRadioButton();
-                restartableLabel = new javax.swing.JLabel();
-                restartableCheckBox = new javax.swing.JCheckBox();
-                excutionLabel = new javax.swing.JLabel();
-                executionRadioButton_RICH = new javax.swing.JRadioButton();
-                excutionRadioButton_NATIVE = new javax.swing.JRadioButton();
-                ioShuttlingLabel = new javax.swing.JLabel();
-                ioShutlingRadioButton_INTERNAL = new javax.swing.JRadioButton();
-                ioShuttlingRadioButton_EXTERNAL = new javax.swing.JRadioButton();
-                allowCloseLabel = new javax.swing.JLabel();
-                allowCloseRadioButton_NEVER = new javax.swing.JRadioButton();
-                allowCloseRadioButton_ALWAYS = new javax.swing.JRadioButton();
-                allowCloseRadioButton_DISCONNECTED = new javax.swing.JRadioButton();
-                hupOnCloseLabel = new javax.swing.JLabel();
-                hupOnCloseCheckBox = new javax.swing.JCheckBox();
-                keepLabel = new javax.swing.JLabel();
-                keepCheckBox = new javax.swing.JCheckBox();
-                tabbedRadioButton = new javax.swing.JRadioButton();
-                multiplexedRadioButton = new javax.swing.JRadioButton();
-                debugLabel = new javax.swing.JLabel();
-                debugCheckBox = new javax.swing.JCheckBox();
-
-                keepCheckBox1.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.keepCheckBox1.text")); // NOI18N
-
-                keepLabel1.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.keepLabel1.text")); // NOI18N
-
-                commandLabel.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.commandLabel.text")); // NOI18N
-
-                commandTextField.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.commandTextField.text")); // NOI18N
-
-                containerProviderLabel.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.containerProviderLabel.text")); // NOI18N
-
-                containerProviderButtonGroup.add(containerProviderRadioButton_DEFAULT);
-                containerProviderRadioButton_DEFAULT.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.containerProviderRadioButton_DEFAULT.text")); // NOI18N
-
-                containerProviderButtonGroup.add(containerProviderRadioButton_TERM);
-                containerProviderRadioButton_TERM.setSelected(true);
-                containerProviderRadioButton_TERM.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.containerProviderRadioButton_TERM.text")); // NOI18N
-
-                jLabel1.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.jLabel1.text")); // NOI18N
-
-                ioProviderButtonGroup.add(ioProviderRadioButton_DEFAULT);
-                ioProviderRadioButton_DEFAULT.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.ioProviderRadioButton_DEFAULT.text")); // NOI18N
-
-                ioProviderButtonGroup.add(ioProviderRadioButton_TERM);
-                ioProviderRadioButton_TERM.setSelected(true);
-                ioProviderRadioButton_TERM.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.ioProviderRadioButton_TERM.text")); // NOI18N
-
-                threadLabel.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.threadLabel.text")); // NOI18N
-
-                threadButtonGroup.add(threadRadioButton_EDT);
-                threadRadioButton_EDT.setSelected(true);
-                threadRadioButton_EDT.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.threadRadioButton_EDT.text")); // NOI18N
-
-                threadButtonGroup.add(rpRadioButton);
-                rpRadioButton.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.rpRadioButton.text")); // NOI18N
-
-                restartableLabel.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.restartableLabel.text")); // NOI18N
-                restartableLabel.setToolTipText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.restartableLabel.toolTipText")); // NOI18N
-
-                restartableCheckBox.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.restartableCheckBox.text")); // NOI18N
-
-                excutionLabel.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.excutionLabel.text")); // NOI18N
-
-                executionButtonGroup.add(executionRadioButton_RICH);
-                executionRadioButton_RICH.setSelected(true);
-                executionRadioButton_RICH.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.executionRadioButton_RICH.text")); // NOI18N
-
-                executionButtonGroup.add(excutionRadioButton_NATIVE);
-                excutionRadioButton_NATIVE.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.excutionRadioButton_NATIVE.text")); // NOI18N
-
-                ioShuttlingLabel.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.ioShuttlingLabel.text")); // NOI18N
-
-                ioShuttlingButtonGroup.add(ioShutlingRadioButton_INTERNAL);
-                ioShutlingRadioButton_INTERNAL.setSelected(true);
-                ioShutlingRadioButton_INTERNAL.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.ioShutlingRadioButton_INTERNAL.text")); // NOI18N
-
-                ioShuttlingButtonGroup.add(ioShuttlingRadioButton_EXTERNAL);
-                ioShuttlingRadioButton_EXTERNAL.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.ioShuttlingRadioButton_EXTERNAL.text")); // NOI18N
-
-                allowCloseLabel.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.allowCloseLabel.text")); // NOI18N
-
-                allowCloseButtonGroup.add(allowCloseRadioButton_NEVER);
-                allowCloseRadioButton_NEVER.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.allowCloseRadioButton_NEVER.text")); // NOI18N
-
-                allowCloseButtonGroup.add(allowCloseRadioButton_ALWAYS);
-                allowCloseRadioButton_ALWAYS.setSelected(true);
-                allowCloseRadioButton_ALWAYS.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.allowCloseRadioButton_ALWAYS.text")); // NOI18N
-
-                allowCloseButtonGroup.add(allowCloseRadioButton_DISCONNECTED);
-                allowCloseRadioButton_DISCONNECTED.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.allowCloseRadioButton_DISCONNECTED.text")); // NOI18N
-
-                hupOnCloseLabel.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.hupOnCloseLabel.text")); // NOI18N
-
-                hupOnCloseCheckBox.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.hupOnCloseCheckBox.text")); // NOI18N
-
-                keepLabel.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.keepLabel.text")); // NOI18N
-
-                keepCheckBox.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.keepCheckBox.text")); // NOI18N
-
-                conainerStyleButtonGroup.add(tabbedRadioButton);
-                tabbedRadioButton.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.tabbedRadioButton.text")); // NOI18N
-
-                conainerStyleButtonGroup.add(multiplexedRadioButton);
-                multiplexedRadioButton.setSelected(true);
-                multiplexedRadioButton.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.multiplexedRadioButton.text")); // NOI18N
-
-                debugLabel.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.debugLabel.text")); // NOI18N
-
-                debugCheckBox.setText(org.openide.util.NbBundle.getMessage(TerminalPanel.class, "TerminalPanel.debugCheckBox.text")); // NOI18N
-
-                javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
-                this.setLayout(layout);
-                layout.setHorizontalGroup(
-                        layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-                        .addGroup(layout.createSequentialGroup()
-                                .addGap(43, 43, 43)
-                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
-                                        .addComponent(debugLabel)
-                                        .addComponent(keepLabel)
-                                        .addComponent(hupOnCloseLabel)
-                                        .addComponent(restartableLabel)
-                                        .addComponent(threadLabel)
-                                        .addComponent(excutionLabel)
-                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
-                                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
-                                                        .addComponent(containerProviderLabel)
-                                                        .addComponent(commandLabel))
-                                                .addComponent(jLabel1)
-                                                .addComponent(ioShuttlingLabel)
-                                                .addComponent(allowCloseLabel)))
-                                .addGap(18, 18, 18)
-                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-                                        .addComponent(commandTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)
-                                        .addGroup(layout.createSequentialGroup()
-                                                .addComponent(containerProviderRadioButton_DEFAULT)
-                                                .addGap(18, 18, 18)
-                                                .addComponent(containerProviderRadioButton_TERM))
-                                        .addGroup(layout.createSequentialGroup()
-                                                .addComponent(ioProviderRadioButton_DEFAULT)
-                                                .addGap(18, 18, 18)
-                                                .addComponent(ioProviderRadioButton_TERM))
-                                        .addGroup(layout.createSequentialGroup()
-                                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-                                                        .addComponent(allowCloseRadioButton_NEVER)
-                                                        .addComponent(ioShuttlingRadioButton_EXTERNAL))
-                                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-                                                        .addGroup(layout.createSequentialGroup()
-                                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
-                                                                .addComponent(ioShutlingRadioButton_INTERNAL))
-                                                        .addGroup(layout.createSequentialGroup()
-                                                                .addGap(9, 9, 9)
-                                                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-                                                                        .addComponent(excutionRadioButton_NATIVE)
-                                                                        .addGroup(layout.createSequentialGroup()
-                                                                                .addComponent(allowCloseRadioButton_ALWAYS)
-                                                                                .addGap(18, 18, 18)
-                                                                                .addComponent(allowCloseRadioButton_DISCONNECTED))
-                                                                        .addComponent(rpRadioButton)))))
-                                        .addGroup(layout.createSequentialGroup()
-                                                .addComponent(tabbedRadioButton)
-                                                .addGap(18, 18, 18)
-                                                .addComponent(multiplexedRadioButton))
-                                        .addComponent(executionRadioButton_RICH)
-                                        .addComponent(threadRadioButton_EDT)
-                                        .addComponent(restartableCheckBox)
-                                        .addComponent(hupOnCloseCheckBox)
-                                        .addComponent(keepCheckBox)
-                                        .addComponent(debugCheckBox))
-                                .addContainerGap(76, Short.MAX_VALUE))
-                );
-                layout.setVerticalGroup(
-                        layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
-                        .addGroup(layout.createSequentialGroup()
-                                .addContainerGap()
-                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
-                                        .addComponent(commandTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
-                                        .addComponent(commandLabel))
-                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
-                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
-                                        .addComponent(containerProviderLabel)
-                                        .addComponent(containerProviderRadioButton_DEFAULT)
-                                        .addComponent(containerProviderRadioButton_TERM))
-                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
-                                        .addComponent(tabbedRadioButton)
-                                        .addComponent(multiplexedRadioButton))
-                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
-                                        .addComponent(jLabel1)
-                                        .addComponent(ioProviderRadioButton_DEFAULT)
-                                        .addComponent(ioProviderRadioButton_TERM))
-                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
-                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
-                                        .addComponent(ioShuttlingLabel)
-                                        .addComponent(ioShuttlingRadioButton_EXTERNAL)
-                                        .addComponent(ioShutlingRadioButton_INTERNAL))
-                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
-                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
-                                        .addComponent(allowCloseLabel)
-                                        .addComponent(allowCloseRadioButton_NEVER)
-                                        .addComponent(allowCloseRadioButton_DISCONNECTED)
-                                        .addComponent(allowCloseRadioButton_ALWAYS))
-                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 6, Short.MAX_VALUE)
-                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
-                                        .addComponent(excutionLabel)
-                                        .addComponent(executionRadioButton_RICH)
-                                        .addComponent(excutionRadioButton_NATIVE))
-                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
-                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
-                                        .addComponent(threadLabel)
-                                        .addComponent(threadRadioButton_EDT)
-                                        .addComponent(rpRadioButton))
-                                .addGap(4, 4, 4)
-                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
-                                        .addComponent(restartableLabel)
-                                        .addComponent(restartableCheckBox))
-                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
-                                        .addComponent(hupOnCloseLabel)
-                                        .addComponent(hupOnCloseCheckBox))
-                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
-                                        .addComponent(keepLabel)
-                                        .addComponent(keepCheckBox))
-                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
-                                        .addComponent(debugLabel)
-                                        .addComponent(debugCheckBox))
-                                .addGap(24, 24, 24))
-                );
-        }// </editor-fold>//GEN-END:initComponents
-
-
-        // Variables declaration - do not modify//GEN-BEGIN:variables
-        private javax.swing.ButtonGroup allowCloseButtonGroup;
-        private javax.swing.JLabel allowCloseLabel;
-        private javax.swing.JRadioButton allowCloseRadioButton_ALWAYS;
-        private javax.swing.JRadioButton allowCloseRadioButton_DISCONNECTED;
-        private javax.swing.JRadioButton allowCloseRadioButton_NEVER;
-        private javax.swing.JLabel commandLabel;
-        private javax.swing.JTextField commandTextField;
-        private javax.swing.ButtonGroup conainerStyleButtonGroup;
-        private javax.swing.ButtonGroup containerProviderButtonGroup;
-        private javax.swing.JLabel containerProviderLabel;
-        private javax.swing.JRadioButton containerProviderRadioButton_DEFAULT;
-        private javax.swing.JRadioButton containerProviderRadioButton_TERM;
-        private javax.swing.JCheckBox debugCheckBox;
-        private javax.swing.JLabel debugLabel;
-        private javax.swing.JLabel excutionLabel;
-        private javax.swing.JRadioButton excutionRadioButton_NATIVE;
-        private javax.swing.ButtonGroup executionButtonGroup;
-        private javax.swing.JRadioButton executionRadioButton_RICH;
-        private javax.swing.JCheckBox hupOnCloseCheckBox;
-        private javax.swing.JLabel hupOnCloseLabel;
-        private javax.swing.ButtonGroup ioProviderButtonGroup;
-        private javax.swing.JRadioButton ioProviderRadioButton_DEFAULT;
-        private javax.swing.JRadioButton ioProviderRadioButton_TERM;
-        private javax.swing.JRadioButton ioShutlingRadioButton_INTERNAL;
-        private javax.swing.ButtonGroup ioShuttlingButtonGroup;
-        private javax.swing.JLabel ioShuttlingLabel;
-        private javax.swing.JRadioButton ioShuttlingRadioButton_EXTERNAL;
-        private javax.swing.JLabel jLabel1;
-        private javax.swing.JCheckBox keepCheckBox;
-        private javax.swing.JCheckBox keepCheckBox1;
-        private javax.swing.JLabel keepLabel;
-        private javax.swing.JLabel keepLabel1;
-        private javax.swing.JRadioButton multiplexedRadioButton;
-        private javax.swing.ButtonGroup providerButtonGroup;
-        private javax.swing.JCheckBox restartableCheckBox;
-        private javax.swing.JLabel restartableLabel;
-        private javax.swing.JRadioButton rpRadioButton;
-        private javax.swing.JRadioButton tabbedRadioButton;
-        private javax.swing.ButtonGroup tcButtonGroup;
-        private javax.swing.ButtonGroup threadButtonGroup;
-        private javax.swing.JLabel threadLabel;
-        private javax.swing.JRadioButton threadRadioButton_EDT;
-        // End of variables declaration//GEN-END:variables
-
-}
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/control/Bundle.properties b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/control/Bundle.properties
deleted file mode 100644
index 075a47340..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/control/Bundle.properties
+++ /dev/null
@@ -1,19 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-CTL_ControlAction=Control
-CTL_ControlTopComponent=Control Window
-HINT_ControlTopComponent=This is a Control window
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/control/ControlModel.java b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/control/ControlModel.java
deleted file mode 100644
index 67c7e7132..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/control/ControlModel.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.terminal.example.control;
-
-import java.util.ArrayList;
-import java.util.List;
-import org.netbeans.terminal.example.Config;
-import org.openide.windows.InputOutput;
-
-/**
- *
- * @author ivan
- */
-public class ControlModel {
-
-    public static class IOInfo {
-	public final InputOutput io;
-	public final Config config;
-	public final String name;
-
-	public IOInfo(InputOutput io, Config config, String name) {
-	    this.io = io;
-	    this.config = config;
-	    this.name = name;
-	}
-    }
-
-    private static final List<IOInfo> list = new ArrayList<IOInfo>();
-    private static ControlView view;
-
-    public static void setView(ControlView newView) {
-	view = newView;
-	view.refresh();
-    }
-
-    public static void add(InputOutput io, Config config, String name) {
-	IOInfo ii = new IOInfo(io, config, name);
-	list.add(ii);
-        if (view != null)
-            view.refresh();
-    }
-
-    public static List<IOInfo> list() {
-	return list;
-    }
-}
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/control/ControlTopComponent.form b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/control/ControlTopComponent.form
deleted file mode 100644
index df2388141..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/control/ControlTopComponent.form
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.1" encoding="UTF-8" ?>
-
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-
-<Form version="1.3" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
-  <AuxValues>
-    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/>
-    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
-    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
-    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/>
-    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
-    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
-    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
-  </AuxValues>
-
-  <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
-</Form>
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/control/ControlTopComponent.java b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/control/ControlTopComponent.java
deleted file mode 100644
index 840ab4829..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/control/ControlTopComponent.java
+++ /dev/null
@@ -1,138 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.terminal.example.control;
-
-import java.awt.BorderLayout;
-import java.util.logging.Logger;
-import org.openide.util.NbBundle;
-import org.openide.windows.TopComponent;
-import org.openide.windows.WindowManager;
-//import org.openide.util.ImageUtilities;
-import org.netbeans.api.settings.ConvertAsProperties;
-import org.netbeans.lib.terminalemulator.ActiveTerm;
-
-/**
- * Top component which displays something.
- */
-@ConvertAsProperties(dtd = "-//org.netbeans.terminal.example.control//Control//EN",
-autostore = false)
-public final class ControlTopComponent extends TopComponent {
-
-    private static ControlTopComponent instance;
-    /** path to the icon used by the component and its open action */
-//    static final String ICON_PATH = "SET/PATH/TO/ICON/HERE";
-    private static final String PREFERRED_ID = "ControlTopComponent";
-
-    public ControlTopComponent() {
-	initComponents();
-	setName(NbBundle.getMessage(ControlTopComponent.class, "CTL_ControlTopComponent"));
-	setToolTipText(NbBundle.getMessage(ControlTopComponent.class, "HINT_ControlTopComponent"));
-//        setIcon(ImageUtilities.loadImage(ICON_PATH, true));
-
-	ActiveTerm term = new ActiveTerm();
-	ControlView view = new ControlView(term);
-	ControlModel.setView(view);
-	add(term, BorderLayout.CENTER);
-    }
-
-    /** This method is called from within the constructor to
-     * initialize the form.
-     * WARNING: Do NOT modify this code. The content of this method is
-     * always regenerated by the Form Editor.
-     */
-        // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
-        private void initComponents() {
-
-                setLayout(new java.awt.BorderLayout());
-        }// </editor-fold>//GEN-END:initComponents
-
-        // Variables declaration - do not modify//GEN-BEGIN:variables
-        // End of variables declaration//GEN-END:variables
-    /**
-     * Gets default instance. Do not use directly: reserved for *.settings files only,
-     * i.e. deserialization routines; otherwise you could get a non-deserialized instance.
-     * To obtain the singleton instance, use {@link #findInstance}.
-     */
-    public static synchronized ControlTopComponent getDefault() {
-	if (instance == null) {
-	    instance = new ControlTopComponent();
-	}
-	return instance;
-    }
-
-    /**
-     * Obtain the ControlTopComponent instance. Never call {@link #getDefault} directly!
-     */
-    public static synchronized ControlTopComponent findInstance() {
-	TopComponent win = WindowManager.getDefault().findTopComponent(PREFERRED_ID);
-	if (win == null) {
-	    Logger.getLogger(ControlTopComponent.class.getName()).warning(
-		    "Cannot find " + PREFERRED_ID + " component. It will not be located properly in the window system.");
-	    return getDefault();
-	}
-	if (win instanceof ControlTopComponent) {
-	    return (ControlTopComponent) win;
-	}
-	Logger.getLogger(ControlTopComponent.class.getName()).warning(
-		"There seem to be multiple components with the '" + PREFERRED_ID
-		+ "' ID. That is a potential source of errors and unexpected behavior.");
-	return getDefault();
-    }
-
-    @Override
-    public int getPersistenceType() {
-	return TopComponent.PERSISTENCE_ALWAYS;
-    }
-
-    @Override
-    public void componentOpened() {
-	// TODO add custom code on component opening
-    }
-
-    @Override
-    public void componentClosed() {
-	// TODO add custom code on component closing
-    }
-
-    void writeProperties(java.util.Properties p) {
-	// better to version settings since initial version as advocated at
-	// http://wiki.apidesign.org/wiki/PropertyFiles
-	p.setProperty("version", "1.0");
-	// TODO store your settings
-    }
-
-    Object readProperties(java.util.Properties p) {
-	if (instance == null) {
-	    instance = this;
-	}
-	instance.readPropertiesImpl(p);
-	return instance;
-    }
-
-    private void readPropertiesImpl(java.util.Properties p) {
-	String version = p.getProperty("version");
-	// TODO read your settings according to their version
-    }
-
-    @Override
-    protected String preferredID() {
-	return PREFERRED_ID;
-    }
-}
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/control/ControlView.java b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/control/ControlView.java
deleted file mode 100644
index 13f89c0d1..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/control/ControlView.java
+++ /dev/null
@@ -1,322 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.terminal.example.control;
-
-import java.awt.Color;
-import java.awt.event.InputEvent;
-import java.util.Collections;
-import java.util.EnumSet;
-import java.util.Set;
-
-import org.openide.windows.IOSelect;
-import org.openide.windows.InputOutput;
-
-import org.netbeans.lib.terminalemulator.ActiveRegion;
-import org.netbeans.lib.terminalemulator.ActiveTerm;
-import org.netbeans.lib.terminalemulator.ActiveTermListener;
-import org.netbeans.lib.terminalemulator.Coord;
-import org.netbeans.lib.terminalemulator.Term;
-
-import org.netbeans.modules.terminal.api.IOConnect;
-import org.netbeans.modules.terminal.api.IOEmulation;
-import org.netbeans.modules.terminal.api.ui.IOTerm;
-import org.netbeans.modules.terminal.api.ui.IOVisibility;
-import org.netbeans.terminal.example.Config;
-
-
-/**
- *
- * @author ivan
- */
-public class ControlView {
-    private final ActiveTerm term;
-
-    private static class VAction {
-	public final String cmd;
-	public final InputOutput io;
-
-	public VAction(String cmd) {
-	    this.cmd = cmd;
-	    this.io = null;
-	}
-
-	public VAction(String cmd, InputOutput io) {
-	    this.cmd = cmd;
-	    this.io = io;
-	}
-    }
-    public ControlView(ActiveTerm term) {
-	this.term = term;
-
-	term.setBackground(Color.white);
-	term.setScrollOnOutput(false);
-	term.setTrackCursor(false);
-
-	term.setActionListener(new ActiveTermListener() {
-
-	    public void action(ActiveRegion r, InputEvent e) {
-		VAction action = (VAction) r.getUserObject();
-		if (action == null)
-		    return;
-
-		Set<IOSelect.AdditionalOperation> extraOps = Collections.emptySet();
-
-		if (action.cmd.equals("refresh"))
-		    ;
-		else if (action.cmd.equals("closeInputOutput"))
-		    action.io.closeInputOutput();
-		else if (action.cmd.equals("select"))
-		    action.io.select();
-		else if (action.cmd.equals("select(<empty>)")) {
-		    IOSelect.select(action.io, extraOps);
-		}
-		else if (action.cmd.equals("select(OPEN)")) {
-		    extraOps = EnumSet.of(IOSelect.AdditionalOperation.OPEN);
-		    IOSelect.select(action.io, extraOps);
-		}
-		else if (action.cmd.equals("select(OPEN+REQ_VISIBLE)")) {
-		    extraOps = EnumSet.of(IOSelect.AdditionalOperation.OPEN,
-		                          IOSelect.AdditionalOperation.REQUEST_VISIBLE);
-		    IOSelect.select(action.io, extraOps);
-		}
-		else if (action.cmd.equals("select(OPEN+REQ_VISIBLE+REQ_ACTIVE)")) {
-		    extraOps = EnumSet.of(IOSelect.AdditionalOperation.OPEN,
-		                          IOSelect.AdditionalOperation.REQUEST_VISIBLE,
-					  IOSelect.AdditionalOperation.REQUEST_ACTIVE);
-		    IOSelect.select(action.io, extraOps);
-		}
-
-		else if (action.cmd.equals("visibility: on")) {
-		    IOVisibility.setVisible(action.io, true);
-		}
-		else if (action.cmd.equals("visibility: off")) {
-		    IOVisibility.setVisible(action.io, false);
-		}
-
-		else if (action.cmd.equals("closable: true")) {
-		    IOVisibility.setClosable(action.io, true);
-		}
-		else if (action.cmd.equals("closable: false")) {
-		    IOVisibility.setClosable(action.io, false);
-		}
-
-		else if (action.cmd.equals("debug: on")) {
-		    Term term = IOTerm.term(action.io);
-                    if (term != null)
-                        term.setDebugFlags(Term.DEBUG_INPUT|Term.DEBUG_OUTPUT |Term.DEBUG_OPS);
-		}
-		else if (action.cmd.equals("debug: off")) {
-		    Term term = IOTerm.term(action.io);
-                    if (term != null)
-                        term.setDebugFlags(0);
-		}
-
-		refresh();
-	    }
-	});
-    }
-
-    ActiveRegion beginRegion() {
-	boolean hyperlink = true;
-	ActiveRegion region = term.beginRegion(hyperlink);
-	region.setFeedbackEnabled(true);
-	return region;
-    }
-
-    void endRegion() {
-	term.endRegion();
-    }
-
-    public void clear() {
-        term.regionManager().reset();
-        term.setText("");
-    }
-
-    void begin() {
-	term.setAnchored(true);
-    }
-
-    void end() {
-	term.appendText("", true);	// true -> repaint
-    }
-
-    void printf(String format, Object ... args) {
-	String str = String.format(format, args);
-	term.appendText(str, false);	// false -> don't repaint
-    }
-
-    public void tabTo(int target_column) {
-        Coord cursor = term.getCursorCoord();
-        if (target_column == cursor.col)
-            return;
-        if (cursor.col > target_column) {
-            // target is behind us, start a new line
-            term.appendText("\n", false);
-            cursor = term.getCursorCoord();
-        }
-
-        while (cursor.col < target_column) {
-            term.appendText(" ", false);
-            cursor = term.getCursorCoord();
-        }
-    }
-
-    private String yesNo(boolean v) {
-	if (v)
-	    return "";
-	else
-	    return "no-";
-    }
-
-    private void printAction(InputOutput io, String link, String cmd) {
-	ActiveRegion r = beginRegion();
-	r.setUserObject(new VAction(cmd, io));
-	printf(link);
-	endRegion();
-    }
-
-    private void printAction(InputOutput io, String cmd) {
-	ActiveRegion r = beginRegion();
-	r.setUserObject(new VAction(cmd, io));
-	printf(cmd);
-	endRegion();
-    }
-
-    private void printIO(ControlModel.IOInfo ii) {
-	Config config = ii.config;
-	InputOutput io = ii.io;
-
-	printf("'%s'", ii.name);
-	printf("\n");
-	tabTo(8);
-
-	printf("iop %-7s", config.getIOProvider());
-	printf(" container %-7s", config.getContainerProvider());
-	printf(" shuttle %-8s", config.getIOShuttling());
-	printf(" %-6s", config.getContainerStyle());
-	printf(" %srestartable", yesNo(config.isRestartable()));
-	printf(" %shupOnClose", yesNo(config.isHUPOnClose()));
-	printf(" %skeep", yesNo(config.isKeep()));
-	printf("\n");
-
-	tabTo(8);
-	printf("%sclosed", yesNo(io.isClosed()));
-	printf(" ");
-	printAction(io, "closeInputOutput");
-	printf(" ");
-	printAction(io, "select");
-	printf("\n");
-
-	tabTo(8);
-	boolean closable = IOVisibility.isClosable(io);
-	String vetoable;
-	switch (config.getAllowClose()) {
-	    case ALWAYS:
-		vetoable = "no-vetoable";
-		break;
-	    case DISCONNECTED:
-		vetoable = "vetoable";
-		break;
-	    default:
-	    case NEVER:
-		vetoable = "vetoable-n/a";
-		break;
-	}
-	printf("%sclosable ", yesNo(closable));
-	printf("%s ", vetoable);
-
-	if (IOVisibility.isSupported(io)) {
-	    printf(" visibility: ");
-	    printAction(io, "on", "visibility: on");
-	    printf(" ");
-	    printAction(io, "off", "visibility: off");
-	    printf("  closable: ");
-	    printAction(io, "true", "closable: true");
-	    printf(" ");
-	    printAction(io, "false", "closable: false");
-	}
-	printf("\n");
-
-	tabTo(8);
-	if (IOConnect.isSupported(io)) {
-	    printf("%sconnected", yesNo(IOConnect.isConnected(io)));
-	} else {
-	    printf("IOConnect not supported");
-	}
-	printf("\n");
-
-	tabTo(8);
-	if (IOEmulation.isSupported(io)) {
-	    printf("emulation %-8s  %sdisciplined",
-		    IOEmulation.getEmulation(io),
-		    yesNo(IOEmulation.isDisciplined(io)));
-	} else {
-	    printf("IOEmulation not supported");
-	}
-	printf("\n");
-
-        if (IOTerm.isSupported(io)) {
-            tabTo(8);
-	    printf("debug: ");
-	    printAction(io, "on", "debug: on");
-            printf(" ");
-	    printAction(io, "off", "debug: off");
-        }
-	printf("\n");
-
-	tabTo(8);
-	if (IOSelect.isSupported(io)) {
-	    printf("IOSelect: ");
-	    printAction(io, "select(<empty>)");
-	    printf(" ");
-	    printAction(io, "select(OPEN)");
-	    printf(" ");
-	    printAction(io, "select(OPEN+REQ_VISIBLE)");
-	    printf(" ");
-	    printAction(io, "select(OPEN+REQ_VISIBLE+REQ_ACTIVE)");
-	} else {
-	    printf("IOSelect not supported");
-	}
-	printf("\n");
-    }
-
-    public void refresh() {
-	clear();
-	begin();
-
-	printAction(null, "refresh");
-	printf("\n");
-
-	// Print all open IO's
-	for (ControlModel.IOInfo ii : ControlModel.list()) {
-	    if (! ii.io.isClosed())
-		printIO(ii);
-	}
-
-	printf("------------------ closed ----------------\n");
-	// Print all closed IO's
-	for (ControlModel.IOInfo ii : ControlModel.list()) {
-	    if (ii.io.isClosed())
-		printIO(ii);
-	}
-
-	end();
-    }
-}
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/dedicatedtc/Bundle.properties b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/dedicatedtc/Bundle.properties
deleted file mode 100644
index 4d542a144..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/dedicatedtc/Bundle.properties
+++ /dev/null
@@ -1,21 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-OpenIDE-Module-Name=TermExample
-
-CTL_CommandAction=Command in dedicated TopComponent
-CTL_CommandTopComponent=Command Window
-HINT_CommandTopComponent=This is a Command window
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/iofeatures/Bundle.properties b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/iofeatures/Bundle.properties
deleted file mode 100644
index 6778489e0..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/iofeatures/Bundle.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-CTL_IOFeaturesAction=Term support for IOProvider features
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/iofeatures/IOFeaturesAction.java b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/iofeatures/IOFeaturesAction.java
deleted file mode 100644
index 0850c607c..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/iofeatures/IOFeaturesAction.java
+++ /dev/null
@@ -1,201 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.terminal.example.iofeatures;
-
-import java.awt.Color;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.io.IOException;
-import org.netbeans.terminal.example.TerminalIOProviderSupport;
-import org.openide.util.Exceptions;
-import org.openide.util.ImageUtilities;
-import org.openide.windows.IOColorLines;
-import org.openide.windows.IOColors;
-import org.openide.windows.IOPosition;
-import org.openide.windows.IOProvider;
-import org.openide.windows.IOTab;
-import org.openide.windows.InputOutput;
-import org.openide.windows.OutputEvent;
-import org.openide.windows.OutputListener;
-import org.openide.windows.OutputWriter;
-
-/**
- * Demonstrate ...
- * <ul>
- * <li>Internal output.
- * <li>IOProvider style hyperlinks.
- * <li>Closing via API.
- * </ul>
- * @author ivan
- */
-public final class IOFeaturesAction implements ActionListener {
-
-
-    private final static String iconOn = "Icon and tip on";
-    private final static String iconOff = "Icon and tip off";
-
-    private final static class Tab {
-        private OutputWriter ow;
-        private InputOutput io;
-        private IOPosition.Position label1;
-        private IOPosition.Position label2;
-
-	private static IOProvider getIOProvider() {
-	    IOProvider iop = IOProvider.get("Terminal");       // NOI18N
-	    if (iop == null) {
-		System.out.printf("IOProviderActionSupport.getTermIOProvider() couldn't find our provider\n");
-		iop = IOProvider.getDefault();
-	    }
-	    return iop;
-	}
-
-        public Tab() {
-            // Get a Term-based IOPRovider
-            IOProvider iop = getIOProvider();
-
-            io = iop.getIO("TermIOProvider hyperlinks", true);
-
-	    io.select();
-
-            // Adds a line discipline so newlines etc work correctly
-            TerminalIOProviderSupport.setInternal(io, true);
-
-            ow = io.getOut();
-
-            try {
-                // print some stuff
-                ow.println("Hello");
-
-                //
-                // exercise IOPosition (part 1)
-                //
-                label1 = IOPosition.currentPosition(io);
-                ow.println("label1: goto label2", outputListener);
-
-                // print some stuff with standard hyperlinks
-                ow.println("Press me", outputListener);
-                ow.println("Press me too", outputListener);
-                ow.println("Close me", outputListener);
-
-                //
-                // exercise IOColorLines
-                //
-                IOColorLines.println(io, "A non hyperlinked green line", Color.GREEN);
-                IOColorLines.println(io, "A hyperlinked green line", outputListener, false, Color.GREEN);
-                IOColorLines.println(io, "An important hyperlinked green line", outputListener, true, Color.GREEN);
-
-                //
-                // exercise tab icon and tooltip.
-                //
-                IOColorLines.println(io, iconOn, outputListener, false, null);
-                IOColorLines.println(io, iconOff, outputListener, false, null);
-
-                //
-                // exercise IOColors
-                //
-
-                // save original colors
-                Color outputColor = IOColors.getColor(io, IOColors.OutputType.OUTPUT);
-                Color hyperlinkColor = IOColors.getColor(io, IOColors.OutputType.HYPERLINK);
-                Color hyperlinkImportantColor = IOColors.getColor(io, IOColors.OutputType.HYPERLINK_IMPORTANT);
-
-                // set new colors
-                IOColors.setColor(io, IOColors.OutputType.OUTPUT, Color.cyan);
-                IOColors.setColor(io, IOColors.OutputType.HYPERLINK, Color.magenta);
-                IOColors.setColor(io, IOColors.OutputType.HYPERLINK_IMPORTANT, Color.yellow);
-
-                // print some stuff
-                ow.format("non-println should be in cyan\n");
-                ow.println("Should be in cyan");
-                ow.println("Should be in magenta", outputListener);
-                ow.println("Should be in yellow", outputListener, true);
-
-                // restore original colors
-                IOColors.setColor(io, IOColors.OutputType.OUTPUT, outputColor);
-                IOColors.setColor(io, IOColors.OutputType.HYPERLINK, hyperlinkColor);
-                IOColors.setColor(io, IOColors.OutputType.HYPERLINK_IMPORTANT, hyperlinkImportantColor);
-
-                //
-                // exercise IOPosition (part 2)
-                //
-                // put some distance between the two labels:
-                for (int d = 0; d < 8; d++)
-                    ow.println("<distance>");
-                label2 = IOPosition.currentPosition(io);
-                ow.println("label2: goto label1", outputListener);
-
-                ow.println("Goodbye");
-
-            } catch (IOException ex) {
-                Exceptions.printStackTrace(ex);
-            }
-        }
-
-        private final OutputListener outputListener = new OutputListener() {
-
-            public void outputLineSelected(OutputEvent ev) {
-                ow.println("Got outputLineSelected()");
-                ow.println(String.format("contents: '%s'", ev.getLine()));
-            }
-
-            public void outputLineAction(OutputEvent ev) {
-                /*
-                ow.println("Got outputLineAction()");
-                ow.println(String.format("contents: '%s'", ev.getLine()));
-                */
-
-                int gotox = ev.getLine().indexOf("goto");
-                if ("Close me".equals(ev.getLine())) {
-                    ev.getInputOutput().closeInputOutput();
-
-                } else if (iconOn.equals(ev.getLine())) {
-                    String iconResource = "org/netbeans/terminal/example/resources/sunsky.png";
-                    IOTab.setIcon(io, ImageUtilities.loadImageIcon(iconResource, false));
-                    IOTab.setToolTipText(io, "Some tooltip text");
-
-                } else if (iconOff.equals(ev.getLine())) {
-                    IOTab.setIcon(io, null);
-                    IOTab.setToolTipText(io, null);
-
-                } else if (gotox != -1) {
-                    String dst = ev.getLine().substring(gotox + 5);
-                    ow.format("\tgoto '%s'\n", dst);
-                    if ("label1".equals(dst))
-                        label1.scrollTo();
-                    else if ("label2".equals(dst))
-                        label2.scrollTo();
-                } else {
-                    ow.println("Got outputLineAction()");
-                    ow.println(String.format("contents: '%s'", ev.getLine()));
-                }
-
-            }
-
-            public void outputLineCleared(OutputEvent ev) {
-                ow.println("Got outputLineEvent()");
-                ow.println(String.format("contents: '%s'", ev.getLine()));
-            }
-        };
-    };
-
-    public void actionPerformed(ActionEvent e) {
-        new Tab();
-    }
-}
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/layer.xml b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/layer.xml
deleted file mode 100644
index 33e4910d9..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/layer.xml
+++ /dev/null
@@ -1,139 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
-<filesystem>
-    <folder name="Actions">
-        <folder name="Other">
-            <file name="org-netbeans-terminal-example-iofeatures-IOFeaturesAction.instance">
-                <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.terminal.example.Bundle"/>
-                <attr name="delegate" newvalue="org.netbeans.terminal.example.iofeatures.IOFeaturesAction"/>
-                <attr name="displayName" bundlevalue="org.netbeans.terminal.example.iofeatures.Bundle#CTL_IOFeaturesAction"/>
-                <attr name="instanceCreate" methodvalue="org.openide.awt.Actions.alwaysEnabled"/>
-                <attr name="noIconInMenu" stringvalue="false"/>
-            </file>
-        </folder>
-        <folder name="Terminals">
-            <file name="org-netbeans-terminal-example-comprehensive-CommandTerminalAction.instance">
-                <attr name="delegate" newvalue="org.netbeans.terminal.example.comprehensive.CommandTerminalAction"/>
-                <attr name="displayName" bundlevalue="org.netbeans.terminal.example.comprehensive.Bundle#CTL_CommandTerminalAction"/>
-                <attr name="instanceCreate" methodvalue="org.openide.awt.Actions.alwaysEnabled"/>
-                <attr name="noIconInMenu" boolvalue="false"/>
-            </file>
-            <file name="org-netbeans-terminal-example-comprehensive-SelectLastAction.instance">
-                <attr name="delegate" newvalue="org.netbeans.terminal.example.comprehensive.SelectLastAction"/>
-                <attr name="displayName" bundlevalue="org.netbeans.terminal.example.comprehensive.Bundle#CTL_SelectLastAction"/>
-                <attr name="instanceCreate" methodvalue="org.openide.awt.Actions.alwaysEnabled"/>
-                <attr name="noIconInMenu" boolvalue="false"/>
-            </file>
-        </folder>
-        <folder name="Window">
-            <file name="org-netbeans-terminal-example-ShellTermAction.instance"/>
-            <file name="org-netbeans-terminal-example-CmdTermAction.instance"/>
-            <file name="org-netbeans-terminal-example-TermWindowAction.instance"/>
-            <file name="org-netbeans-terminal-example-control-ControlAction.instance">
-                <attr name="component" methodvalue="org.netbeans.terminal.example.control.ControlTopComponent.findInstance"/>
-                <attr name="displayName" bundlevalue="org.netbeans.terminal.example.control.Bundle#CTL_ControlAction"/>
-                <attr name="instanceCreate" methodvalue="org.openide.windows.TopComponent.openAction"/>
-            </file>
-            <file name="org-netbeans-terminal-example-topcomponent-MuxableTerminalAction.instance">
-                <attr name="component" methodvalue="org.netbeans.terminal.example.topcomponent.MuxableTerminalTopComponent.findInstance"/>
-                <attr name="displayName" bundlevalue="org.netbeans.terminal.example.topcomponent.Bundle#CTL_MuxableTerminalAction"/>
-                <attr name="instanceCreate" methodvalue="org.openide.windows.TopComponent.openAction"/>
-            </file>
-            <file name="org-netbeans-terminal-example-topcomponent-TerminalAction.instance">
-                <attr name="component" methodvalue="org.netbeans.terminal.example.topcomponent.TerminalTopComponent.findInstance"/>
-                <attr name="displayName" bundlevalue="org.netbeans.terminal.example.topcomponent.Bundle#CTL_TerminalAction"/>
-                <attr name="instanceCreate" methodvalue="org.openide.windows.TopComponent.openAction"/>
-            </file>
-        </folder>
-    </folder>
-
-    <folder name="Menu">
-        <folder name="Terminals">
-            <file name="org-netbeans-terminal-example-comprehensive-CommandTerminalAction-separatorAfter.instance">
-                <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
-                <attr name="position" intvalue="-25"/>
-            </file>
-            <file name="org-netbeans-terminal-example-comprehensive-CommandTerminalAction-separatorBefore.instance">
-                <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
-                <attr name="position" intvalue="-75"/>
-            </file>
-            <file name="org-netbeans-terminal-example-comprehensive-CommandTerminalAction.shadow">
-                <attr name="originalFile" stringvalue="Actions/Terminals/org-netbeans-terminal-example-comprehensive-CommandTerminalAction.instance"/>
-                <attr name="position" intvalue="-50"/>
-            </file>
-            <file name="org-netbeans-terminal-example-comprehensive-SelectLastAction.shadow">
-                <attr name="originalFile" stringvalue="Actions/Terminals/org-netbeans-terminal-example-comprehensive-SelectLastAction.instance"/>
-                <attr name="position" intvalue="502"/>
-            </file>
-            <file name="org-netbeans-terminal-example-iofeatures-IOfeaturesAction.shadow">
-                <attr name="originalFile" stringvalue="Actions/Other/org-netbeans-terminal-example-iofeatures-IOFeaturesAction.instance"/>
-                <attr name="position" intvalue="-100"/>
-            </file>
-        </folder>
-        <folder name="BuildProject">    <!-- aka Run -->
-            <file name="ShellTermAction.shadow">
-                <attr name="originalFile" stringvalue="Actions/Window/org-netbeans-terminal-example-ShellTermAction.instance"/>
-                <attr name="position" intvalue="3"/>
-            </file>
-            <file name="CmdTermAction.shadow">
-                <attr name="originalFile" stringvalue="Actions/Window/org-netbeans-terminal-example-CmdTermAction.instance"/>
-                <attr name="position" intvalue="5"/>
-            </file>
-            <file name="TermSeparator.instance">
-                <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
-            </file>
-        </folder>
-        <folder name="Window">
-            <file name="ControlAction.shadow">
-                <attr name="originalFile" stringvalue="Actions/Window/org-netbeans-terminal-example-control-ControlAction.instance"/>
-            </file>
-            <file name="MuxableTerminalAction.shadow">
-                <attr name="originalFile" stringvalue="Actions/Window/org-netbeans-terminal-example-topcomponent-MuxableTerminalAction.instance"/>
-            </file>
-            <folder name="Output">
-                <file name="TermWindowAction.shadow">
-                    <attr name="originalFile" stringvalue="Actions/Window/org-netbeans-terminal-example-TermWindowAction.instance"/>
-                </file>
-            </folder>
-            <file name="TerminalAction.shadow">
-                <attr name="originalFile" stringvalue="Actions/Window/org-netbeans-terminal-example-topcomponent-TerminalAction.instance"/>
-            </file>
-        </folder>
-    </folder>
-    <folder name="Windows2">
-        <folder name="Components">
-            <file name="ControlTopComponent.settings" url="resources/ControlTopComponentSettings.xml"/>
-            <file name="MuxableTerminalTopComponent.settings" url="resources/MuxableTerminalTopComponentSettings.xml"/>
-            <file name="TerminalTopComponent.settings" url="resources/TerminalTopComponentSettings.xml"/>
-        </folder>
-        <folder name="Modes">
-            <folder name="explorer">
-                <file name="ControlTopComponent.wstcref" url="resources/ControlTopComponentWstcref.xml"/>
-            </folder>
-            <folder name="output">
-                <file name="MuxableTerminalTopComponent.wstcref" url="resources/MuxableTerminalTopComponentWstcref.xml"/>
-                <file name="TerminalTopComponent.wstcref" url="resources/TerminalTopComponentWstcref.xml"/>
-            </folder>
-        </folder>
-    </folder>
-</filesystem>
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/rerun.png b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/rerun.png
deleted file mode 100644
index 1e06be9c9..000000000
Binary files a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/rerun.png and /dev/null differ
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/ControlTopComponentSettings.xml b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/ControlTopComponentSettings.xml
deleted file mode 100644
index 1512728d8..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/ControlTopComponentSettings.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd">
-<settings version="1.0">
-    <module name="org.netbeans.terminal.example" spec="1.0"/>
-    <instanceof class="org.openide.windows.TopComponent"/>
-    <instanceof class="org.netbeans.terminal.example.control.ControlTopComponent"/>
-    <instance class="org.netbeans.terminal.example.control.ControlTopComponent" method="getDefault"/>
-</settings>
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/ControlTopComponentWstcref.xml b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/ControlTopComponentWstcref.xml
deleted file mode 100644
index 77b3586eb..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/ControlTopComponentWstcref.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<!DOCTYPE tc-ref PUBLIC "-//NetBeans//DTD Top Component in Mode Properties 2.0//EN" "http://www.netbeans.org/dtds/tc-ref2_0.dtd">
-<tc-ref version="2.0" >
-    <module name="org.netbeans.terminal.example" spec="1.0"/>
-    <tc-id id="ControlTopComponent"/>
-    <state opened="true"/>
-</tc-ref>
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/MuxableTerminalTopComponentSettings.xml b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/MuxableTerminalTopComponentSettings.xml
deleted file mode 100644
index 5bc41ea10..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/MuxableTerminalTopComponentSettings.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd">
-<settings version="1.0">
-    <module name="org.netbeans.terminal.example" spec="1.0"/>
-    <instanceof class="org.openide.windows.TopComponent"/>
-    <instanceof class="org.netbeans.terminal.example.topcomponent.MuxableTerminalTopComponent"/>
-    <instance class="org.netbeans.terminal.example.topcomponent.MuxableTerminalTopComponent" method="getDefault"/>
-</settings>
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/MuxableTerminalTopComponentWstcref.xml b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/MuxableTerminalTopComponentWstcref.xml
deleted file mode 100644
index 407cb5528..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/MuxableTerminalTopComponentWstcref.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<!DOCTYPE tc-ref PUBLIC "-//NetBeans//DTD Top Component in Mode Properties 2.0//EN" "http://www.netbeans.org/dtds/tc-ref2_0.dtd">
-<tc-ref version="2.0" >
-    <module name="org.netbeans.terminal.example" spec="1.0"/>
-    <tc-id id="MuxableTerminalTopComponent"/>
-    <state opened="false"/>
-</tc-ref>
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/TerminalTopComponentSettings.xml b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/TerminalTopComponentSettings.xml
deleted file mode 100644
index 009c5e118..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/TerminalTopComponentSettings.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd">
-<settings version="1.0">
-    <module name="org.netbeans.terminal.example" spec="1.0"/>
-    <instanceof class="org.openide.windows.TopComponent"/>
-    <instanceof class="org.netbeans.terminal.example.topcomponent.TerminalTopComponent"/>
-    <instance class="org.netbeans.terminal.example.topcomponent.TerminalTopComponent" method="getDefault"/>
-</settings>
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/TerminalTopComponentWstcref.xml b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/TerminalTopComponentWstcref.xml
deleted file mode 100644
index f21f191fd..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/TerminalTopComponentWstcref.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<!DOCTYPE tc-ref PUBLIC "-//NetBeans//DTD Top Component in Mode Properties 2.0//EN" "http://www.netbeans.org/dtds/tc-ref2_0.dtd">
-<tc-ref version="2.0" >
-    <module name="org.netbeans.terminal.example" spec="1.0"/>
-    <tc-id id="TerminalTopComponent"/>
-    <state opened="false"/>
-</tc-ref>
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/sunsky.png b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/sunsky.png
deleted file mode 100644
index b3a85a2fe..000000000
Binary files a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/resources/sunsky.png and /dev/null differ
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/stop.png b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/stop.png
deleted file mode 100644
index b74098c51..000000000
Binary files a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/stop.png and /dev/null differ
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/topcomponent/Bundle.properties b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/topcomponent/Bundle.properties
deleted file mode 100644
index b8001d492..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/topcomponent/Bundle.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-CTL_MuxableTerminalAction=MuxableTerminal
-CTL_MuxableTerminalTopComponent=MuxableTerminal Window
-CTL_TerminalAction=Terminal
-CTL_TerminalTopComponent=Terminal Window
-HINT_MuxableTerminalTopComponent=This is a MuxableTerminal window
-# CTL_TerminalTopComponent=Terminal
-HINT_TerminalTopComponent=This is a Terminal window
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/topcomponent/MuxableTerminalTopComponent.form b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/topcomponent/MuxableTerminalTopComponent.form
deleted file mode 100644
index 1a3a5f971..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/topcomponent/MuxableTerminalTopComponent.form
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-
-<Form version="1.4" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
-  <AuxValues>
-    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/>
-    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
-    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
-    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/>
-    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
-    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
-    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
-    <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,44,0,0,1,-112"/>
-  </AuxValues>
-
-  <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
-</Form>
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/topcomponent/MuxableTerminalTopComponent.java b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/topcomponent/MuxableTerminalTopComponent.java
deleted file mode 100644
index 0f6d7f9aa..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/topcomponent/MuxableTerminalTopComponent.java
+++ /dev/null
@@ -1,146 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.terminal.example.topcomponent;
-
-import java.util.logging.Logger;
-import org.openide.util.NbBundle;
-import org.openide.windows.TopComponent;
-import org.openide.windows.WindowManager;
-//import org.openide.util.ImageUtilities;
-import org.netbeans.api.settings.ConvertAsProperties;
-import org.netbeans.modules.terminal.api.ui.TerminalContainer;
-import org.openide.windows.IOContainer;
-
-/**
- * Top component which displays something.
- */
-@ConvertAsProperties(dtd = "-//org.netbeans.terminal.example.topcomponent//MuxableTerminal//EN",
-autostore = false)
-public final class MuxableTerminalTopComponent extends TopComponent {
-
-    private static MuxableTerminalTopComponent instance;
-    /** path to the icon used by the component and its open action */
-//    static final String ICON_PATH = "SET/PATH/TO/ICON/HERE";
-    private static final String PREFERRED_ID = "MuxableTerminalTopComponent";
-
-    public MuxableTerminalTopComponent() {
-	initComponents();
-	setName(NbBundle.getMessage(MuxableTerminalTopComponent.class, "CTL_MuxableTerminalTopComponent"));
-	setToolTipText(NbBundle.getMessage(MuxableTerminalTopComponent.class, "HINT_MuxableTerminalTopComponent"));
-//        setIcon(ImageUtilities.loadImage(ICON_PATH, true));
-	initComponents2();
-
-    }
-
-    /** This method is called from within the constructor to
-     * initialize the form.
-     * WARNING: Do NOT modify this code. The content of this method is
-     * always regenerated by the Form Editor.
-     */
-        // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
-        private void initComponents() {
-
-                setLayout(new java.awt.BorderLayout());
-        }// </editor-fold>//GEN-END:initComponents
-
-        // Variables declaration - do not modify//GEN-BEGIN:variables
-        // End of variables declaration//GEN-END:variables
-    /**
-     * Gets default instance. Do not use directly: reserved for *.settings files only,
-     * i.e. deserialization routines; otherwise you could get a non-deserialized instance.
-     * To obtain the singleton instance, use {@link #findInstance}.
-     */
-    public static synchronized MuxableTerminalTopComponent getDefault() {
-	if (instance == null) {
-	    instance = new MuxableTerminalTopComponent();
-	}
-	return instance;
-    }
-
-    /**
-     * Obtain the MuxableTerminalTopComponent instance. Never call {@link #getDefault} directly!
-     */
-    public static synchronized MuxableTerminalTopComponent findInstance() {
-	TopComponent win = WindowManager.getDefault().findTopComponent(PREFERRED_ID);
-	if (win == null) {
-	    Logger.getLogger(MuxableTerminalTopComponent.class.getName()).warning(
-		    "Cannot find " + PREFERRED_ID + " component. It will not be located properly in the window system.");
-	    return getDefault();
-	}
-	if (win instanceof MuxableTerminalTopComponent) {
-	    return (MuxableTerminalTopComponent) win;
-	}
-	Logger.getLogger(MuxableTerminalTopComponent.class.getName()).warning(
-		"There seem to be multiple components with the '" + PREFERRED_ID
-		+ "' ID. That is a potential source of errors and unexpected behavior.");
-	return getDefault();
-    }
-
-    @Override
-    public int getPersistenceType() {
-	return TopComponent.PERSISTENCE_ALWAYS;
-    }
-
-    @Override
-    public void componentOpened() {
-	// TODO add custom code on component opening
-    }
-
-    @Override
-    public void componentClosed() {
-	// TODO add custom code on component closing
-    }
-
-    void writeProperties(java.util.Properties p) {
-	// better to version settings since initial version as advocated at
-	// http://wiki.apidesign.org/wiki/PropertyFiles
-	p.setProperty("version", "1.0");
-	// TODO store your settings
-    }
-
-    Object readProperties(java.util.Properties p) {
-	if (instance == null) {
-	    instance = this;
-	}
-	instance.readPropertiesImpl(p);
-	return instance;
-    }
-
-    private void readPropertiesImpl(java.util.Properties p) {
-	String version = p.getProperty("version");
-	// TODO read your settings according to their version
-    }
-
-    @Override
-    protected String preferredID() {
-	return PREFERRED_ID;
-    }
-
-    private TerminalContainer tc;
-
-    public IOContainer ioContainer() {
-	return tc.ioContainer();
-    }
-
-    private void initComponents2() {
-	tc = TerminalContainer.createMuxable(this, getName());
-	add(tc);
-    }
-}
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/topcomponent/TerminalTopComponent.form b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/topcomponent/TerminalTopComponent.form
deleted file mode 100644
index 1a3a5f971..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/topcomponent/TerminalTopComponent.form
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-
-<Form version="1.4" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
-  <AuxValues>
-    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/>
-    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
-    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
-    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/>
-    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
-    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
-    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
-    <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,44,0,0,1,-112"/>
-  </AuxValues>
-
-  <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
-</Form>
diff --git a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/topcomponent/TerminalTopComponent.java b/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/topcomponent/TerminalTopComponent.java
deleted file mode 100644
index ed81cfdea..000000000
--- a/lib.terminalemulator/examples/TermExample/src/org/netbeans/terminal/example/topcomponent/TerminalTopComponent.java
+++ /dev/null
@@ -1,158 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.terminal.example.topcomponent;
-
-import java.util.logging.Logger;
-import org.openide.util.NbBundle;
-import org.openide.windows.TopComponent;
-import org.openide.windows.WindowManager;
-//import org.openide.util.ImageUtilities;
-import org.netbeans.api.settings.ConvertAsProperties;
-import org.netbeans.modules.terminal.api.ui.TerminalContainer;
-import org.openide.windows.IOContainer;
-
-/**
- * Top component which displays something.
- */
-@ConvertAsProperties(dtd = "-//org.netbeans.terminal.example.topcomponent//Terminal//EN",
-autostore = false)
-public final class TerminalTopComponent extends TopComponent {
-
-    private static TerminalTopComponent instance;
-    /** path to the icon used by the component and its open action */
-//    static final String ICON_PATH = "SET/PATH/TO/ICON/HERE";
-    private static final String PREFERRED_ID = "TerminalTopComponent";
-
-    public TerminalTopComponent() {
-	initComponents();
-	setName(NbBundle.getMessage(TerminalTopComponent.class, "CTL_TerminalTopComponent"));
-	setToolTipText(NbBundle.getMessage(TerminalTopComponent.class, "HINT_TerminalTopComponent"));
-//        setIcon(ImageUtilities.loadImage(ICON_PATH, true));
-	initComponents2();
-
-    }
-
-    /** This method is called from within the constructor to
-     * initialize the form.
-     * WARNING: Do NOT modify this code. The content of this method is
-     * always regenerated by the Form Editor.
-     */
-        // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
-        private void initComponents() {
-
-                setLayout(new java.awt.BorderLayout());
-        }// </editor-fold>//GEN-END:initComponents
-
-        // Variables declaration - do not modify//GEN-BEGIN:variables
-        // End of variables declaration//GEN-END:variables
-    /**
-     * Gets default instance. Do not use directly: reserved for *.settings files only,
-     * i.e. deserialization routines; otherwise you could get a non-deserialized instance.
-     * To obtain the singleton instance, use {@link #findInstance}.
-     */
-    public static synchronized TerminalTopComponent getDefault() {
-	if (instance == null) {
-	    instance = new TerminalTopComponent();
-	}
-	return instance;
-    }
-
-    /**
-     * Obtain the TerminalTopComponent instance. Never call {@link #getDefault} directly!
-     */
-    public static synchronized TerminalTopComponent findInstance() {
-	TopComponent win = WindowManager.getDefault().findTopComponent(PREFERRED_ID);
-	if (win == null) {
-	    Logger.getLogger(TerminalTopComponent.class.getName()).warning(
-		    "Cannot find " + PREFERRED_ID + " component. It will not be located properly in the window system.");
-	    return getDefault();
-	}
-	if (win instanceof TerminalTopComponent) {
-	    return (TerminalTopComponent) win;
-	}
-	Logger.getLogger(TerminalTopComponent.class.getName()).warning(
-		"There seem to be multiple components with the '" + PREFERRED_ID
-		+ "' ID. That is a potential source of errors and unexpected behavior.");
-	return getDefault();
-    }
-
-    @Override
-    public int getPersistenceType() {
-	return TopComponent.PERSISTENCE_ALWAYS;
-    }
-
-    @Override
-    public void componentOpened() {
-	// TODO add custom code on component opening
-    }
-
-    @Override
-    public void componentClosed() {
-	// TODO add custom code on component closing
-    }
-
-    @Override
-    protected void componentActivated() {
-        super.componentActivated();
-        tc.componentActivated();
-    }
-
-    @Override
-    protected void componentDeactivated() {
-        super.componentDeactivated();
-        tc.componentDeactivated();
-    }
-
-    void writeProperties(java.util.Properties p) {
-	// better to version settings since initial version as advocated at
-	// http://wiki.apidesign.org/wiki/PropertyFiles
-	p.setProperty("version", "1.0");
-	// TODO store your settings
-    }
-
-    Object readProperties(java.util.Properties p) {
-	if (instance == null) {
-	    instance = this;
-	}
-	instance.readPropertiesImpl(p);
-	return instance;
-    }
-
-    private void readPropertiesImpl(java.util.Properties p) {
-	String version = p.getProperty("version");
-	// TODO read your settings according to their version
-    }
-
-    @Override
-    protected String preferredID() {
-	return PREFERRED_ID;
-    }
-
-    private TerminalContainer tc;
-
-    public IOContainer ioContainer() {
-	return tc.ioContainer();
-    }
-
-    private void initComponents2() {
-	tc = TerminalContainer.create(this, getName());
-	add(tc);
-    }
-}
diff --git a/lib.terminalemulator/examples/TermSuite/build.xml b/lib.terminalemulator/examples/TermSuite/build.xml
deleted file mode 100644
index 46e774ef8..000000000
--- a/lib.terminalemulator/examples/TermSuite/build.xml
+++ /dev/null
@@ -1,64 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
-<!-- for some information on what you could do (e.g. targets to override). -->
-<!-- If you delete this file and reopen the project it will be recreated. -->
-<project name="TermSuite" basedir=".">
-    <description>Builds the module suite TermSuite.</description>
-    <import file="nbproject/build-impl.xml"/>
-
-    <!-- ORIGINAL:
-    <target name="distribution">
-        <echo message="Creating distribution..."/>
-        <zip destfile="build/termmodule.zip"
-             compress="true" >
-            <zipfileset dir="build/updates"
-                        prefix="termmodule"
-                        includes="**/*.nbm" />
-        </zip>
-    </target>
-    -->
-    <target name="distribution" depends="nbms,term-nbm">
-        <echo message="Creating distribution..."/>
-        <zip destfile="build/termmodule.zip"
-             compress="true" >
-            <zipfileset dir="build/updates"
-                        prefix="termmodule"
-                        includes="**/*.nbm" />
-        </zip>
-    </target>
-
-    <!-- we need a hand-coded nbm target for the terminalemulator
-         because I can't add it to this suite so it's not part of ${nbms}.
-     -->
-    <target name="term-nbm">
-        <property name="project.org.netbeans.lib.terminalemulator"
-                  value="../../../lib.terminalemulator"/>
-        <subant target="nbm"
-                buildpath="${project.org.netbeans.lib.terminalemulator}"
-                inheritrefs="false"
-                inheritall="false">
-            <property name="nbm.target.dir" location="${build.updates.dir}"/>
-            <property name="${nbm.target.cluster.name}" value="${help.target.cluster}" />
-        </subant>
-    </target>
-</project>
diff --git a/lib.terminalemulator/examples/TermSuite/nbproject/build-impl.xml b/lib.terminalemulator/examples/TermSuite/nbproject/build-impl.xml
deleted file mode 100644
index b2943ba84..000000000
--- a/lib.terminalemulator/examples/TermSuite/nbproject/build-impl.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-*** GENERATED FROM project.xml - DO NOT EDIT  ***
-***         EDIT ../build.xml INSTEAD         ***
--->
-<project name="TermSuite-impl" basedir=".." xmlns:sproject="http://www.netbeans.org/ns/nb-module-suite-project/1">
-    <fail message="Please build using Ant 1.7.1 or higher.">
-        <condition>
-            <not>
-                <antversion atleast="1.7.1"/>
-            </not>
-        </condition>
-    </fail>
-    <property file="nbproject/private/platform-private.properties"/>
-    <property file="nbproject/platform.properties"/>
-    <macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-suite-project/1">
-        <attribute name="name"/>
-        <attribute name="value"/>
-        <sequential>
-            <property name="@{name}" value="${@{value}}"/>
-        </sequential>
-    </macrodef>
-    <macrodef name="evalprops" uri="http://www.netbeans.org/ns/nb-module-suite-project/1">
-        <attribute name="property"/>
-        <attribute name="value"/>
-        <sequential>
-            <property name="@{property}" value="@{value}"/>
-        </sequential>
-    </macrodef>
-    <property file="${user.properties.file}"/>
-    <sproject:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir"/>
-    <sproject:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir"/>
-    <sproject:evalprops property="cluster.path.evaluated" value="${cluster.path}"/>
-    <fail message="Path to 'platform' cluster missing in $${cluster.path} property or using corrupt Netbeans Platform (missing harness).">
-        <condition>
-            <not>
-                <contains string="${cluster.path.evaluated}" substring="platform"/>
-            </not>
-        </condition>
-    </fail>
-    <ant antfile="nbproject/platform.xml"/>
-    <fail message="Cannot find NetBeans build harness. ${line.separator}Check that nbplatform.${nbplatform.active}.netbeans.dest.dir and nbplatform.${nbplatform.active}.harness.dir are defined. ${line.separator}On a developer machine these are normally defined in ${user.properties.file}=${netbeans.user}/build.properties ${line.separator}but for automated builds you should pass these properties to Ant explicitly. ${line.separator}You may instead download the harness and platform: -Dbootstrap.url=.../tasks.jar -Dautoupdate.catalog.url=.../updates.xml">
-        <condition>
-            <not>
-                <available file="${harness.dir}/suite.xml"/>
-            </not>
-        </condition>
-    </fail>
-    <import file="${harness.dir}/suite.xml"/>
-</project>
diff --git a/lib.terminalemulator/examples/TermSuite/nbproject/genfiles.properties b/lib.terminalemulator/examples/TermSuite/nbproject/genfiles.properties
deleted file mode 100644
index 308ce094e..000000000
--- a/lib.terminalemulator/examples/TermSuite/nbproject/genfiles.properties
+++ /dev/null
@@ -1,11 +0,0 @@
-build.xml.data.CRC32=907e383e
-build.xml.script.CRC32=ef55f7f5
-build.xml.stylesheet.CRC32=531c622b
-# 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=9a868566
-nbproject/build-impl.xml.script.CRC32=eb4f13af
-nbproject/build-impl.xml.stylesheet.CRC32=0f381476@2.71.1
-nbproject/platform.xml.data.CRC32=907e383e
-nbproject/platform.xml.script.CRC32=6dcbd131
-nbproject/platform.xml.stylesheet.CRC32=4e1f53d4@2.67.1
diff --git a/lib.terminalemulator/examples/TermSuite/nbproject/platform.properties b/lib.terminalemulator/examples/TermSuite/nbproject/platform.properties
deleted file mode 100644
index 6892431e2..000000000
--- a/lib.terminalemulator/examples/TermSuite/nbproject/platform.properties
+++ /dev/null
@@ -1,154 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-cluster.path=\
-    ${nbplatform.active.dir}/harness:\
-    ${nbplatform.active.dir}/ide:\
-    ${nbplatform.active.dir}/platform
-# Deprecated since 5.0u1; for compatibility with 5.0:
-# disabled.clusters=\
-#     apisupport
-disabled.modules=\
-    org.apache.xml.resolver,\
-    org.netbeans.api.debugger,\
-    org.netbeans.api.java.classpath,\
-    org.netbeans.api.xml,\
-    org.netbeans.core.browser,\
-    org.netbeans.core.ide,\
-    org.netbeans.libs.bytelist,\
-    org.netbeans.libs.commons_net,\
-    org.netbeans.libs.freemarker,\
-    org.netbeans.libs.ini4j,\
-    org.netbeans.libs.jaxb,\
-    org.netbeans.libs.jvyamlb,\
-    org.netbeans.libs.lucene,\
-    org.netbeans.libs.smack,\
-    org.netbeans.libs.svnClientAdapter,\
-    org.netbeans.libs.swingx,\
-    org.netbeans.libs.xerces,\
-    org.netbeans.modules.apisupport.harness,\
-    org.netbeans.modules.bugtracking,\
-    org.netbeans.modules.bugtracking.bridge,\
-    org.netbeans.modules.bugzilla,\
-    org.netbeans.modules.csl.api,\
-    org.netbeans.modules.css.editor,\
-    org.netbeans.modules.css.visual,\
-    org.netbeans.modules.db,\
-    org.netbeans.modules.db.core,\
-    org.netbeans.modules.db.dataview,\
-    org.netbeans.modules.db.drivers,\
-    org.netbeans.modules.db.kit,\
-    org.netbeans.modules.db.metadata.model,\
-    org.netbeans.modules.db.mysql,\
-    org.netbeans.modules.db.sql.editor,\
-    org.netbeans.modules.db.sql.visualeditor,\
-    org.netbeans.modules.dbapi,\
-    org.netbeans.modules.defaults,\
-    org.netbeans.modules.derby,\
-    org.netbeans.modules.diff,\
-    org.netbeans.modules.editor.bookmarks,\
-    org.netbeans.modules.editor.bracesmatching,\
-    org.netbeans.modules.editor.codetemplates,\
-    org.netbeans.modules.editor.completion,\
-    org.netbeans.modules.editor.errorstripe,\
-    org.netbeans.modules.editor.errorstripe.api,\
-    org.netbeans.modules.editor.guards,\
-    org.netbeans.modules.editor.indent.project,\
-    org.netbeans.modules.editor.kit,\
-    org.netbeans.modules.editor.macros,\
-    org.netbeans.modules.editor.plain,\
-    org.netbeans.modules.editor.plain.lib,\
-    org.netbeans.modules.editor.structure,\
-    org.netbeans.modules.extbrowser,\
-    org.netbeans.modules.glassfish.common,\
-    org.netbeans.modules.gototest,\
-    org.netbeans.modules.gsf.codecoverage,\
-    org.netbeans.modules.gsf.testrunner,\
-    org.netbeans.modules.html,\
-    org.netbeans.modules.html.editor,\
-    org.netbeans.modules.html.editor.lib,\
-    org.netbeans.modules.html.lexer,\
-    org.netbeans.modules.httpserver,\
-    org.netbeans.modules.hudson,\
-    org.netbeans.modules.hudson.mercurial,\
-    org.netbeans.modules.hudson.subversion,\
-    org.netbeans.modules.ide.kit,\
-    org.netbeans.modules.image,\
-    org.netbeans.modules.jellytools.ide,\
-    org.netbeans.modules.jumpto,\
-    org.netbeans.modules.languages,\
-    org.netbeans.modules.languages.manifest,\
-    org.netbeans.modules.languages.yaml,\
-    org.netbeans.modules.lexer.nbbridge,\
-    org.netbeans.modules.localhistory,\
-    org.netbeans.modules.mercurial,\
-    org.netbeans.modules.options.editor,\
-    org.netbeans.modules.parsing.api,\
-    org.netbeans.modules.print.editor,\
-    org.netbeans.modules.project.ant,\
-    org.netbeans.modules.project.libraries,\
-    org.netbeans.modules.projectapi,\
-    org.netbeans.modules.projectui,\
-    org.netbeans.modules.projectui.buildmenu,\
-    org.netbeans.modules.projectuiapi,\
-    org.netbeans.modules.refactoring.api,\
-    org.netbeans.modules.schema2beans,\
-    org.netbeans.modules.server,\
-    org.netbeans.modules.servletapi,\
-    org.netbeans.modules.spellchecker,\
-    org.netbeans.modules.spellchecker.bindings.htmlxml,\
-    org.netbeans.modules.spellchecker.dictionary_en,\
-    org.netbeans.modules.spellchecker.kit,\
-    org.netbeans.modules.subversion,\
-    org.netbeans.modules.swing.validation,\
-    org.netbeans.modules.target.iterator,\
-    org.netbeans.modules.tasklist.kit,\
-    org.netbeans.modules.tasklist.projectint,\
-    org.netbeans.modules.tasklist.todo,\
-    org.netbeans.modules.tasklist.ui,\
-    org.netbeans.modules.usersguide,\
-    org.netbeans.modules.utilities,\
-    org.netbeans.modules.utilities.project,\
-    org.netbeans.modules.versioning,\
-    org.netbeans.modules.versioning.indexingbridge,\
-    org.netbeans.modules.versioning.util,\
-    org.netbeans.modules.web.common,\
-    org.netbeans.modules.xml,\
-    org.netbeans.modules.xml.axi,\
-    org.netbeans.modules.xml.catalog,\
-    org.netbeans.modules.xml.core,\
-    org.netbeans.modules.xml.jaxb.api,\
-    org.netbeans.modules.xml.lexer,\
-    org.netbeans.modules.xml.multiview,\
-    org.netbeans.modules.xml.retriever,\
-    org.netbeans.modules.xml.schema.completion,\
-    org.netbeans.modules.xml.schema.model,\
-    org.netbeans.modules.xml.tax,\
-    org.netbeans.modules.xml.text,\
-    org.netbeans.modules.xml.tools,\
-    org.netbeans.modules.xml.wsdl.model,\
-    org.netbeans.modules.xml.xam,\
-    org.netbeans.modules.xml.xdm,\
-    org.netbeans.modules.xsl,\
-    org.netbeans.spi.debugger.ui,\
-    org.netbeans.spi.editor.hints,\
-    org.netbeans.spi.navigator,\
-    org.netbeans.spi.palette,\
-    org.netbeans.spi.tasklist,\
-    org.netbeans.spi.viewmodel,\
-    org.netbeans.swing.dirchooser
-nbjdk.active=default
-nbplatform.active=NetBeans_IDE_CND_Dev
diff --git a/lib.terminalemulator/examples/TermSuite/nbproject/platform.xml b/lib.terminalemulator/examples/TermSuite/nbproject/platform.xml
deleted file mode 100644
index 64760a4ca..000000000
--- a/lib.terminalemulator/examples/TermSuite/nbproject/platform.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<project name="platform" default="download" basedir="..">
-    <condition property="download.required">
-        <and>
-            <not>
-                <available file="${harness.dir}/suite.xml"/>
-            </not>
-            <isset property="bootstrap.url"/>
-            <isset property="autoupdate.catalog.url"/>
-        </and>
-    </condition>
-    <target name="download" if="download.required">
-        <mkdir dir="${harness.dir}"/>
-        <pathconvert pathsep="|" property="download.clusters">
-            <mapper type="flatten"/>
-            <path path="${cluster.path}"/>
-        </pathconvert>
-        <property name="disabled.modules" value=""/>
-        <pathconvert property="module.includes" pathsep="">
-            <mapper type="glob" from="${basedir}${file.separator}*" to="(?!^\Q*\E$)"/>
-            <path>
-                <filelist files="${disabled.modules}" dir="."/>
-            </path>
-        </pathconvert>
-        <echo message="Downloading clusters ${download.clusters}"/>
-        <property name="tasks.jar" location="${java.io.tmpdir}/tasks.jar"/>
-        <get src="${bootstrap.url}" dest="${tasks.jar}" usetimestamp="true" verbose="true"/>
-        <taskdef name="autoupdate" classname="org.netbeans.nbbuild.AutoUpdate" classpath="${tasks.jar}"/>
-        <autoupdate installdir="${nbplatform.active.dir}" updatecenter="${autoupdate.catalog.url}">
-            <modules includes="${module.includes}.*" clusters="${download.clusters}"/>
-            <modules includes="org[.]netbeans[.]modules[.]apisupport[.]harness" clusters="harness"/>
-        </autoupdate>
-    </target>
-</project>
diff --git a/lib.terminalemulator/examples/TermSuite/nbproject/project.properties b/lib.terminalemulator/examples/TermSuite/nbproject/project.properties
deleted file mode 100644
index 52ecc752d..000000000
--- a/lib.terminalemulator/examples/TermSuite/nbproject/project.properties
+++ /dev/null
@@ -1,28 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-app.title=TermSuite
-auxiliary.org-netbeans-modules-apisupport-installer.license-type=no
-auxiliary.org-netbeans-modules-apisupport-installer.os-linux=true
-auxiliary.org-netbeans-modules-apisupport-installer.os-macosx=false
-auxiliary.org-netbeans-modules-apisupport-installer.os-solaris=false
-auxiliary.org-netbeans-modules-apisupport-installer.os-windows=false
-auxiliary.org-netbeans-modules-apisupport-installer.pack200-enabled=false
-modules=\
-    ${project.org.netbeans.lib.richexecution}:\
-    ${project.org.netbeans.terminal.example}
-project.org.netbeans.lib.richexecution=../lib.richexecution
-project.org.netbeans.terminal.example=../TermExample
diff --git a/lib.terminalemulator/examples/TermSuite/nbproject/project.xml b/lib.terminalemulator/examples/TermSuite/nbproject/project.xml
deleted file mode 100644
index 21706db8d..000000000
--- a/lib.terminalemulator/examples/TermSuite/nbproject/project.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<project xmlns="http://www.netbeans.org/ns/project/1">
-    <type>org.netbeans.modules.apisupport.project.suite</type>
-    <configuration>
-        <data xmlns="http://www.netbeans.org/ns/nb-module-suite-project/1">
-            <name>TermSuite</name>
-        </data>
-    </configuration>
-</project>
diff --git a/lib.terminalemulator/examples/TermTester/build.xml b/lib.terminalemulator/examples/TermTester/build.xml
deleted file mode 100644
index 93c1de0b0..000000000
--- a/lib.terminalemulator/examples/TermTester/build.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<!-- You may freely edit this file. See commented blocks below for -->
-<!-- some examples of how to customize the build. -->
-<!-- (If you delete it and reopen the project it will be recreated.) -->
-<!-- By default, only the Clean and Build commands use this build script. -->
-<!-- Commands such as Run, Debug, and Test only use this build script if -->
-<!-- the Compile on Save feature is turned off for the project. -->
-<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
-<!-- in the project's Project Properties dialog box.-->
-<project name="TermTester" default="default" basedir=".">
-    <description>Builds, tests, and runs the project TermTester.</description>
-    <import file="nbproject/build-impl.xml"/>
-    <!--
-
-    There exist several targets which are by default empty and which can be
-    used for execution of your tasks. These targets are usually executed
-    before and after some main targets. They are:
-
-      -pre-init:                 called before initialization of project properties
-      -post-init:                called after initialization of project properties
-      -pre-compile:              called before javac compilation
-      -post-compile:             called after javac compilation
-      -pre-compile-single:       called before javac compilation of single file
-      -post-compile-single:      called after javac compilation of single file
-      -pre-compile-test:         called before javac compilation of JUnit tests
-      -post-compile-test:        called after javac compilation of JUnit tests
-      -pre-compile-test-single:  called before javac compilation of single JUnit test
-      -post-compile-test-single: called after javac compilation of single JUunit test
-      -pre-jar:                  called before JAR building
-      -post-jar:                 called after JAR building
-      -post-clean:               called after cleaning build products
-
-    (Targets beginning with '-' are not intended to be called on their own.)
-
-    Example of inserting an obfuscator after compilation could look like this:
-
-        <target name="-post-compile">
-            <obfuscate>
-                <fileset dir="${build.classes.dir}"/>
-            </obfuscate>
-        </target>
-
-    For list of available properties check the imported 
-    nbproject/build-impl.xml file. 
-
-
-    Another way to customize the build is by overriding existing main targets.
-    The targets of interest are: 
-
-      -init-macrodef-javac:     defines macro for javac compilation
-      -init-macrodef-junit:     defines macro for junit execution
-      -init-macrodef-debug:     defines macro for class debugging
-      -init-macrodef-java:      defines macro for class execution
-      -do-jar:                  JAR building
-      run:                      execution of project 
-      -javadoc-build:           Javadoc generation
-      test-report:              JUnit report generation
-
-    An example of overriding the target for project execution could look like this:
-
-        <target name="run" depends="TermTester-impl.jar">
-            <exec dir="bin" executable="launcher.exe">
-                <arg file="${dist.jar}"/>
-            </exec>
-        </target>
-
-    Notice that the overridden target depends on the jar target and not only on 
-    the compile target as the regular run target does. Again, for a list of available 
-    properties which you can use, check the target you are overriding in the
-    nbproject/build-impl.xml file. 
-
-    -->
-</project>
diff --git a/lib.terminalemulator/examples/TermTester/manifest.mf b/lib.terminalemulator/examples/TermTester/manifest.mf
deleted file mode 100644
index 328e8e5bc..000000000
--- a/lib.terminalemulator/examples/TermTester/manifest.mf
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-X-COMMENT: Main-Class will be added automatically by build
-
diff --git a/lib.terminalemulator/examples/TermTester/nbproject/build-impl.xml b/lib.terminalemulator/examples/TermTester/nbproject/build-impl.xml
deleted file mode 100644
index b9d7f844d..000000000
--- a/lib.terminalemulator/examples/TermTester/nbproject/build-impl.xml
+++ /dev/null
@@ -1,1451 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-*** GENERATED FROM project.xml - DO NOT EDIT  ***
-***         EDIT ../build.xml INSTEAD         ***
-
-For the purpose of easier reading the script
-is divided into following sections:
-
-  - initialization
-  - compilation
-  - jar
-  - execution
-  - debugging
-  - javadoc
-  - test compilation
-  - test execution
-  - test debugging
-  - applet
-  - cleanup
-
-        -->
-<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="TermTester-impl">
-    <fail message="Please build using Ant 1.8.0 or higher.">
-        <condition>
-            <not>
-                <antversion atleast="1.8.0"/>
-            </not>
-        </condition>
-    </fail>
-    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
-    <!-- 
-                ======================
-                INITIALIZATION SECTION 
-                ======================
-            -->
-    <target name="-pre-init">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="-pre-init" name="-init-private">
-        <property file="nbproject/private/config.properties"/>
-        <property file="nbproject/private/configs/${config}.properties"/>
-        <property file="nbproject/private/private.properties"/>
-    </target>
-    <target depends="-pre-init,-init-private" name="-init-user">
-        <property file="${user.properties.file}"/>
-        <!-- The two properties below are usually overridden -->
-        <!-- by the active platform. Just a fallback. -->
-        <property name="default.javac.source" value="1.4"/>
-        <property name="default.javac.target" value="1.4"/>
-    </target>
-    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
-        <property file="nbproject/configs/${config}.properties"/>
-        <property file="nbproject/project.properties"/>
-    </target>
-    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
-        <property name="platform.java" value="${java.home}/bin/java"/>
-        <available file="${manifest.file}" property="manifest.available"/>
-        <condition property="splashscreen.available">
-            <and>
-                <not>
-                    <equals arg1="${application.splash}" arg2="" trim="true"/>
-                </not>
-                <available file="${application.splash}"/>
-            </and>
-        </condition>
-        <condition property="main.class.available">
-            <and>
-                <isset property="main.class"/>
-                <not>
-                    <equals arg1="${main.class}" arg2="" trim="true"/>
-                </not>
-            </and>
-        </condition>
-        <condition property="profile.available">
-            <and>
-                <isset property="javac.profile"/>
-                <length length="0" string="${javac.profile}" when="greater"/>
-                <matches pattern="1\.[89](\..*)?" string="${javac.source}"/>
-            </and>
-        </condition>
-        <condition property="do.archive">
-            <or>
-                <not>
-                    <istrue value="${jar.archive.disabled}"/>
-                </not>
-                <istrue value="${not.archive.disabled}"/>
-            </or>
-        </condition>
-        <condition property="do.mkdist">
-            <and>
-                <isset property="do.archive"/>
-                <isset property="libs.CopyLibs.classpath"/>
-                <not>
-                    <istrue value="${mkdist.disabled}"/>
-                </not>
-            </and>
-        </condition>
-        <condition property="do.archive+manifest.available">
-            <and>
-                <isset property="manifest.available"/>
-                <istrue value="${do.archive}"/>
-            </and>
-        </condition>
-        <condition property="do.archive+main.class.available">
-            <and>
-                <isset property="main.class.available"/>
-                <istrue value="${do.archive}"/>
-            </and>
-        </condition>
-        <condition property="do.archive+splashscreen.available">
-            <and>
-                <isset property="splashscreen.available"/>
-                <istrue value="${do.archive}"/>
-            </and>
-        </condition>
-        <condition property="do.archive+profile.available">
-            <and>
-                <isset property="profile.available"/>
-                <istrue value="${do.archive}"/>
-            </and>
-        </condition>
-        <condition property="have.tests">
-            <or>
-                <available file="${test.src.dir}"/>
-            </or>
-        </condition>
-        <condition property="have.sources">
-            <or>
-                <available file="${src.dir}"/>
-            </or>
-        </condition>
-        <condition property="netbeans.home+have.tests">
-            <and>
-                <isset property="netbeans.home"/>
-                <isset property="have.tests"/>
-            </and>
-        </condition>
-        <condition property="no.javadoc.preview">
-            <and>
-                <isset property="javadoc.preview"/>
-                <isfalse value="${javadoc.preview}"/>
-            </and>
-        </condition>
-        <property name="run.jvmargs" value=""/>
-        <property name="run.jvmargs.ide" value=""/>
-        <property name="javac.compilerargs" value=""/>
-        <property name="work.dir" value="${basedir}"/>
-        <condition property="no.deps">
-            <and>
-                <istrue value="${no.dependencies}"/>
-            </and>
-        </condition>
-        <property name="javac.debug" value="true"/>
-        <property name="javadoc.preview" value="true"/>
-        <property name="application.args" value=""/>
-        <property name="source.encoding" value="${file.encoding}"/>
-        <property name="runtime.encoding" value="${source.encoding}"/>
-        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
-            <and>
-                <isset property="javadoc.encoding"/>
-                <not>
-                    <equals arg1="${javadoc.encoding}" arg2=""/>
-                </not>
-            </and>
-        </condition>
-        <property name="javadoc.encoding.used" value="${source.encoding}"/>
-        <property name="includes" value="**"/>
-        <property name="excludes" value=""/>
-        <property name="do.depend" value="false"/>
-        <condition property="do.depend.true">
-            <istrue value="${do.depend}"/>
-        </condition>
-        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
-        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
-            <and>
-                <isset property="endorsed.classpath"/>
-                <not>
-                    <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
-                </not>
-            </and>
-        </condition>
-        <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
-            <isset property="profile.available"/>
-        </condition>
-        <condition else="false" property="jdkBug6558476">
-            <and>
-                <matches pattern="1\.[56]" string="${java.specification.version}"/>
-                <not>
-                    <os family="unix"/>
-                </not>
-            </and>
-        </condition>
-        <condition else="false" property="javac.fork">
-            <or>
-                <istrue value="${jdkBug6558476}"/>
-                <istrue value="${javac.external.vm}"/>
-            </or>
-        </condition>
-        <property name="jar.index" value="false"/>
-        <property name="jar.index.metainf" value="${jar.index}"/>
-        <property name="copylibs.rebase" value="true"/>
-        <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
-        <condition property="junit.available">
-            <or>
-                <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
-                <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
-            </or>
-        </condition>
-        <condition property="testng.available">
-            <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
-        </condition>
-        <condition property="junit+testng.available">
-            <and>
-                <istrue value="${junit.available}"/>
-                <istrue value="${testng.available}"/>
-            </and>
-        </condition>
-        <condition else="testng" property="testng.mode" value="mixed">
-            <istrue value="${junit+testng.available}"/>
-        </condition>
-        <condition else="" property="testng.debug.mode" value="-mixed">
-            <istrue value="${junit+testng.available}"/>
-        </condition>
-        <property name="java.failonerror" value="true"/>
-    </target>
-    <target name="-post-init">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
-        <fail unless="src.dir">Must set src.dir</fail>
-        <fail unless="test.src.dir">Must set test.src.dir</fail>
-        <fail unless="build.dir">Must set build.dir</fail>
-        <fail unless="dist.dir">Must set dist.dir</fail>
-        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
-        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
-        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
-        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
-        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
-        <fail unless="dist.jar">Must set dist.jar</fail>
-    </target>
-    <target name="-init-macrodef-property">
-        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
-            <attribute name="name"/>
-            <attribute name="value"/>
-            <sequential>
-                <property name="@{name}" value="${@{value}}"/>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
-        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${src.dir}" name="srcdir"/>
-            <attribute default="${build.classes.dir}" name="destdir"/>
-            <attribute default="${javac.classpath}" name="classpath"/>
-            <attribute default="${javac.processorpath}" name="processorpath"/>
-            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="${javac.debug}" name="debug"/>
-            <attribute default="${empty.dir}" name="sourcepath"/>
-            <attribute default="${empty.dir}" name="gensrcdir"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property location="${build.dir}/empty" name="empty.dir"/>
-                <mkdir dir="${empty.dir}"/>
-                <mkdir dir="@{apgeneratedsrcdir}"/>
-                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
-                    <src>
-                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
-                            <include name="*"/>
-                        </dirset>
-                    </src>
-                    <classpath>
-                        <path path="@{classpath}"/>
-                    </classpath>
-                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
-                    <compilerarg line="${javac.profile.cmd.line.arg}"/>
-                    <compilerarg line="${javac.compilerargs}"/>
-                    <compilerarg value="-processorpath"/>
-                    <compilerarg path="@{processorpath}:${empty.dir}"/>
-                    <compilerarg line="${ap.processors.internal}"/>
-                    <compilerarg line="${annotation.processing.processor.options}"/>
-                    <compilerarg value="-s"/>
-                    <compilerarg path="@{apgeneratedsrcdir}"/>
-                    <compilerarg line="${ap.proc.none.internal}"/>
-                    <customize/>
-                </javac>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
-        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${src.dir}" name="srcdir"/>
-            <attribute default="${build.classes.dir}" name="destdir"/>
-            <attribute default="${javac.classpath}" name="classpath"/>
-            <attribute default="${javac.processorpath}" name="processorpath"/>
-            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="${javac.debug}" name="debug"/>
-            <attribute default="${empty.dir}" name="sourcepath"/>
-            <attribute default="${empty.dir}" name="gensrcdir"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property location="${build.dir}/empty" name="empty.dir"/>
-                <mkdir dir="${empty.dir}"/>
-                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
-                    <src>
-                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
-                            <include name="*"/>
-                        </dirset>
-                    </src>
-                    <classpath>
-                        <path path="@{classpath}"/>
-                    </classpath>
-                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
-                    <compilerarg line="${javac.profile.cmd.line.arg}"/>
-                    <compilerarg line="${javac.compilerargs}"/>
-                    <customize/>
-                </javac>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
-        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${src.dir}" name="srcdir"/>
-            <attribute default="${build.classes.dir}" name="destdir"/>
-            <attribute default="${javac.classpath}" name="classpath"/>
-            <sequential>
-                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
-                    <classpath>
-                        <path path="@{classpath}"/>
-                    </classpath>
-                </depend>
-            </sequential>
-        </macrodef>
-        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${build.classes.dir}" name="destdir"/>
-            <sequential>
-                <fail unless="javac.includes">Must set javac.includes</fail>
-                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
-                    <path>
-                        <filelist dir="@{destdir}" files="${javac.includes}"/>
-                    </path>
-                    <globmapper from="*.java" to="*.class"/>
-                </pathconvert>
-                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
-                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
-                <delete>
-                    <files includesfile="${javac.includesfile.binary}"/>
-                </delete>
-                <delete>
-                    <fileset file="${javac.includesfile.binary}"/>
-                </delete>
-            </sequential>
-        </macrodef>
-    </target>
-    <target if="${junit.available}" name="-init-macrodef-junit-init">
-        <condition else="false" property="nb.junit.batch" value="true">
-            <and>
-                <istrue value="${junit.available}"/>
-                <not>
-                    <isset property="test.method"/>
-                </not>
-            </and>
-        </condition>
-        <condition else="false" property="nb.junit.single" value="true">
-            <and>
-                <istrue value="${junit.available}"/>
-                <isset property="test.method"/>
-            </and>
-        </condition>
-    </target>
-    <target name="-init-test-properties">
-        <property name="test.binaryincludes" value="&lt;nothing&gt;"/>
-        <property name="test.binarytestincludes" value=""/>
-        <property name="test.binaryexcludes" value=""/>
-    </target>
-    <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
-        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property name="junit.forkmode" value="perTest"/>
-                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
-                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
-                    <syspropertyset>
-                        <propertyref prefix="test-sys-prop."/>
-                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <formatter type="brief" usefile="false"/>
-                    <formatter type="xml"/>
-                    <jvmarg value="-ea"/>
-                    <customize/>
-                </junit>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
-        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property name="junit.forkmode" value="perTest"/>
-                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
-                    <batchtest todir="${build.test.results.dir}">
-                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
-                            <filename name="@{testincludes}"/>
-                        </fileset>
-                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
-                            <filename name="${test.binarytestincludes}"/>
-                        </fileset>
-                    </batchtest>
-                    <syspropertyset>
-                        <propertyref prefix="test-sys-prop."/>
-                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <formatter type="brief" usefile="false"/>
-                    <formatter type="xml"/>
-                    <jvmarg value="-ea"/>
-                    <customize/>
-                </junit>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
-    <target if="${testng.available}" name="-init-macrodef-testng">
-        <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
-                    <isset property="test.method"/>
-                </condition>
-                <union id="test.set">
-                    <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
-                        <filename name="@{testincludes}"/>
-                    </fileset>
-                </union>
-                <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
-                <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="TermTester" testname="TestNG tests" workingDir="${work.dir}">
-                    <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
-                    <propertyset>
-                        <propertyref prefix="test-sys-prop."/>
-                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
-                    </propertyset>
-                    <customize/>
-                </testng>
-            </sequential>
-        </macrodef>
-    </target>
-    <target name="-init-macrodef-test-impl">
-        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element implicit="true" name="customize" optional="true"/>
-            <sequential>
-                <echo>No tests executed.</echo>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
-        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element implicit="true" name="customize" optional="true"/>
-            <sequential>
-                <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
-                    <customize/>
-                </j2seproject3:junit>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
-        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element implicit="true" name="customize" optional="true"/>
-            <sequential>
-                <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
-                    <customize/>
-                </j2seproject3:testng>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
-        <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <sequential>
-                <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
-                    <customize>
-                        <classpath>
-                            <path path="${run.test.classpath}"/>
-                        </classpath>
-                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
-                        <jvmarg line="${run.jvmargs}"/>
-                        <jvmarg line="${run.jvmargs.ide}"/>
-                    </customize>
-                </j2seproject3:test-impl>
-            </sequential>
-        </macrodef>
-    </target>
-    <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
-        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property name="junit.forkmode" value="perTest"/>
-                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
-                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
-                    <syspropertyset>
-                        <propertyref prefix="test-sys-prop."/>
-                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <formatter type="brief" usefile="false"/>
-                    <formatter type="xml"/>
-                    <jvmarg value="-ea"/>
-                    <jvmarg line="${debug-args-line}"/>
-                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
-                    <customize/>
-                </junit>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
-        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property name="junit.forkmode" value="perTest"/>
-                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
-                    <batchtest todir="${build.test.results.dir}">
-                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
-                            <filename name="@{testincludes}"/>
-                        </fileset>
-                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
-                            <filename name="${test.binarytestincludes}"/>
-                        </fileset>
-                    </batchtest>
-                    <syspropertyset>
-                        <propertyref prefix="test-sys-prop."/>
-                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <formatter type="brief" usefile="false"/>
-                    <formatter type="xml"/>
-                    <jvmarg value="-ea"/>
-                    <jvmarg line="${debug-args-line}"/>
-                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
-                    <customize/>
-                </junit>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
-        <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <element implicit="true" name="customize" optional="true"/>
-            <sequential>
-                <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
-                    <customize/>
-                </j2seproject3:junit-debug>
-            </sequential>
-        </macrodef>
-    </target>
-    <target if="${testng.available}" name="-init-macrodef-testng-debug">
-        <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${main.class}" name="testClass"/>
-            <attribute default="" name="testMethod"/>
-            <element name="customize2" optional="true"/>
-            <sequential>
-                <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
-                    <isset property="test.method"/>
-                </condition>
-                <condition else="-suitename TermTester -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
-                    <matches pattern=".*\.xml" string="@{testClass}"/>
-                </condition>
-                <delete dir="${build.test.results.dir}" quiet="true"/>
-                <mkdir dir="${build.test.results.dir}"/>
-                <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
-                    <customize>
-                        <customize2/>
-                        <jvmarg value="-ea"/>
-                        <arg line="${testng.debug.mode}"/>
-                        <arg line="-d ${build.test.results.dir}"/>
-                        <arg line="-listener org.testng.reporters.VerboseReporter"/>
-                        <arg line="${testng.cmd.args}"/>
-                    </customize>
-                </j2seproject3:debug>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
-        <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${main.class}" name="testClass"/>
-            <attribute default="" name="testMethod"/>
-            <element implicit="true" name="customize2" optional="true"/>
-            <sequential>
-                <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
-                    <customize2/>
-                </j2seproject3:testng-debug>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
-        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <attribute default="${main.class}" name="testClass"/>
-            <attribute default="" name="testMethod"/>
-            <sequential>
-                <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
-                    <customize>
-                        <classpath>
-                            <path path="${run.test.classpath}"/>
-                        </classpath>
-                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
-                        <jvmarg line="${run.jvmargs}"/>
-                        <jvmarg line="${run.jvmargs.ide}"/>
-                    </customize>
-                </j2seproject3:test-debug-impl>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
-        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${includes}" name="includes"/>
-            <attribute default="${excludes}" name="excludes"/>
-            <attribute default="**" name="testincludes"/>
-            <attribute default="" name="testmethods"/>
-            <attribute default="${main.class}" name="testClass"/>
-            <attribute default="" name="testMethod"/>
-            <sequential>
-                <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
-                    <customize2>
-                        <syspropertyset>
-                            <propertyref prefix="test-sys-prop."/>
-                            <mapper from="test-sys-prop.*" to="*" type="glob"/>
-                        </syspropertyset>
-                    </customize2>
-                </j2seproject3:testng-debug-impl>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
-    <!--
-                pre NB7.2 profiling section; consider it deprecated
-            -->
-    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
-    <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
-        <macrodef name="resolve">
-            <attribute name="name"/>
-            <attribute name="value"/>
-            <sequential>
-                <property name="@{name}" value="${env.@{value}}"/>
-            </sequential>
-        </macrodef>
-        <macrodef name="profile">
-            <attribute default="${main.class}" name="classname"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property environment="env"/>
-                <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
-                <java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
-                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
-                    <jvmarg value="${profiler.info.jvmargs.agent}"/>
-                    <jvmarg line="${profiler.info.jvmargs}"/>
-                    <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
-                    <arg line="${application.args}"/>
-                    <classpath>
-                        <path path="${run.classpath}"/>
-                    </classpath>
-                    <syspropertyset>
-                        <propertyref prefix="run-sys-prop."/>
-                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <customize/>
-                </java>
-            </sequential>
-        </macrodef>
-    </target>
-    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
-        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
-        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
-    </target>
-    <!--
-                end of pre NB7.2 profiling section
-            -->
-    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
-        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
-            <attribute default="${main.class}" name="name"/>
-            <attribute default="${debug.classpath}" name="classpath"/>
-            <attribute default="" name="stopclassname"/>
-            <sequential>
-                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
-                    <classpath>
-                        <path path="@{classpath}"/>
-                    </classpath>
-                </nbjpdastart>
-            </sequential>
-        </macrodef>
-        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
-            <attribute default="${build.classes.dir}" name="dir"/>
-            <sequential>
-                <nbjpdareload>
-                    <fileset dir="@{dir}" includes="${fix.classes}">
-                        <include name="${fix.includes}*.class"/>
-                    </fileset>
-                </nbjpdareload>
-            </sequential>
-        </macrodef>
-    </target>
-    <target name="-init-debug-args">
-        <property name="version-output" value="java version &quot;${ant.java.version}"/>
-        <condition property="have-jdk-older-than-1.4">
-            <or>
-                <contains string="${version-output}" substring="java version &quot;1.0"/>
-                <contains string="${version-output}" substring="java version &quot;1.1"/>
-                <contains string="${version-output}" substring="java version &quot;1.2"/>
-                <contains string="${version-output}" substring="java version &quot;1.3"/>
-            </or>
-        </condition>
-        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
-            <istrue value="${have-jdk-older-than-1.4}"/>
-        </condition>
-        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
-            <os family="windows"/>
-        </condition>
-        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
-            <isset property="debug.transport"/>
-        </condition>
-    </target>
-    <target depends="-init-debug-args" name="-init-macrodef-debug">
-        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${main.class}" name="classname"/>
-            <attribute default="${debug.classpath}" name="classpath"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
-                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
-                    <jvmarg line="${debug-args-line}"/>
-                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
-                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
-                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
-                    <jvmarg line="${run.jvmargs}"/>
-                    <jvmarg line="${run.jvmargs.ide}"/>
-                    <classpath>
-                        <path path="@{classpath}"/>
-                    </classpath>
-                    <syspropertyset>
-                        <propertyref prefix="run-sys-prop."/>
-                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <customize/>
-                </java>
-            </sequential>
-        </macrodef>
-    </target>
-    <target name="-init-macrodef-java">
-        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
-            <attribute default="${main.class}" name="classname"/>
-            <attribute default="${run.classpath}" name="classpath"/>
-            <attribute default="jvm" name="jvm"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
-                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
-                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
-                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
-                    <jvmarg line="${run.jvmargs}"/>
-                    <jvmarg line="${run.jvmargs.ide}"/>
-                    <classpath>
-                        <path path="@{classpath}"/>
-                    </classpath>
-                    <syspropertyset>
-                        <propertyref prefix="run-sys-prop."/>
-                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
-                    </syspropertyset>
-                    <customize/>
-                </java>
-            </sequential>
-        </macrodef>
-    </target>
-    <target name="-init-macrodef-copylibs">
-        <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
-            <attribute default="${manifest.file}" name="manifest"/>
-            <element name="customize" optional="true"/>
-            <sequential>
-                <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
-                <pathconvert property="run.classpath.without.build.classes.dir">
-                    <path path="${run.classpath}"/>
-                    <map from="${build.classes.dir.resolved}" to=""/>
-                </pathconvert>
-                <pathconvert pathsep=" " property="jar.classpath">
-                    <path path="${run.classpath.without.build.classes.dir}"/>
-                    <chainedmapper>
-                        <flattenmapper/>
-                        <filtermapper>
-                            <replacestring from=" " to="%20"/>
-                        </filtermapper>
-                        <globmapper from="*" to="lib/*"/>
-                    </chainedmapper>
-                </pathconvert>
-                <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
-                <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
-                    <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
-                    <manifest>
-                        <attribute name="Class-Path" value="${jar.classpath}"/>
-                        <customize/>
-                    </manifest>
-                </copylibs>
-            </sequential>
-        </macrodef>
-    </target>
-    <target name="-init-presetdef-jar">
-        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
-            <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
-                <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
-            </jar>
-        </presetdef>
-    </target>
-    <target name="-init-ap-cmdline-properties">
-        <property name="annotation.processing.enabled" value="true"/>
-        <property name="annotation.processing.processors.list" value=""/>
-        <property name="annotation.processing.processor.options" value=""/>
-        <property name="annotation.processing.run.all.processors" value="true"/>
-        <property name="javac.processorpath" value="${javac.classpath}"/>
-        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
-        <condition property="ap.supported.internal" value="true">
-            <not>
-                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
-            </not>
-        </condition>
-    </target>
-    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
-        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
-            <isfalse value="${annotation.processing.run.all.processors}"/>
-        </condition>
-        <condition else="" property="ap.proc.none.internal" value="-proc:none">
-            <isfalse value="${annotation.processing.enabled}"/>
-        </condition>
-    </target>
-    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
-        <property name="ap.cmd.line.internal" value=""/>
-    </target>
-    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
-    <!--
-                ===================
-                COMPILATION SECTION
-                ===================
-            -->
-    <target name="-deps-jar-init" unless="built-jar.properties">
-        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
-        <delete file="${built-jar.properties}" quiet="true"/>
-    </target>
-    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
-        <echo level="warn" message="Cycle detected: TermTester was already built"/>
-    </target>
-    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
-        <mkdir dir="${build.dir}"/>
-        <touch file="${built-jar.properties}" verbose="false"/>
-        <property file="${built-jar.properties}" prefix="already.built.jar."/>
-        <antcall target="-warn-already-built-jar"/>
-        <propertyfile file="${built-jar.properties}">
-            <entry key="${basedir}" value=""/>
-        </propertyfile>
-        <antcall target="-maybe-call-dep">
-            <param name="call.built.properties" value="${built-jar.properties}"/>
-            <param location="${project.org_netbeans_lib_richexecution-1}" name="call.subproject"/>
-            <param location="${project.org_netbeans_lib_richexecution-1}/build.xml" name="call.script"/>
-            <param name="call.target" value="netbeans"/>
-            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
-            <param name="transfer.not.archive.disabled" value="true"/>
-        </antcall>
-        <antcall target="-maybe-call-dep">
-            <param name="call.built.properties" value="${built-jar.properties}"/>
-            <param location="${project.org_netbeans_lib_terminalemulator}" name="call.subproject"/>
-            <param location="${project.org_netbeans_lib_terminalemulator}/build.xml" name="call.script"/>
-            <param name="call.target" value="netbeans"/>
-            <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
-            <param name="transfer.not.archive.disabled" value="true"/>
-        </antcall>
-    </target>
-    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
-    <target depends="init" name="-check-automatic-build">
-        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
-    </target>
-    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
-        <antcall target="clean"/>
-    </target>
-    <target depends="init,deps-jar" name="-pre-pre-compile">
-        <mkdir dir="${build.classes.dir}"/>
-    </target>
-    <target name="-pre-compile">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target if="do.depend.true" name="-compile-depend">
-        <pathconvert property="build.generated.subdirs">
-            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
-                <include name="*"/>
-            </dirset>
-        </pathconvert>
-        <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
-    </target>
-    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
-        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
-        <copy todir="${build.classes.dir}">
-            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
-        </copy>
-    </target>
-    <target if="has.persistence.xml" name="-copy-persistence-xml">
-        <mkdir dir="${build.classes.dir}/META-INF"/>
-        <copy todir="${build.classes.dir}/META-INF">
-            <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
-        </copy>
-    </target>
-    <target name="-post-compile">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
-    <target name="-pre-compile-single">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
-        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
-        <j2seproject3:force-recompile/>
-        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
-    </target>
-    <target name="-post-compile-single">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
-    <!--
-                ====================
-                JAR BUILDING SECTION
-                ====================
-            -->
-    <target depends="init" name="-pre-pre-jar">
-        <dirname file="${dist.jar}" property="dist.jar.dir"/>
-        <mkdir dir="${dist.jar.dir}"/>
-    </target>
-    <target name="-pre-jar">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
-        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
-        <touch file="${tmp.manifest.file}" verbose="false"/>
-    </target>
-    <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
-        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
-        <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
-    </target>
-    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
-        <manifest file="${tmp.manifest.file}" mode="update">
-            <attribute name="Main-Class" value="${main.class}"/>
-        </manifest>
-    </target>
-    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
-        <manifest file="${tmp.manifest.file}" mode="update">
-            <attribute name="Profile" value="${javac.profile}"/>
-        </manifest>
-    </target>
-    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
-        <basename file="${application.splash}" property="splashscreen.basename"/>
-        <mkdir dir="${build.classes.dir}/META-INF"/>
-        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
-        <manifest file="${tmp.manifest.file}" mode="update">
-            <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
-        </manifest>
-    </target>
-    <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
-        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
-        <echo level="info">To run this application from the command line without Ant, try:</echo>
-        <property location="${dist.jar}" name="dist.jar.resolved"/>
-        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
-    </target>
-    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
-        <j2seproject1:jar manifest="${tmp.manifest.file}"/>
-        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
-        <property location="${dist.jar}" name="dist.jar.resolved"/>
-        <pathconvert property="run.classpath.with.dist.jar">
-            <path path="${run.classpath}"/>
-            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
-        </pathconvert>
-        <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
-            <isset property="main.class.available"/>
-        </condition>
-        <condition else="debug" property="jar.usage.level" value="info">
-            <isset property="main.class.available"/>
-        </condition>
-        <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
-    </target>
-    <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
-        <delete>
-            <fileset file="${tmp.manifest.file}"/>
-        </delete>
-    </target>
-    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
-    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
-    <target name="-post-jar">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
-    <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
-    <!--
-                =================
-                EXECUTION SECTION
-                =================
-            -->
-    <target depends="init,compile" description="Run a main class." name="run">
-        <j2seproject1:java>
-            <customize>
-                <arg line="${application.args}"/>
-            </customize>
-        </j2seproject1:java>
-    </target>
-    <target name="-do-not-recompile">
-        <property name="javac.includes.binary" value=""/>
-    </target>
-    <target depends="init,compile-single" name="run-single">
-        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
-        <j2seproject1:java classname="${run.class}"/>
-    </target>
-    <target depends="init,compile-test-single" name="run-test-with-main">
-        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
-        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
-    </target>
-    <!--
-                =================
-                DEBUGGING SECTION
-                =================
-            -->
-    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
-        <j2seproject1:nbjpdastart name="${debug.class}"/>
-    </target>
-    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
-        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
-    </target>
-    <target depends="init,compile" name="-debug-start-debuggee">
-        <j2seproject3:debug>
-            <customize>
-                <arg line="${application.args}"/>
-            </customize>
-        </j2seproject3:debug>
-    </target>
-    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
-    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
-        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
-    </target>
-    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
-    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
-        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
-        <j2seproject3:debug classname="${debug.class}"/>
-    </target>
-    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
-    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
-        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
-        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
-    </target>
-    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
-    <target depends="init" name="-pre-debug-fix">
-        <fail unless="fix.includes">Must set fix.includes</fail>
-        <property name="javac.includes" value="${fix.includes}.java"/>
-    </target>
-    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
-        <j2seproject1:nbjpdareload/>
-    </target>
-    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
-    <!--
-                =================
-                PROFILING SECTION
-                =================
-            -->
-    <!--
-                pre NB7.2 profiler integration
-            -->
-    <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
-        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
-        <nbprofiledirect>
-            <classpath>
-                <path path="${run.classpath}"/>
-            </classpath>
-        </nbprofiledirect>
-        <profile/>
-    </target>
-    <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
-        <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
-        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
-        <nbprofiledirect>
-            <classpath>
-                <path path="${run.classpath}"/>
-            </classpath>
-        </nbprofiledirect>
-        <profile classname="${profile.class}"/>
-    </target>
-    <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
-        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
-        <nbprofiledirect>
-            <classpath>
-                <path path="${run.classpath}"/>
-            </classpath>
-        </nbprofiledirect>
-        <profile classname="sun.applet.AppletViewer">
-            <customize>
-                <arg value="${applet.url}"/>
-            </customize>
-        </profile>
-    </target>
-    <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
-        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
-        <nbprofiledirect>
-            <classpath>
-                <path path="${run.test.classpath}"/>
-            </classpath>
-        </nbprofiledirect>
-        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
-            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
-            <jvmarg value="${profiler.info.jvmargs.agent}"/>
-            <jvmarg line="${profiler.info.jvmargs}"/>
-            <test name="${profile.class}"/>
-            <classpath>
-                <path path="${run.test.classpath}"/>
-            </classpath>
-            <syspropertyset>
-                <propertyref prefix="test-sys-prop."/>
-                <mapper from="test-sys-prop.*" to="*" type="glob"/>
-            </syspropertyset>
-            <formatter type="brief" usefile="false"/>
-            <formatter type="xml"/>
-        </junit>
-    </target>
-    <!--
-                end of pre NB72 profiling section
-            -->
-    <target if="netbeans.home" name="-profile-check">
-        <condition property="profiler.configured">
-            <or>
-                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
-                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
-            </or>
-        </condition>
-    </target>
-    <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
-        <startprofiler/>
-        <antcall target="run"/>
-    </target>
-    <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent">
-        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
-        <startprofiler/>
-        <antcall target="run-single"/>
-    </target>
-    <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
-    <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
-        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
-        <startprofiler/>
-        <antcall target="test-single"/>
-    </target>
-    <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
-        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
-        <startprofiler/>
-        <antcall target="run-test-with-main"/>
-    </target>
-    <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
-        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
-        <startprofiler/>
-        <antcall target="run-applet"/>
-    </target>
-    <!--
-                ===============
-                JAVADOC SECTION
-                ===============
-            -->
-    <target depends="init" if="have.sources" name="-javadoc-build">
-        <mkdir dir="${dist.javadoc.dir}"/>
-        <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
-            <and>
-                <isset property="endorsed.classpath.cmd.line.arg"/>
-                <not>
-                    <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
-                </not>
-            </and>
-        </condition>
-        <condition else="" property="bug5101868workaround" value="*.java">
-            <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
-        </condition>
-        <javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
-            <classpath>
-                <path path="${javac.classpath}"/>
-            </classpath>
-            <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
-                <filename name="**/*.java"/>
-            </fileset>
-            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
-                <include name="**/*.java"/>
-                <exclude name="*.java"/>
-            </fileset>
-            <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
-        </javadoc>
-        <copy todir="${dist.javadoc.dir}">
-            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
-                <filename name="**/doc-files/**"/>
-            </fileset>
-            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
-                <include name="**/doc-files/**"/>
-            </fileset>
-        </copy>
-    </target>
-    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
-        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
-    </target>
-    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
-    <!--
-                =========================
-                TEST COMPILATION SECTION
-                =========================
-            -->
-    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
-        <mkdir dir="${build.test.classes.dir}"/>
-    </target>
-    <target name="-pre-compile-test">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target if="do.depend.true" name="-compile-test-depend">
-        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
-    </target>
-    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
-        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
-        <copy todir="${build.test.classes.dir}">
-            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
-        </copy>
-    </target>
-    <target name="-post-compile-test">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
-    <target name="-pre-compile-test-single">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
-        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
-        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
-        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
-        <copy todir="${build.test.classes.dir}">
-            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
-        </copy>
-    </target>
-    <target name="-post-compile-test-single">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
-    <!--
-                =======================
-                TEST EXECUTION SECTION
-                =======================
-            -->
-    <target depends="init" if="have.tests" name="-pre-test-run">
-        <mkdir dir="${build.test.results.dir}"/>
-    </target>
-    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
-        <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
-    </target>
-    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
-        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
-    </target>
-    <target depends="init" if="have.tests" name="test-report"/>
-    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
-    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
-    <target depends="init" if="have.tests" name="-pre-test-run-single">
-        <mkdir dir="${build.test.results.dir}"/>
-    </target>
-    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
-        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
-        <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
-    </target>
-    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
-        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
-    </target>
-    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
-    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
-        <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
-        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
-        <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
-    </target>
-    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
-        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
-    </target>
-    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
-    <!--
-                =======================
-                TEST DEBUGGING SECTION
-                =======================
-            -->
-    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
-        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
-        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
-    </target>
-    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
-        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
-        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
-        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
-    </target>
-    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
-        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
-    </target>
-    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
-    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
-    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
-        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
-    </target>
-    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
-    <!--
-                =========================
-                APPLET EXECUTION SECTION
-                =========================
-            -->
-    <target depends="init,compile-single" name="run-applet">
-        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
-        <j2seproject1:java classname="sun.applet.AppletViewer">
-            <customize>
-                <arg value="${applet.url}"/>
-            </customize>
-        </j2seproject1:java>
-    </target>
-    <!--
-                =========================
-                APPLET DEBUGGING  SECTION
-                =========================
-            -->
-    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
-        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
-        <j2seproject3:debug classname="sun.applet.AppletViewer">
-            <customize>
-                <arg value="${applet.url}"/>
-            </customize>
-        </j2seproject3:debug>
-    </target>
-    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
-    <!--
-                ===============
-                CLEANUP SECTION
-                ===============
-            -->
-    <target name="-deps-clean-init" unless="built-clean.properties">
-        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
-        <delete file="${built-clean.properties}" quiet="true"/>
-    </target>
-    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
-        <echo level="warn" message="Cycle detected: TermTester was already built"/>
-    </target>
-    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
-        <mkdir dir="${build.dir}"/>
-        <touch file="${built-clean.properties}" verbose="false"/>
-        <property file="${built-clean.properties}" prefix="already.built.clean."/>
-        <antcall target="-warn-already-built-clean"/>
-        <propertyfile file="${built-clean.properties}">
-            <entry key="${basedir}" value=""/>
-        </propertyfile>
-        <antcall target="-maybe-call-dep">
-            <param name="call.built.properties" value="${built-clean.properties}"/>
-            <param location="${project.org_netbeans_lib_richexecution-1}" name="call.subproject"/>
-            <param location="${project.org_netbeans_lib_richexecution-1}/build.xml" name="call.script"/>
-            <param name="call.target" value="clean"/>
-            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
-            <param name="transfer.not.archive.disabled" value="true"/>
-        </antcall>
-        <antcall target="-maybe-call-dep">
-            <param name="call.built.properties" value="${built-clean.properties}"/>
-            <param location="${project.org_netbeans_lib_terminalemulator}" name="call.subproject"/>
-            <param location="${project.org_netbeans_lib_terminalemulator}/build.xml" name="call.script"/>
-            <param name="call.target" value="clean"/>
-            <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
-            <param name="transfer.not.archive.disabled" value="true"/>
-        </antcall>
-    </target>
-    <target depends="init" name="-do-clean">
-        <delete dir="${build.dir}"/>
-        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
-    </target>
-    <target name="-post-clean">
-        <!-- Empty placeholder for easier customization. -->
-        <!-- You can override this target in the ../build.xml file. -->
-    </target>
-    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
-    <target name="-check-call-dep">
-        <property file="${call.built.properties}" prefix="already.built."/>
-        <condition property="should.call.dep">
-            <and>
-                <not>
-                    <isset property="already.built.${call.subproject}"/>
-                </not>
-                <available file="${call.script}"/>
-            </and>
-        </condition>
-    </target>
-    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
-        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
-            <propertyset>
-                <propertyref prefix="transfer."/>
-                <mapper from="transfer.*" to="*" type="glob"/>
-            </propertyset>
-        </ant>
-    </target>
-</project>
diff --git a/lib.terminalemulator/examples/TermTester/nbproject/genfiles.properties b/lib.terminalemulator/examples/TermTester/nbproject/genfiles.properties
deleted file mode 100644
index 8a1336ef6..000000000
--- a/lib.terminalemulator/examples/TermTester/nbproject/genfiles.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-build.xml.data.CRC32=af0916e9
-build.xml.script.CRC32=09b26c8c
-build.xml.stylesheet.CRC32=8064a381@1.75.2.48
-# 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=af0916e9
-nbproject/build-impl.xml.script.CRC32=5e53acf4
-nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48
diff --git a/lib.terminalemulator/examples/TermTester/nbproject/project.properties b/lib.terminalemulator/examples/TermTester/nbproject/project.properties
deleted file mode 100644
index 87df27e4f..000000000
--- a/lib.terminalemulator/examples/TermTester/nbproject/project.properties
+++ /dev/null
@@ -1,98 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-#Mon Aug 01 23:29:35 PDT 2016
-javadoc.splitindex=true
-build.classes.excludes=**/*.java,**/*.form
-reference.org_netbeans_lib_richexecution-1.module=${project.org_netbeans_lib_richexecution-1}/../TermSuite/build/cluster/modules/org-netbeans-lib-richexecution.jar
-javadoc.author=false
-build.sysclasspath=ignore
-file.reference.jna-4.1.0.jar=../../../nbbuild/netbeans/platform/modules/ext/jna-4.1.0.jar
-auxiliary.org-netbeans-modules-editor-indent.text.x-ant+xml.CodeStyle.project.spaces-per-tab=8
-javac.target=1.8
-build.generated.dir=${build.dir}/generated
-auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.tab-size=8
-run.classpath=${javac.classpath}\:${build.classes.dir}
-auxiliary.org-netbeans-modules-editor-indent.CodeStyle.usedProfile=project
-debug.test.classpath=${run.test.classpath}
-auxiliary.org-netbeans-modules-editor-indent.text.x-java.CodeStyle.project.tab-size=8
-build.dir=build
-javac.deprecation=false
-project.org_netbeans_lib_richexecution-1=../lib.richexecution
-test.src.dir=test
-junit.selected.version=4
-includes=**
-application.vendor=ivan
-mkdist.disabled=false
-jar.compress=false
-auxiliary.org-netbeans-modules-editor-indent.text.x-ant+xml.CodeStyle.project.expand-tabs=true
-annotation.processing.processors.list=
-javadoc.version=false
-project.org_netbeans_lib_terminalemulator=../..
-build.classes.dir=${build.dir}/classes
-auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.indent-shift-width=4
-dist.dir=dist
-manifest.file=manifest.mf
-javac.source=1.8
-run.jvmargs=
-auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.text-limit-width=80
-run.test.classpath=${javac.test.classpath}\:${build.test.classes.dir}
-build.generated.sources.dir=${build.dir}/generated-sources
-javadoc.notree=false
-dist.jar=${dist.dir}/TermTester.jar
-platform.active=default_platform
-annotation.processing.enabled=true
-auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.text-line-wrap=none
-main.class=termtester.Main
-dist.javadoc.dir=${dist.dir}/javadoc
-javadoc.additionalparam=
-javac.classpath=${reference.org_netbeans_lib_terminalemulator.module}\:${file.reference.jna-4.1.0.jar}\:${reference.org_netbeans_lib_richexecution-1.module}
-javadoc.noindex=false
-auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.spaces-per-tab=4
-annotation.processing.enabled.in.editor=false
-javadoc.private=false
-javadoc.encoding=${source.encoding}
-build.test.classes.dir=${build.dir}/test/classes
-auxiliary.org-netbeans-modules-editor-indent.text.x-java.CodeStyle.project.expand-tabs=false
-auxiliary.org-netbeans-modules-editor-indent.text.x-java.CodeStyle.project.text-limit-width=80
-auxiliary.org-netbeans-modules-editor-indent.text.x-ant+xml.CodeStyle.project.indent-shift-width=4
-javac.compilerargs=
-source.encoding=UTF-8
-auxiliary.org-netbeans-modules-editor-indent.text.x-ant+xml.CodeStyle.project.tab-size=8
-meta.inf.dir=${src.dir}/META-INF
-annotation.processing.run.all.processors=true
-excludes=
-application.title=TermTester
-auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.expand-tabs=false
-auxiliary.org-netbeans-modules-editor-indent.text.x-java.CodeStyle.project.text-line-wrap=none
-javac.processorpath=${javac.classpath}
-build.test.results.dir=${build.dir}/test/results
-auxiliary.org-netbeans-modules-editor-indent.text.x-java.CodeStyle.project.indent-shift-width=4
-endorsed.classpath=
-javadoc.use=true
-auxiliary.org-netbeans-modules-editor-indent.text.x-java.CodeStyle.project.spaces-per-tab=8
-javadoc.nonavbar=false
-javadoc.windowtitle=
-reference.org_netbeans_lib_terminalemulator.module=${project.org_netbeans_lib_terminalemulator}/../nbbuild/netbeans/ide/modules/org-netbeans-lib-terminalemulator.jar
-javac.test.classpath=\
-    ${javac.classpath}:\
-    ${build.classes.dir}:\
-    ${libs.junit.classpath}:\
-    ${libs.junit_4.classpath}:\
-    ${libs.hamcrest.classpath}
-src.dir=src
-debug.classpath=${run.classpath}
diff --git a/lib.terminalemulator/examples/TermTester/nbproject/project.xml b/lib.terminalemulator/examples/TermTester/nbproject/project.xml
deleted file mode 100644
index 3ea25c554..000000000
--- a/lib.terminalemulator/examples/TermTester/nbproject/project.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<project xmlns="http://www.netbeans.org/ns/project/1">
-    <type>org.netbeans.modules.java.j2seproject</type>
-    <configuration>
-        <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
-            <name>TermTester</name>
-            <minimum-ant-version>1.6.5</minimum-ant-version>
-            <source-roots>
-                <root id="src.dir"/>
-            </source-roots>
-            <test-roots>
-                <root id="test.src.dir"/>
-            </test-roots>
-        </data>
-        <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
-            <reference>
-                <foreign-project>org_netbeans_lib_richexecution-1</foreign-project>
-                <artifact-type>jar</artifact-type>
-                <script>build.xml</script>
-                <target>netbeans</target>
-                <clean-target>clean</clean-target>
-                <id>module</id>
-            </reference>
-            <reference>
-                <foreign-project>org_netbeans_lib_terminalemulator</foreign-project>
-                <artifact-type>jar</artifact-type>
-                <script>build.xml</script>
-                <target>netbeans</target>
-                <clean-target>clean</clean-target>
-                <id>module</id>
-            </reference>
-        </references>
-    </configuration>
-</project>
diff --git a/lib.terminalemulator/examples/TermTester/src/interp/BaseCmdSet.java b/lib.terminalemulator/examples/TermTester/src/interp/BaseCmdSet.java
deleted file mode 100644
index 3734d76ad..000000000
--- a/lib.terminalemulator/examples/TermTester/src/interp/BaseCmdSet.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package interp;
-
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-/**
- *
- * @author ivan
- */
-public final class BaseCmdSet extends CmdSet {
-    public BaseCmdSet(Interp interp) {
-        super(interp);
-        interp.addCmd(new CmdEcho());
-        interp.addCmd(new CmdHelp());
-        interp.addCmd(new CmdSource());
-        interp.addCmd(new CmdSleep());
-    }
-
-    private class CmdSleep extends Cmd {
-
-        public CmdSleep() {
-            super("sleep");
-        }
-
-        public void run(String[] args) {
-            if (args.length == 0) {
-                error("Missing <millis>");
-            } else {
-                int millis = Integer.parseInt(args[0]);
-                try {
-                    Thread.sleep(millis);
-                } catch (InterruptedException ex) {
-                    Logger.getLogger(BaseCmdSet.class.getName()).log(Level.SEVERE, null, ex);
-                }
-            }
-        }
-
-        public void help() {
-        }
-    }
-    private class CmdEcho extends Cmd {
-
-        public CmdEcho() {
-            super("echo");
-        }
-
-        public void run(String[] args) {
-            for (String arg : args) {
-                printf(arg);
-                printf(" ");
-            }
-            printf("\n");
-        }
-
-        public void help() {
-        }
-    }
-
-    private class CmdSource extends Cmd {
-
-        public CmdSource() {
-            super("source");
-        }
-
-        public void run(String[] args) {
-            if (args.length == 0)
-                error("missing arguments");
-	    for (String src : args)
-		interp().source(src, false);
-	}
-
-        public void help() {
-        }
-    }
-
-    private class CmdHelp extends Cmd {
-
-        public CmdHelp() {
-            super("help");
-        }
-
-        public void run(String[] args) {
-            if (args.length == 0) {
-                for (Cmd cmd : interp().commands()) {
-                    printf("%s\n", cmd.name());
-                }
-            } else {
-                for (String arg : args) {
-                    Cmd cmd = interp().lookup(arg);
-                    if (cmd == null) {
-                        printf("unknown '%s'\n", arg);
-                    } else {
-                        cmd.help();
-                    }
-                }
-            }
-        }
-
-        public void help() {
-        }
-    }
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/interp/Cmd.java b/lib.terminalemulator/examples/TermTester/src/interp/Cmd.java
deleted file mode 100644
index 34bcf587a..000000000
--- a/lib.terminalemulator/examples/TermTester/src/interp/Cmd.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package interp;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.List;
-
-public abstract class Cmd {
-
-    private final List<String> names = new ArrayList<String>();
-
-    private Interp interp;
-
-    protected Cmd(String name, String... more) {
-        names.add(name);
-        names.addAll(Arrays.asList(more));
-    }
-
-    public abstract void run(String[] args);
-
-    public abstract void help();
-
-    void setInterp(Interp interp) {
-        this.interp = interp;
-    }
-
-    final String name() {
-        return names.get(0);
-    }
-
-    final Collection<String> names() {
-        return names;
-    }
-
-    protected final Interp interp() {
-        return interp;
-    }
-
-    /* OLD
-    protected final void print(String msg) {
-        interp.print(msg);
-    }
-    protected final void println(String msg) {
-        interp.println(msg);
-    }
-    protected final void printf(String fmt, Object ... args) {
-        interp.printf(fmt, args);
-    }
-
-    protected final void error(String fmt, Object... args) {
-        interp.error(fmt, args);
-    }
-    */
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/interp/CmdSet.java b/lib.terminalemulator/examples/TermTester/src/interp/CmdSet.java
deleted file mode 100644
index ec7f114f6..000000000
--- a/lib.terminalemulator/examples/TermTester/src/interp/CmdSet.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package interp;
-
-/**
- *
- * @author ivan
- */
-public class CmdSet {
-    protected final Interp interp;
-
-    protected CmdSet(Interp interp) {
-        this.interp = interp;
-    }
-
-    protected final void print(String msg) {
-        interp.print(msg);
-    }
-    protected final void println(String msg) {
-        interp.println(msg);
-    }
-    protected final void printf(String fmt, Object ... args) {
-        interp.printf(fmt, args);
-    }
-
-    protected final void error(String fmt, Object... args) {
-        interp.error(fmt, args);
-    }
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/interp/Interp.java b/lib.terminalemulator/examples/TermTester/src/interp/Interp.java
deleted file mode 100644
index e16f3ff32..000000000
--- a/lib.terminalemulator/examples/TermTester/src/interp/Interp.java
+++ /dev/null
@@ -1,275 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package interp;
-
-import java.io.BufferedReader;
-import java.io.FileReader;
-import java.io.IOException;
-import java.io.Reader;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.List;
-
-/**
- *
- * @author ivan
- */
-public final class Interp {
-    private static final Interp singleton = new Interp();
-
-    private final HashMap<String, Cmd> commands = new HashMap<String, Cmd>();
-
-    private boolean done;
-    private ListenerOutput output;
-    private Cmd currentCommand;
-
-    @SuppressWarnings("ResultOfObjectAllocationIgnored")
-    private Interp() {
-        new BaseCmdSet(this);
-        new SysCmdSet(this);
-    }
-
-    public static Interp getDefault() {
-	return singleton;
-    }
-
-    public void addCmd(Cmd cmd) {
-	cmd.setInterp(this);
-        for (String name : cmd.names())
-            commands.put(name, cmd);
-    }
-
-    public void setDone() {
-        done = true;
-    }
-
-    void setCurrentCommand(Cmd currentCommand) {
-        this.currentCommand = currentCommand;
-    }
-
-    Cmd getCurrentCommand() {
-        return currentCommand;
-    }
-
-    boolean isDone() {
-        return done;
-    }
-
-    void setOutput(ListenerOutput output) {
-        this.output = output;
-    }
-
-    public void print(String msg) {
-        output.print(msg);
-    }
-
-    public void println(String msg) {
-        output.println(msg);
-    }
-
-    public void printf(String fmt, Object ... args) {
-        output.printf(fmt, args);
-    }
-
-    public void error(String fmt, Object... args) {
-        if (getCurrentCommand() != null) {
-            output.printf("%s: ", getCurrentCommand().name());
-        }
-        output.printf(fmt, args);
-        output.printf("\n");
-        if (getCurrentCommand() != null) {
-            getCurrentCommand().help();
-        }
-        throw new RuntimeException();
-    }
-
-    void greet() {
-	output.printf("Hello.\n");
-	output.printf("Working directory: %s\n", System.getProperty("user.dir"));
-    }
-
-    Collection<Cmd> commands() {
-        return commands.values();
-    }
-
-    Cmd lookup(String name) {
-        return commands.get(name);
-    }
-
-    void source(String file, boolean quiet) {
-	Reader r;
-	BufferedReader br;
-	try {
-	    r = new FileReader(file);
-	    br = new BufferedReader(r);
-	} catch(Exception x) {
-	    if (!quiet)
-		output.printf("Couldn't open \"%s\"\n", file);
-	    return;
-	}
-
-	String line;
-	try {
-	    while ((line = br.readLine()) != null)
-		execute(output, line);
-	} catch (IOException x) {
-	}
-	
-    }
-
-
-    private enum State {
-        NONE,
-        INIT,
-        WORD,
-        SPACE,
-        QUOTE
-    }
-
-    private enum CType {
-        SPACE,
-        WORD,
-        EOL,
-        QUOTE,
-    }
-    private static CType classify(char c) {
-        if (c == '"')
-            return CType.QUOTE;
-        else if (Character.isSpaceChar(c))
-            return CType.SPACE;
-        else
-            return CType.WORD;
-    }
-
-    private List<String> tokenize(String line) {
-        List<String> words = new LinkedList<String>();
-        String word = "";
-        State state = State.INIT;
-        CType ctype = CType.SPACE;
-        // for (int cx = 0; cx <= line.length(); cx++) {
-        for (int cx = 0; ctype != CType.EOL; cx++) {
-            char c = 0;
-            if (cx == line.length()) {
-                ctype = CType.EOL;
-            } else if (state != State.QUOTE && line.charAt(cx) == '#') {
-                ctype = CType.EOL;
-            } else {
-                c = line.charAt(cx);
-                ctype = classify(c);
-            }
-            switch (state) {
-                case NONE:
-                    error("bad state NONE");
-                    break;
-                case INIT:
-                case SPACE:
-                    switch (ctype) {
-                        case EOL:
-                        case SPACE:
-                            break;
-                        case WORD:
-                            word += c;
-                            state = State.WORD;
-                            break;
-                        case QUOTE:
-                            state = State.QUOTE;
-                            break;
-                    }
-                    break;
-                case WORD:
-                    switch (ctype) {
-                        case EOL:
-                        case SPACE:
-                            words.add(word);
-                            word = "";
-                            state = State.SPACE;
-                            break;
-                        case WORD:
-                            word += c;
-                            break;
-                        case QUOTE:
-                            state = State.QUOTE;
-                            break;
-                    }
-                    break;
-                case QUOTE:
-                    switch (ctype) {
-                        case QUOTE:
-                            // End quote
-                            state = State.WORD;
-                            break;
-                        case EOL:
-                            // EOL within a quote. SHOULD issue a warning
-                            words.add(word);
-                            word = "";
-                            state = State.SPACE;
-                            break;
-                        case SPACE:
-                        case WORD:
-                            word += c;
-                            break;
-                    }
-                    break;
-            }
-        }
-        return words;
-    }
-
-    void execute(ListenerOutput out, String line) {
-        //
-        // tokenize it
-        //
-        List<String> words = tokenize(line);
-        /*
-        System.out.printf("Words are:\n");
-        for (String w : words)
-            System.out.printf("\t'%s'\n", w);
-        */
-
-        //
-        // dispatch it
-        //
-        if (words.size() > 0) {
-            String cmdName = words.get(0);
-            // OLD Command command = Command.lookup(cmdName);
-            Cmd command = commands.get(cmdName);
-            setCurrentCommand(command);
-            try {
-                if (command == null) {
-                    error("Unrecognized command \'%s\'", words.get(0));
-
-                } else {
-                    // skip the first word for args
-                    String[] args = new String[words.size()-1];
-                    for (int wx = 1; wx < words.size(); wx++)
-                        args[wx-1] = words.get(wx);
-
-                    command.run(args);
-                }
-            } catch (RuntimeException x) {
-                StackTraceElement[] stackTrace = x.getStackTrace();
-                printf("Exception\n%s\n", x.toString());
-                for (int sx = 0; sx < stackTrace.length; sx++)
-                    printf("\t%s\n", stackTrace[sx]);
-            }
-        }
-    }
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/interp/Listener.java b/lib.terminalemulator/examples/TermTester/src/interp/Listener.java
deleted file mode 100644
index c1ad80974..000000000
--- a/lib.terminalemulator/examples/TermTester/src/interp/Listener.java
+++ /dev/null
@@ -1,163 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package interp;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.concurrent.BlockingQueue;
-import java.util.concurrent.LinkedBlockingQueue;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import javax.swing.SwingUtilities;
-import org.netbeans.lib.terminalemulator.LineDiscipline;
-import org.netbeans.lib.terminalemulator.StreamTerm;
-import org.netbeans.lib.terminalemulator.TermInputListener;
-
-/**
- * Listener mediates IO between a Term and an Interp.
- * 
- * It's the central element in a ReadEvalPrint loop where
- * the reading is event driver by ListenerListener, the evaluation
- * is handled by Interp.execute() and the printing is mediated by
- * ListenerOutput.
- */
-
-public final class Listener extends Thread implements ListenerOutput {
-    private final StreamTerm term;
-    private final Interp interp;
-    private final BlockingQueue<Character> queue = new LinkedBlockingQueue<Character>();
-
-    private StringBuffer buf = new StringBuffer();
-
-    private class ListenerListener implements TermInputListener {
-
-        public void sendChars(char c[], int offset, int count) {
-            for (int cx = 0; cx < count; cx++)
-                sendChar(c[offset+cx]);
-        }
-        public void sendChar(char c) {
-            try {
-                queue.put(c);
-            } catch (InterruptedException ex) {
-                Logger.getLogger(Listener.class.getName()).log(Level.SEVERE, null, ex);
-            }
-            if (false) {
-                // With LineDiscipline pushed we get NL instead or CR.
-                final char EOL = 10;
-                if (c == EOL) {
-                    interp.execute(Listener.this, buf.toString());
-                    prompt();
-                    buf = new StringBuffer();
-                } else {
-                    buf.append(c);
-                }
-            }
-	}
-    }
-
-    public Listener(StreamTerm term, Interp interp) {
-	this.term = term;
-	this.interp = interp;
-
-	term.setReadOnly(false);
-	term.setHistorySize(10000);
-	term.setHorizontallyScrollable(false);
-	term.pushStream(new LineDiscipline());
-	term.addInputListener(new ListenerListener());
-
-        interp.setOutput((ListenerOutput) this);
-	interp.greet();
-	prompt();
-    }
-
-    @Override
-    public void run() {
-        while(true) {
-            char c;
-            try {
-                c = queue.take();
-            } catch (InterruptedException ex) {
-                Logger.getLogger(Listener.class.getName()).log(Level.SEVERE, null, ex);
-                continue;
-            }
-            // With LineDiscipline pushed we get NL instead or CR.
-            final char EOL = 10;
-            if (c == EOL) {
-                interp.execute(Listener.this, buf.toString());
-                prompt();
-                buf = new StringBuffer();
-            } else {
-                buf.append(c);
-            }
-        }
-    }
-
-    private void prompt() {
-	printf("> ");
-    }
-
-    private void printWork(String msg) {
-        final int len = msg.length();
-        final char cbuf[] = new char[len];
-        msg.getChars(0, len, cbuf, 0);
-        term.putChars(cbuf, 0, len);
-    }
-
-    public void print(final String msg) {
-        try {
-            SwingUtilities.invokeAndWait(new Runnable() {
-                public void run() {
-                    printWork(msg);
-                }
-            });
-        } catch (InterruptedException ex) {
-            Logger.getLogger(Listener.class.getName()).log(Level.SEVERE, null, ex);
-        } catch (InvocationTargetException ex) {
-            Logger.getLogger(Listener.class.getName()).log(Level.SEVERE, null, ex);
-        }
-    }
-
-    public void println(final String msg) {
-        try {
-            SwingUtilities.invokeAndWait(new Runnable() {
-                public void run() {
-                    printWork(msg + '\n');
-                }
-            });
-        } catch (InterruptedException ex) {
-            Logger.getLogger(Listener.class.getName()).log(Level.SEVERE, null, ex);
-        } catch (InvocationTargetException ex) {
-            Logger.getLogger(Listener.class.getName()).log(Level.SEVERE, null, ex);
-        }
-}
-
-    public void printf(final String fmt, final Object ... args) {
-        try {
-            SwingUtilities.invokeAndWait(new Runnable() {
-                public void run() {
-                    printWork(String.format(fmt, args));
-                }
-            });
-        } catch (InterruptedException ex) {
-            Logger.getLogger(Listener.class.getName()).log(Level.SEVERE, null, ex);
-        } catch (InvocationTargetException ex) {
-            Logger.getLogger(Listener.class.getName()).log(Level.SEVERE, null, ex);
-        }
-    }
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/interp/ListenerOutput.java b/lib.terminalemulator/examples/TermTester/src/interp/ListenerOutput.java
deleted file mode 100644
index e8be68816..000000000
--- a/lib.terminalemulator/examples/TermTester/src/interp/ListenerOutput.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package interp;
-
-/**
- *
- * @author ivan
- */
-interface ListenerOutput {
-    public void print(String msg);
-    public void println(String msg);
-    public void printf(String fmt, Object ... args);
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/interp/SysCmdSet.java b/lib.terminalemulator/examples/TermTester/src/interp/SysCmdSet.java
deleted file mode 100644
index 8bddc7df2..000000000
--- a/lib.terminalemulator/examples/TermTester/src/interp/SysCmdSet.java
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package interp;
-
-import java.io.File;
-
-/**
- *
- * @author ivan
- */
-public final class SysCmdSet extends CmdSet {
-    private static final String home = System.getProperty("user.home");
-    private static File workingDirectory = new File(System.getProperty("user.dir"));
-
-    public SysCmdSet(Interp interp) {
-        super(interp);
-        interp.addCmd(new CmdCd());
-        interp.addCmd(new CmdLs());
-        interp.addCmd(new CmdPwd());
-
-    }
-
-    private class CmdLs extends Cmd {
-
-        public CmdLs() {
-            super("ls");
-        }
-
-        public void run(String[] args) {
-            File[] files = workingDirectory.listFiles();
-            for (File f : files) {
-                String fName = f.getName();
-                if (f.isDirectory()) {
-                    fName += "/";
-                }
-                printf("%s\n", fName);
-            }
-        }
-
-        public void help() {
-        }
-    }
-
-    private class CmdPwd extends Cmd {
-
-        public CmdPwd() {
-            super("pwd");
-        }
-
-        public void run(String[] args) {
-            printf("%s\n", workingDirectory);
-        }
-
-        public void help() {
-        }
-    }
-
-    public File fileInWorkingDirectory(String child) {
-        return new File(workingDirectory, child);
-    }
-
-    private class CmdCd extends Cmd {
-
-        public CmdCd() {
-            super("cd");
-        }
-
-        public void run(String[] args) {
-            if (args.length == 0) {
-                workingDirectory = new File(home);
-            } else if (args.length != 1) {
-                printf("cd: too many arguments");
-            } else {
-                File tentativeWD = fileInWorkingDirectory(args[0]);
-                if (!tentativeWD.exists()) {
-                    printf("cd: no such file %s", tentativeWD);
-                }
-                workingDirectory = tentativeWD;
-            }
-        }
-
-        public void help() {
-        }
-    }
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/resources/bpt.png b/lib.terminalemulator/examples/TermTester/src/resources/bpt.png
deleted file mode 100644
index b878b7882..000000000
Binary files a/lib.terminalemulator/examples/TermTester/src/resources/bpt.png and /dev/null differ
diff --git a/lib.terminalemulator/examples/TermTester/src/termtester/Context.java b/lib.terminalemulator/examples/TermTester/src/termtester/Context.java
deleted file mode 100644
index 2dee52b08..000000000
--- a/lib.terminalemulator/examples/TermTester/src/termtester/Context.java
+++ /dev/null
@@ -1,195 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package termtester;
-
-import interp.Interp;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.concurrent.Semaphore;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import org.netbeans.lib.terminalemulator.Term;
-
-public final class Context {
-
-    public final static class Margin {
-        public final int low;
-        public final int hi;
-
-        public Margin(int low, int hi) {
-            this.low = low;
-            this.hi = hi;
-        }
-    }
-    public final Interp interp;
-
-    private Term term;
-    private Margin margin;
-
-    private final List<TestSubject> testSubjects =
-        new LinkedList<TestSubject>();
-
-    private static int width = 80;
-    private static int height = 24;
-
-    // SHOULD have a command to toggle this
-    private static final boolean quiet = true;
-
-    private final Semaphore nextSema = new Semaphore(0);
-
-    public Context(Interp interp) {
-        this.interp = interp;
-    }
-
-    public Term getTerm() {
-        return term;
-    }
-
-    public void setTerm(Term term) {
-        this.term = term;
-    }
-
-    public void addTestSubject(TestSubject ts) {
-        testSubjects.add(ts);
-    }
-
-    public int width() {
-        return width;
-    }
-
-    public int height() {
-        return height;
-    }
-
-    public void finish() {
-        for (TestSubject ts : testSubjects)
-            ts.finish();
-    }
-
-    public void sendRaw(String fmt, Object... args) {
-        for (TestSubject ts : testSubjects) {
-            ts.pw().printf(fmt, args);
-            ts.pw().flush();
-        }
-    }
-
-    public char receive() {
-        return TestSubject.receive();
-    }
-
-    public void next() {
-        nextSema.release();
-    }
-
-    public void pause() {
-        interp.printf("Next?\n");
-        try {
-            nextSema.acquire();
-        } catch (InterruptedException ex) {
-            Logger.getLogger(Context.class.getName()).log(Level.SEVERE, null, ex);
-        }
-    }
-
-    private void sendEscape(String s) {
-        StringBuilder buf = new StringBuilder();
-
-        for (int sx = 0; sx < s.length(); sx++) {
-            char c = s.charAt(sx);
-            switch(c) {
-                case '\\':
-                    char c1 = s.charAt(sx+1);
-                    if (c1 == '\\') {
-                        buf.append('\\');
-                        sx+=1;
-                    } else if (Character.isDigit(c1)) {
-                        String hexString = s.substring(sx+1, 2+1);
-                        c = (char) Integer.parseInt(hexString, 16);
-                        buf.append(c);
-                        sx+=2;
-                    } else {
-                        int len = 2;
-                        int ec = Util.mnemonicToChar(s.substring(sx+1, sx+len+1));
-                        if (ec == -1) {
-                            len = 3;
-                            ec = Util.mnemonicToChar(s.substring(sx+1, sx+len+1));
-                        }
-                        if (ec == -1)
-                            interp.error("Unregonized mnemonic after \\");
-                        if (ec == -2)
-                            interp.error("Use \\0e for SO and \\01 for SOH");
-                        buf.append((char) ec);
-                        sx+=len;
-                    }
-                    break;
-               default:
-                   buf.append(c);
-                   break;
-
-            }
-        }
-
-        sendRaw("%s", buf);
-    }
-
-    private static String removeNewlines(String s) {
-        final StringBuilder sb = new StringBuilder();
-        for (char c : s.toCharArray()) {
-            switch (c) {
-                case '\n':
-                    sb.append("\\n");
-                    break;
-                case '\r':
-                    sb.append("\\r");
-                    break;
-                default:
-                    sb.append(c);
-                    break;
-            }
-        }
-        return sb.toString();
-    }
-
-    public void sendQuiet(String fmt, Object... args) {
-        String s = String.format(fmt, args);
-        sendEscape(s);
-        if (!quiet)
-            interp.printf("Sent: '%s'\n", removeNewlines(s));
-    }
-
-    public void send(String fmt, Object... args) {
-        String s = String.format(fmt, args);
-        sendEscape(s);
-        interp.printf("Sent: '%s'\n", removeNewlines(s));
-    }
-
-    public Margin getMargin() {
-        return margin;
-    }
-
-    public void setMargin(Margin margin) {
-        this.margin = margin;
-        // sendQuiet("\\ESC[%d;%dr", margin.low, margin.hi);
-    }
-
-    public void sendMargin() {
-        if (margin != null)
-            send("\\ESC[%d;%dr", margin.low, margin.hi);
-    }
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/termtester/ExternalTestSubject.java b/lib.terminalemulator/examples/TermTester/src/termtester/ExternalTestSubject.java
deleted file mode 100644
index 1d8c0611d..000000000
--- a/lib.terminalemulator/examples/TermTester/src/termtester/ExternalTestSubject.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package termtester;
-
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.io.PrintWriter;
-import org.netbeans.lib.richexecution.Pty;
-import org.netbeans.lib.richexecution.PtyException;
-import org.netbeans.lib.richexecution.PtyExecutor;
-import org.netbeans.lib.richexecution.PtyProcess;
-import org.netbeans.lib.richexecution.program.Program;
-import org.netbeans.lib.terminalemulator.Term;
-
-abstract class ExternalTestSubject extends TestSubject {
-
-    private final Program program;
-    private final Pty pty;
-    private final PtyProcess process;
-    private final PrintWriter pw;
-    private final Thread keyShuttle;
-    
-    public ExternalTestSubject(Context context, String title) throws PtyException {
-        super(title);
-
-        pty = Pty.create(Pty.Mode.RAW);
-        program = makeProgram(context, pty);
-        PtyExecutor executor = new PtyExecutor();
-        
-        OutputStream os = pty.getOutputStream();
-
-        final InputStream is = pty.getInputStream();
-
-        keyShuttle = createShuttle(is);
-        keyShuttle.start();
-
-        process = executor.start(program, pty);
-
-        pw = new PrintWriter(os);
-    }
-
-    public PrintWriter pw() {
-        return pw;
-    }
-
-    public void finish() {
-        process.destroy();
-    }
-
-    public Term term() {
-        return null;
-    }
-
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/termtester/InternalTestSubject.java b/lib.terminalemulator/examples/TermTester/src/termtester/InternalTestSubject.java
deleted file mode 100644
index e63435c7c..000000000
--- a/lib.terminalemulator/examples/TermTester/src/termtester/InternalTestSubject.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package termtester;
-
-import java.awt.Font;
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.io.Reader;
-import java.io.Writer;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import javax.swing.JFrame;
-import org.netbeans.lib.richexecution.PtyException;
-import org.netbeans.lib.terminalemulator.StreamTerm;
-import org.netbeans.lib.terminalemulator.Term;
-
-abstract class InternalTestSubject extends TestSubject {
-
-    private final PrintWriter pw;
-    private final StreamTerm term;
-    private final JFrame frame;
-    private final Thread keyShuttle;
-
-    public InternalTestSubject(Context context, String title, int xoff, int yoff) throws PtyException {
-        super(title);
-
-        frame = new JFrame();
-        frame.setTitle(title());
-        frame.setLocation(xoff, yoff);
-
-        term = new StreamTerm();
-        term.setHistorySize(1000);
-        term.setRowsColumns(context.height(), context.width());
-        term.setHorizontallyScrollable(false);
-        term.setEmulation("xterm");
-        term.setFont(new Font("Monospaced", Font.PLAIN, 10));
-
-        term.setDebugFlags(Term.DEBUG_KEYS);
-        
-        frame.add(term);
-        frame.pack();
-        frame.setVisible(true);
-
-        final Reader is = term.getIn();
-        Writer os = term.getOut();
-
-        keyShuttle = createShuttle(is);
-        keyShuttle.start();
-
-        context.setTerm(term);
-
-        pw = new PrintWriter(os);
-    }
-
-    public StreamTerm term() {
-        return term();
-    }
-
-    public PrintWriter pw() {
-        return pw;
-    }
-
-    public void finish() {
-        keyShuttle.interrupt();
-        try {
-            keyShuttle.join();
-        } catch (InterruptedException ex) {
-            Logger.getLogger(InternalTestSubject.class.getName()).log(Level.SEVERE, null, ex);
-        }
-        frame.dispose();
-    }
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/termtester/Main.java b/lib.terminalemulator/examples/TermTester/src/termtester/Main.java
deleted file mode 100644
index d0df447bd..000000000
--- a/lib.terminalemulator/examples/TermTester/src/termtester/Main.java
+++ /dev/null
@@ -1,211 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package termtester;
-
-import interp.CmdSet;
-import interp.Interp;
-import interp.Listener;
-import org.netbeans.lib.richexecution.Pty;
-import org.netbeans.lib.richexecution.PtyException;
-import org.netbeans.lib.richexecution.program.Program;
-
-/**
- *
- * @author ivan
- */
-@SuppressWarnings("ResultOfObjectAllocationIgnored")
-public class Main {
-
-    private static final String java =
-            // "/opt/sun/jdk1.5.0_11/bin/java";
-            "java";
-    private static final String termDriver =
-            "../TermDriver/dist/TermDriver.jar";
-
-    private static class NBTermTestSubject extends InternalTestSubject {
-        public NBTermTestSubject(Context context) throws PtyException {
-            super(context, "NBTerm", 0, 0);
-        }
-
-	@Override
-        protected Program makeProgram(Context context, Pty pty) {
-            Program p = new Program();
-            p.add(java);
-            p.add("-jar");
-            p.add(termDriver);
-            p.add(pty.slaveName());
-            return p;
-        }
-    }
-
-    private static class XTermTestSubject extends ExternalTestSubject {
-        public XTermTestSubject(Context context) throws PtyException {
-            super(context,"xterm");
-        }
-
-	@Override
-        protected Program makeProgram(Context context, Pty pty) {
-            Program p = new Program();
-            p.add("/bin/xterm");
-
-            p.add("-geometry");
-            p.add(String.format("%dx%d+0+350", context.width(), context.height()));
-
-            p.add("-title");
-            p.add(title());
-
-            p.add("-sb");
-            p.add("-rightbar");
-
-	    p.add("-bg");
-	    p.add("white");
-	    p.add("-fg");
-	    p.add("black");
-
-            p.add("-e");
-            p.add(java);
-            p.add("-jar");
-            p.add(termDriver);
-            p.add(pty.slaveName());
-
-            return p;
-        }
-    }
-
-    private static class GnomeTestSubject extends ExternalTestSubject {
-        public GnomeTestSubject(Context context) throws PtyException {
-            super(context,"gnome-terminal");
-        }
-
-	@Override
-        protected Program makeProgram(Context context, Pty pty) {
-            Program p = new Program();
-            p.add("/bin/gnome-terminal");
-
-            p.add("--geometry");
-            p.add(String.format("%dx%d+0+710", context.width(), context.height()));
-
-	    // gnome-terminal no longer accepts --title:
-	    // https://bugzilla.redhat.com/show_bug.cgi?id=1160184
-            // https://bugzilla.gnome.org/show_bug.cgi?id=740188
-            // What a bunch of hooey.
-            // p.add("--title");
-            // p.add(title());
-
-            p.add("--hide-menubar");
-
-            p.add("--profile=TermTest");
-
-            // So we don't automatically run in background.
-	    // Also no longer supported
-	    // This means you have to close the gnome-terminal by hand after you
-	    // exit TermTester.
-	    // workaround: https://wiki.gnome.org/Apps/Terminal/Debugging
-            // p.add("--disable-factory");
-
-            p.add("-e");
-            String cmd = java;
-            cmd += " -jar";
-            cmd += " " + termDriver;
-            cmd += " " + pty.slaveName();
-            p.add(cmd);
-
-            return p;
-        }
-    }
-
-    private static class KonsoleTestSubject extends ExternalTestSubject {
-        public KonsoleTestSubject(Context context) throws PtyException {
-            super(context, "konsole");
-        }
-
-	@Override
-        protected Program makeProgram(Context context, Pty pty) {
-            // Even this simplest version fails to start up a konsole
-            Program p = new Program();
-            // p.directory(new File("/home/ivan"));
-            p.add("/usr/bin/konsole");
-            p.add("--nofork");
-
-            p.add("--profile");
-            p.add("TermTester");
-
-            p.add("--title");
-            p.add(title());
-
-            // Hopeless:
-            // https://bugs.kde.org/show_bug.cgi?id=165355
-            // https://bugs.kde.org/show_bug.cgi?id=147094
-            // Since 2007!
-
-            p.add("--geometry");
-            p.add(String.format("%dx%d", context.width(), context.height()));
-
-            p.add("-e");
-            p.add("/opt/sun/jdk1.5.0_11/bin/java");
-            p.add("-jar");
-            p.add(termDriver);
-            p.add(pty.slaveName());
-            return p;
-        }
-    }
-
-    private static void fatal(String fmt, Object... args) {
-        System.out.printf("termtester: ");
-        System.out.printf(fmt, args);
-        System.out.printf("\n");
-        System.exit(-1);
-    }
-    /**
-     * @param args the command line arguments
-     */
-    public static void main(String[] args) {
-        System.out.printf("termtester: hello\n");
-
-
-	Interp interp = Interp.getDefault();
-        Context context = new Context(interp);
-        Test.init(context);
-
-        CmdSet mainCmdSet = new MainCmdSet(interp, context);
-
-        try {
-            TestSubject xterm = new XTermTestSubject(context);
-            context.addTestSubject(xterm);
-
-            TestSubject gnome = new GnomeTestSubject(context);
-            context.addTestSubject(gnome);
-
-            TestSubject nbterm = new NBTermTestSubject(context);
-            context.addTestSubject(nbterm);
-
-        } catch (PtyException x) {
-            Main.fatal("exception creating pty:\n%s", x);
-        }
-
-        MainFrame frame = new MainFrame(context);
-	Listener listener = new Listener(frame.term(), interp);
-        frame.setLocation(550, 180);
-        frame.setVisible(true);
-        listener.start();
-
-        System.out.printf("termtester: goodbye\n");
-    }
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/termtester/MainCmdSet.java b/lib.terminalemulator/examples/TermTester/src/termtester/MainCmdSet.java
deleted file mode 100644
index cab57cfbb..000000000
--- a/lib.terminalemulator/examples/TermTester/src/termtester/MainCmdSet.java
+++ /dev/null
@@ -1,468 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package termtester;
-
-import interp.Cmd;
-import interp.CmdSet;
-import interp.Interp;
-import java.awt.Image;
-import java.io.IOException;
-import javax.imageio.ImageIO;
-
-/**
- *
- * @author ivan
- */
-final class MainCmdSet extends CmdSet {
-    private final Context context;
-
-    public MainCmdSet(Interp interp, Context context) {
-        super(interp);
-        this.context = context;
-
-        interp.addCmd(new CmdQuit());
-
-        interp.addCmd(new CmdClear());
-        interp.addCmd(new CmdClearEnd());
-        interp.addCmd(new CmdCursorMotion());
-        interp.addCmd(new CmdDeleteLines());
-        interp.addCmd(new CmdFill());
-        interp.addCmd(new CmdGo());
-        interp.addCmd(new CmdGlyph());
-        interp.addCmd(new CmdHome());
-        interp.addCmd(new CmdInsertLines());
-        interp.addCmd(new CmdMark());
-        interp.addCmd(new CmdMargin());
-        interp.addCmd(new CmdSend());
-        interp.addCmd(new CmdPause());
-        interp.addCmd(new CmdTest());
-        interp.addCmd(new CmdTerm());
-    }
-
-    private class CmdQuit extends Cmd {
-
-        public CmdQuit() {
-            super("quit");
-        }
-
-        public void run(String[] args) {
-            context.finish();
-            interp().setDone();
-        }
-
-        public void help() {
-        }
-    }
-
-    private class CmdTest extends Cmd {
-
-        public CmdTest() {
-            super("test");
-        }
-
-        public void run(String[] args) {
-            if (args.length == 0)
-                error("Missing test name");
-            Test test = Test.find(args[0]);
-            if (test == null)
-                error("No such test");
-
-            String[] rargs = new String[args.length-1];
-            for (int rx = 0; rx < rargs.length; rx++)
-                rargs[rx] = args[rx+1];
-
-            test.run(rargs);
-        }
-
-        public void help() {
-            for (Test test : Test.tests())
-                printf("%s\t%s\n", test.name, (test.info() != null)? test.info(): "");
-
-        }
-    }
-
-    private class CmdTerm extends Cmd {
-
-        public CmdTerm() {
-            super("term");
-        }
-
-        public void run(String[] args) {
-            if (context.getTerm() == null) {
-                printf("No Term\n");
-                return;
-            }
-
-            if (args.length == 0)
-                printf("%s\n", context.getTerm().getEmulation());
-            else if (args.length == 1)
-                context.getTerm().setEmulation(args[0]);
-        }
-
-        public void help() {
-            printf("term [ <term> ]\n");
-        }
-    }
-
-    private class CmdSend extends Cmd {
-
-        public CmdSend() {
-            super("send");
-        }
-
-        public void run(String[] args) {
-            for (String s : args)
-                context.send(s);
-        }
-
-        public void help() {
-        }
-
-    }
-
-
-    private class CmdClear extends Cmd {
-
-        public CmdClear() {
-            super("clear");
-        }
-
-        public void run(String[] args) {
-            if (args.length == 0) {
-                context.send("\\ESC[J");
-            } else if (args.length == 1) {
-                context.send("\\ESC[%sJ", args[0]);
-            } else {
-                error("wrong number of arguments");
-            }
-        }
-
-        public void help() {
-            printf("clear    erase down\n");
-            printf("clear 0  erase down\n");
-            printf("clear 1  erase up\n");
-            printf("clear 2  erase all + home cursor\n");
-        }
-    }
-
-    private class CmdDeleteLines extends Cmd {
-
-        public CmdDeleteLines() {
-            super("delete_lines", "DL");
-        }
-
-        public void run(String[] args) {
-            if (args.length == 0) {
-                context.send("\\ESC[M");
-            } else if (args.length == 1) {
-                context.send("\\ESC[%sM", args[0]);
-            } else {
-                error("wrong number of arguments");
-            }
-        }
-
-        public void help() {
-            printf("Alias: DL\n");
-            printf("delete_lines   (default N=1)\n");
-            printf("delete_lines N\n");
-        }
-    }
-
-    private class CmdMargin extends Cmd {
-
-        public CmdMargin() {
-            super("margin");
-        }
-
-        public void run(String[] args) {
-            if (args.length == 0) {
-                if (context.getMargin() == null)
-                    printf("no margin\n");
-                else
-                    printf("margin %d-%d\n", context.getMargin().low, context.getMargin().hi);
-            } else if (args.length == 1) {
-                if (args[0].equals("reset"))
-                    context.setMargin(null);
-                else if (args[0].equals("send")) {
-                    if (context.getMargin() == null)
-                        printf("no margin\n");
-                    else
-                        context.sendMargin();
-                } else
-                    error("wrong number of arguments");
-            } else if (args.length == 2) {
-                context.setMargin(new Context.Margin(Integer.parseInt(args[0]),
-                                                     Integer.parseInt(args[1])));
-            } else {
-                error("wrong number of arguments");
-            }
-        }
-
-        public void help() {
-            printf("margin\n");
-            printf("margin reset\n");
-            printf("margin send\n");
-            printf("margin <low> <hi>\n");
-        }
-    }
-
-    private class CmdMark extends Cmd {
-
-        public CmdMark() {
-            super("mark");
-        }
-
-        @Override
-        public void run(String[] args) {
-            // 'hbvi' addds 48 (ascii '0') to glyph_id and 58 to color_id.
-            // color_id's 40-47 give "standard colors"
-            // color_id's 58-65 give custom colors which are settable using 
-            // Term.setCustomColor()
-            //
-            // Typical sequence then should be something like this:
-            //          term ansi       # not dtterm!
-            //          glyph gutter 16 # doesn't automatically refresh
-            //          fill X          # refreshes but doesn't resize
-            //          glyph reg 1 bpt.png
-            //                          # register glyph_id 1 to bpt.png in /resources
-            //          mark 1 41       # put a mark using glyph_id 1 and
-            //                          # standard color 41 (red)
-
-            if (args.length == 0) {
-                error("mising glyph-id");
-            } else if (args.length == 1) {
-                int glyph_id = Integer.parseInt(args[0]);
-                context.send("\\ESC[22;%d;0t", glyph_id);
-            } else if (args.length == 2) {
-                int glyph_id = Integer.parseInt(args[0]);
-                int color_id = Integer.parseInt(args[1]);
-                context.send("\\ESC[22;%d;%dt", glyph_id, color_id);
-            } else {
-                error("wrong number of arguments");
-            }
-        }
-
-        @Override
-        public void help() {
-            printf("mark <glyph-id> [ <color-id> ]\n");
-        }
-    }
-
-    private class CmdGo extends Cmd {
-
-        public CmdGo() {
-            super("go");
-        }
-
-        public void run(String[] args) {
-            if (args.length == 0) {
-                context.send("\\ESC[;H");
-            } else if (args.length == 1) {
-                String direction = args[0].toUpperCase();
-                Util.Direction dir = Util.Direction.valueOf(direction);
-                Util.go(context, dir);
-            } else if (args.length == 2) {
-                Util.go(context, Integer.parseInt(args[0]),
-                                 Integer.parseInt(args[1]));
-                context.send("\\ESC[%s;%sH", args[0], args[1]);
-            } else {
-                error("wrong number of arguments");
-            }
-        }
-
-        public void help() {
-            printf("go        # ... home\n");
-            printf("go <compass-direction>\n");
-            printf("go row col\n");
-        }
-    }
-
-    private class CmdGlyph extends Cmd {
-
-        public CmdGlyph() {
-            super("glyph");
-        }
-
-        @Override
-        public void run(String[] args) {
-            if (args.length < 2) {
-                error("wrong number of arguments");
-            } else {
-                switch (args[0]) {
-                    case "gutter":
-                        if (args.length != 2)
-                            error("wrong number of arguments");
-                        int width = Integer.parseInt(args[1]);
-                        context.getTerm().setGlyphGutterWidth(width);
-                        context.getTerm().revalidate();
-                        break;
-                    case "reg":
-                        if (args.length != 3)
-                            error("wrong number of arguments");
-                        int id = Integer.parseInt(args[1]);
-                        String imageName = args[2];
-                        String imagePath = "resources/" + imageName;
-                        Image image = null;
-                        try {
-                            image = ImageIO.read(getClass().getClassLoader().getResource(imagePath));
-                        } catch (IOException ex) {
-                            error("Couldn't load image as " + imagePath);
-                        }
-                        context.getTerm().setGlyphImage(id, image);
-                        break;
-                    default:
-                        error("unrecognized sub-cmd '%s'", args[0]);
-                        break;
-                }
-            }
-        }
-
-        public void help() {
-            printf("glyph gutter <width>\n");
-            printf("glyph reg <id> <imgname> # 'bpt.png'\n");
-        }
-    }
-
-    private class CmdHome extends Cmd {
-
-        public CmdHome() {
-            super("home");
-        }
-
-        public void run(String[] args) {
-            context.send("\\ESC[;H");
-        }
-
-        public void help() {
-        }
-    }
-
-    private class CmdInsertLines extends Cmd {
-
-        public CmdInsertLines() {
-            super("insert_lines", "IL");
-        }
-
-        public void run(String[] args) {
-            if (args.length == 0) {
-                context.send("\\ESC[L");
-            } else if (args.length == 1) {
-                context.send("\\ESC[%sL", args[0]);
-            } else {
-                error("wrong number of arguments");
-            }
-        }
-
-        public void help() {
-            printf("Alias: IL\n");
-            printf("insert   (default N=1)\n");
-            printf("insert N\n");
-        }
-    }
-
-    // public void op_cm(int row, int col); // cursor motion
-    // public void op_ce(); // clear to end of line
-    private class CmdCursorMotion extends Cmd {
-
-        public CmdCursorMotion() {
-            super("cursor_motion", "cm");
-        }
-
-        @Override
-        public void run(String[] args) {
-            if (args.length != 2) {
-                error("wrong number of arguments");
-            }
-            context.send("\\ESC[%s;%sH", args[0], args[1]);
-        }
-
-        @Override
-        public void help() {
-            printf("Alias: cm\n");
-            printf("cursor_motion ROW COL\n");
-        }
-    }
-
-    private class CmdClearEnd extends Cmd {
-
-        public CmdClearEnd() {
-            super("clear_end", "ce");
-        }
-
-        @Override
-        public void run(String[] args) {
-            if (args.length == 0) {
-                context.send("\\ESC[K");
-            } else if (args.length == 1) {
-                context.send("\\ESC[%sK", args[0]);
-            } else {
-                error("wrong number of arguments");
-            }
-        }
-
-        @Override
-        public void help() {
-            printf("Alias: ce\n");
-            printf("clear_end            (default N = 0)\n");
-            printf("clear_end 0          (from cursor to EOL)\n");
-            printf("clear_end 1          (from beginning to cursor)\n");
-            printf("clear_end 2          (erase all line)\n");
-        }
-    }
-
-    private class CmdFill extends Cmd {
-
-        public CmdFill() {
-            super("fill");
-        }
-
-        public void run(String[] args) {
-            Util.FillPattern fillPattern = Util.FillPattern.ROWCOL;
-            if (args.length == 0) {
-            } else if (args.length == 1) {
-                fillPattern = Util.FillPattern.valueOf(args[0]);
-            } else {
-                error("wrong number of arguments");
-            }
-            Util.fill(context, fillPattern);
-        }
-
-        public void help() {
-            printf("fill\n");
-            printf("fill X\n");
-            printf("fill ROWCOL\n");
-        }
-    }
-
-    private class CmdPause extends Cmd {
-
-        public CmdPause() {
-            super("pause");
-        }
-
-        public void run(String[] args) {
-            context.pause();
-        }
-
-        public void help() {
-        }
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/termtester/MainFrame.form b/lib.terminalemulator/examples/TermTester/src/termtester/MainFrame.form
deleted file mode 100644
index 62e54d79b..000000000
--- a/lib.terminalemulator/examples/TermTester/src/termtester/MainFrame.form
+++ /dev/null
@@ -1,79 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-
-<Form version="1.3" maxVersion="1.8" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
-  <Properties>
-    <Property name="defaultCloseOperation" type="int" value="3"/>
-  </Properties>
-  <SyntheticProperties>
-    <SyntheticProperty name="formSizePolicy" type="int" value="1"/>
-  </SyntheticProperties>
-  <Events>
-    <EventHandler event="windowClosing" listener="java.awt.event.WindowListener" parameters="java.awt.event.WindowEvent" handler="formWindowClosing"/>
-  </Events>
-  <AuxValues>
-    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
-    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
-    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
-    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
-    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
-    <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,44,0,0,1,-112"/>
-  </AuxValues>
-
-  <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
-  <SubComponents>
-    <Container class="javax.swing.JPanel" name="controlPanel">
-      <Constraints>
-        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
-          <BorderConstraints direction="First"/>
-        </Constraint>
-      </Constraints>
-
-      <Layout class="org.netbeans.modules.form.compat2.layouts.DesignFlowLayout">
-        <Property name="alignment" type="int" value="0"/>
-      </Layout>
-      <SubComponents>
-        <Component class="javax.swing.JButton" name="nextButton">
-          <Properties>
-            <Property name="text" type="java.lang.String" value="Next"/>
-          </Properties>
-          <Events>
-            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="nextButtonActionPerformed"/>
-          </Events>
-        </Component>
-        <Component class="javax.swing.JButton" name="sequencesButton">
-          <Properties>
-            <Property name="text" type="java.lang.String" value="Sequences"/>
-          </Properties>
-          <Events>
-            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="sequencesButtonActionPerformed"/>
-          </Events>
-        </Component>
-      </SubComponents>
-    </Container>
-  </SubComponents>
-</Form>
diff --git a/lib.terminalemulator/examples/TermTester/src/termtester/MainFrame.java b/lib.terminalemulator/examples/TermTester/src/termtester/MainFrame.java
deleted file mode 100644
index ce8018173..000000000
--- a/lib.terminalemulator/examples/TermTester/src/termtester/MainFrame.java
+++ /dev/null
@@ -1,158 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package termtester;
-
-import java.awt.BorderLayout;
-import javax.swing.border.BevelBorder;
-import org.netbeans.lib.terminalemulator.StreamTerm;
-
-/**
- *
- * @author ivan
- */
-class MainFrame extends javax.swing.JFrame {
-    private final StreamTerm listenerTerm;
-    private final Context context;
-
-    /**
-     * Creates new form MainFrame
-     */
-    public MainFrame(Context context) {
-        this.context = context;
-
-        initComponents();
-        listenerTerm = initComponents2();
-    }
-
-    /**
-     * This method is called from within the constructor to initialize the form.
-     * WARNING: Do NOT modify this code. The content of this method is always
-     * regenerated by the Form Editor.
-     */
-    @SuppressWarnings("unchecked")
-    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
-    private void initComponents() {
-
-        controlPanel = new javax.swing.JPanel();
-        nextButton = new javax.swing.JButton();
-        sequencesButton = new javax.swing.JButton();
-
-        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
-        addWindowListener(new java.awt.event.WindowAdapter() {
-            public void windowClosing(java.awt.event.WindowEvent evt) {
-                formWindowClosing(evt);
-            }
-        });
-
-        controlPanel.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));
-
-        nextButton.setText("Next");
-        nextButton.addActionListener(new java.awt.event.ActionListener() {
-            public void actionPerformed(java.awt.event.ActionEvent evt) {
-                nextButtonActionPerformed(evt);
-            }
-        });
-        controlPanel.add(nextButton);
-
-        sequencesButton.setText("Sequences");
-        sequencesButton.addActionListener(new java.awt.event.ActionListener() {
-            public void actionPerformed(java.awt.event.ActionEvent evt) {
-                sequencesButtonActionPerformed(evt);
-            }
-        });
-        controlPanel.add(sequencesButton);
-
-        getContentPane().add(controlPanel, java.awt.BorderLayout.PAGE_START);
-
-        pack();
-    }// </editor-fold>//GEN-END:initComponents
-
-    private void nextButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nextButtonActionPerformed
-        context.next();
-    }//GEN-LAST:event_nextButtonActionPerformed
-
-    private void sequencesButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sequencesButtonActionPerformed
-        SequenceViewer sv = new SequenceViewer();
-        sv.setVisible(true);
-    }//GEN-LAST:event_sequencesButtonActionPerformed
-
-    private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing
-        context.finish();
-    }//GEN-LAST:event_formWindowClosing
-
-    private StreamTerm initComponents2() {
-	StreamTerm t = new StreamTerm();
-        t.setBorder(new BevelBorder(BevelBorder.RAISED));
-	add(t, BorderLayout.CENTER);
-        pack();
-        return t;
-    }
-
-    StreamTerm term() {
-        return listenerTerm;
-    }
-
-    /**
-     * @param args the command line arguments
-     */
-    public static void main(String args[]) {
-        /*
-         * Set the Nimbus look and feel
-         */
-        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
-        /*
-         * If Nimbus (introduced in Java SE 6) is not available, stay with the
-         * default look and feel. For details see
-         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
-         */
-        try {
-            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
-                if ("Nimbus".equals(info.getName())) {
-                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
-                    break;
-                }
-            }
-        } catch (ClassNotFoundException ex) {
-            java.util.logging.Logger.getLogger(MainFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
-        } catch (InstantiationException ex) {
-            java.util.logging.Logger.getLogger(MainFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
-        } catch (IllegalAccessException ex) {
-            java.util.logging.Logger.getLogger(MainFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
-        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
-            java.util.logging.Logger.getLogger(MainFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
-        }
-        //</editor-fold>
-
-        /*
-         * Create and display the form
-         */
-        java.awt.EventQueue.invokeLater(new Runnable() {
-
-            public void run() {
-                new MainFrame(new Context(null)).setVisible(true);
-            }
-        });
-    }
-    // Variables declaration - do not modify//GEN-BEGIN:variables
-    private javax.swing.JPanel controlPanel;
-    private javax.swing.JButton nextButton;
-    private javax.swing.JButton sequencesButton;
-    // End of variables declaration//GEN-END:variables
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/termtester/SequenceViewer.form b/lib.terminalemulator/examples/TermTester/src/termtester/SequenceViewer.form
deleted file mode 100644
index fcfdd332e..000000000
--- a/lib.terminalemulator/examples/TermTester/src/termtester/SequenceViewer.form
+++ /dev/null
@@ -1,84 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-
-<Form version="1.3" maxVersion="1.8" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
-  <Properties>
-    <Property name="defaultCloseOperation" type="int" value="3"/>
-  </Properties>
-  <SyntheticProperties>
-    <SyntheticProperty name="formSizePolicy" type="int" value="1"/>
-  </SyntheticProperties>
-  <AuxValues>
-    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
-    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
-    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
-    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
-    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
-    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
-    <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,44,0,0,1,-112"/>
-  </AuxValues>
-
-  <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
-  <SubComponents>
-    <Container class="javax.swing.JPanel" name="controlPanel">
-      <Constraints>
-        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
-          <BorderConstraints direction="First"/>
-        </Constraint>
-      </Constraints>
-
-      <Layout class="org.netbeans.modules.form.compat2.layouts.DesignFlowLayout">
-        <Property name="alignment" type="int" value="0"/>
-      </Layout>
-      <SubComponents>
-        <Component class="javax.swing.JCheckBox" name="filterNumbersCheckBox">
-          <Properties>
-            <Property name="text" type="java.lang.String" value="Filter Numbers"/>
-          </Properties>
-          <Events>
-            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="filterNumbersCheckBoxActionPerformed"/>
-          </Events>
-        </Component>
-      </SubComponents>
-    </Container>
-    <Container class="javax.swing.JPanel" name="mainPanel">
-      <Properties>
-        <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
-          <Border info="org.netbeans.modules.form.compat2.border.EtchedBorderInfo">
-            <EtchetBorder/>
-          </Border>
-        </Property>
-      </Properties>
-      <Constraints>
-        <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
-          <BorderConstraints direction="Center"/>
-        </Constraint>
-      </Constraints>
-
-      <Layout class="org.netbeans.modules.form.compat2.layouts.DesignFlowLayout"/>
-    </Container>
-  </SubComponents>
-</Form>
diff --git a/lib.terminalemulator/examples/TermTester/src/termtester/SequenceViewer.java b/lib.terminalemulator/examples/TermTester/src/termtester/SequenceViewer.java
deleted file mode 100644
index 8a708112d..000000000
--- a/lib.terminalemulator/examples/TermTester/src/termtester/SequenceViewer.java
+++ /dev/null
@@ -1,229 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package termtester;
-
-import java.io.*;
-import java.util.*;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-import org.netbeans.lib.terminalemulator.Coord;
-import org.netbeans.lib.terminalemulator.Term;
-
-/**
- *
- * @author ivan
- */
-public class SequenceViewer extends javax.swing.JFrame {
-
-    private final Term completed;
-    private final Term unrecognized;
-
-    private boolean filterNumbers = true;
-
-    /**
-     * Creates new form SequenceViewer
-     */
-
-    public SequenceViewer() {
-        initComponents();
-
-        filterNumbersCheckBox.setSelected(filterNumbers);
-
-        completed = new Term();
-        completed.setRowsColumns(30, 30);
-        completed.setScrollOnOutput(false);
-        completed.setHistorySize(1024);
-
-        unrecognized = new Term();
-        unrecognized.setRowsColumns(30, 30);
-        unrecognized.setScrollOnOutput(false);
-        unrecognized.setHistorySize(1024);
-
-        mainPanel.add(completed);
-        mainPanel.add(unrecognized);
-
-
-        pack();
-        refresh();
-    }
-
-    private void refresh() {
-        completed.clearHistoryNoRefresh();
-        unrecognized.clearHistoryNoRefresh();
-
-        completed.appendText("Completed\n\r", true);
-        unrecognized.appendText("Unrecognized\n\r", true);
-
-        fill(completed, "completed");
-        fill(unrecognized, "unrecognized");
-
-        completed.possiblyNormalize(Coord.make(1, 1));
-        unrecognized.possiblyNormalize(Coord.make(1, 1));
-    }
-
-    private String filterNumber(String line) {
-        if (!filterNumbers)
-            return line;
-
-        // convert numbers to %d's
-        Pattern pattern = Pattern.compile("\\[[0-9]+");
-        Matcher matcher = pattern.matcher(line);
-        line = matcher.replaceAll("\\[%d");
-
-        pattern = Pattern.compile("\\[\\?[0-9]+");
-        matcher = pattern.matcher(line);
-        line = matcher.replaceAll("\\[\\?%d");
-
-        pattern = Pattern.compile(";[0-9]+");
-        matcher = pattern.matcher(line);
-        line = matcher.replaceAll(";%d");
-
-        return line;
-    }
-
-    private String filter(String line) {
-        // convert escape charactrers to mnemonics
-        StringBuilder sb = new StringBuilder();
-        for (char c : line.toCharArray())
-            sb.append(Util.charToMnemonic(c));
-
-        return sb.toString();
-    }
-
-    private void fill(Term term, String title) {
-        Set<String> set = new HashSet<String>();
-
-        File file = new File(String.format("/tmp/term-sequences-%s", title));
-        BufferedReader br;
-        try {
-            br = new BufferedReader(new FileReader(file));
-        } catch (FileNotFoundException ex) {
-            Logger.getLogger(SequenceViewer.class.getName()).log(Level.SEVERE, null, ex);
-            return;
-        }
-
-        try {
-            while (br.ready()) {
-                String line = br.readLine();
-                if (!line.isEmpty())
-                    set.add(filterNumber(line));
-            }
-            br.close();
-        } catch (IOException ex) {
-            Logger.getLogger(SequenceViewer.class.getName()).log(Level.SEVERE, null, ex);
-        }
-
-        List<String> list = new LinkedList<String>(set);
-        Collections.sort(list);
-
-        for (String s : list) {
-            term.appendText(filter(s), false);
-            term.appendText("\n\r", true);
-        }
-    }
-
-    /**
-     * This method is called from within the constructor to initialize the form.
-     * WARNING: Do NOT modify this code. The content of this method is always
-     * regenerated by the Form Editor.
-     */
-    @SuppressWarnings("unchecked")
-    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
-    private void initComponents() {
-
-        controlPanel = new javax.swing.JPanel();
-        filterNumbersCheckBox = new javax.swing.JCheckBox();
-        mainPanel = new javax.swing.JPanel();
-
-        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
-
-        controlPanel.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));
-
-        filterNumbersCheckBox.setText("Filter Numbers");
-        filterNumbersCheckBox.addActionListener(new java.awt.event.ActionListener() {
-            public void actionPerformed(java.awt.event.ActionEvent evt) {
-                filterNumbersCheckBoxActionPerformed(evt);
-            }
-        });
-        controlPanel.add(filterNumbersCheckBox);
-
-        getContentPane().add(controlPanel, java.awt.BorderLayout.PAGE_START);
-
-        mainPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
-        getContentPane().add(mainPanel, java.awt.BorderLayout.CENTER);
-
-        pack();
-    }// </editor-fold>//GEN-END:initComponents
-
-    private void filterNumbersCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_filterNumbersCheckBoxActionPerformed
-        filterNumbers = filterNumbersCheckBox.isSelected();
-        refresh();
-
-    }//GEN-LAST:event_filterNumbersCheckBoxActionPerformed
-
-    /**
-     * @param args the command line arguments
-     */
-    public static void main(String args[]) {
-        /*
-         * Set the Nimbus look and feel
-         */
-        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
-        /*
-         * If Nimbus (introduced in Java SE 6) is not available, stay with the
-         * default look and feel. For details see
-         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
-         */
-        try {
-            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
-                if ("Nimbus".equals(info.getName())) {
-                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
-                    break;
-                }
-            }
-        } catch (ClassNotFoundException ex) {
-            java.util.logging.Logger.getLogger(SequenceViewer.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
-        } catch (InstantiationException ex) {
-            java.util.logging.Logger.getLogger(SequenceViewer.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
-        } catch (IllegalAccessException ex) {
-            java.util.logging.Logger.getLogger(SequenceViewer.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
-        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
-            java.util.logging.Logger.getLogger(SequenceViewer.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
-        }
-        //</editor-fold>
-
-        /*
-         * Create and display the form
-         */
-        java.awt.EventQueue.invokeLater(new Runnable() {
-
-            public void run() {
-                new SequenceViewer().setVisible(true);
-            }
-        });
-    }
-    // Variables declaration - do not modify//GEN-BEGIN:variables
-    private javax.swing.JPanel controlPanel;
-    private javax.swing.JCheckBox filterNumbersCheckBox;
-    private javax.swing.JPanel mainPanel;
-    // End of variables declaration//GEN-END:variables
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/termtester/Test.java b/lib.terminalemulator/examples/TermTester/src/termtester/Test.java
deleted file mode 100644
index 31ab73e2c..000000000
--- a/lib.terminalemulator/examples/TermTester/src/termtester/Test.java
+++ /dev/null
@@ -1,176 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package termtester;
-
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import tests.*;
-
-/**
- *
- * @author ivan
- */
-public abstract class Test {
-    private static final Map<String, Test> tests = new HashMap<String, Test>();
-
-    protected final String name;
-    protected final Context context;
-    protected final int minArg;
-    protected final int maxArg;
-    protected final boolean compass;
-    protected final Util.FillPattern fill;
-
-    private String info;
-
-    @SuppressWarnings("LeakingThisInConstructor")
-    protected Test(String name, Context context, int minArg, int maxArg, boolean compass, Util.FillPattern fill) {
-        this.name = name;
-        this.context = context;
-        this.minArg = minArg;
-        this.maxArg = maxArg;
-        this.compass = compass;
-        this.fill = fill;
-        tests.put(name, this);
-    }
-
-    @SuppressWarnings("ResultOfObjectAllocationIgnored")
-    public static void init(Context context) {
-
-        new Test_acs(context);
-        new Test_al(context);
-        new Test_attr(context);
-        new Test_bc(context);
-        new Test_cd(context);
-        new Test_ce(context);
-        new Test_cha(context);
-        new Test_cm(context);
-        new Test_cud(context);
-        new Test_cuu(context);
-        new Test_cv(context);
-        new Test_ech(context);
-        new Test_ed(context);
-        new Test_ed(context);
-        new Test_el(context);
-        new Test_el2(context);
-        new Test_font(context);
-        new Test_dc(context);
-        new Test_dl(context);
-        new Test_do(context);
-        new Test_ic(context);
-        new Test_im(context);
-        new Test_key(context);
-        new Test_lf(context);
-        new Test_misc(context);
-        new Test_nd(context);
-        new Test_om(context);
-        new Test_overstrike(context);
-        new Test_reverse(context);
-        new Test_ri(context);
-        new Test_scrc(context);
-        new Test_tab(context);
-        new Test_txtprm(context);
-        new Test_up(context);
-        new Test_vpa(context);
-    }
-
-    public static Collection<Test> tests() {
-        return tests.values();
-    }
-
-    public static Test find(String name) {
-        return tests.get(name);
-    }
-
-    public abstract void runBasic(String[] args);
-
-    public void runPrefix() {
-        // no-op
-    }
-
-    public String info() {
-        return info;
-    }
-
-    protected final void info(String info) {
-        this.info = info;
-    }
-
-    public void run(String[] args) {
-        if (compass)
-            runCompass(args);
-        else
-            runSimple(args);
-    }
-
-    public void runCompass(String[] args) {
-        context.interp.printf("Running test '%s' on all compass points ...\n", name);
-
-        Context.Margin margin = context.getMargin();
-
-        if (true) {
-            for (Util.Direction dir : Util.Direction.values()) {
-                context.sendQuiet("\\ESCc");            // full reset
-                runPrefix();
-                Util.fill(context, fill);
-                if (margin != null)
-                    context.sendQuiet("\\ESC[%d;%dr", margin.low, margin.hi);
-                Util.go(context, dir);
-                runBasic(args);
-                context.pause();
-            }
-        }
-        if (margin != null) {
-            for (Util.MarginDirection dir : Util.MarginDirection.values()) {
-                context.sendQuiet("\\ESCc");            // full reset
-                runPrefix();
-                Util.fill(context, fill);
-                if (margin != null)
-                    context.sendQuiet("\\ESC[%d;%dr", margin.low, margin.hi);
-                if (!Util.go(context, dir))
-                    continue;
-                runBasic(args);
-                context.pause();
-            }
-        }
-
-        context.interp.printf("Done\n");
-    }
-
-    public void runSimple(String[] args) {
-        context.interp.printf("Running test '%s' ...\n", name);
-        context.sendQuiet("\\ESCc");            // full reset
-        runPrefix();
-        Util.fill(context, fill);
-        runPrefix();
-        runBasic(args);
-        context.interp.printf("Done\n");
-    }
-
-    protected static void sleep(int millis) {
-        try {
-            Thread.sleep(millis);
-        } catch (InterruptedException ex) {
-            Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
-        }
-    }
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/termtester/TestSubject.java b/lib.terminalemulator/examples/TermTester/src/termtester/TestSubject.java
deleted file mode 100644
index 11f048f9f..000000000
--- a/lib.terminalemulator/examples/TermTester/src/termtester/TestSubject.java
+++ /dev/null
@@ -1,107 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package termtester;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.PrintWriter;
-import java.io.Reader;
-import java.util.concurrent.BlockingQueue;
-import java.util.concurrent.LinkedBlockingQueue;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import org.netbeans.lib.richexecution.Pty;
-import org.netbeans.lib.richexecution.program.Program;
-import org.netbeans.lib.terminalemulator.Term;
-
-public abstract class TestSubject {
-
-    private final String title;
-
-    private static final BlockingQueue<Character> input = new LinkedBlockingQueue<Character>();
-
-    public abstract PrintWriter pw();
-    public abstract void finish();
-
-    public abstract Term term();
-
-    protected abstract Program makeProgram(Context context, Pty pty);
-
-    protected TestSubject(String title) {
-        this.title = title;
-    }
-
-    protected final String title() {
-        return title;
-    }
-
-    static public char receive() {
-        try {
-            return input.take();
-        } catch (InterruptedException ex) {
-            Logger.getLogger(TestSubject.class.getName()).log(Level.SEVERE, null, ex);
-        }
-        return '\n';
-    }
-
-    static public void put(char c) {
-        try {
-            input.put(c);
-        } catch (InterruptedException ex) {
-            Logger.getLogger(TestSubject.class.getName()).log(Level.SEVERE, null, ex);
-        }
-    }
-
-    protected final Thread createShuttle(final InputStream is) {
-        return new Thread() {
-            @Override
-            public void run() {
-                while (true) {
-                    char c;
-                    try {
-                        c = (char) is.read();
-                    } catch (IOException ex) {
-                        Logger.getLogger(InternalTestSubject.class.getName()).log(Level.SEVERE, null, ex);
-                        return;
-                    }
-                    TestSubject.put(c);
-                }
-            }
-        };
-    }
-
-    protected final Thread createShuttle(final Reader is) {
-        return new Thread() {
-            @Override
-            public void run() {
-                while (true) {
-                    char c;
-                    try {
-                        c = (char) is.read();
-                    } catch (IOException ex) {
-                        Logger.getLogger(InternalTestSubject.class.getName()).log(Level.SEVERE, null, ex);
-                        return;
-                    }
-                    TestSubject.put(c);
-                }
-            }
-        };
-    }
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/termtester/Util.java b/lib.terminalemulator/examples/TermTester/src/termtester/Util.java
deleted file mode 100644
index 9022d6539..000000000
--- a/lib.terminalemulator/examples/TermTester/src/termtester/Util.java
+++ /dev/null
@@ -1,321 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package termtester;
-
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- *
- * @author ivan
- */
-public final class Util {
-    public  static enum FillPattern {
-        NONE, X, ROWCOL, ZIGZAG
-    }
-
-    public static enum Direction {
-        NW, N, NE,
-        W, C, E,
-        SW, S, SE
-    }
-
-    public static enum MarginDirection {
-        ANW, AN, ANE,           // Above ...
-        NW, N, NE,              // On ...
-        BNW, BN, BNE,           // Below ...
-        W, C, E,                // Between
-        ASW, AS, ASE,           // Above
-        SW, S, SE,              // On
-        BSW, BS, BSE            // Below
-    }
-
-    private static String fillLine(Context context, Context.Margin margin, int r, int end) {
-        char[] buf = new char[context.width()];
-        char fillchar = '.';
-        if (margin != null) {
-            if (r == margin.low)
-                fillchar = 'm';
-            else if (r == margin.hi)
-                fillchar = 'M';
-        }
-        for (int c = 0; c < end; c++) {
-            if ((c + 1) % 10 == 0) {
-                buf[c] = ("" + (((c + 1) / 10))).charAt(0);
-            } else {
-                buf[c] = fillchar;
-            }
-        }
-        String rowInfo = String.format(" %2d ", r);
-        for (int rix = 0; rix < rowInfo.length(); rix++) {
-            buf[3 + rix] = rowInfo.charAt(rix);
-        }
-        return String.valueOf(buf);
-    }
-
-    public static void fill(Context context, FillPattern fillPattern) {
-        Context.Margin margin = context.getMargin();
-        String line;
-
-        // home
-        context.send("\\ESC[;H");
-        switch (fillPattern) {
-            case NONE:
-                context.sendQuiet("\\ESC[2J");  // erase all screen
-                break;
-            case X:
-                for (int r = 1; r <= context.height(); r++) {
-                    for (int c = 0; c < context.width(); c++) {
-                        context.sendQuiet("X");
-                    }
-                }
-                break;
-            case ROWCOL:
-                for (int r = 1; r <= context.height(); r++) {
-                    line = fillLine(context, margin, r, context.width());
-                    context.sendQuiet("%s", line);
-                }
-                break;
-            case ZIGZAG:
-                int end1 = context.width()/3;
-                int end2 = (context.width()*2)/3;
-                for (int r = 1; r <= context.height(); r++) {
-                    int end = (r % 2 ==0)? end1: end2;
-                    line = fillLine(context, margin, r, end);
-                    if (r == context.height())
-                        context.sendQuiet("%s", line);
-                    else
-                        context.sendQuiet("%s\n\r", line);
-                }
-                break;
-        }
-        // home
-        context.send("\\ESC[;H");
-    }
-
-    public static boolean go(Context context, MarginDirection direction) {
-        Context.Margin margin = context.getMargin();
-        if (margin == null)
-            return false;
-        int row;
-        switch (direction) {
-            case ANW:
-            case AN:
-            case ANE:
-                row = margin.low - 1;
-                break;
-            case NW:
-            case N:
-            case NE:
-                row = margin.low;
-                break;
-            case BNW:
-            case BN:
-            case BNE:
-                row = margin.low + 1;
-                break;
-
-            case W:
-            case C:
-            case E:
-                row = margin.low + (margin.hi-margin.low)/2;
-                if (row == margin.low || row == margin.hi)
-                    return false;
-                break;
-
-            case ASW:
-            case AS:
-            case ASE:
-                row = margin.hi - 1;
-                break;
-            case SW:
-            case S:
-            case SE:
-                row = margin.hi;
-                break;
-            case BSW:
-            case BS:
-            case BSE:
-                row = margin.hi + 1;
-                break;
-            default:
-                row = 1;
-                break;
-        }
-
-        if (row < 1)
-            return false;
-        if (row > context.height())
-            return false;
-
-        int col;
-        switch (direction) {
-            case ANW:
-            case NW:
-            case BNW:
-            case W:
-            case ASW:
-            case SW:
-            case BSW:
-                col = 1;
-                break;
-
-            case AN:
-            case N:
-            case BN:
-            case C:
-            case AS:
-            case S:
-            case BS:
-                col = context.width()/2;
-                break;
-
-            case ANE:
-            case NE:
-            case BNE:
-            case E:
-            case ASE:
-            case SE:
-            case BSE:
-                col = context.width();
-                break;
-            default:
-                col = 1;
-                break;
-        }
-        context.sendQuiet("\\ESC[%d;%dH", row, col);
-        return true;
-    }
-
-    public static void go(Context context, Direction direction) {
-        switch (direction) {
-            case N:
-                context.send("\\ESC[%d;%dH", 1, context.width()/2);
-                break;
-            case NE:
-                context.send("\\ESC[%d;%dH", 1, context.width());
-                break;
-            case E:
-                context.send("\\ESC[%d;%dH", context.height()/2, context.width());
-                break;
-            case SE:
-                context.send("\\ESC[%d;%dH", context.height(), context.width());
-                break;
-            case S:
-                context.send("\\ESC[%d;%dH", context.height(), context.width()/2);
-                break;
-            case SW:
-                context.send("\\ESC[%d;%dH", context.height(), 1);
-                break;
-            case W:
-                context.send("\\ESC[%d;%dH", context.height()/2, 1);
-                break;
-            case NW:
-                context.send("\\ESC[%d;%dH", 1, 1);
-                break;
-            case C:
-                context.send("\\ESC[%d;%dH", context.height()/2, context.width()/2);
-                break;
-            default:
-                context.interp.error("unrecognized compass direction '%s'", direction);
-                break;
-        }
-    }
-
-    public static void go(Context context, int row, int col) {
-        context.send("\\ESC[%s;%sH", row, col);
-    }
-    public static void attr(Context context, int n) {
-        context.send("\\ESC[%dm", n);
-    }
-
-    private static final Map<String, Integer> mnemonicMap = new HashMap<String, Integer>();
-    private static final Map<Character, String> charMap = new HashMap<Character, String>();
-
-    /*
-     * Map a mnemonic to the actual character.
-     */
-    public static int mnemonicToChar(String mnemonic) {
-        Integer c = mnemonicMap.get(mnemonic);
-        if (c == null)
-            return -1;
-        else
-            return c;
-    }
-
-    public static String charToMnemonic(char c) {
-        String ch = charMap.get(c);
-        if (ch == null) {
-            if (c > 127)
-                return String.format("%#02x/%d", (int)c, (int)c);
-            else
-                return "" + c;
-        } else {
-            return "\\" + ch;
-        }
-    }
-
-    private static void map(String mnemonic, int code, boolean ambig) {
-        mnemonicMap.put(mnemonic, ambig? -2: code);
-        charMap.put((char) code, mnemonic);
-    }
-
-    private static void map(String mnemonic, int code) {
-        mnemonicMap.put(mnemonic, code);
-        charMap.put((char) code, mnemonic);
-    }
-
-    static {
-        map("NUL", 0x00);
-        map("SOH", 0x01, true);
-        map("STX", 0x02);
-        map("ETX", 0x03);
-        map("EOT", 0x04);
-        map("ENQ", 0x05);
-        map("ACK", 0x06);
-        map("BEL", 0x07);
-        map("BS",  0x08);
-        map("HT",  0x09);
-        map("LF",  0x0a);
-        map("VT",  0x0b);
-        map("FF",  0x0c);
-        map("CR",  0x0d);
-        map("SO", 0x0e, true);
-        map("SI",  0x0f);
-        map("DLE", 0x10);
-        map("DC1", 0x11);
-        map("DC2", 0x12);
-        map("DC3", 0x13);
-        map("DC4", 0x14);
-        map("NAK", 0x15);
-        map("SYN", 0x16);
-        map("ETB", 0x17);
-        map("CAN", 0x18);
-        map("EM",  0x19);
-        map("SUB", 0x1a);
-        map("ESC", 0x1b);
-        map("FS",  0x1c);
-        map("GS",  0x1d);
-        map("RS",  0x1e);
-        map("US",  0x1f);
-        map("SP",  0x20);
-        map("DEL", 0x7f);
-    }
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_acs.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_acs.java
deleted file mode 100644
index 5a0c9000f..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_acs.java
+++ /dev/null
@@ -1,154 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_acs extends Test {
-
-    private final String graphics_xterm = "+,-.0`afgijklmnopqrstuvwxyz{|}~";
-    // "\020\021\030\031\333\004\261\370\361\260\331\277\332\300\305~\304\304\304_\303\264\301\302\263\363\362\343\330\234\376"
-    private final String graphics_ansi = "\u0010\u0011\u0018\u0019\u00db\u0004\u00b1\u00f8\u00f1\u00b0\u00d9\u00bf\u00da\u00c0\u00c5~\u00c4\u00c4\u00c4_\u00c3\u00b4\u00c1\u00c2\u00b3\u00f3\u00f2\u00e3\u00d8\u009c\u00fe";
-
-    public Test_acs(Context context) {
-        super("acs", context, 0, 0, false, Util.FillPattern.NONE);
-	info("Alternate Character Set");
-    }
-
-    public void runBasic(String[] args) {
-        context.send("\\ESC(B");                // ascii -> G0
-        context.send("\\ESC)0");                // graphics -> G1
-        context.send("\\ESC*B");                // ascii -> G2
-        context.send("\\ESC+0");                // graphics -> G3
-
-        context.send("\\SI");                   // G0 -> GL (default)
-        context.send("ASCII: " + graphics_xterm);
-        context.send("\n\r");
-
-        context.send("\\0e");                   // \SO: G1 -> GL (default)
-        context.send("GRAPH: " + graphics_xterm);
-        context.send("\n\r");
-
-        context.send("\\ESCn");                 // G2 -> GL (default)
-        context.send("ASCII: " + graphics_xterm);
-        context.send("\n\r");
-
-        context.send("\\ESCo");                 // G3 -> GL (default)
-        context.send("GRAPH: " + graphics_xterm);
-        context.send("\n\r");
-
-        //
-        context.send("\n\r");
-
-        context.send("\\ESC[!p");               // soft reset
-
-        context.send("\\SI");                   // G0 -> GL (default)
-        context.send("ASCII: " + graphics_xterm);
-        context.send("\n\r");
-
-        context.send("\\0e");                   // \SO: G1 -> GL (default)
-        context.send("ASCII: " + graphics_xterm);
-        context.send("\n\r");
-
-        context.send("\\ESCn");                 // G2 -> GL (default)
-        context.send("ASCII: " + graphics_xterm);
-        context.send("\n\r");
-
-        context.send("\\ESCo");                 // G3 -> GL (default)
-        context.send("ASCII: " + graphics_xterm);
-        context.send("\n\r");
-
-        // 
-        context.send("\n\r");
-
-        context.send("\\SI");                   // G0 -> GL (default)
-        context.send("\\ESC(B");                // ascii -> G0
-        context.send("ASCII: " + graphics_xterm);
-        context.send("\n\r");
-
-        context.send("\\0e");                   // \SO: G1 -> GL (default)
-        context.send("\\ESC)0");                // graphics -> G1
-        context.send("GRAPH: " + graphics_xterm);
-        context.send("\n\r");
-
-        context.send("\\ESCn");                 // G2 -> GL (default)
-        context.send("\\ESC*B");                // ascii -> G2
-        context.send("ASCII: " + graphics_xterm);
-        context.send("\n\r");
-
-        context.send("\\ESCo");                 // G3 -> GL (default)
-        context.send("\\ESC+0");                // graphics -> G3
-        context.send("GRAPH: " + graphics_xterm);
-        context.send("\n\r");
-
-        //
-        context.send("\n\r");
-
-        context.send("\\ESC[!p");               // soft reset
-
-        context.send("\\ESC(B");                // ascii -> G0
-        context.send("\\SI");                   // G0 -> GL (default)
-        context.send("ASCII: " + graphics_xterm);
-        context.send("\n\r");
-
-        context.send("\\ESC)0");                // graphics -> G1
-        context.send("\\0e");                   // \SO: G1 -> GL (default)
-        context.send("GRAPH: " + graphics_xterm);
-        context.send("\n\r");
-
-        context.send("\\ESC*B");                // ascii -> G2
-        context.send("\\ESCn");                 // G2 -> GL (default)
-        context.send("ASCII: " + graphics_xterm);
-        context.send("\n\r");
-
-        context.send("\\ESC+0");                // graphics -> G3
-        context.send("\\ESCo");                 // G3 -> GL (default)
-        context.send("GRAPH: " + graphics_xterm);
-        context.send("\n\r");
-
-        //
-        // \ESC[10m and 11m are only accepted by $TERM="ansi".
-        // Furthermore the ACS characters are different, so we use
-        // graphics_ansi instead of graphics_xterm.
-        // But graphics_ansi doesn't work because it uses 8 bits values
-        // which don't travel well through the TermTester -> TermDriver -> Term
-        // pipeline yet
-        context.send("\n\r");
-
-        context.send("\\ESC[!p");               // soft reset
-        context.send("ANSI ONLY:\n\r");
-
-        context.send("\\ESC[11m");              // ~= graphics -> GL
-        context.send("!GRAPH:" + graphics_xterm);
-        context.send("\n\r");
-        context.send("!GRAPH:" + graphics_ansi);
-        context.send("\n\r");
-
-        context.send("\\ESC[10m");             // ~= ascii -> GL
-        context.send("ASCII: " + graphics_xterm);
-        context.send("\n\r");
-    }
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_al.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_al.java
deleted file mode 100644
index aaa4ee41d..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_al.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_al extends Test {
-
-    public Test_al(Context context) {
-        super("al", context, 0, 1, true, Util.FillPattern.ROWCOL);
-        info("\\ESC[%sL\tInsertLines");
-    }
-
-    public void runBasic(String[] args) {
-        if (args.length == 0) {
-            context.send("\\ESC[L");
-        } else if (args.length == 1) {
-            context.send("\\ESC[%sL", args[0]);
-        }
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_attr.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_attr.java
deleted file mode 100644
index 2b5475e8f..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_attr.java
+++ /dev/null
@@ -1,201 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_attr extends Test {
-
-    public Test_attr(Context context) {
-        super("attr", context, 0, 1, false, Util.FillPattern.NONE);
-        info("\\ESC[%sm\tAttributes & Colors");
-    }
-
-    @Override
-    public void runBasic(String[] args) {
-
-	context.interp.printf("normal mode\n");
-	run();
-	context.pause();
-
-	context.interp.printf("using reverse mode\n");
-	context.sendQuiet("\\ESCc");            // full reset
-	context.send("\\ESC[?5h");
-	run();
-    }
-
-    private void run() {
-        context.send("\\ESC[1m");
-        context.send("BOLD ");
-        context.send("\\ESC[22m");
-        context.send("PLAIN ");
-
-        context.send("\\ESC[2m");
-        context.send("FAINT ");
-        context.send("\\ESC[22m");
-        context.send("PLAIN ");
-
-        context.send("\\ESC[3m");
-        context.send("ITALIC ");
-        context.send("\\ESC[23m");
-        context.send("PLAIN ");
-
-        context.send("\\ESC[4m");
-        context.send("ULINE ");
-        context.send("\\ESC[24m");
-        context.send("PLAIN ");
-
-        context.send("\\CR\\LF");
-
-        context.send("\\ESC[5m");
-        context.send("BLINK-S ");
-        context.send("\\ESC[25m");
-        context.send("PLAIN ");
-
-        context.send("\\ESC[6m");
-        context.send("BLINK-F ");
-        context.send("\\ESC[25m");
-        context.send("PLAIN ");
-
-        context.send("\\ESC[7m");
-        context.send("INV ");
-        context.send("\\ESC[27m");
-        context.send("PLAIN ");
-
-        context.send("\\ESC[8m");
-        context.send("HIDDEN ");
-        context.send("\\ESC[28m");
-        context.send("PLAIN ");
-
-        // LATER, I"m using 9 for "active text"
-        /*
-        context.send("\\ESC[9m");
-        context.send("STRIKE ");
-        context.send("\\ESC[29m");
-        context.send("PLAIN ");
-        */
-
-        context.send("\\CR\\LF");
-
-        context.send("\\ESC[1;4;7m");
-        context.send("BOLD-ULINE-INV ");
-        context.send("\\ESC[22m");
-        context.send("ULINE-INV ");
-        context.send("\\ESC[24;27m");
-        context.send("PLAIN ");
-
-        context.send("\\CR\\LF");
-
-	// primary fg colors
-        context.send("\\ESC[30m");
-        context.send("BLACK ");
-        context.send("\\ESC[31m");
-        context.send("RED ");
-        context.send("\\ESC[32m");
-        context.send("GREEN ");
-        context.send("\\ESC[33m");
-        context.send("YELLOW ");
-        context.send("\\ESC[34m");
-        context.send("BLUE ");
-        context.send("\\ESC[35m");
-        context.send("MAGENTA ");
-        context.send("\\ESC[36m");
-        context.send("CYAN ");
-        context.send("\\ESC[37m");
-        context.send("WHITE ");
-
-        context.send("\\ESC[39m");
-        context.send("DEFAULT ");
-        context.send("\\CR\\LF");
-
-	// primary bg colors
-        context.send("\\ESC[40m");
-        context.send("BLACK ");
-        context.send("\\ESC[41m");
-        context.send("RED ");
-        context.send("\\ESC[42m");
-        context.send("GREEN ");
-        context.send("\\ESC[43m");
-        context.send("YELLOW ");
-        context.send("\\ESC[44m");
-        context.send("BLUE ");
-        context.send("\\ESC[45m");
-        context.send("MAGENTA ");
-        context.send("\\ESC[46m");
-        context.send("CYAN ");
-        context.send("\\ESC[47m");
-        context.send("WHITE ");
-
-        context.send("\\ESC[49m");
-        context.send("DEFAULT ");
-        context.send("\\CR\\LF");
-
-	// bright fg colors
-        context.send("\\ESC[90m");
-        context.send("black ");
-        context.send("\\ESC[91m");
-        context.send("red ");
-        context.send("\\ESC[92m");
-        context.send("green ");
-        context.send("\\ESC[93m");
-        context.send("yellow ");
-        context.send("\\ESC[94m");
-        context.send("blue ");
-        context.send("\\ESC[95m");
-        context.send("magenta ");
-        context.send("\\ESC[96m");
-        context.send("cyan ");
-        context.send("\\ESC[97m");
-        context.send("white ");
-
-        context.send("\\ESC[39m");
-        context.send("default ");
-        context.send("\\CR\\LF");
-
-	// bright bg colors
-        context.send("\\ESC[100m");
-        context.send("black ");
-        context.send("\\ESC[101m");
-        context.send("red ");
-        context.send("\\ESC[102m");
-        context.send("green ");
-        context.send("\\ESC[103m");
-        context.send("yellow ");
-        context.send("\\ESC[104m");
-        context.send("blue ");
-        context.send("\\ESC[105m");
-        context.send("magenta ");
-        context.send("\\ESC[106m");
-        context.send("cyan ");
-        context.send("\\ESC[107m");
-        context.send("white ");
-
-        context.send("\\ESC[49m");
-        context.send("default ");
-        context.send("\\CR\\LF");
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_bc.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_bc.java
deleted file mode 100644
index 9ba6f9545..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_bc.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_bc extends Test {
-
-    public Test_bc(Context context) {
-        super("bc", context, 0, 1, false, Util.FillPattern.NONE);
-	info("\\ESC[%sD\tBack Cursor");
-    }
-
-    public void runBasic(String[] args) {
-        if (args.length == 0) {
-            context.send("\\ESC[D");
-        } else if (args.length == 1) {
-            context.send("\\ESC[%sD", args[0]);
-        }
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_cd.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_cd.java
deleted file mode 100644
index b7967d10d..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_cd.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_cd extends Test {
-
-    public Test_cd(Context context) {
-        super("cd", context, 0, 1, true, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        if (args.length == 0) {
-            context.send("\\ESC[J");
-        } else if (args.length == 1) {
-            context.send("\\ESC[%sJ", args[0]);
-        }
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_ce.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_ce.java
deleted file mode 100644
index 6ee45c538..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_ce.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_ce extends Test {
-
-    public Test_ce(Context context) {
-        super("ce", context, 0, 1, true, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        if (args.length == 0) {
-            context.send("\\ESC[K");
-        } else if (args.length == 1) {
-            context.send("\\ESC[%sK", args[0]);
-        }
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_cha.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_cha.java
deleted file mode 100644
index 59d1185db..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_cha.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_cha extends Test {
-
-    public Test_cha(Context context) {
-        super("cha", context, 0, 1, true, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        if (args.length == 0) {
-            context.send("\\ESC[G");
-        } else if (args.length == 1) {
-            context.send("\\ESC[%sG", args[0]);
-        }
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_cm.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_cm.java
deleted file mode 100644
index a1f97d632..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_cm.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_cm extends Test {
-
-    public Test_cm(Context context) {
-        super("cm", context, 0, 2, true, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        if (args.length == 0) {
-            context.send("\\ESC[H");
-        } else if (args.length == 2) {
-            context.send("\\ESC[%s;%sH", args[0], args[1]);
-        }
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_cud.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_cud.java
deleted file mode 100644
index 252543fda..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_cud.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_cud extends Test {
-
-    public Test_cud(Context context) {
-        super("cud", context, 0, 1, true, Util.FillPattern.ROWCOL);
-        info("\\ESC[%dB\tCUrsor Down - no scroll");
-    }
-
-    public void runBasic(String[] args) {
-        if (args.length == 0) {
-            context.send("\\ESC[B");
-        } else if (args.length == 1) {
-            context.send("\\ESC[%sB", args[0]);
-        }
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_cuu.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_cuu.java
deleted file mode 100644
index 5ee44202c..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_cuu.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_cuu extends Test {
-
-    public Test_cuu(Context context) {
-        super("cuu", context, 0, 1, true, Util.FillPattern.ROWCOL);
-        info("\\ESC[%dA\tCUrsor Up - no scroll");
-    }
-
-    public void runBasic(String[] args) {
-        if (args.length == 0) {
-            context.send("\\ESC[A");
-        } else if (args.length == 1) {
-            context.send("\\ESC[%sA", args[0]);
-        }
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_cv.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_cv.java
deleted file mode 100644
index e81097dd0..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_cv.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_cv extends Test {
-
-    public Test_cv(Context context) {
-        super("cv", context, 0, 1, false, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        context.send("\\ESC[?25l"); // invisible
-        context.pause();
-        context.send("\\ESC[?25h"); // visible
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_dc.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_dc.java
deleted file mode 100644
index 4c00eaef8..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_dc.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_dc extends Test {
-
-    public Test_dc(Context context) {
-        super("dc", context, 0, 1, true, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        if (args.length == 0) {
-            context.send("\\ESC[P");
-        } else if (args.length == 1) {
-            context.send("\\ESC[%sP", args[0]);
-        }
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_dl.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_dl.java
deleted file mode 100644
index 645b8e515..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_dl.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_dl extends Test {
-
-    public Test_dl(Context context) {
-        super("dl", context, 0, 1, true, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        if (args.length == 0) {
-            context.send("\\ESC[M");
-        } else if (args.length == 1) {
-            context.send("\\ESC[%sM", args[0]);
-        }
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_do.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_do.java
deleted file mode 100644
index 39771e67f..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_do.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_do extends Test {
-
-    public Test_do(Context context) {
-        super("do", context, 0, 1, true, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        if (args.length == 0) {
-            context.send("\\ESC[B");
-        } else if (args.length == 1) {
-            context.send("\\ESC[%sB", args[0]);
-        }
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_ech.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_ech.java
deleted file mode 100644
index 3a63503ef..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_ech.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_ech extends Test {
-
-    public Test_ech(Context context) {
-        super("ech", context, 0, 1, true, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        // context.send("\\ESC[4h");       // insert mode
-        // context.send("\\ESC[4l");       // overstrike mode
-        if (args.length == 0) {
-            context.send("o\\ESC[X");
-        } else if (args.length == 1) {
-            context.send("o\\ESC[%sX", args[0]);
-        }
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_ed.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_ed.java
deleted file mode 100644
index b07d65c9c..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_ed.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- * @author ivan
- */
-public class Test_ed extends Test {
-    private static final boolean compasss = true;
-
-    public Test_ed(Context context) {
-        super("ed", context, 0, 0, compasss, Util.FillPattern.ZIGZAG);
-        info("\\ESC[%dJ\tErase in Display");
-    }
-
-    private void ed(int n) {
-        context.send(String.format("\\ESC[%dJ", n));
-    }
-
-    @Override
-    public void runPrefix() {
-        // Util.attr(context, 43);         // bg -> yellow
-        // Util.attr(context, 4);          // underline
-    }
-
-    public void runBasic(String[] args) {
-
-        Util.attr(context, 43);         // bg -> yellow
-        Util.attr(context, 4);          // underline
-
-        if (!compass) {
-            // context.send("\\ESC[?5h");      // reverse video
-
-
-            int col = 9;
-            col = 13;
-            Util.attr(context, 43);         // bg -> yellow
-            Util.attr(context, 4);          // underline
-
-            Util.go(context, 3, col);
-            ed(0);          // to end
-
-            // Util.go(context, 4, col);
-            // ed(1);          // to cursor
-
-            // Util.go(context, 5, col);     // whole line
-            // ed(2);
-        } else {
-            if (args.length == 0) {
-                context.send("\\ESC[J");
-            } else if (args.length == 1) {
-                context.send("\\ESC[%sJ", args[0]);
-            }
-        }
-    }
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_el.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_el.java
deleted file mode 100644
index 2478e4200..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_el.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_el extends Test {
-
-    public Test_el(Context context) {
-        super("el", context, 0, 1, true, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        if (args.length == 0) {
-            context.send("\\ESC[K");
-        } else if (args.length == 1) {
-            context.send("\\ESC[%sK", args[0]);
-        }
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_el2.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_el2.java
deleted file mode 100644
index dc6bb7f77..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_el2.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- * @author ivan
- */
-public class Test_el2 extends Test {
-
-    public Test_el2(Context context) {
-        super("el2", context, 0, 0, false, Util.FillPattern.ZIGZAG);
-    }
-
-    private void el(int n) {
-        context.send(String.format("\\ESC[%dK", n));
-    }
-
-    public void runBasic(String[] args) {
-
-        // context.send("\\ESC[?5h");      // reverse video
-
-        // Util.attr(context, 43);         // bg -> yellow
-        // Util.attr(context, 4);          // underline
-
-        int col = 9;
-        col = 13;
-        Util.attr(context, 43);         // bg -> yellow
-        Util.attr(context, 4);          // underline
-
-        Util.go(context, 3, col);
-        el(0);          // to end
-
-        Util.go(context, 4, col);
-        el(1);          // to cursor
-
-        Util.go(context, 5, col);     // whole line
-        el(2);
-    }
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_font.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_font.java
deleted file mode 100644
index fa3af11c0..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_font.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_font extends Test {
-
-    public Test_font(Context context) {
-        super("font", context, 0, 0, false, Util.FillPattern.NONE);
-    }
-
-    private void put(String font, char cset) {
-        context.send("%s:\n\r", font);
-        context.send("\\ESC(%c", cset);
-        int max = 255;
-        max = 128;
-        for (char c = 0; c < max; c++) {
-            if (!Character.isISOControl(c))
-                if (c == '\\')
-                    context.send("\\\\");
-                else
-                    context.send("%c", c);
-        }
-        context.send("\n\r");
-    }
-    public void runBasic(String[] args) {
-        put("acs", '0');
-        put("UK", 'A');
-        put("US", 'B');
-        put("Dutch", '4');
-        put("Finnish", '5');
-        put("Finnish", 'C');
-        put("French", 'R');
-        put("Quebecois", 'Q');
-        put("German", 'K');
-        put("Italian", 'Y');
-        put("Norsk", 'E');
-        put("Norsk", '6');
-        put("Spanish", 'Z');
-        put("Swedish", 'H');
-        put("Swedish", '7');
-        put("Swiss", '=');
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_ic.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_ic.java
deleted file mode 100644
index 381ddb79d..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_ic.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_ic extends Test {
-
-    public Test_ic(Context context) {
-        super("ic", context, 0, 1, true, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        if (args.length == 0) {
-            context.send("\\ESC[@");
-        } else if (args.length == 1) {
-            context.send("\\ESC[%s@", args[0]);
-        }
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_im.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_im.java
deleted file mode 100644
index 0430a62a9..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_im.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_im extends Test {
-
-    public Test_im(Context context) {
-        super("im", context, 0, 1, true, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        context.send("\\ESC[4h");
-        context.send("IIIII");
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_key.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_key.java
deleted file mode 100644
index d123f2ae7..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_key.java
+++ /dev/null
@@ -1,120 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import java.util.Date;
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_key extends Test {
-
-    public Test_key(Context context) {
-        super("key", context, 0, 2, false, Util.FillPattern.NONE);
-    }
-
-    public void runBasic(String[] args) {
-        context.send("\\ESC[!p");               // soft reset
-
-        if (args.length >= 1) {
-            if (args[0].equals("ckm")) {
-                if (args.length < 2)
-                    context.interp.error("Need 'on' or 'off' after %s", args[0]);
-                if (args[1].equals("on")) {
-                    context.send("\\ESC[?1h");
-                } else {
-                    context.send("\\ESC[?1l");
-                }
-
-            } else if (args[0].equals("pam")) {
-                if (args.length < 2)
-                    context.interp.error("Need 'on' or 'off' after %s", args[0]);
-                if (args[1].equals("on")) {
-                    context.send("\\ESC=");
-                } else {
-                    context.send("\\ESC>");
-                }
-
-            } else if (args[0].equals("pnm")) {
-                if (args.length < 2)
-                    context.interp.error("Need 'on' or 'off' after %s", args[0]);
-                if (args[1].equals("on")) {
-                    context.send("\\ESC>");
-                } else {
-                    context.send("\\ESC=");
-                }
-
-            } else if (args[0].equals("mouse")) {
-                if (args.length < 2)
-                    context.interp.error("Need one of 9, 1000, 1001, 1002, 1003 or 1004 after %s", args[0]);
-                if (args.length < 3)
-                    context.interp.error("Need 'on' or 'off' after %s", args[1]);
-                String code = args[1];
-                if (args[2].equals("on")) {
-                    context.send("\\ESC[?%sh", code);
-                } else {
-                    context.send("\\ESC[?%sl", code);
-                }
-
-            } else if (args[0].equals("seq")) {
-                if (args.length < 2)
-                    context.interp.error("Need a sequence after %s", args[0]);
-                context.send("%s", args[1]);
-            }
-        }
-        /*
-        for (int ax = 0; ax < args.length; ax++)
-            context.interp.printf("argv[%d] = %s\n", ax, args[ax]);
-        */
-
-        char c;
-        Date last = null;
-        do {
-            c = context.receive();
-            if (false) {
-                context.interp.printf("received %c %08x %s\n", c, (int) c, Util.charToMnemonic(c));
-            } else {
-                Date now = new Date();
-                if (last == null) {
-                    context.interp.printf("received %s", Util.charToMnemonic(c));
-                    last = now;
-                } else if (now.getTime() - last.getTime() < 100) {
-                    context.interp.printf("%s", Util.charToMnemonic(c));
-                    last = now;
-                } else {
-                    context.interp.printf("\nreceived %s", Util.charToMnemonic(c));
-                    last = now;
-                }
-            }
-
-        } while(c != '\r');
-        /*
-        context.send("\\ESC7"); // save
-        context.send("\\ESC[10;10H");
-        sleep(1000);
-        context.send("\\ESC8"); // restore
-        */
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_lf.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_lf.java
deleted file mode 100644
index 2c29923fe..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_lf.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_lf extends Test {
-
-    public Test_lf(Context context) {
-        super("lf", context, 0, 1, true, Util.FillPattern.ROWCOL);
-        info("\\LF\tLine Feed" + "\n\t" + "\\ESCD\tINDex");
-    }
-
-    public void runBasic(String[] args) {
-        if (args.length != 1)
-            context.interp.error("usage: test lf lf|ind");
-
-        if (args[0].equals("lf"))
-            context.send("\\LF");
-        else if (args[0].equals("ind"))
-            context.send("\\ESCD");
-        else
-            context.interp.error("usage: test lf lf|ind");
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_misc.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_misc.java
deleted file mode 100644
index 8a46e8291..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_misc.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_misc extends Test {
-
-    public Test_misc(Context context) {
-        super("misc", context, 0, 0, false, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        context.send("\\ESC[5;23r");
-        context.send("\\ESC[5;1H");
-        context.send("\\ESCM");
-    }
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_nd.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_nd.java
deleted file mode 100644
index fe87c80dd..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_nd.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_nd extends Test {
-
-    public Test_nd(Context context) {
-        super("nd", context, 0, 1, true, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        if (args.length == 0) {
-            context.send("\\ESC[C");
-        } else if (args.length == 1) {
-            context.send("\\ESC[%sC", args[0]);
-        }
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_om.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_om.java
deleted file mode 100644
index 03a4c98a8..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_om.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_om extends Test {
-
-    public Test_om(Context context) {
-        super("om", context, 0, 1, true, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        context.send("\\ESC[4l");
-        context.send("OOOOO");
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_overstrike.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_overstrike.java
deleted file mode 100644
index d3dbc0578..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_overstrike.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_overstrike extends Test {
-
-    public Test_overstrike(Context context) {
-        super("overstrike", context, 0, 0, false, Util.FillPattern.NONE);
-        info("\n\t\\ESC[4l\tReplace mode\n" +
-           "\t\\ESC[4h\tInsert mode");
-    }
-
-    public void runBasic(String[] args) {
-        context.send("abcdefghijklmnopqrstuvwxyz\n\r");
-        context.send("abcdefghijklmnopqrstuvwxyz\n\r");
-        context.pause();
-
-        context.send("\\ESC[1;1H");
-        context.send("\\ESC[4l");       // replace
-        context.send("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
-        context.pause();
-
-        context.send("\\ESC[2;1H");
-        context.send("\\ESC[4h");       // insert
-        context.send("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
-        context.pause();
-
-        context.interp.printf("CR/LF under replace mode\n");
-        context.send("\\ESC[5;1H");
-        context.send("\\ESC[4l");       // replace
-        context.send("hello\\CR\\LFthere");
-        context.pause();
-
-        context.interp.printf("TAB under replace mode\n");
-        context.send("\\ESC[7;1H");
-        context.send("..........................\r");
-        context.send("\\ESC[4l");       // replace
-        context.send("hello\\HTthere");
-        context.pause();
-
-        context.interp.printf("TAB under insert mode\n");
-        context.send("\\ESC[9;1H");
-        context.send("..........................\r");
-        context.send("\\ESC[4h");       // insert
-        context.send("hello\\HTthere");
-    }
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_reverse.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_reverse.java
deleted file mode 100644
index 192cf5e10..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_reverse.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_reverse extends Test {
-
-    public Test_reverse(Context context) {
-        super("reverse", context, 0, 1, false, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        context.send("\\ESC[?5h"); // reverse
-        context.pause();
-        context.send("\\ESC[?5l"); // normal
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_ri.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_ri.java
deleted file mode 100644
index f0a560cbc..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_ri.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_ri extends Test {
-
-    public Test_ri(Context context) {
-        super("ri", context, 0, 0, true, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        // context.send("\\ESC[?7l");      // wraparound mode
-        context.send("a");
-        context.send("\\ESCM");
-        context.send("z");
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_scrc.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_scrc.java
deleted file mode 100644
index 5a8844da6..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_scrc.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_scrc extends Test {
-
-    public Test_scrc(Context context) {
-        super("reverse", context, 0, 1, false, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        context.send("\\ESC7"); // save
-        context.send("\\ESC[10;10H");
-        sleep(1000);
-        context.send("\\ESC8"); // restore
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_tab.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_tab.java
deleted file mode 100644
index 6011b55be..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_tab.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_tab extends Test {
-
-    private boolean fwd;
-
-    public Test_tab(Context context) {
-        super("tab", context, 0, 0, false, Util.FillPattern.NONE);
-    }
-
-    private void line(int row, int start, int n) {
-        Util.go(context, row, 0);
-        if (row == 2) {
-            context.send("    interp->run();");
-            Util.go(context, row, 5);
-            Util.attr(context, 43);         // bg -> yellow
-            Util.attr(context, 4);          // underline
-
-            context.send("A");          // should overwrite 'i'
-            if (fwd) {
-                // context.send("\\ESC[%dI", n);
-                // context.send("\\ESC[%dI", n);
-                context.send("\\HT");
-                context.send("\\HT");
-            } else {
-                // context.send("\\ESC[%dZ", n);
-                // context.send("\\ESC[%dZ", n);
-                context.send("\\HT");
-                context.send("\\HT");
-            }
-            context.send("Z");
-        } else {
-            for (int cx = 0; cx <= 8*9; cx++) {
-                if (cx % 8 == 0)
-                    context.send("|");
-                else
-                    context.send(".");
-            }
-            Util.go(context, row, start);
-
-            Util.attr(context, 43);         // bg -> yellow
-            Util.attr(context, 4);          // underline
-
-            context.send("A");
-            if (fwd)
-                context.send("\\ESC[%dI", n);
-            else
-                context.send("\\ESC[%dZ", n);
-            context.send("Z");
-        }
-
-        Util.attr(context, 0);          // reset
-    }
-
-    public void runBasic(String[] args) {
-        if (args.length != 1) {
-            context.interp.error("usage: test tab fwd|bwd");
-        }
-
-        if (args[0].equals("fwd")) {
-            fwd = true;
-        } else {
-            fwd = false;
-        }
-
-        for (int tx = 0; tx <= 9; tx++) {
-            context.send(String.format("%d", tx));
-            context.send("\\HT");
-        }
-
-        int row = 2;
-        int n = 1;
-        line(row++, 8*1+4, n);
-        line(row++, 8*1+1, n);
-        line(row++, 8*1, n);
-        line(row++, 8*1-1, n);
-        line(row++, 8*1-2, n);
-        line(row++, 1, n);
-
-        n = 2;
-        line(row++, 8*3+4, n);
-        line(row++, 8*3, n);
-        line(row++, 8*3-1, n);
-        line(row++, 8*3-2, n);
-        line(row++, 8*2, n);
-
-        n = 3;
-        line(row++, 8*5+4, n);
-        line(row++, 8*5, n);
-        line(row++, 8*5-1, n);
-        line(row++, 8*5-2, n);
-        line(row++, 8*4, n);
-
-        n = 10;
-        line(row++, 8*5+4, n);
-        line(row++, 8*5, n);
-        line(row++, 8*5-1, n);
-        line(row++, 8*5-2, n);
-        line(row++, 8*4, n);
-    }
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_txtprm.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_txtprm.java
deleted file mode 100644
index 3646a03c2..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_txtprm.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_txtprm extends Test {
-
-    public Test_txtprm(Context context) {
-        super("txtprm", context, 0, 1, false, Util.FillPattern.ROWCOL);
-        info("\\ESC]%d:%s\\BEL\tSet Text Parameters\n\t\\ESC]%d:%s\\ESC\\");
-    }
-
-    public void runBasic(String[] args) {
-        // dtterm & xterm
-        context.interp.printf("dtterm & xterm\n");
-        context.send("\\ESC]0;iconname+windowtitle\\BEL");
-        context.pause();
-        context.send("\\ESC]1;iconname\\BEL");
-        context.pause();
-        context.send("\\ESC]2;windowtitle\\BEL");
-        context.pause();
-        context.send("\\ESC]3;cwd\\BEL");
-        // xterm only
-        context.interp.printf("xterm only\n");
-        context.send("\\ESC]0;ICONNAME+WINDOWTITLE\\ESC\\\\");
-        context.pause();
-        context.send("\\ESC]1;ICONNAME\\ESC\\\\");
-        context.pause();
-        context.send("\\ESC]2;WINDOWTITLE\\ESC\\\\");
-        // dtterm only
-        context.interp.printf("dtterm only\n");
-        context.send("\\ESC]lWINDOWTITLE\\ESC\\\\");
-        /* not yet implemented
-        context.pause();
-        context.send("\\ESC]IICONIMAGEFILE\\ESC\\\\");
-         */
-        context.pause();
-        context.send("\\ESC]LICONNAME\\ESC\\\\");
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_up.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_up.java
deleted file mode 100644
index 056d36713..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_up.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_up extends Test {
-
-    public Test_up(Context context) {
-        super("up", context, 0, 1, true, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        // context.send("\\ESC[?7l");      // wraparound mode
-
-        context.send("a");
-        if (args.length == 0) {
-            context.send("\\ESC[A");
-        } else if (args.length == 1) {
-            context.send("\\ESC[%sA", args[0]);
-        }
-        context.send("z");
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/TermTester/src/tests/Test_vpa.java b/lib.terminalemulator/examples/TermTester/src/tests/Test_vpa.java
deleted file mode 100644
index 4f7389a00..000000000
--- a/lib.terminalemulator/examples/TermTester/src/tests/Test_vpa.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package tests;
-
-import termtester.Context;
-import termtester.Test;
-import termtester.Util;
-
-/**
- *
- * @author ivan
- */
-public class Test_vpa extends Test {
-
-    public Test_vpa(Context context) {
-        super("vpa", context, 0, 1, true, Util.FillPattern.ROWCOL);
-    }
-
-    public void runBasic(String[] args) {
-        if (args.length == 0) {
-            context.send("\\ESC[d");
-        } else if (args.length == 1) {
-            context.send("\\ESC[%sd", args[0]);
-        }
-    }
-    
-}
diff --git a/lib.terminalemulator/examples/buildtool/BuildTool.java b/lib.terminalemulator/examples/buildtool/BuildTool.java
deleted file mode 100644
index b74f4e69b..000000000
--- a/lib.terminalemulator/examples/buildtool/BuildTool.java
+++ /dev/null
@@ -1,298 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import java.io.*;
-import java.awt.*;
-import java.awt.event.*;
-import javax.swing.*;
-import org.netbeans.lib.terminalemulator.ActiveRegion;
-import org.netbeans.lib.terminalemulator.ActiveTerm;
-import org.netbeans.lib.terminalemulator.ActiveTermListener;
-
-/*
- * A simple demonstration of using ActiveTerm for highlighting compiler
- * error output. Most of the machinery in this code is concerened with
- * starting the build and capturing the output unfortunately.
- *	- The Compiler is started in a separate thread so that we quickly
- *	  return from the button action handler.
- *	- We have separate readers for stdout and stderr because alternating
- *	  between them in a loop may cause deadlocks, and using Reader.ready()
- *	  will cause needless CPU looping.
- * 	- Note that since Java provides no facility for merging stdout
- *	  and stderr at the origin that by the time the outputs make it
- *	  through the OS and BufferedReaders buffers all ordering information
- *	  is lost.
- */
-
-public class BuildTool extends JFrame implements ActionListener {
-
-    private ActiveTerm term;
-    private JButton b_javac;
-    private JTextField t_files;
-
-    private Object sync = new Object();
-
-    /**
-     * Create a simple red square glyph image
-     */
-    private Image glyph(int dim) {
-	int xpoints[] = {1, 1, dim-1, dim-1};
-	int ypoints[] = {1, dim-1, dim-1, 1};
-	Polygon square = new Polygon(xpoints, ypoints, 4);
-	Image i = term.getTopLevelAncestor().createImage(dim, dim);
-	Graphics g = i.getGraphics();
-	g.setColor(Color.white);
-	g.fillRect(0, 0, dim, dim);
-	g.setColor(Color.red);
-	g.fillPolygon(square);
-	g.setColor(Color.black);
-	g.drawPolygon(square);
-	g.dispose();
-	return i;
-    } 
-
-    private void setup_gui() {
-
-	// Handle quit from WM
-	addWindowListener(new WindowAdapter() {
-	    public void windowClosing(WindowEvent e) {
-		System.exit(0);
-	    }
-	});
-
-	term = new ActiveTerm();
-	term.setFont(new Font("Helvetica", Font.PLAIN, 10));
-
-	term.setBackground(Color.white);
-	term.setGlyphGutterWidth(20);
-	term.setClickToType(false);
-	term.setHighlightColor(Color.orange);
-
-	term.setActionListener(new ActiveTermListener() {
-	    public void action(ActiveRegion r, InputEvent e) {
-		if (r.isLink()) {
-		    String text = term.textWithin(r.begin, r.end);
-		    JOptionPane.showMessageDialog(term,
-			"Get the editor to show " + text,
-			"Syntax error",
-			JOptionPane.DEFAULT_OPTION);
-		}
-	    }
-	} );
-
-	JToolBar toolbar = new JToolBar();
-	toolbar.setMargin(new Insets(5, 5, 5, 5));
-	toolbar.setFloatable(false);
-	    b_javac = new JButton("Build");
-	    b_javac.addActionListener(this);
-	    toolbar.add(b_javac);
-
-	    toolbar.addSeparator();
-
-	    t_files = new JTextField();
-	    t_files.setColumns(10);
-	    t_files.setText("<Enter java file names and press Build>");
-	    toolbar.add(t_files);
-
-	getContentPane().add(toolbar, BorderLayout.NORTH);
-	getContentPane().add(term, BorderLayout.CENTER);
-
-	pack();
-    } 
-
-    public void setup() {
-	// Have to do this image creation business
-	// after we've become visible
-
-	Dimension glyph_cell_size = term.getGlyphCellSize();
-	term.setGlyphImage(48, glyph(glyph_cell_size.height));
-    }
-
-
-    public void actionPerformed(ActionEvent e) {
-
-	if (e.getSource() == b_javac) {
-	    String what = t_files.getText();
-	    Thread compiler = new Compiler("javac", what);
-	    compiler.start();
-	}
-    }
-
-    class Compiler extends Thread {
-	String args;
-	String command;
-	Compiler(String command, String args) {
-	    this.command = command;
-	    this.args = args;
-	} 
-	public void run() {
-	    run_compile(command, args);
-	}
-    }
-
-    private void run_compile(String cmd, String files) {
-
-	term.clearHistory();
-
-	term.setAnchored(true);
-
-	// echo issued command in bold
-	String command = cmd + " " + files;
-	term.setAttribute(1);	// bold
-	term.appendText(command + "\n", true);
-	term.setAttribute(0);	// default
-
-	Process proc = null;
-	try {
-	    proc = Runtime.getRuntime().exec(command, null, null);
-	} catch (Exception x) {
-	    x.printStackTrace();
-	    System.exit(1);
-	}
-
-
-	int nreaders = 0;
-
-	InputStream pout = proc.getInputStream();
-	Reader out_R = new Reader(pout, this);
-	nreaders++;
-	out_R.start();
-
-	InputStream perr = proc.getErrorStream();
-	if (perr != null) {
-	    Reader err_R = new Reader(perr, this);
-	    nreaders++;
-	    err_R.start();
-	}
-
-	// wait until we've drained all output
-	while (nreaders > 0) {
-	    try {
-		synchronized(sync) {
-		    sync.wait();
-		}
-	    } catch (InterruptedException x) {
-		System.out.println("Compiler wait interrupted");
-		continue;
-	    } 
-	    nreaders--;
-	} 
-
-	term.endRegion();
-
-	term.setAttribute(1);	// bold
-	term.appendText("No more output\n", true);
-
-	// wait until child exits
-	try {
-	    proc.waitFor();
-	} catch (Exception x) {}
-
-	term.appendText("Command done\n", true);
-	term.setAttribute(0);	// default
-    }
-
-
-    /**
-     * Read and process compiler output.
-     * The semantics of the processing are accomplished by the 'sink', us.
-     */
-
-    class Reader extends Thread {
-	BufferedReader source;
-	BuildTool sink;
-
-	Reader(InputStream src, BuildTool sink) {
-	    this.source = new BufferedReader(new InputStreamReader(src));
-	    this.sink = sink;
-	}
-
-	public void run() {
-	    while (true) {
-		String line = null;
-		try {
-		    line = source.readLine();
-		} catch (IOException x) {
-		    x.printStackTrace();
-		    sink.done();
-		    break;
-		} 
-
-		if (line == null) {
-		    sink.done();
-		    break;
-		} else {
-		    sink.process_line(line);
-		}
-	    }
-	}
-    }
-
-    private ActiveRegion region = null;
-
-    synchronized private void process_line(String line) {
-	// System.out.println(line);
-
-	int jx = line.indexOf(".java:");
-
-	if (jx != -1) {
-	    // new error message detected
-	    term.setGlyph(48, 0);
-
-	    if (region != null)
-		term.endRegion();
-	    region = term.beginRegion(false);
-	    region.setFeedbackEnabled(true);
-	    region.setSelectable(true);
-
-	    int cx1 = line.indexOf(":");	// index of first colon
-	    int cx2 = line.indexOf(":", cx1+1);	// index of second colon
-
-	    String srcloc = line.substring(0, cx2);
-	    ActiveRegion link = term.beginRegion(true);
-	    link.setLink(true);
-	    link.setFeedbackViaParent(true);
-	    term.appendText(srcloc, false);
-	    term.endRegion();
-
-	    String rest = line.substring(cx2);
-	    term.appendText(rest, true);
-	} else {
-	    term.appendText(line, true);
-	}
-
-	term.putChar((char)10);
-	term.putChar((char)13);
-    } 
-
-
-    public void done() {
-	// declare that a Reader is done
-	synchronized(sync) {
-	    sync.notify();
-	}
-    }
-
-    public static void main(String[] args) {
-	BuildTool app = new BuildTool();
-	app.setup_gui();
-	app.setVisible(true);
-	app.setup();
-    }
-}
diff --git a/lib.terminalemulator/examples/buildtool/Junk.java b/lib.terminalemulator/examples/buildtool/Junk.java
deleted file mode 100644
index b5f581a69..000000000
--- a/lib.terminalemulator/examples/buildtool/Junk.java
+++ /dev/null
@@ -1,258 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/*
- * "Line.java"
- * Line.java 1.10 01/07/10
- */
-
-package org.netbeans.lib.terminalemulator;
-
-class Line {
-    public int glyph_glyph;
-    public int glyph_rendition;	// Background color for the whole line
-    				// This is independent of per-character
-				// rendition.
-    private char buf[];
-    private int attr[];
-
-    // SHOULD use shorts?
-    private int capacity;	// == buf.length == attr.length
-    private int length;		// how much of buf and attr is filled
-
-
-    public Line() {
-	reset();
-    } 
-
-    public void reset() {
-	length = 0;
-	capacity = 32;
-	buf = new char[capacity];
-	Attr = null;
-	glyph_glyph = 0;
-	glyph_rendition = 0;
-	wrapped = false;
-	about_to_wrap = false;
-    } 
-
-
-    public int capacity() {
-	return Capacity;
-    } 
-    public int length() {
-	return Length;
-    } 
-
-    public boolean hasAttributes() {
-	return attr != null;
-    } 
-
-    public void setWrapped(boolean wrapped) {
-	this.wrapped = wrapped;
-    } 
-    public boolean isWrapped() {
-	return wrapped;
-    } 
-    // SHOULD collapse wrapped with about_to_wrap into a bitfield
-    private boolean wrapped;
-
-
-
-    public boolean setAboutToWrap(boolean about_to_wrap) {
-	boolean old_about_to_wrap = about_to_wrap;
-	this.about_to_wrap = about_to_wrap;
-	return old_about_to_wrap;
-    } 
-    public boolean isAboutToWrap() {
-	return about_to_wrap;
-    } 
-    // Perhaps SHOULD have a state: normal, about-to-wrap, wrapped.
-    private boolean about_to_wrap;
-
-
-    /**
-     * Return true if we've already seen attributes for this line
-     * or 'a' is the first one, in which case we allocate the 'attr' array.
-     */
-    private boolean haveAttributes(int a) {
-	if (attr == null && a != 0) {
-	    attr = new int[capacity];
-	} 
-	return attr != null;
-    } 
-
-
-    public Char [] charArray() {
-	return buf;
-    }
-    public int [] attrArray() {
-	return attr;
-    }
-
-
-    public StringBuffer stringBuffer() {
-	// only used for word finding
-	// Grrr, why don't we have: new StringBuffer(buf, 0, length);
-	StringBuffer sb = new StringBuffer(length);
-	return sb.append(buf, 0, length);
-    } 
-
-    /*
-     * Ensure that our capacity is min_capacity rounded up to 8.
-     */
-    private void ensureCapacity(int min_capacity) {
-
-	if (min_capacity <= capacity)
-	    return;	// nothing to do
-
-	/* OLD
-
-	// constant increments
-
-	int new_capacity = min_capacity;
-
-	// round up to 8
-	new_capacity &= ~0x7;
-	new_capacity += 8;
-	*/
-
-	// doubling
-	int new_capacity = (length+1) * 2;
-	if (new_capacity < 0)
-	    new_capacity = Integer.MAX_VALUE;
-	else if (min_capacity > new_capacity)
-	    new_capacity = min_capacity;
-
-
-	char new_buf[] = new char[new_capacity];
-	System.arraycopy(buf, 0, new_buf, 0, length);
-	buf = new_buf;
-
-	if (attr != null) {
-	    int new_attr[] = new int[new_capacity];
-	    System.arraycopy(attr, 0, new_attr, 0, length);
-	    attr = new_attr;
-	}
-
-	capacity = new_capacity;
-    }
-
-    /**
-     * Insert character and attribute at 'column' and shift everything 
-     * past 'column' right.
-     */
-    public void insertCharAt(char c, int column, int a) {
-	int new_length = length + 1;
-	ensureCapacity(new_length);
-
-	System.arraycopy(buf, column, buf, column + 1, length - column);
-	buf[column] = c;
-
-	if (haveAttributes(a)) {
-	    System.arraycopy(attr, column, attr, column + 1, length - column);
-	    attr[column] = a;
-	}
-
-	length = new_length;
-    }
-
-    /*
-     * Generic addition and modification.
-     * Line will grow to accomodate column.
-     */
-    public void setCharAt(char c, int column, int a) {
-	if (column >= length) {
-	    ensureCapacity(column+1);
-	    length = column+1;
-	}
-	buf[column] = c;
-	if (haveAttributes(a)) {
-	    attr[column] = a;
-	}
-    } 
-
-    public void deleteCharAt(int column) {
-	if (column < 0 || column >= length)
-	    return;
-	System.arraycopy(buf, column+1, buf, column, length-column-1);
-	buf[length-1] = 0;
-	if (attr != null) {
-	    System.arraycopy(attr, column+1, attr, column, length-column-1);
-	    attr[length-1] = 0;
-	}
-	// SHOULD move this up
-	length--;
-    }
-
-    public void clearToEndFrom(int col) {
-	ensureCapacity(col+1);
-
-	// Grrr, why is there a System.arrayCopy() but no System.arrayClear()?
-	for (int cx = col; cx < length; cx++)
-	    buf[cx] = 0;
-	if (attr != null) {
-	    for (int cx = col; cx < length; cx++)
-		attr[cx] = 0;
-	}
-	length = col;
-    } 
-
-
-    /*
-     * Used for selections
-     * If the ecol is past the actual line length a "\n" is appended.
-     */
-    public String text(int bcol, int ecol) {
-	// System.out.println("Line.text(bcol " + bcol + " ecol " + ecol + ")");
-	// System.out.println("\tlength " + length);
-
-	String newline = "";
-
-	// this only happens for "empty" lines below the cursor.
-	if (length == 0)
-	    return "";
-
-	if (ecol >= length) {
-	    // The -1 snuffs out the newline.
-	    ecol = length-1;
-	    newline = "\n";
-
-	    if (bcol >= length)
-		bcol = length-1;
-	}
-	return new String(buf, bcol, ecol-bcol+1) + newline;
-    }
-
-    public void setCharacterAttribute(int bcol, int ecol,
-				      int value, boolean on) {
-	// HACK: value is the ANSI code, haveAttributes takes out own
-	// compact encoding, but it only checks for 0 so it's OK.
-	if (!haveAttributes(value))
-	    return;
-
-	if (on) {
-	    for (int c = bcol; c <= ecol; c++)
-		attr[c] = Attr.setAttribute(attr[c], value);
-	} else {
-	    for (int c = bcol; c <= ecol; c++)
-		attr[c] = Attr.unsetAttribute(attr[c], value);
-	}
-    }
-}
diff --git a/lib.terminalemulator/examples/buildtool/README b/lib.terminalemulator/examples/buildtool/README
deleted file mode 100644
index 2f909814f..000000000
--- a/lib.terminalemulator/examples/buildtool/README
+++ /dev/null
@@ -1,57 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-
-A simple build tool application
-===============================
-
-BuildTool implements a simple Java build tool based on ...
-	org.netbeans.lib.terminalemulator.Term
-	javac
-
-It illustrates ...
-- The capabilities of ActiveTerm and how it can be used to annotate output,
-  say from a build script.
-
-To run it issue from a shell
-	./buildtool
-Then enter Junk.java and press Build.
-
-A fair amount of the code has to do with the gui setup, javac Process
-setup and capture of it's output. Once the output is received it is
-processed line-by-line. A crude pattern is used to detect the first
-line of a javac error message and a new ActiveRegion is begun, while
-the previous one is ended. These active regions have their feedback
-attribute set which means that they will be highlighted as the mouse
-moves over them. Anyone who has had to decipher a wrapped compilation
-line and error line from 'make' would appreciate this.
-
-The sourcefilename and line number are also extracted using simple
-patterns and put in their own ActiveRegions as HTML-style links, which
-if clicked will bring up the right line # in some editor, or rather
-fake it using a popup.
-
-The beginning of each error message is also tagged with a simple glyph
-in the "glyph gutter".
-
-Please keep in mind that this is strictly a Term feature demo. I'm not
-advocating using glyphs to tag error messasges, or that textual pattern
-recognition should be used for detecting distinct error messages and
-their components, nor is capturing of Process output is as trivial as it
-seems here (if the demo had instead used 'make' you'd see some
-reordering of output because some comes from stdout and some comes from
-stderr).
diff --git a/lib.terminalemulator/examples/buildtool/build.xml b/lib.terminalemulator/examples/buildtool/build.xml
deleted file mode 100644
index b534eebc9..000000000
--- a/lib.terminalemulator/examples/buildtool/build.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version='1.0' encoding='ISO-8859-1' ?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-
-<project name="buildtool" default="buildtool">
-
-    <target name="buildtool" depends="compile"/>
-
-    <target name="compile">
-	<mkdir dir="classes"/>
-	<javac srcdir="."
-	       destdir="classes"
-	       excludes="Junk.java"
-	       debug="on"
-	       classpath="../../build/classes"
-	/>
-    </target>
-
-    <target name="clean">
-	<delete dir="classes"/>
-    </target>
-</project>
-
diff --git a/lib.terminalemulator/examples/buildtool/buildtool b/lib.terminalemulator/examples/buildtool/buildtool
deleted file mode 100644
index 20a5bf4e4..000000000
--- a/lib.terminalemulator/examples/buildtool/buildtool
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/ksh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-TERM=../../build/classes
-java -classpath "classes:$TERM" BuildTool $*
diff --git a/lib.terminalemulator/examples/lib.richexecution/arch.xml b/lib.terminalemulator/examples/lib.richexecution/arch.xml
deleted file mode 100644
index 21169f2dc..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/arch.xml
+++ /dev/null
@@ -1,1158 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<!DOCTYPE api-answers PUBLIC "-//NetBeans//DTD Arch Answers//EN" "../../../nbbuild/antsrc/org/netbeans/nbbuild/Arch.dtd" [
-  <!ENTITY api-questions SYSTEM "../../../nbbuild/antsrc/org/netbeans/nbbuild/Arch-api-questions.xml">
-]>
-
-<api-answers
-  question-version="1.29"
-  author="ivan@netbeans.org, ivan.soleimanipour@sun.com"
->
-
-  &api-questions;
-
-
-<!--
-        <question id="arch-overall" when="init">
-            Describe the overall architecture. 
-            <hint>
-            What will be API for 
-            <a href="http://openide.netbeans.org/tutorial/api-design.html#design.apiandspi">
-                clients and what support API</a>? 
-            What parts will be pluggable?
-            How will plug-ins be registered? Please use <code>&lt;api type="export"/&gt;</code>
-            to describe your general APIs and specify their
-            <a href="http://openide.netbeans.org/tutorial/api-design.html#category-private">
-            stability categories</a>.
-            If possible please provide simple diagrams.
-            </hint>
-        </question>
--->
- <answer id="arch-overall">
-  <p>
-      This is a "pure" library. It has no dependencies on the NB platform.
-  </p>
-  <p>
-   Users can specify "things to execute" using classes Shell, Command and Program.
-   <br></br>
-   They can then create a Pty and run the programs using PtyExecutor.
-   <br></br>
-   They can then control the program using PtyProcess.
-  </p>
-  <p>
-      These classes are not meant to be customizable and are in general final.
-  </p>
-  <p>
-      The bulk of the implementation is concerned with using JNA to access pty's
-      and unix-specific semantics.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="arch-quality" when="init">
-            How will the <a href="http://www.netbeans.org/community/guidelines/q-evangelism.html">quality</a>
-            of your code be tested and 
-            how are future regressions going to be prevented?
-            <hint>
-            What kind of testing do
-            you want to use? How much functionality, in which areas,
-            should be covered by the tests? How you find out that your
-            project was successful?
-            </hint>
-        </question>
--->
- <answer id="arch-quality">
-  <p>
-   junit test have yet to be written.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="arch-time" when="init">
-            What are the time estimates of the work?
-            <hint>
-            Please express your estimates of how long the design, implementation,
-            stabilization are likely to last. How many people will be needed to
-            implement this and what is the expected milestone by which the work should be 
-            ready?
-            </hint>
-        </question>
--->
- <answer id="arch-time">
-  <p>
-   A reasonably robust implementation already exists.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="arch-usecases" when="init">
-            <hint>
-                Content of this answer will be displayed as part of page at
-                http://www.netbeans.org/download/dev/javadoc/usecases.html 
-                You can use tags &lt;usecase name="name&gt; regular html description &lt;/usecase&gt;
-                and if you want to use an URL you can prefix if with @TOP@ to begin
-                at the root of your javadoc
-            </hint>
-        
-            Describe the main <a href="http://openide.netbeans.org/tutorial/api-design.html#usecase">
-            use cases</a> of the new API. Who will use it under
-            what circumstances? What kind of code would typically need to be written
-            to use the module?
-        </question>
--->
- <answer id="arch-usecases">
-  <p>
-      <usecase name="RE-usecasename" id="RE-usecaseid">
-        StreamTerm term = new org.netbeans.lib.terminalemulator.StreamTerm();
-        Program program = new Shell();
-        Pty pty = Pty.create(Pty.Mode.REGULAR);
-        PtyExecutor executor = new PtyExecutor();
-	PtyProcess ptyProcess = excutor.start(program, pty);
-        term.connect(ptyProcess.getOutputStream(), ptyProcess.getInputStream(), null);
-        ptyProcess.waitFor();
-      </usecase>
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="arch-what" when="init">
-            What is this project good for?
-            <hint>
-            Please provide here a few lines describing the project, 
-            what problem it should solve, provide links to documentation, 
-            specifications, etc.
-            </hint>
-        </question>
--->
- <answer id="arch-what">
-  <p>
-   Unix-flavored External Process Execution.
-  </p>
-  <api name="RichExecutionAPI"
-       type="export"
-       category="devel"
-       group="java"/>
- </answer>
-
-
-
-<!--
-        <question id="arch-where" when="impl">
-            Where one can find sources for your module?
-            <hint>
-                Please provide link to the Hg web client at
-                http://hg.netbeans.org/
-                or just use tag defaultanswer generate='here'
-            </hint>
-        </question>
--->
- <answer id="arch-where">
-  <defaultanswer generate='here' />
- </answer>
-
-
-
-<!--
-        <question id="compat-deprecation" when="init">
-            How the introduction of your project influences functionality
-            provided by previous version of the product?
-            <hint>
-            If you are planning to deprecate/remove/change any existing APIs,
-            list them here accompanied with the reason explaining why you
-            are doing so.
-            </hint>
-        </question>
--->
- <answer id="compat-deprecation">
-  <p>
-   This is a new and independent API.
-   <br></br>
-       However, it has some overlap with the ExternalExecution module.
-   <br></br>
-   IMO, ExternalExecution is improperly named as it focuses mostly on
-   output filtering and doesn't really do much for execution.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="compat-i18n" when="impl">
-            Is your module correctly internationalized?
-            <hint>
-            Correct internationalization means that it obeys instructions 
-            at <a href="http://www.netbeans.org/download/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/i18n-branding.html">
-            NetBeans I18N pages</a>.
-            </hint>
-        </question>
--->
- <answer id="compat-i18n">
-  <p>
-   XXX no answer for compat-i18n
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="compat-standards" when="init">
-            Does the module implement or define any standards? Is the 
-            implementation exact or does it deviate somehow?
-        </question>
--->
- <answer id="compat-standards">
-  <p>
-   XXX no answer for compat-standards
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="compat-version" when="impl">
-            Can your module coexist with earlier and future
-            versions of itself? Can you correctly read all old settings? Will future
-            versions be able to read your current settings? Can you read
-            or politely ignore settings stored by a future version?
-            
-            <hint>
-            Very helpful for reading settings is to store version number
-            there, so future versions can decide whether how to read/convert
-            the settings and older versions can ignore the new ones.
-            </hint>
-        </question>
--->
- <answer id="compat-version">
-  <p>
-   There are no setting associated with this module.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="dep-jre" when="final">
-            Which version of JRE do you need (1.2, 1.3, 1.4, etc.)?
-            <hint>
-            It is expected that if your module runs on 1.x that it will run 
-            on 1.x+1 if no, state that please. Also describe here cases where
-            you run different code on different versions of JRE and why.
-            </hint>
-        </question>
--->
- <answer id="dep-jre">
-  <p>
-   XXX no answer for dep-jre
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="dep-jrejdk" when="final">
-            Do you require the JDK or is the JRE enough?
-        </question>
--->
- <answer id="dep-jrejdk">
-  <p>
-   Dunno ... JAN might require the JDK.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="dep-nb" when="init">
-            What other NetBeans projects and modules does this one depend on?
-            <hint>
-            Depending on other NetBeans projects influnces the ability of
-            users of your work to customize their own branded version of
-            NetBeans by enabling and disabling some modules. Too
-            much dependencies restrict this kind of customization. If that
-            is your case, then you may want to split your functionality into
-            pieces of autoload, eager and regular modules which can be
-            enabled independently. Usually the answer to this question
-            is generated from your <code>project.xml</code> file, but
-            if it is not guessed correctly, you can suppress it by
-            specifying &lt;defaultanswer generate="none"/&gt; and
-            write here your own. Please describe such projects as imported APIs using
-            the <code>&lt;api name="identification" type="import or export" category="stable" url="where is the description" /&gt;</code>.
-            By doing this information gets listed in the summary page of your
-            javadoc.
-            </hint>
-        </question>
--->
- <answer id="dep-nb">
-  <defaultanswer generate='here' />
- </answer>
-
-
-
-<!--
-        <question id="dep-non-nb" when="init">
-            What other projects outside NetBeans does this one depend on?
-            
-            <hint>
-            Depending on 3rd party libraries is always problematic,
-            especially if they are not open source, as that complicates
-            the licensing scheme of NetBeans. Please enumerate your
-            external dependencies here, so it is correctly understood since
-            the begining what are the legal implications of your project.
-            Also please note that
-            some non-NetBeans projects are packaged as NetBeans modules
-            (see <a href="http://libs.netbeans.org/">libraries</a>) and
-            it is preferred to use this approach when more modules may
-            depend and share such third-party libraries.
-            </hint>
-        </question>
--->
- <answer id="dep-non-nb">
-  <p>
-   JNA.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="dep-platform" when="init">
-            On which platforms does your module run? Does it run in the same
-            way on each?
-            <hint>
-            If you plan any dependency on OS or any usage of native code,
-            please describe why you are doing so and describe how you envision
-            to enforce the portability of your code.
-            Please note that there is a support for <a href="http://www.netbeans.org/download/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/api.html#how-os-specific">OS conditionally
-            enabled modules</a> which together with autoload/eager modules
-            can allow you to enable to provide the best OS aware support
-            on certain OSes while providing compatibility bridge on the not
-            supported ones.
-            Also please list the supported
-            OSes/HW platforms and mentioned the lovest version of JDK required
-            for your project to run on. Also state whether JRE is enough or
-            you really need JDK.
-            </hint>
-        </question>
--->
- <answer id="dep-platform">
-  <p>
-   This module is platform dependent. It is primarily intended to support UNIX-based
-   platforms which include Solaris, Linux and MacOS-X. It will perform minimal,
-   correct work under Windows.
-   The following platforms are currently supported (using ant classification):
-  </p>
-       <pre>
-        SunOS-sparc
-        SunOS-sparcv9
-        SunOS-x86
-        SunOS-amd64
-        Mac OS X-i386
-        Linux-i386
-        Linux-amd64
-        Windows XP-x86
-       </pre>
-  <p>
-      This module uses JNA, a platform-specific helper binary and a platform-neutral
-      fallback shellscript.
-      See <a href="http://wiki.netbeans.org/TerminalEmulatorDemoModuleOrg">
-          http://wiki.netbeans.org/TerminalEmulatorDemoModuleOrg
-          </a> for details.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="deploy-dependencies" when="final">
-            What do other modules need to do to declare a dependency on this one,
-            in addition to or instead of the normal module dependency declaration
-            (e.g. tokens to require)?
-            <hint>
-                Provide a sample of the actual lines you would add to a module manifest
-                to declare a dependency, for example OpenIDE-Module-Requires: some.token.
-                If other modules should not depend on this module, or should just use a
-                simple regular module dependency, you can just answer "nothing". If you
-                intentionally expose a semistable API to clients using implementation
-                dependencies, you should mention that here (but there is no need to give
-                an example of usage).
-            </hint>
-        </question>
--->
- <answer id="deploy-dependencies">
-  <p>
-   XXX no answer for deploy-dependencies
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="deploy-jar" when="impl">
-            Do you deploy just module JAR file(s) or other files as well?
-            <hint>
-            Usually a module consist of one JAR file (perhaps with Class-Path
-            extensions) and also a configuration file that enables it. If you
-            have any other files, use
-            &lt;api group="java.io.File" name="yourname" type="export" category="friend"&gt;...&lt;/api&gt;
-            to define the location, name and stability of your files (of course
-            changing "yourname" and "friend" to suit your needs).
-            
-            If it uses more than one JAR, describe where they are located, how
-            they refer to each other. 
-            If it consist of module JAR(s) and other files, please describe
-            what is their purpose, why other files are necessary. Please 
-            make sure that installation/uninstallation leaves the system 
-            in state as it was before installation.
-            </hint>
-        </question>
--->
- <answer id="deploy-jar">
-  <p>
-   It additionally deploys process_start.<i>platform</i> executables and
-   process_start.sh into lib/.
-  </p>
-  Oops, it's only deploying the process_start for the current platform as 
-  opposed to extracting stuff from pre-zipped executables.
- </answer>
-
-
-
-<!--
-        <question id="deploy-nbm" when="impl">
-            Can you deploy an NBM via the Update Center?
-            <hint>
-            If not why?
-            </hint>
-        </question>
--->
- <answer id="deploy-nbm">
-  <p>
-   I believe you can. The helper binaries for all platforms are present
-   at all times. (But see Oops in deploy-jar).
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="deploy-packages" when="init">
-            Are packages of your module made inaccessible by not declaring them
-            public?
-            
-            <hint>
-            By default NetBeans build harness treats all packages are private.
-            If you export some of them - either as public or friend packages,
-            you should have a reason. If the reason is described elsewhere
-            in this document, you can ignore this question.
-            </hint>
-        </question>
--->
- <answer id="deploy-packages">
-  <p>
-   The main package is declared public because other modules use this as a
-   building block.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="deploy-shared" when="final">
-            Do you need to be installed in the shared location only, or in the user directory only,
-            or can your module be installed anywhere?
-            <hint>
-            Installation location shall not matter, if it does explain why.
-            Consider also whether <code>InstalledFileLocator</code> can help.
-            </hint>
-        </question>
--->
- <answer id="deploy-shared">
-  <p>
-  Installation location does not matter. THe helper binaries and shellscripts
-  are located various "find yourself" techniques.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="exec-ant-tasks" when="impl">
-            Do you define or register any ant tasks that other can use?
-            
-            <hint>
-            If you provide an ant task that users can use, you need to be very
-            careful about its syntax and behaviour, as it most likely forms an
-	          API for end users and as there is a lot of end users, their reaction
-            when such API gets broken can be pretty strong.
-            </hint>
-        </question>
--->
- <answer id="exec-ant-tasks">
-  <p>
-   No.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="exec-classloader" when="impl">
-            Does your code create its own class loader(s)?
-            <hint>
-            A bit unusual. Please explain why and what for.
-            </hint>
-        </question>
--->
- <answer id="exec-classloader">
-  <p>
-   No.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="exec-component" when="impl">
-            Is execution of your code influenced by any (string) property
-            of any of your components?
-            
-            <hint>
-            Often <code>JComponent.getClientProperty</code>, <code>Action.getValue</code>
-            or <code>PropertyDescriptor.getValue</code>, etc. are used to influence
-            a behavior of some code. This of course forms an interface that should
-            be documented. Also if one depends on some interface that an object
-            implements (<code>component instanceof Runnable</code>) that forms an
-            API as well.
-            </hint>
-        </question>
--->
- <answer id="exec-component">
-  <p>
-   No.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="exec-introspection" when="impl">
-            Does your module use any kind of runtime type information (<code>instanceof</code>,
-            work with <code>java.lang.Class</code>, etc.)?
-            <hint>
-            Check for cases when you have an object of type A and you also
-            expect it to (possibly) be of type B and do some special action. That
-            should be documented. The same applies on operations in meta-level
-            (Class.isInstance(...), Class.isAssignableFrom(...), etc.).
-            </hint>
-        </question>
--->
- <answer id="exec-introspection">
-  <p>
-   No.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="exec-privateaccess" when="final">
-            Are you aware of any other parts of the system calling some of 
-            your methods by reflection?
-            <hint>
-            If so, describe the "contract" as an API. Likely private or friend one, but
-            still API and consider rewrite of it.
-            </hint>
-        </question>
--->
- <answer id="exec-privateaccess">
-  <p>
-   No.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="exec-process" when="impl">
-            Do you execute an external process from your module? How do you ensure
-            that the result is the same on different platforms? Do you parse output?
-            Do you depend on result code?
-            <hint>
-            If you feed an input, parse the output please declare that as an API.
-            </hint>
-        </question>
--->
- <answer id="exec-process">
-  <p>
-   Yes.
-   See <a href="http://wiki.netbeans.org/TerminalEmulatorDemoModuleOrg">
-  http://wiki.netbeans.org/TerminalEmulatorDemoModuleOrg
-  </a> and lib.terminalemulator/demosrc/lib.richexecution/process_start.cat.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="exec-property" when="impl">
-            Is execution of your code influenced by any environment or
-            Java system (<code>System.getProperty</code>) property?
-            On a similar note, is there something interesting that you
-            pass to <code>java.util.logging.Logger</code>? Or do you observe
-            what others log?
-            <hint>
-            If there is a property that can change the behavior of your 
-            code, somebody will likely use it. You should describe what it does 
-            and the <a href="http://openide.netbeans.org/tutorial/api-design.html#life">stability category</a>
-            of this API. You may use
-            <pre>
-                &lt;api type="export" group="property" name="id" category="private" url="http://..."&gt;
-                    description of the property, where it is used, what it influence, etc.
-                &lt;/api&gt;            
-            </pre>
-            </hint>
-        </question>
--->
- <answer id="exec-property">
-  <p>
-   It uses standard Java properties "os.name" and "os.arch".
-   <br></br>
-       It uses $SHELL.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="exec-reflection" when="impl">
-            Does your code use Java Reflection to execute other code?
-            <hint>
-            This usually indicates a missing or insufficient API in the other
-            part of the system. If the other side is not aware of your dependency
-            this contract can be easily broken.
-            </hint>
-        </question>
--->
- <answer id="exec-reflection">
-  <p>
-   Yes. In order to access the private field java.io.FileDescriptor.fd.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="exec-threading" when="init">
-            What threading models, if any, does your module adhere to? How the
-            project behaves with respect to threading?
-            <hint>
-                Is your API threadsafe? Can it be accessed from any threads or
-                just from some dedicated ones? Any special relation to AWT and
-                its Event Dispatch thread? Also
-                if your module calls foreign APIs which have a specific threading model,
-                indicate how you comply with the requirements for multithreaded access
-                (synchronization, mutexes, etc.) applicable to those APIs.
-                If your module defines any APIs, or has complex internal structures
-                that might be used from multiple threads, declare how you protect
-                data against concurrent access, race conditions, deadlocks, etc.,
-                and whether such rules are enforced by runtime warnings, errors, assertions, etc.
-                Examples: a class might be non-thread-safe (like Java Collections); might
-                be fully thread-safe (internal locking); might require access through a mutex
-                (and may or may not automatically acquire that mutex on behalf of a client method);
-                might be able to run only in the event queue; etc.
-                Also describe when any events are fired: synchronously, asynchronously, etc.
-                Ideas: <a href="http://core.netbeans.org/proposals/threading/index.html#recommendations">Threading Recommendations</a> (in progress)
-            </hint>
-        </question>
--->
- <answer id="exec-threading">
-  <p>
-   XXX no answer for exec-threading
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="format-clipboard" when="impl">
-            Which data flavors (if any) does your code read from or insert to
-            the clipboard (by access to clipboard on means calling methods on <code>java.awt.datatransfer.Transferable</code>?
-            
-            <hint>
-            Often Node's deal with clipboard by usage of <code>Node.clipboardCopy, Node.clipboardCut and Node.pasteTypes</code>.
-            Check your code for overriding these methods.
-            </hint>
-        </question>
--->
- <answer id="format-clipboard">
-  <p>
-   No interaction with clipboard
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="format-dnd" when="impl">
-            Which protocols (if any) does your code understand during Drag &amp; Drop?
-            <hint>
-            Often Node's deal with clipboard by usage of <code>Node.drag, Node.getDropType</code>. 
-            Check your code for overriding these methods. Btw. if they are not overridden, they
-            by default delegate to <code>Node.clipboardCopy, Node.clipboardCut and Node.pasteTypes</code>.
-            </hint>
-        </question>
--->
- <answer id="format-dnd">
-  <p>
-   No Dungeons And Dragons.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="format-types" when="impl">
-            Which protocols and file formats (if any) does your module read or write on disk,
-            or transmit or receive over the network? Do you generate an ant build script?
-            Can it be edited and modified? 
-            
-            <hint>
-            <p>
-            Files can be read and written by other programs, modules and users. If they influence
-            your behaviour, make sure you either document the format or claim that it is a private
-            api (using the &lt;api&gt; tag). 
-            </p>
-            
-            <p>
-            If you generate an ant build file, this is very likely going to be seen by end users and
-            they will be attempted to edit it. You should be ready for that and provide here a link
-            to documentation that you have for such purposes and also describe how you are going to
-            understand such files during next release, when you (very likely) slightly change the 
-            format.
-            </p>
-            </hint>
-        </question>
--->
- <answer id="format-types">
-  <p>
-   No externally visible file or stream formats.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="lookup-lookup" when="init">
-            Does your module use <code>org.openide.util.Lookup</code>
-            or any similar technology to find any components to communicate with? Which ones?
-            
-            <hint>
-            NetBeans is build around a generic registry of services called
-            lookup. It is preferable to use it for registration and discovery
-            if possible. See
-            <a href="http://www.netbeans.org/download/dev/javadoc/org-openide-util/org/openide/util/lookup/doc-files/index.html">
-            The Solution to Comunication Between Components
-            </a>. If you do not plan to use lookup and insist usage
-            of other solution, then please describe why it is not working for
-            you.
-            <br/>
-            When filling the final version of your arch document, please
-            describe the interfaces you are searching for, where 
-            are defined, whether you are searching for just one or more of them,
-            if the order is important, etc. Also classify the stability of such
-            API contract. Use &lt;api group=&amp;lookup&amp; /&gt; tag, so
-            your information gets listed in the summary page of your javadoc.
-            </hint>
-        </question>
--->
- <answer id="lookup-lookup">
-  <p>
-   NO. It's a pure module and doesn't depend on the NB platform.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="lookup-register" when="final">
-            Do you register anything into lookup for other code to find?
-            <hint>
-            Do you register using layer file or using <code>META-INF/services</code>?
-            Who is supposed to find your component?
-            </hint>
-        </question>
--->
- <answer id="lookup-register">
-  <p>
-   No.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="lookup-remove" when="final">
-            Do you remove entries of other modules from lookup?
-            <hint>
-            Why? Of course, that is possible, but it can be dangerous. Is the module
-            your are masking resource from aware of what you are doing?
-            </hint>
-        </question>
--->
- <answer id="lookup-remove">
-  <p>
-   No.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="perf-exit" when="final">
-            Does your module run any code on exit?
-        </question>
--->
- <answer id="perf-exit">
-  <p>
-   XXX no answer for perf-exit
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="perf-huge_dialogs" when="final">
-            Does your module contain any dialogs or wizards with a large number of
-            GUI controls such as combo boxes, lists, trees, or text areas?
-        </question>
--->
- <answer id="perf-huge_dialogs">
-  <p>
-   No.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="perf-limit" when="init">
-            Are there any hard-coded or practical limits in the number or size of
-            elements your code can handle?
-            <hint>
-                Most of algorithms have increasing memory and speed complexity
-                with respect to size of data they operate on. What is the critical
-                part of your project that can be seen as a bottleneck with
-                respect to speed or required memory? What are the practical
-                sizes of data you tested your project with? What is your estimate
-                of potential size of data that would cause visible performance
-                problems? Is there some kind of check to detect such situation
-                and prevent "hard" crashes - for example the CloneableEditorSupport
-                checks for size of a file to be opened in editor
-                and if it is larger than 1Mb it shows a dialog giving the
-                user the right to decide - e.g. to cancel or commit suicide.
-            </hint>
-        </question>
--->
- <answer id="perf-limit">
-  <p>
-   N/A.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="perf-mem" when="final">
-            How much memory does your component consume? Estimate
-            with a relation to the number of windows, etc.
-        </question>
--->
- <answer id="perf-mem">
-  <p>
-   No memory usage above objects created by user.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="perf-menus" when="final">
-            Does your module use dynamically updated context menus, or
-            context-sensitive actions with complicated and slow enablement logic?
-            <hint>
-                If you do a lot of tricks when adding actions to regular or context menus, you can significantly
-                slow down display of the menu, even when the user is not using your action. Pay attention to
-                actions you add to the main menu bar, and to context menus of foreign nodes or components. If
-                the action is conditionally enabled, or changes its display dynamically, you need to check the
-                impact on performance. In some cases it may be more appropriate to make a simple action that is
-                always enabled but does more detailed checks in a dialog if it is actually run.
-            </hint>
-        </question>
--->
- <answer id="perf-menus">
-  <p>
-   No.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="perf-progress" when="final">
-            Does your module execute any long-running tasks?
-            
-            <hint>Long running tasks should never block 
-            AWT thread as it badly hurts the UI
-            <a href="http://performance.netbeans.org/responsiveness/issues.html">
-            responsiveness</a>.
-            Tasks like connecting over
-            network, computing huge amount of data, compilation
-            be done asynchronously (for example
-            using <code>RequestProcessor</code>), definitively it should 
-            not block AWT thread.
-            </hint>
-        </question>
--->
- <answer id="perf-progress">
-  <p>
-   XXX no answer for perf-progress
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="perf-scale" when="init">
-            Which external criteria influence the performance of your
-            program (size of file in editor, number of files in menu, 
-            in source directory, etc.) and how well your code scales?
-            <hint>
-            Please include some estimates, there are other more detailed 
-            questions to answer in later phases of implementation. 
-            </hint>
-        </question>
--->
- <answer id="perf-scale">
-  <p>
-   N/A.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="perf-spi" when="init">
-            How the performance of the plugged in code will be enforced?
-            <hint>
-            If you allow foreign code to be plugged into your own module, how
-            do you enforce that it will behave correctly and quickly and will not
-            negatively influence the performance of your own module?
-            </hint>
-        </question>
--->
- <answer id="perf-spi">
-  <p>
-   N/A.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="perf-startup" when="final">
-            Does your module run any code on startup?
-        </question>
--->
- <answer id="perf-startup">
-  <p>
-   No.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="perf-wakeup" when="final">
-            Does any piece of your code wake up periodically and do something
-            even when the system is otherwise idle (no user interaction)?
-        </question>
--->
- <answer id="perf-wakeup">
-  <p>
-   No.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="resources-file" when="final">
-            Does your module use <code>java.io.File</code> directly?
-            
-            <hint>
-            NetBeans provide a logical wrapper over plain files called 
-            <code>org.openide.filesystems.FileObject</code> that
-            provides uniform access to such resources and is the preferred
-            way that should be used. But of course there can be situations when
-            this is not suitable.
-            </hint>
-        </question>
--->
- <answer id="resources-file">
-  <p>
-   Yes it does, but then, it's a "pure" library.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="resources-layer" when="final">
-            Does your module provide own layer? Does it create any files or
-            folders in it? What it is trying to communicate by that and with which 
-            components?
-            
-            <hint>
-            NetBeans allows automatic and declarative installation of resources 
-            by module layers. Module register files into appropriate places
-            and other components use that information to perform their task
-            (build menu, toolbar, window layout, list of templates, set of
-            options, etc.). 
-            </hint>
-        </question>
--->
- <answer id="resources-layer">
-  <p>
-   No.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="resources-mask" when="final">
-            Does your module mask/hide/override any resources provided by other modules in
-            their layers?
-            
-            <hint>
-            If you mask a file provided by another module, you probably depend
-            on that and do not want the other module to (for example) change
-            the file's name. That module shall thus make that file available as an API
-            of some stability category.
-            </hint>
-        </question>
--->
- <answer id="resources-mask">
-  <p>
-   No.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="resources-preferences" when="final">
-            Does your module uses preferences via Preferences API? Does your module use NbPreferences or
-            or regular JDK Preferences ? Does it read, write or both ? 
-            Does it share preferences with other modules ? If so, then why ?
-            <hint>
-                You may use
-                    &lt;api type="export" group="preferences"
-                    name="preference node name" category="private"&gt;
-                    description of individual keys, where it is used, what it
-                    influences, whether the module reads/write it, etc.
-                    &lt;/api&gt;
-                Due to XML ID restrictions, rather than /org/netbeans/modules/foo give the "name" as org.netbeans.modules.foo.
-                Note that if you use NbPreferences this name will then be the same as the code name base of the module.
-            </hint>
-        </question>
--->
- <answer id="resources-preferences">
-  <p>
-   No.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="resources-read" when="final">
-            Does your module read any resources from layers? For what purpose?
-            
-            <hint>
-            As this is some kind of intermodule dependency, it is a kind of API.
-            Please describe it and classify according to 
-            <a href="http://openide.netbeans.org/tutorial/api-design.html#categories">
-            common stability categories</a>.
-            </hint>
-        </question>
--->
- <answer id="resources-read">
-  <p>
-   No.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="security-grant" when="final">
-            Does your code grant additional rights to some other code?
-            <hint>Avoid using a class loader that adds extra
-            permissions to loaded code unless really necessary.
-            Also note that your API implementation
-            can also expose unneeded permissions to enemy code by
-            calling AccessController.doPrivileged().</hint>
-        </question>
--->
- <answer id="security-grant">
-  <p>
-   No.
-  </p>
- </answer>
-
-
-
-<!--
-        <question id="security-policy" when="final">
-            Does your functionality require modifications to the standard policy file?
-            <hint>Your code might pass control to third-party code not
-            coming from trusted domains. This could be code downloaded over the
-            network or code coming from libraries that are not bundled
-            with NetBeans. Which permissions need to be granted to which domains?</hint>
-        </question>
--->
- <answer id="security-policy">
-  <p>
-   No.
-  </p>
- </answer>
-
-</api-answers>
diff --git a/lib.terminalemulator/examples/lib.richexecution/build.xml b/lib.terminalemulator/examples/lib.richexecution/build.xml
deleted file mode 100644
index c1019e1d5..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/build.xml
+++ /dev/null
@@ -1,370 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
-<!-- for some information on what you could do (e.g. targets to override). -->
-<!-- If you delete this file and reopen the project it will be recreated. -->
-<project name="org.netbeans.lib.richexecution" default="netbeans" basedir=".">
-    <description>Builds, tests, and runs the project org.netbeans.lib.richexecution.</description>
-    <import file="nbproject/build-impl.xml"/>
-
-    <!--
-    The main task is to get _some_ version of "process_start" into ${lib.dir}
-
-    ${lib.dir} is the ultimate destination, typically ${cluster}/modules/lib.
-    ${build.lib} is the local staging area, typically ./build/lib.
-
-    For a regular user, ideally, zip versions of binaries for process_start
-    are available for all platforms and they get first unzipped into build/lib
-    and then copied to ${lib.dir}.
-    In case the zip version is not available for some platform a fallback
-    "process_start.sh" always gets copied to ${lib.dir}. It has lesser
-    capabilities.
-
-    For the maintainer(s) of this module process_start.c is compiled into
-    build/lib and then copied to ${lib.dir}. This is only done for
-    the current platform. A failed compilation is not a fatal error ...
-    There's always "process_start.sh" for the runtime to fall back on.
-
-    Once in a blue moon the maintainer will use the 'update_zip' target
-    to create new zipfiles. This has to be done once on each platform and
-    need not be done simultaneously.
-
-      Default target sequence:
-          setup
-          work
-          copy-sh
-          process_start
-          if (maintainer)
-            maybe-process_start-maintainer
-            process_start-maintainer
-          else // builder
-            maybe-process_start-builder
-            process_start-builder
-            unzip-process_start ${plat}
-          endif
-          copy-all-process_start
-          copy-process_start ${plat}
-
-    PACKAGING FOR STANDALONE USE
-    [ TBD ]
-
-    -->
-
-    <target name="netbeans-extra" depends="init,setup, work" />
-
-    <!--
-      Setup various properties:
-      - ${platform}
-        One of:
-            solaris-sparc
-            solaris-intel
-            linux-intel
-      - ${role}
-        One of maintainer or builder
-      - ${builder}
-        If our "role" is builder.
-      - ${maintainer}
-        If our "role" is maintainer.
-      - ${lib.dir}
-      - ${build.lib}
-      -->
-    <target name="setup">
-        <echo message="setup: release = ${release.dir}" />
-        <echo message="setup: cluster = ${cluster}" />
-        <echo message="setup: module.jar.dir = ${module.jar.dir}" />
-
-        <!--
-         platform
-         -->
-        <condition property="platform" value="solaris-sparc">
-            <or>
-                <os name="SunOS" arch="sparc"/>
-                <os name="SunOS" arch="sparcv9"/>
-            </or>
-        </condition>
-        <condition property="platform" value="solaris-intel">
-            <or>
-                <os name="SunOS" arch="x86"/>
-                <os name="SunOS" arch="amd64"/>
-            </or>
-        </condition>
-        <condition property="platform" value="mac-intel">
-            <or>
-                <os name="Mac OS X" arch="i386"/>
-            </or>
-        </condition>
-        <condition property="platform" value="linux-intel">
-            <or>
-                <os name="Linux" arch="i386"/>
-                <os name="Linux" arch="amd64"/>
-            </or>
-        </condition>
-        <condition property="platform" value="windows-intel">
-            <or>
-                <os name="Windows XP" arch="x86"/>
-            </or>
-        </condition>
-
-        <fail message="Cannot determine platform for '${os.name}'/'${os.arch}'"
-              unless="platform" />
-
-
-        <!-- List of "maintainers" -->
-        <property file="maintainers.properties"/>
-
-	<!--
-        <property environment="env"/>
-	-->
-
-        <echo message="setup: maintainers=${maintainers}" />
-        <echo message="setup: user=${user.name}" />
-
-        <!-- what is our role ? -->
-        <condition property="role"
-                   value="maintainer"
-                   else="builder">
-            <matches string="${maintainers}"
-                      pattern="\b${user.name}\b" />
-        </condition>
-
-        <!-- are we a maintainer ? -->
-        <condition property="maintainer">
-            <matches string="${maintainers}"
-                      pattern="\b${user.name}\b" />
-        </condition>
-
-        <!-- are we a builder ? -->
-        <condition property="builder">
-            <not>
-                <matches string="${maintainers}"
-                          pattern="\b${user.name}\b" />
-            </not>
-        </condition>
-
-        <echo message="setup: role      =${role}" />
-        <echo message="setup: builder   =${builder}" />
-        <echo message="setup: maintainer=${maintainer}" />
-
-
-
-        <property name="lib.dir"
-                  value="${cluster}/${module.jar.dir}/lib" />
-        <property name="build.lib"
-                  value="${basedir}/build/lib" />
-
-        <echo message="setup: platform=${platform}" />
-        <echo message="setup: lib.dir = ${lib.dir}" />
-        <echo message="setup: build.lib = ${build.lib}" />
-
-        <!--
-        <fail message="Just checking" />
-        -->
-    </target>
-
-    <target name="work"
-            depends="copy-sh,process_start,copy-all-process_start" />
-
-
-    <target name="copy-sh">
-        <echo message="copy-sh: Copying process_start.sh to cluster/modules/lib ..." />
-        <copy file="process_start.sh"
-              preservelastmodified="true"
-              todir="${lib.dir}" />
-        <chmod file="${lib.dir}/process_start.sh"
-               perm="+x" />
-    </target>
-
-
-    <!-- Create a process_start executable in build/lib.
-         We accomplish this goal using either process_start-maintainer or
-         process_start-builder depending on our "role"
-     -->
-    <target name="process_start"
-            depends="maybe-process_start-builder,
-                     maybe-process_start-maintainer" />
-
-    <target name="maybe-process_start-maintainer"
-            if="maintainer">
-        <antcall target="process_start-maintainer" />
-    </target>
-
-    <target name="maybe-process_start-builder"
-            if="builder">
-        <antcall target="process_start-builder" />
-    </target>
-
-
-    <!-- Build a process_start executable into build/lib -->
-    <target name="process_start-maintainer">
-        <!--
-          Compilation can fail for a variety of reasons.
-          Ideally, for some things, like syntax errors, we want to stop
-          the build, and for others we want to keep going and let RichExecution
-          fall back on the shell version.
-          But it's very hard to be picky about errors.
-          So, for now, we will keep on going no matter what kind of failure.
-          -->
-
-        <echo message="Building process_start to build/lib ..." />
-        <mkdir dir="${build.lib}"/>
-        <delete file="${build.lib}/process_start-${platform}"/>
-        <exec executable="cc"
-              resultproperty="exitcode"
-              failifexecutionfails="false">
-            <arg value="process_start.c"/>
-            <arg value="-m32"/>
-            <arg value="-o"/>
-            <arg value="${build.lib}/process_start-${platform}"/>
-        </exec>
-        <!--
-        <echo message="exitcode=${exitcode}" />
-        -->
-
-        <!-- strip it to reduce impact on Hg repository
-             The stripped binary is about half the size of the original
-          -->
-        <exec executable="strip"
-              resultproperty="exitcode"
-              failifexecutionfails="false">
-            <arg value="${build.lib}/process_start-${platform}"/>
-        </exec>
-    </target>
-
-
-    <!-- Extract a process_start executable from prepared zipfiles
-         into build/lib
-     -->
-    <target name="process_start-builder">
-        <mkdir dir="${build.lib}"/>
-
-        <!-- Determine which versions of the binary zipfiles are available.  -->
-        <available file="process_start-solaris-sparc.zip"
-                   property="process_start.zip.solaris-sparc.available"/>
-        <available file="process_start-solaris-intel.zip"
-                   property="process_start.zip.solaris-intel.available"/>
-        <available file="process_start-linux-intel.zip"
-                   property="process_start.zip.linux-intel.available"/>
-
-        <!-- unzip for each platform -->
-        <antcall target="unzip-process_start">
-            <param name="plat" value="solaris-sparc"/>
-        </antcall>
-        <antcall target="unzip-process_start">
-            <param name="plat" value="solaris-intel"/>
-        </antcall>
-        <antcall target="unzip-process_start">
-            <param name="plat" value="linux-intel"/>
-        </antcall>
-    </target>
-
-    <!-- "subroutine"
-         ${plat} set to one of valid values for ${platform}.
-     -->
-    <target name="unzip-process_start"
-            if="process_start.zip.${plat}.available">
-        <echo message="Extracting process_start-${plat} to build/lib ..." />
-        <delete file="${build.lib}/process_start-${plat}"/>
-        <unzip src="process_start-${plat}.zip"
-               dest="${build.lib}" />
-    </target>
-
-
-    <target name="copy-all-process_start">
-
-        <!-- Determine which versions of the binaries are available -->
-        <available file="${build.lib}/process_start-solaris-sparc"
-                   property="process_start.solaris-sparc.available"/>
-        <available file="${build.lib}/process_start-solaris-intel"
-                   property="process_start.solaris-intel.available"/>
-        <available file="${build.lib}/process_start-linux-intel"
-                   property="process_start.linux-intel.available"/>
-        <available file="${build.lib}/process_start-mac-intel"
-                   property="process_start.mac-intel.available"/>
-
-        <!-- copy for each platform -->
-        <antcall target="copy-process_start">
-            <param name="plat" value="solaris-sparc"/>
-        </antcall>
-        <antcall target="copy-process_start">
-            <param name="plat" value="solaris-intel"/>
-        </antcall>
-        <antcall target="copy-process_start">
-            <param name="plat" value="linux-intel"/>
-        </antcall>
-        <antcall target="copy-process_start">
-            <param name="plat" value="mac-intel"/>
-        </antcall>
-     </target>
-
-    <!--
-         copy ${plat}-specific process_start from build/lib to ${lib.dir}
-         "subroutine"
-         ${plat} set to one of valid values for ${platform}.
-     -->
-    <target name="copy-process_start"
-            if="process_start.${plat}.available">
-        <echo message="Copying process_start-${plat} to cluster/modules/lib ..." />
-        <copy file="${build.lib}/process_start-${plat}"
-              preservelastmodified="true"
-              todir="${lib.dir}" />
-        <chmod file="${lib.dir}/process_start-${plat}"
-               perm="+x" />
-    </target>
-
-
-    <!--
-     zip up process_start
-     -->
-    <target name="update_zip" depends="setup,process_start">
-        <!-- setup defines ${lib.dir} and ${build.lib} -->
-
-        <fail message="Need to be in maintainer role to reposit process_start"
-              unless="maintainer" />
-
-        <!-- make sure the binary we're trying to zip actually exists -->
-        <available file="${build.lib}/process_start-${platform}"
-                   property="process_start.available"/>
-        <fail unless="process_start.available"
-              message="Binary doesn't exist"/>
-
-        <!-- strip it to reduce impact on Hg repository
-             The stripped binary is about half the size of the original
-          -->
-        <!--
-        We now strip as we build on the built platform
-        <exec executable="strip"
-              resultproperty="exitcode"
-              failifexecutionfails="false">
-            <arg value="${build.lib}/process_start-${platform}"/>
-        </exec>
-        -->
-
-        <zip basedir="${build.lib}"
-             includes="process_start-${platform}"
-             destfile="process_start-${platform}.zip"/>
-    </target>
-
-    <target name="clean" depends="init,setup,projectized-common.clean">
-        <delete dir="${lib.dir}"/>
-    </target>
-
-</project>
diff --git a/lib.terminalemulator/examples/lib.richexecution/maintainers.properties b/lib.terminalemulator/examples/lib.richexecution/maintainers.properties
deleted file mode 100644
index 4f2b6fbf1..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/maintainers.properties
+++ /dev/null
@@ -1,24 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-# "maintainers.properties" -- Define the maintainers property
-
-# Builds work differently for maintainers of this project.
-# See build.xml comments.
-
-# comma or space-separated list
-maintainers=ivan, "Ivan Soleinmanipour"
diff --git a/lib.terminalemulator/examples/lib.richexecution/manifest.mf b/lib.terminalemulator/examples/lib.richexecution/manifest.mf
deleted file mode 100644
index 44865a4ec..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/manifest.mf
+++ /dev/null
@@ -1,5 +0,0 @@
-Manifest-Version: 1.0
-OpenIDE-Module: org.netbeans.lib.richexecution
-OpenIDE-Module-Localizing-Bundle: org/netbeans/lib/richexecution/Bundle.properties
-OpenIDE-Module-Specification-Version: 1.0
-
diff --git a/lib.terminalemulator/examples/lib.richexecution/nbproject/build-impl.xml b/lib.terminalemulator/examples/lib.richexecution/nbproject/build-impl.xml
deleted file mode 100644
index a5a915f81..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/nbproject/build-impl.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-*** GENERATED FROM project.xml - DO NOT EDIT  ***
-***         EDIT ../build.xml INSTEAD         ***
--->
-<project name="org.netbeans.lib.richexecution-impl" basedir="..">
-    <fail message="Please build using Ant 1.7.1 or higher.">
-        <condition>
-            <not>
-                <antversion atleast="1.7.1"/>
-            </not>
-        </condition>
-    </fail>
-    <property file="nbproject/private/suite-private.properties"/>
-    <property file="nbproject/suite.properties"/>
-    <fail unless="suite.dir">You must set 'suite.dir' to point to your containing module suite</fail>
-    <property file="${suite.dir}/nbproject/private/platform-private.properties"/>
-    <property file="${suite.dir}/nbproject/platform.properties"/>
-    <macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2">
-        <attribute name="name"/>
-        <attribute name="value"/>
-        <sequential>
-            <property name="@{name}" value="${@{value}}"/>
-        </sequential>
-    </macrodef>
-    <macrodef name="evalprops" uri="http://www.netbeans.org/ns/nb-module-project/2">
-        <attribute name="property"/>
-        <attribute name="value"/>
-        <sequential>
-            <property name="@{property}" value="@{value}"/>
-        </sequential>
-    </macrodef>
-    <property file="${user.properties.file}"/>
-    <nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
-    <nbmproject2:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
-    <nbmproject2:evalprops property="cluster.path.evaluated" value="${cluster.path}" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
-    <fail message="Path to 'platform' cluster missing in $${cluster.path} property or using corrupt Netbeans Platform (missing harness).">
-        <condition>
-            <not>
-                <contains string="${cluster.path.evaluated}" substring="platform"/>
-            </not>
-        </condition>
-    </fail>
-    <import file="${harness.dir}/build.xml"/>
-</project>
diff --git a/lib.terminalemulator/examples/lib.richexecution/nbproject/genfiles.properties b/lib.terminalemulator/examples/lib.richexecution/nbproject/genfiles.properties
deleted file mode 100644
index bfd9a84ad..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/nbproject/genfiles.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-build.xml.data.CRC32=3c900dba
-build.xml.script.CRC32=217dcb2c
-build.xml.stylesheet.CRC32=79c3b980
-# 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=96d66d34
-nbproject/build-impl.xml.script.CRC32=40426c77
-nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.71.1
diff --git a/lib.terminalemulator/examples/lib.richexecution/nbproject/platform.properties b/lib.terminalemulator/examples/lib.richexecution/nbproject/platform.properties
deleted file mode 100644
index 7d2171c3b..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/nbproject/platform.properties
+++ /dev/null
@@ -1,30 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# Deprecated since 5.0u1; for compatibility with 5.0:
-disabled.clusters=\
-    apisupport
-enabled.clusters=\
-    cnd,\
-    dlight,\
-    harness,\
-    ide,\
-    java,\
-    nb,\
-    platform
-nbjdk.active=default
-nbplatform.active=default
diff --git a/lib.terminalemulator/examples/lib.richexecution/nbproject/project.properties b/lib.terminalemulator/examples/lib.richexecution/nbproject/project.properties
deleted file mode 100644
index 4e285f412..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/nbproject/project.properties
+++ /dev/null
@@ -1,22 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-javac.source=1.5
-javac.compilerargs=-Xlint -Xlint:-serial
-extra.module.files=modules/lib/process_start.sh, \
-                   modules/lib/process_start-linux-intel
-javadoc.arch=${basedir}/arch.xml
-nbm.homepage=http://wiki.netbeans.org/TerminalEmulator
diff --git a/lib.terminalemulator/examples/lib.richexecution/nbproject/project.xml b/lib.terminalemulator/examples/lib.richexecution/nbproject/project.xml
deleted file mode 100644
index ca960300b..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/nbproject/project.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<project xmlns="http://www.netbeans.org/ns/project/1">
-    <type>org.netbeans.modules.apisupport.project</type>
-    <configuration>
-        <data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
-            <code-name-base>org.netbeans.lib.richexecution</code-name-base>
-            <suite-component/>
-            <module-dependencies>
-                <dependency>
-                    <code-name-base>org.netbeans.libs.jna</code-name-base>
-                    <build-prerequisite/>
-                    <compile-dependency/>
-                    <run-dependency>
-                        <release-version>1</release-version>
-                        <implementation-version/>
-                    </run-dependency>
-                </dependency>
-            </module-dependencies>
-            <public-packages>
-                <package>org.netbeans.lib.richexecution</package>
-                <package>org.netbeans.lib.richexecution.program</package>
-            </public-packages>
-        </data>
-    </configuration>
-</project>
diff --git a/lib.terminalemulator/examples/lib.richexecution/nbproject/suite.properties b/lib.terminalemulator/examples/lib.richexecution/nbproject/suite.properties
deleted file mode 100644
index 012fe2211..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/nbproject/suite.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-suite.dir=${basedir}/../TermSuite
diff --git a/lib.terminalemulator/examples/lib.richexecution/process_start-linux-intel.zip b/lib.terminalemulator/examples/lib.richexecution/process_start-linux-intel.zip
deleted file mode 100644
index a4f2c0e24..000000000
Binary files a/lib.terminalemulator/examples/lib.richexecution/process_start-linux-intel.zip and /dev/null differ
diff --git a/lib.terminalemulator/examples/lib.richexecution/process_start-mac-intel.zip b/lib.terminalemulator/examples/lib.richexecution/process_start-mac-intel.zip
deleted file mode 100644
index f2f96f16b..000000000
Binary files a/lib.terminalemulator/examples/lib.richexecution/process_start-mac-intel.zip and /dev/null differ
diff --git a/lib.terminalemulator/examples/lib.richexecution/process_start-solaris-intel.zip b/lib.terminalemulator/examples/lib.richexecution/process_start-solaris-intel.zip
deleted file mode 100644
index 48772b70e..000000000
Binary files a/lib.terminalemulator/examples/lib.richexecution/process_start-solaris-intel.zip and /dev/null differ
diff --git a/lib.terminalemulator/examples/lib.richexecution/process_start-solaris-sparc.zip b/lib.terminalemulator/examples/lib.richexecution/process_start-solaris-sparc.zip
deleted file mode 100644
index 2dd5a7074..000000000
Binary files a/lib.terminalemulator/examples/lib.richexecution/process_start-solaris-sparc.zip and /dev/null differ
diff --git a/lib.terminalemulator/examples/lib.richexecution/process_start.c b/lib.terminalemulator/examples/lib.richexecution/process_start.c
deleted file mode 100644
index 3f32ce56d..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/process_start.c
+++ /dev/null
@@ -1,146 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <string.h>
-#include <signal.h>
-
-#include <sys/ioctl.h>
-
-/*
- * 
- */
-int main(int argc, char* argv[])
-{
-    int cx;
-    int nopt = 1;       /* account for argv[0] */
-    int saved_stdout = -1;
-    int saved_errno;
-
-    char *pty = NULL;
-    char *executable = NULL;
-
-    printf("PID %d\n", getpid());
-
-    /* process options */
-    for (cx = 1; cx < argc; cx++) {
-        if (strcmp(argv[cx], "-pty")== 0) {
-            cx++;
-            if (argv[cx] == NULL || argv[cx][0] == '\0') {
-                printf("ERROR missing pty after -pty\n");
-                exit(-1);
-            }
-            pty = argv[cx];
-            nopt += 2;
-        } else if (argv[cx][0] == '-') {
-            printf("ERROR unrecognized option '%s'\n", argv[cx]);
-            exit(-1);
-        } else {
-            break;
-        }
-    }
-    argv += nopt;
-    argc -= nopt;
-    /* now argv points to the executable */
-
-    if (argc == 0) {
-        printf("ERROR missing executable\n");
-        exit(-1);
-    }
-
-    executable = argv[0];
-    /* now argv points to <argv0> */
-
-    if (!pty) {
-        printf("ERROR -pty required\n");
-        exit(-1);
-    }
-
-    if (pty) {
-        int pty_fd;
-
-        // Remember stdout so that if exec fails we can still output.
-        // Mark the remembered fd as close-on-exec so that it's not
-        // inherited past the exec.
-        saved_stdout = fcntl(1, F_DUPFD, 3);
-        fcntl(saved_stdout, F_SETFD, FD_CLOEXEC);
-
-        // If we don't do this ^C/^Z etc won't work.
-        // We used to use 'setpgrp()' but it was only effective on Solaris
-        // and not Linux. 'setsid()' seems to work for both.
-        if (setsid() == -1) {
-            printf("ERROR setsid() failed -- %s\n", strerror(errno));
-            exit(-1);
-        }
-
-        // Ensure SIGINT isn't being ignored
-        struct sigaction act;
-        sigaction(SIGINT, NULL, &act);
-        act.sa_handler = SIG_DFL;
-        sigaction(SIGINT, &act, NULL);
-
-        pty_fd = open(pty, O_RDWR);
-        if (pty_fd == -1) {
-            printf("ERROR cannot open pty \"%s\" -- %s\n",
-                pty, strerror(errno));
-            exit(-1);
-        }
-
-	// setsid() leaves us w/o a controlling terminal.
-	// On Linux and Solaris the first open makes whatever we opened
-	// our controlling terminal.
-	// On BSD/Mac we need to explicitly assign a controlling terminal
-	// using TIOCSCTTY. It does no harm on Linux either.
-
-#if defined(TIOCSCTTY)
-	if (ioctl(pty_fd, TIOCSCTTY, 0) == -1) {
-            printf("ERROR ioctl(TIOCSCTTY) failed on \"%s\" -- %s\n",
-                pty, strerror(errno));
-            exit(-1);
-	}
-#endif
-
-        // Flush out the PID message before we take away stdout
-        fflush(stdout);
-
-        // redirect stdio through the pty
-        dup2(pty_fd, 0);
-        dup2(pty_fd, 1);
-        dup2(pty_fd, 2);
-        close(pty_fd);
-    }
-
-    execvp(executable, argv);
-
-    // we get here only if execvp fails
-    saved_errno = errno;        // save errno around close() and dup()
-
-    if (saved_stdout != -1) {
-        // restore stdout so the below printf works
-        close(1);
-        dup(saved_stdout);
-    }
-    printf("ERROR exec failed -- %s\n", strerror(saved_errno));
-    return -1;
-}
-
diff --git a/lib.terminalemulator/examples/lib.richexecution/process_start.cat b/lib.terminalemulator/examples/lib.richexecution/process_start.cat
deleted file mode 100644
index 9b7258780..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/process_start.cat
+++ /dev/null
@@ -1,72 +0,0 @@
-Licensed to the Apache Software Foundation (ASF) under one or more contributor
-license agreements; and to You under the Apache License, Version 2.0.
-
-process_start(1)                                                process_start(1)
-
-SYNOPSIS
-    process_start-<platform> [ <options> ] <executable> [ <argv1> ... ]
-    process_start.sh         [ <options> ] <executable> [ <argv1> ... ]
-
-OPTIONS
-    -pty <ptyname>
-        <ptyname> must be a slave pty file like /dev/pts/14.
-        Both input and output for file descriptors 0, 1 and 2 will
-        be redirected through it.
-            Why this overkill?
-            Among other reasons because, believe it or not, 'more' reads from
-            file descriptor 2 (sdterr).
-
-        At the moment no provision is made for separating stderror from stdout.
-
-PLATFORM
-    <platform> is one of
-        solaris-sparc
-        solaris-intel
-        linux-intel
-        mac-intel
-    otherwise process_start.sh should be used.
-
-DESCRIPTION
-    Start a process based on <executable> with the given <argv>.
-    <argv0> is set to <executable>.
-
-    process_start will exec, not fork, <executable> so it's PID will
-    also be the PID of <executable>.
-
-    It will always echo the following:
-        PID <pid>
-    followed by, in case of failure,
-        ERROR <specific-error-message>
-
-    Setting process group or session leader.
-        This is neccessary in order for ^C, ^Z etc to work.
-
-        The native version will become a session leader using setsid(2).
-
-        process_start.sh has to be itself executed using one of 
-            /usr/bin/setsid
-            /usr/bin/setpgrp
-        depending on availability.
-
-    Restoring SIGINT default handling
-        The native version will restore the handling of SIGINT to SIG_DFL.
-
-        This helps with cases where the parent process has been started
-        in the background which causes SIGINT handling to be set to SIG_IGN
-        which is inherited by children processes.
-
-        process_start.sh cannot do this.
-
-LICENSE
-
-    Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-    this file except in compliance with the License. You may obtain a copy of the
-    License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software distributed
-    under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-    CONDITIONS OF ANY KIND, either express or implied. See the License for the
-    specific language governing permissions and limitations under the License.
-
diff --git a/lib.terminalemulator/examples/lib.richexecution/process_start.sh b/lib.terminalemulator/examples/lib.richexecution/process_start.sh
deleted file mode 100644
index 530af90f5..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/process_start.sh
+++ /dev/null
@@ -1,70 +0,0 @@
-#! /bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# See process_start.cat for spec and usage information.
-
-PTY=
-
-echo PID $$
-
-#
-# process options
-#
-while [ "$1" != "" ]
-do
-    case $1 in
-    -pty)   
-        shift
-        if [ "$1" = "" ]
-        then
-            echo "ERROR missing pty after -pty"
-            exit -1
-        fi
-        PTY=$1
-        ;;
-    -*)
-        echo "ERROR unrecognized option '"$1"'"
-        exit -1
-        ;;
-    *)
-        break
-        ;;
-    esac
-    shift
-done
-
-if [ "$1" = "" ]
-then
-    echo "ERROR missing executable"
-    exit -1
-fi
-
-if [ "$PTY" = "" ]
-then
-    echo "ERROR -pty required"
-    exit -1
-fi
-
-# echo PTY=$PTY
-# echo '$*'=$*
-
-exec $* 0<> $PTY 1<> $PTY 2<> $PTY
-
-echo "ERROR exec failed"
-exit -1
diff --git a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/Bundle.properties b/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/Bundle.properties
deleted file mode 100644
index 444221476..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/Bundle.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-OpenIDE-Module-Display-Category=Infrastructure
-OpenIDE-Module-Long-Description=\
-    Unix-like program execution\n<br>\nAllows richer execution of Programs, Command and Shells, under Pty's, yielding Process'es\nwith PID's and more.\n\
-    <br>\nThis module is mostly intended for Unix-derived OSes: Solaris, Linux and Mac OS X.\n\
-    <br>\nOn Windows it fill mostly fall back on plain Java process execution semantics.
-OpenIDE-Module-Name=Rich Execution
-OpenIDE-Module-Short-Description=Unix-like program execution
diff --git a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/CLibrary.java b/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/CLibrary.java
deleted file mode 100644
index 5cd9a12aa..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/CLibrary.java
+++ /dev/null
@@ -1,332 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.lib.richexecution;
-
-import com.sun.jna.Library;
-import com.sun.jna.Native;
-import com.sun.jna.Structure;
-import java.util.Arrays;
-import java.util.List;
-
-// public because it's needed by "Term Driver".
-public class CLibrary {
-    private final GenericCLibrary delegate;
-    private final GenericConstants constants;
-
-    private interface GenericCLibrary extends Library {
-	// signals
-	public int kill(int pid, int sig);
-
-	// pty support stuff
-	public int posix_openpt(int flags);
-	public int getpt();
-	public int grantpt(int master_fd);
-	public int unlockpt(int master_fd);
-	public String ptsname(int master_fd);
-
-	// termios stuff
-	public int tcgetattr(int fd, LinuxTermios termios);
-	public int tcsetattr(int fd, int optionalActions, final LinuxTermios termios);
-	public void cfmakeraw(LinuxTermios termios);
-
-	// generic unix support stuff
-	public int close(int fd);
-	public int open(String pathname, int flags);
-	public int ioctl(int fd, int op, String str_arg);
-	public int ioctl(int fd, int op, WinSize winsize);
-	public String strerror(int errno);
-    }
-
-    private static interface DefaultCLibrary
-	    extends GenericCLibrary {
-    }
-
-    private abstract static class GenericConstants {
-
-	protected GenericConstants() {
-	}
-
-	public final int SIGHUP = 1;
-	public final int SIGTERM = 15;
-
-	// Linux: /bits/fcntl.h
-	// Mac: /usr/include/sys/fcntl.h
-	// Solaris: /usr/include/sys/fcntl.h
-	public final int O_RDWR = 2;
-
-	public final int TCSANOW = 0;        // for tcsetattr()
-	public final int TCSADRAIN = 1;
-	public final int TCSAFLUSH = 2;
-
-	public abstract int I_PUSH();
-
-	public abstract int NCCS();
-
-	public abstract int TIOCSWINSZ();
-    }
-
-    private static class DefaultConstants extends GenericConstants {
-	public int TIOCSWINSZ() {
-	    throw new UnsupportedOperationException("TIOCSWINSZ not supported");
-	}
-
-	public int I_PUSH() {
-	    throw new UnsupportedOperationException("I_PUSH not supported");
-	}
-
-	public int NCCS() {
-	    throw new UnsupportedOperationException("NCCS not supported");
-	}
-    }
-
-    private static class SolarisConstants extends GenericConstants {
-	public int TIOCSWINSZ() {
-	    // Solaris: /sys/termios.h
-	    final int _TIOC = ('T' << 8);
-	    return (_TIOC | 103);
-	}
-
-	public int I_PUSH() {
-	    // Solaris: /sys/stropts.h
-	    final int STR = ('S' << 8);
-	    return (STR | 02);
-	}
-
-	public int NCCS() {
-	    // Solaris: /sys/termios.h
-	    final int NCCS = 19;
-	    return NCCS;
-	}
-    }
-    private static class LinuxConstants extends GenericConstants {
-	public int TIOCSWINSZ() {
-	    // Linux: /ioctls.h
-	    return 0x5414;
-	}
-
-	public int I_PUSH() {
-	    // Linux: /bits/stropts.h
-	    final int __SID = ('S' << 8);
-	    return (__SID | 2);
-	}
-
-	public int NCCS() {
-	    // Linux: /bits/termios.h
-	    final int NCCS = 32;
-	    return NCCS;
-	}
-    }
-
-    private static class MacConstants extends GenericConstants {
-	public int TIOCSWINSZ() {
-	    // Mac: /sys/ttycom.h
-	    return 0x80087467;
-	}
-
-	public int I_PUSH() {
-	    throw new UnsupportedOperationException("I_PUSH not supported");
-	}
-
-	public int NCCS() {
-	    // Used for termios and not used on the Mac
-	    throw new UnsupportedOperationException("I_PUSH not supported");
-	}
-    }
-
-    public CLibrary() {
-	switch (Platform.get()) {
-	    case LinuxIntel32:
-	    case LinuxIntel64:
-		delegate = (GenericCLibrary) Native.loadLibrary("c", DefaultCLibrary.class);
-		constants = new LinuxConstants();
-		break;
-	    case MacosIntel32:
-		delegate = (GenericCLibrary) Native.loadLibrary("c", DefaultCLibrary.class);
-		constants = new MacConstants();
-		break;
-	    case SolarisIntel32:
-	    case SolarisIntel64:
-	    case SolarisSparc32:
-	    case SolarisSparc64:
-		delegate = (GenericCLibrary) Native.loadLibrary("c", DefaultCLibrary.class);
-		constants = new SolarisConstants();
-		break;
-	    case WindowsIntel32:
-	    case Other:
-	    default:
-		delegate = (GenericCLibrary) Native.loadLibrary("c", DefaultCLibrary.class);
-		constants = new DefaultConstants();
-		break;
-	}
-    }
-
-    // struct winsize
-    // Solaris: sys/termios.h
-    public static class WinSize extends Structure {
-        // JNA cannot figure sizeof structure if members aren't public
-        public short ws_row;
-        public short ws_col;
-        public short ws_xpixel;
-        public short ws_ypixel;
-
-        public WinSize(int rows, int cols, int height, int width) {
-            this.ws_row = (short) rows;
-            this.ws_col = (short) cols;
-            this.ws_xpixel = (short) width;
-            this.ws_ypixel = (short) height;
-        }
-
-        protected List getFieldOrder() {
-            return Arrays.asList(new String[] {"ws_row", "ws_col", "ws_xpixel", "ws_ypixel"});
-        }
-    }
-
-    // struct termios
-    // Not used on the mac
-
-    static public class SolarisTermios extends Structure {
-        public int c_iflag;     // input modes
-        public int c_oflag;     // output modes
-        public int c_cflag;     // control modes
-        public int c_lflag;     // local modes
-        public byte c_cc[];     // control characters
-
-        public SolarisTermios() {
-            c_cc = new byte[INSTANCE.NCCS()];
-        }
-
-        protected List getFieldOrder() {
-            return Arrays.asList(new String[] {"c_iflag", "c_oflag", "c_cflag", "c_lflag", "c_cc"});
-        }
-    }
-
-    // Not used on the mac
-    static public class LinuxTermios extends Structure {
-        public int c_iflag;     // input modes
-        public int c_oflag;     // output modes
-        public int c_cflag;     // control modes
-        public int c_lflag;     // local modes
-        public byte c_line;     // line discipline
-        public byte c_cc[];     // control characters
-        public int c_ispeed;    // input speed
-        public int c_ospeed;    // output speed
-
-        public LinuxTermios() {
-            c_cc = new byte[INSTANCE.NCCS()];
-        }
-
-        protected List getFieldOrder() {
-            return Arrays.asList(new String[] {"c_iflag", "c_oflag", "c_cflag", "c_lflag", "c_line", "c_cc", "c_ispeed", "c_ospeed"});
-        }
-    }
-
-    public static CLibrary INSTANCE = Factory.makeInstance();
-
-    // signals
-    public final int kill(int pid, int sig) {
-	return delegate.kill(pid, sig);
-    }
-
-    // pty support stuff
-    public final int posix_openpt(int flags) {
-	return delegate.posix_openpt(flags);
-    }
-    public final int getpt() {
-	return delegate.getpt();
-    }
-    public final int grantpt(int master_fd) {
-	return delegate.grantpt(master_fd);
-    }
-    public final int unlockpt(int master_fd) {
-	return delegate.unlockpt(master_fd);
-    }
-    public final String ptsname(int master_fd) {
-	return delegate.ptsname(master_fd);
-    }
-
-    // termios stuff
-    public final int tcgetattr(int fd, LinuxTermios termios) {
-	switch (Platform.get()) {
-	    case LinuxIntel32:
-	    case LinuxIntel64:
-		return delegate.tcgetattr(fd, termios);
-	    default:
-		throw new UnsupportedOperationException("tcgetattr not supported");
-	}
-    }
-    public final int tcsetattr(int fd, int optionalActions, final LinuxTermios termios) {
-	switch (Platform.get()) {
-	    case LinuxIntel32:
-	    case LinuxIntel64:
-		return delegate.tcsetattr(fd, optionalActions, termios);
-	    default:
-		throw new UnsupportedOperationException("tcsetattr not supported");
-	}
-    }
-    public final void cfmakeraw(LinuxTermios termios) {
-	switch (Platform.get()) {
-	    case LinuxIntel32:
-	    case LinuxIntel64:
-		delegate.cfmakeraw(termios);
-		break;
-	    default:
-		throw new UnsupportedOperationException("cfmakeraw not supported");
-	}
-    }
-
-    // generic unix support stuff
-    public final int close(int fd) {
-	return delegate.close(fd);
-    }
-    public final int open(String pathname, int flags) {
-	return delegate.open(pathname, flags);
-    }
-    public final int ioctl(int fd, int op, String str_arg) {
-	return delegate.ioctl(fd, op, str_arg);
-    }
-    public final int ioctl(int fd, int op, WinSize winsize) {
-	return delegate.ioctl(fd, op, winsize);
-    }
-    public final String strerror(int errno) {
-	return delegate.strerror(errno);
-    }
-
-    public final int SIGHUP() { return constants.SIGHUP; }
-    public final int SIGTERM() { return constants.SIGTERM; }
-
-    public final int NCCS() { return constants.NCCS(); }
-
-    public final int TCSANOW() { return constants.TCSANOW; }
-    public final int TCSADRAIN() { return constants.TCSADRAIN; }
-    public final int TCSAFLUSH() { return constants.TCSAFLUSH; }
-
-    public final int O_RDWR() { return constants.O_RDWR; }
-
-    public final int I_PUSH() { return constants.I_PUSH(); }
-
-    public final int TIOCSWINSZ() { return constants.TIOCSWINSZ(); }
-
-    private static class Factory {
-	public static CLibrary makeInstance() {
-	    return new CLibrary();
-	}
-    }
-}
-
diff --git a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/JNAPty.java b/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/JNAPty.java
deleted file mode 100644
index 30de7d292..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/JNAPty.java
+++ /dev/null
@@ -1,168 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.lib.richexecution;
-
-import java.io.FileDescriptor;
-import java.lang.reflect.Field;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import com.sun.jna.Native;
-
-/**
- * An implementation of Pty based on JNA.
- * @author Ivan Soleimanipour
- */
-
-class JNAPty extends Pty {
-
-    JNAPty(Mode mode) throws PtyException {
-        super(mode);
-    }
-
-    private String strerror(int errno) {
-        return CLibrary.INSTANCE.strerror(errno);
-    }
-
-
-    /**
-     * {@inheritDoc}
-     */
-    public void masterTIOCSWINSZ(int rows, int cols, int height, int width) {
-        if (master_fd == null)
-            return;
-        CLibrary.WinSize winsize = new CLibrary.WinSize(rows, cols, height, width);
-        CLibrary.INSTANCE.ioctl(Util.getFd(master_fd), CLibrary.INSTANCE.TIOCSWINSZ(), winsize);
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public void slaveTIOCSWINSZ(int rows, int cols, int height, int width) {
-        if (slave_fd == null)
-            return;
-        CLibrary.WinSize winsize = new CLibrary.WinSize(rows, cols, height, width);
-        CLibrary.INSTANCE.ioctl(Util.getFd(slave_fd), CLibrary.INSTANCE.TIOCSWINSZ(), winsize);
-    }
-
-
-    /**
-     * {@inheritDoc}
-     * @throws pty.PtyException
-     */
-    public void setup() throws PtyException {
-	int mfd = -1;
-	int sfd = -1;
-
-	try {
-	    // The most common sequence of creating pty's 
-	    //	getpt()/grantpt()/unlockpt()/pts_name(),
-	    // is supported on Solaris and linux, except that Solaris doesn't
-	    // define getpt(). So we do our own:
-	    if (OS.get() == OS.SOLARIS) {
-		mfd = CLibrary.INSTANCE.open("/dev/ptmx", CLibrary.INSTANCE.O_RDWR());
-		if (mfd == -1)
-		    throw new PtyException("open(\"/dev/ptmx\") failed -- " + strerror(Native.getLastError()));
-	    } else if (OS.get() == OS.MACOS) {
-		mfd = CLibrary.INSTANCE.posix_openpt(CLibrary.INSTANCE.O_RDWR());
-		if (mfd == -1)
-		    throw new PtyException("posix_openpt() failed -- " + strerror(Native.getLastError()));
-	    } else {
-		mfd = CLibrary.INSTANCE.getpt();
-		if (mfd == -1)
-		    throw new PtyException("getpt() failed -- " + strerror(Native.getLastError()));
-	    }
-	    System.out.printf("Pty.setup(): getpt() returns %d\n", mfd);
-
-	    if (CLibrary.INSTANCE.grantpt(mfd) == -1) {
-		throw new PtyException("grantpt() failed -- " + strerror(Native.getLastError()));
-	    }
-
-	    if (CLibrary.INSTANCE.unlockpt(mfd) == -1) {
-		throw new PtyException("unlockpt() failed -- " + strerror(Native.getLastError()));
-	    }
-
-	    // SHOULD mutex access to ptsname()s return value.
-	    // Or use the _r version
-
-	    slave_name = CLibrary.INSTANCE.ptsname(mfd);
-	    System.out.printf("Pty.setup(): ptsname() returns '%s'\n", slave_name);
-
-	    sfd = CLibrary.INSTANCE.open(slave_name, CLibrary.INSTANCE.O_RDWR());
-	    if (sfd == -1) {
-		throw new PtyException("open(\"" + slave_name + "\") failed -- " + strerror(Native.getLastError()));
-	    }
-
-	    // On solaris things are RAW by default unless you push some stuff
-	    // On Linux things are cooked to begin with and one can mimic
-	    // raw mode using cfmakeraw(termios).
-            if (mode() != Mode.RAW) {
-                if (OS.get() == OS.SOLARIS) {
-
-                    // pseudo-terminal hardware emulation module
-                    if (CLibrary.INSTANCE.ioctl(sfd, CLibrary.INSTANCE.I_PUSH(), "ptem") == -1) {
-                        throw new PtyException("ioctl(\"" + slave_name + "\", I_PUSH, \"ptem\") failed -- " + strerror(Native.getLastError()));
-                    }
-
-                    // standard terminal line discipline
-                    if (CLibrary.INSTANCE.ioctl(sfd, CLibrary.INSTANCE.I_PUSH(), "ldterm") == -1) {
-                        throw new PtyException("ioctl(\"" + slave_name + "\", I_PUSH, \"ldterm\") failed -- " + strerror(Native.getLastError()));
-                    }
-
-                    // not sure but both xterm and DtTerm do it
-                    if (CLibrary.INSTANCE.ioctl(sfd, CLibrary.INSTANCE.I_PUSH(), "ttcompat") == -1) {
-                        throw new PtyException("ioctl(\"" + slave_name + "\", I_PUSH, \"ttcompact\") failed -- " + strerror(Native.getLastError()));
-                    }
-                }
-            } else {
-                if (OS.get() == OS.LINUX) {
-                    CLibrary.LinuxTermios termios = new CLibrary.LinuxTermios();
-
-                    // check existing settings
-                    // If we don't do this tcssetattr() will return EINVAL.
-                    if (CLibrary.INSTANCE.tcgetattr(sfd, termios) == -1) {
-                        throw new PtyException("tcgetattr(\"" + slave_name + "\", <termios>) failed -- " + strerror(Native.getLastError()));
-                    }
-
-                    // System.out.printf("tcgetattr() gives %s\n", termios);
-
-                    // initialize values relevant for raw mode
-                    CLibrary.INSTANCE.cfmakeraw(termios);
-
-                    // System.out.printf("cfmakeraw() gives %s\n", termios);
-
-                    // apply them
-                    if (CLibrary.INSTANCE.tcsetattr(sfd, CLibrary.INSTANCE.TCSANOW(), termios) == -1) {
-                        throw new PtyException("tcsetattr(\"" + slave_name + "\", TCSANOW, <termios>) failed -- " + strerror(Native.getLastError()));
-                    }
-                }
-            }
-
-	    // Success ... assign fd's to FileObjects
-	    Util.assignFd(mfd, master_fd);
-	    Util.assignFd(sfd, slave_fd);
-
-	} catch (PtyException x) {
-	    CLibrary.INSTANCE.close(mfd);
-	    CLibrary.INSTANCE.close(sfd);
-            throw x;
-	}
-    }
-}
diff --git a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/OS.java b/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/OS.java
deleted file mode 100644
index 73d177621..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/OS.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.lib.richexecution;
-
-/**
- * Describes the kind of operating system we're running on.
- * <br>
- * Pty's are notoriously un-standardized. Their use varies subtly between
- * Linux, BSD and Solaris, not to mention MacOS.
- * This enum helps with customization of behaviour.
- * @author ivan
- */
-public enum OS {
-
-    OTHER, LINUX, WINDOWS, SOLARIS, MACOS;
-
-    /**
-     * Returns the kind of OS we're running on.
-     * @return The kind of OS we're running on.
-     */
-    public static OS get() {
-        String osName = System.getProperty("os.name");
-        osName = osName.toLowerCase();
-        // System.out.printf("os.name: \'%s\'\n", osName);
-
-        if (osName.startsWith("windows")) {
-            return OS.WINDOWS;
-        } else if (osName.startsWith("linux")) {
-            return OS.LINUX;
-        } else if (osName.startsWith("sunos")) {
-            return OS.SOLARIS;
-        } else if (osName.startsWith("mac os x")) {
-            return OS.MACOS ;
-        } else {
-            return OS.OTHER;
-        }
-    }
-}
diff --git a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/Platform.java b/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/Platform.java
deleted file mode 100644
index f0b8b62ab..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/Platform.java
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.lib.richexecution;
-
-/**
- * Describes the kind of platform system running on.
- * <br>
- * Pty's are notoriously un-standardized. Their use varies subtly between
- * Linux, BSD and Solaris, not to mention MacOS.
- * This enum helps with customization of behaviour.
- * @author ivan
- */
-enum Platform {
-
-    Other,
-
-    LinuxIntel32,
-    LinuxIntel64,
-
-    WindowsIntel32,
-
-    SolarisSparc32,
-    SolarisSparc64,
-    SolarisIntel32,
-    SolarisIntel64,
-
-    MacosIntel32;
-
-    /**
-     * Returns the platform we're running on.
-     * @return The kind of platform we're running on.
-     */
-    public static Platform get() {
-        String osName = System.getProperty("os.name").toLowerCase();
-        String osArch = System.getProperty("os.arch").toLowerCase();
-        // System.out.printf("Platform.get: os.name: \'%s\' os.arch: '%s'\n", osName, osArch);
-        if (osName.equals("sunos")) {
-            if (osArch.equals("sparc"))
-                return SolarisSparc32;
-	    else if (osArch.equals("sparcv9"))
-                return SolarisSparc64;
-            else if (osArch.equals("x86"))
-                return SolarisIntel32;
-            else if (osArch.equals("amd64"))
-                return SolarisIntel64;
-	    else
-		return Other;
-        } else if (osName.equals("linux")) {
-            if (osArch.equals("i386"))
-                return LinuxIntel32;
-	    else if (osArch.equals("amd64"))
-                return LinuxIntel64;
-	    else
-		return Other;
-        } else if (osName.startsWith("mac os x")) {
-            if (osArch.equals("i386"))
-                return MacosIntel32;
-	    else
-		return Other;
-        } else {
-		return Other;
-	}
-    }
-
-    /**
-     * Returns the platform string used for finding helper executables.
-     * @return One of "linux-intel", "solaris-sparc", "solaris-intel", "mac-intel" or null.
-     */
-    public String platform() {
-	switch (get()) {
-	    case LinuxIntel32:
-	    case LinuxIntel64:
-                return "linux-intel";
-	    case SolarisSparc32:
-	    case SolarisSparc64:
-                return "solaris-sparc";
-	    case SolarisIntel32:
-	    case SolarisIntel64:
-                return "solaris-intel";
-	    case MacosIntel32:
-                return "mac-intel";
-	    case WindowsIntel32:
-	    case Other:
-	    default:
-		return null;
-	}
-    }
-}
diff --git a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/Pty.java b/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/Pty.java
deleted file mode 100644
index 39ac6da6d..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/Pty.java
+++ /dev/null
@@ -1,207 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.lib.richexecution;
-
-import java.io.FileDescriptor;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-
-/**
- * Pseudo Terminal.
- * <br>
- * See <a href="http://wiki.netbeans.org/TerminalEmulatorPty">
- * TerminalEmulatorPty</a> for a full description of
- * what a pty is.
- * @author Ivan Soleimanipour
- */
-public abstract class Pty {
-    /**
-     * Describes the kind of pty.
-     */
-    public static enum Mode {
-        /**
-         * To be used by client to signify that no pty shall be used.
-         */
-        NONE,
-
-        /**
-         * <b>NOT IMPLEMENTED YET</b>.
-         * <br>
-         * A raw pty is effectively the same as a pipe ... and as useless.
-         */
-        RAW,
-
-        /**
-         * A standard pty.
-         * <br>
-         * A regular pty provides:
-         * <ul>
-         * <li> Line buffering.
-         * <li> BS and TAB handling.
-         * <li> Control character handling (^C, ^Z, ^D etc).
-         * <li> Terminal size propagation.
-         * </ul>
-         */
-        REGULAR,
-
-        /**
-         * <b>NOT IMPLEMENTED YET</b>.
-         * <br>
-         * An extended functionality pty.
-         */
-        PACKET
-    };
-
-    protected FileDescriptor master_fd = new FileDescriptor();
-    protected FileDescriptor slave_fd = new FileDescriptor();
-    protected String slave_name = null;
-    InputStream inputStream;
-    OutputStream outputStream;
-
-    private Mode mode;
-
-    public static Pty create(Mode mode) throws PtyException {
-        return new JNAPty(mode);
-    }
-
-    /**
-     * Create a Pty in the given mode.
-     * <p>
-     * Pty's are a kind of enhanced "named fifos/pipes". The enhancement
-     * has to do with terminal related stuff, line discipline and
-     * all that. Otherwise they are just conduits of information.
-     * In fact that is just what RAW Pty's are.
-     * <p>
-     * Now there's gotta be something similar to "named fifos" on
-     * Windows ... SHOULD look for it.
-     * <br>
-     * Until then, even if mode is NONE or RAW, we really can't create
-     * Ptys on Windows.
-     * <p>
-     * Note that {@link PtyProcess} and all the higher level stuff that is
-     * based on it still works on Windows ... it uses direct Process streams
-     * rather than Pty's.
-     */
-    protected Pty(Mode mode) throws PtyException {
-	if (OS.get() == OS.WINDOWS) {
-	    throw new UnsupportedOperationException("Pty's not supported on windows");
-	}
-        this.mode = mode;
-        setup();
-    }
-
-    /**
-     * Construct the actual physical pty.
-     * @throws pty.PtyException
-     */
-    protected abstract void setup() throws PtyException;
-
-    /**
-     * Declare the new size of the "terminal" on the master side of this pty.
-     * <br>
-     * This sends a SIGWINCH to the process on the master side of the pty.
-     * The process may then issue ioctl(TIOCGWINSZ, ...) and update it's 
-     * idea of the terminal size.
-     */
-    public abstract void masterTIOCSWINSZ(int rows, int cols, int height, int width);
-
-    /**
-     * Declare the new size of the "terminal" on the slave side of this pty.
-     * <br>
-     * This sends a SIGWINCH to the process on the slave side of the pty.
-     * The process may then issue ioctl(TIOCGWINSZ, ...) and update it's 
-     * idea of the terminal size.
-     */
-    public abstract void slaveTIOCSWINSZ(int rows, int cols, int height, int width);
-
-    /**
-     * Return the mode the pty was created in.
-     * @return the mode the pty was created in.
-     */
-    protected Mode mode() {
-        return mode;
-    }
-
-    /**
-     * Return the slave end of the pty which should be opened for reading and
-     * writing by the child process.
-     * <br>
-     * The pty slave is a file like <code>/dev/pts14</code>.
-     * @return The slave end of the pty which should be opened for reading and
-     * writing by the child process.
-     */
-    public String slaveName() {
-        return slave_name;
-    }
-
-    /**
-     * Close the slave file descriptor.
-     * <br>
-     * We don't close the master fd; it usually gets closed when it's
-     * reading InputStream gets closed.
-     * <br>
-     * Until we call this the reader of the master side (a terminal) will
-     * not see an EOF, even if the child process has exited. The reason
-     * for this is that we maintain a file desriptor for the slave in
-     * addition to the one dup'ed for the child process.
-     * <br>
-     * And the reason for _that_ is that it allows us to manipulate terminal
-     * characteristics.
-     * @throws java.io.IOException
-     */
-    public void close() throws IOException {
-        // On linux it seems one can manipulate terminal characteristics
-        // through the master fd, hence masterTIOCSWINSZ(). So perhaps keeping
-        // a slave fd around is pointless.
-        // On Solaris it used to be that you could manipulate only
-        // from the slave end. Needs more experimentation.
-
-        // Can't close fd's directly so create a temporary stream
-        (new FileOutputStream(slave_fd)).close();
-    }
-
-    /**
-     * Return an InputStream to be connected to a terminal.
-     * @return An InputStream to be connected to a terminal.
-     */
-    public InputStream getInputStream() {
-        openMasterSide();
-        return inputStream;
-    }
-
-    /**
-     * Return an OutputStream to be connected to a terminal.
-     * @return An OutputStream to be connected to a terminal.
-     */
-    public OutputStream getOutputStream() {
-        openMasterSide();
-        return outputStream;
-    }
-
-    private void openMasterSide() {
-        if (inputStream == null) {
-            outputStream = new FileOutputStream(master_fd);
-            inputStream = new FileInputStream(master_fd);
-        }
-    }
-}
diff --git a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/PtyException.java b/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/PtyException.java
deleted file mode 100644
index d24d57124..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/PtyException.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.lib.richexecution;
-
-/**
- * @author Ivan Soleinmanipour
- */
-public class PtyException extends Exception {
-        public PtyException(String msg) {
-            super(msg);
-        }        
-}
diff --git a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/PtyExecutor.java b/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/PtyExecutor.java
deleted file mode 100644
index 01285f110..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/PtyExecutor.java
+++ /dev/null
@@ -1,309 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.lib.richexecution;
-
-import org.netbeans.lib.richexecution.program.Program;
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.MissingResourceException;
-import java.util.StringTokenizer;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import org.netbeans.lib.richexecution.Pty.Mode;
-
-/**
- * Execute a {@link Program}, {@link Shell} or {@link Command} connected to a Pty.
- * <p>
- * If the pty is null, as the case might be on Windows, executes the program
- * as {@link java.lang.ProcessBuilder} would.
- * @author ivan
- */
-public final class PtyExecutor {
-    private static String setpgrpCmd = null;
-    private Mode mode = Mode.REGULAR;
-
-    /**
-     * Locate executable 'bin' somewhere "near" us.
-     *
-     * "near" us is in a lib/ directory. That is because 'bin' is not meant
-     * for execution by the user who has bin/ in the their $PATH.
-     *
-     * Where are we?
-     * We figure this by using Class.getResource() and massaging the url.
-     * But we can be loaded in a variety of contexts so there are a lot
-     * of variations.
-     *
-     * @param bin
-     * @return Full pathname to 'bin' or null.
-     */
-    private static String findBin(String bin) {
-        final String myClass =
-            "/org/netbeans/lib/richexecution/PtyExecutor.class";
-        URL url = PtyExecutor.class.getResource(myClass);
-        System.out.printf("findBin(): my resource is \"%s\"\n", url);
-        String urlString = url.toString();
-
-        // We usually get something like this:
-        // jar:file:/home/ivan/work/pty/share/Pty/dist/Pty.jar!/pty/TermProgram.class
-        //     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-        // Sometimes instead of "jar:" we get "nbjcl:" ... these occur for
-        // example if Pty.jar is loaded via a NB library wrapper.
-        boolean isJar = false;
-        boolean isNbjcl = false;
-
-        if (urlString.startsWith("jar:")) {
-            isJar = true;
-        } else if (urlString.startsWith("nbjcl:")) {
-            isNbjcl = true;
-        } else if (urlString.startsWith("file:")) {
-            ;
-        } else {
-            System.out.printf("findBin(): " + "can only handle jar: nbjcl: or file: resources but got %s\n", urlString);
-            return null;
-        }
-
-
-        if (isJar || isNbjcl) {
-            // Extract the pathname to the jarfile and stuff it back into urlString.
-            int colonx = urlString.indexOf(':');
-            if (colonx == -1) {
-                System.out.printf("findBin(): cannot find \':\' in %s\n", urlString);
-                return null;
-            }
-
-            int bangx = urlString.indexOf('!');
-            if (bangx == -1) {
-                System.out.printf("findBin(): malformed jar url (no !): %s\n", urlString);
-                return null;
-            }
-            String jarLocation = urlString.substring(colonx + 1, bangx);
-            System.out.printf("findBin(): jarLocation \"%s\"\n", jarLocation);
-            urlString = jarLocation;
-        }
-
-        // Now urlString has something like these in it:
-        // file:/home/ivan/work/pty/share/Pty/dist/Pty.jar
-        // file:/home/ivan/work/pty/share/TermSuite/build/cluster/modules/ext/Pty.jar
-        if (urlString.startsWith("file:")) {
-            // strip the "file:"
-            urlString = urlString.substring(5);
-        }
-
-        File binFile = null;
-        if (isJar || isNbjcl) {
-            File jarFile = new File(urlString);
-            File installDir = jarFile.getParentFile();
-            if (!installDir.getName().equals("lib")) {
-                File libDir = new File(installDir, "lib");
-                binFile = new File(libDir, bin);
-            } else {
-                binFile = new File(installDir, bin);
-            }
-        } else {
-            final String classes = "/build/classes";
-
-            // strip the pkg/class part
-            if (!urlString.endsWith(myClass)) {
-                System.out.printf("findBin(): urlString %s doesn\'t end with %s\n", urlString, myClass);
-            }
-            urlString = urlString.substring(0, urlString.length() - myClass.length());
-            System.out.printf("findBin(): classpath \"%s\"\n", urlString);
-            if (urlString.endsWith(classes)) {
-                String projectDir = urlString.substring(0, urlString.length() - classes.length());
-                System.out.printf("findBin(): projectDir \"%s\"\n", projectDir);
-                File projectDirFile = new File(projectDir);
-                binFile = new File(projectDirFile, bin);
-            }
-        }
-
-        if (binFile != null) {
-            if (binFile.exists()) {
-                System.out.printf("findBin(): found: %s\n", binFile);
-                return binFile.toString();
-            } else {
-                System.out.printf("findBin(): doesn\'t exist here: %s\n", binFile);
-            }
-        }
-        return null;
-    }
-
-    /**
-     * Find and cache one of /usr/bin/setpgrp or /usr/bin/setsid.
-     * We usually get setsid on linux and setpgrp on solaris.
-     */
-    private static String setpgrpCmd() {
-        if (false) {
-            return null;
-        }
-
-        if (OS.get() == OS.MACOS) {
-            return null;
-        }
-        if (setpgrpCmd == null) {
-            File file;
-            file = new File("/usr/bin/setpgrp");
-            if (file.exists()) {
-                setpgrpCmd = file.getPath();
-                return setpgrpCmd;
-            }
-            file = new File("/usr/bin/setsid");
-            if (file.exists()) {
-                setpgrpCmd = file.getPath();
-                return setpgrpCmd;
-            }
-            throw new MissingResourceException("Can\'t find setpgrp or setsid", null, null);
-        }
-        return setpgrpCmd;
-    }
-
-    /**
-     * Ensure executable is executable.
-     * @param executable
-     */
-    private static void fixExecution(String executable) {
-        // The wrapper executables get nunzipped often, like when an NBM
-        // is installed, and zip doesn't preserve execution permission bits.
-        // So we force it each time.
-        String[] chmodProgram = new String[3];
-        switch (OS.get()) {
-            case LINUX:
-            case MACOS:
-            case SOLARIS:
-                chmodProgram[0] = "chmod";
-                chmodProgram[1] = "u+x";
-                chmodProgram[2] = executable;
-                try {
-                    Process p = Runtime.getRuntime().exec(chmodProgram);
-                    p.waitFor();
-                } catch (InterruptedException ex) {
-                    Logger.getLogger(PtyExecutor.class.getName()).log(Level.SEVERE, null, ex);
-                } catch (IOException ex) {
-                    Logger.getLogger(PtyExecutor.class.getName()).log(Level.SEVERE, null, ex);
-                }
-                break;
-            case WINDOWS:
-            case OTHER:
-                break;
-        }
-    }
-
-    private static String wrapper;
-    private static String pgrp;     // set as side-effect of getWrapper()
-
-    /**
-     * Locate the process_start helper, either as process_start-<platform> or,
-     * if not found, the fallback process_start.sh".
-     */
-    private static String getWrapper() {
-        if (wrapper == null) {
-            if ((wrapper = findBin("process_start" + "-" + Platform.get().platform())) != null) {
-                pgrp = null;
-            } else if ((wrapper = findBin("process_start.sh")) != null) {
-                pgrp = setpgrpCmd();
-            } else {
-                throw new MissingResourceException("Can\'t find a wrapper", null, null);
-            }
-            fixExecution(wrapper);
-        }
-        return wrapper;
-    }
-
-    private static List<String> wrappedCmd(List<String> cmd, Pty pty) {
-        if (pty == null) {
-            return cmd;
-        }
-        List<String> wrapperCmd = new ArrayList<String>();
-        if (pgrp != null) {
-            wrapperCmd.add(setpgrpCmd());
-        }
-        wrapperCmd.add(getWrapper());
-        wrapperCmd.add("-pty");
-        wrapperCmd.add(pty.slaveName());
-        wrapperCmd.addAll(cmd);
-
-
-        return wrapperCmd;
-    }
-
-    public final PtyProcess start(Program program, Pty pty) {
-        Process process;
-        int pid = -1;
-        try {
-	    ProcessBuilder pb = new ProcessBuilder(wrappedCmd(program.command(), pty));
-	    pb.directory(program.directory());
-	    pb.environment().putAll(program.environment());
-	    // LATER
-            pb.redirectErrorStream(true /* LATER program.redirectErrorStream() */);
-            System.out.printf("\nExecuting %s\n", program.command());
-	    process = pb.start();
-        } catch (IOException ex) {
-            Logger.getLogger(Program.class.getName()).log(Level.SEVERE, null, ex);
-            return null;
-        }
-
-	// On windows ...
-	// skip this part, no PID
-	// On unixy platforms ...
-	// extract pid and other information from the wrapper, 'process_start'.
-        if (pty != null) {
-            BufferedReader stdout = new BufferedReader(new InputStreamReader(process.getInputStream()));
-            while (true) {
-                String line;
-                try {
-                    line = stdout.readLine();
-                    if (line == null) {
-                        break;
-                    }
-                    StringTokenizer tokens = new StringTokenizer(line);
-                    String info = tokens.nextToken();
-                    if ("PID".equals(info)) {
-                        String pidString = tokens.nextToken();
-                        pid = Integer.parseInt(pidString);
-                        System.out.printf("pid is %d\n", pid);
-                    } else if ("ARGS".equals(info)) {
-                        System.out.printf("args is \'%s\'\n", line);
-                    } else {
-                        System.err.printf("%s\n", line);
-                    }
-                } catch (IOException ex) {
-                    Logger.getLogger(Program.class.getName()).log(Level.SEVERE, null, ex);
-                }
-            }
-        }
-        return new PtyProcess(process, pid, pty);
-    }
-
-    /**
-     * Set the Pty mode.
-     * Should be called before start().
-     */
-    public void setMode(Mode mode) {
-        this.mode = mode;
-    }
-
-    public Mode getMode() {
-        return mode;
-    }
-}
diff --git a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/PtyProcess.java b/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/PtyProcess.java
deleted file mode 100644
index f1977b291..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/PtyProcess.java
+++ /dev/null
@@ -1,192 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.lib.richexecution;
-
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-/**
- * A process being run connected to a Pty.
- * <p>
- * After and partial delegator to {@link java.lang.Process}.
- * <p>
- * Use {@link PtyExecutor} or subclasses thereof to create a PtyProcess.
- * <p>
- * <h3>Closing of the Pty</h3>
- * One reason we pass in a Pty is so Ptyprocess can close it when the process
- * exits. The closing of the pty really only closes the slave side file
- * descriptor and that is neccessary so that any master side reader will see
- * an EOF.
- * <br>
- * Why not close the slave side right after the process is created?
- * <br>
- * Because apparently on solaris one can manipulate terminal characteristics,
- * like size changes, only from the slave side. But the key word here is
- * apparently. SHOULD experiment further.
- * @author ivan
- */
-public final class PtyProcess extends java.lang.Process {
-
-    private final Process process;
-    private final int pid;
-    private final Pty pty;
-
-    private Runnable reaper;
-    private boolean reaped = false;
-
-    PtyProcess(Process process, int pid, Pty pty) {
-        this.process = process;
-        this.pid = pid;
-        this.pty = pty;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public InputStream getInputStream() {
-	if (pty == null)
-	    return process.getInputStream();	// Mode.RAW
-	else
-	    return pty.getInputStream();
-    }
-
-    /**
-     * {@inheritDoc}
-     * <p>
-     * Note that PtyProcess always has it's error redirected via
-     * {@link java.lang.ProcessBuilder#redirectErrorStream}.
-     */
-    public InputStream getErrorStream() {
-	if (pty == null)
-	    return process.getErrorStream();	// Mode.RAW
-	else
-	    throw new UnsupportedOperationException("No error stream");
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public OutputStream getOutputStream() {
-	if (pty == null)
-	    return process.getOutputStream();
-	else
-	    return pty.getOutputStream();
-    }
-
-    /**
-     * When run() it will block and wait for the started process to exit.
-     * @return A Runnable which, when run(), will block and wait for the started
-     * process to exit.
-     */
-    private Runnable getReaper() {
-        if (reaper == null) {
-            reaper = new Runnable() {
-                public void run() {
-                    try {
-                        process.waitFor();
-			if (pty != null)
-			    pty.close();
-                        reaped = true;
-                    } catch (Exception ex) {
-                        Logger.getLogger(PtyProcess.class.getName()).log(Level.SEVERE, null, ex);
-                    }
-                }
-            };
-        }
-        return reaper;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public int waitFor() {
-        getReaper().run();
-        return exitValue();
-    }
-    
-
-    /**
-     * Send a SIGHUP to the child.
-     * <p>
-     * On unix ...
-     * <br>
-     * java.lang.Process.destroy() sends a SIGTERM to the process. 
-     * While that usually works for regular processes, shells tend to
-     * ignore SIGTERM and instead are sensitive to SIGHUP.
-     * <br>
-     * Elsewhere ...
-     * <br>
-     * Same as {@link java.lang.Process#destroy }.
-     */
-    public void hangup() {
-        if (reaped)
-            return;
-        if (pid == -1) {
-            // System.out.printf("No PID -- will try terminating\n");
-            process.destroy();
-        } else {
-            CLibrary.INSTANCE.kill(pid, CLibrary.INSTANCE.SIGHUP());
-        }
-    }
-
-    /**
-     * Send a SIGTERM to the child.
-     * <p>
-     * On unix ...
-     * <br>
-     * Sends a SIGTERM to the process. 
-     * <br>
-     * Elsewhere ...
-     * <br>
-     * Same as {@link java.lang.Process#destroy }.
-     */
-    public void terminate() {
-        if (reaped)
-            return;
-        if (pid == -1) {
-            // System.out.printf("No PID -- will try terminating\n");
-            process.destroy();
-        } else {
-            CLibrary.INSTANCE.kill(pid, CLibrary.INSTANCE.SIGTERM());
-        }
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public void destroy() {
-        if (reaped)
-            return;
-        process.destroy();
-    }
-
-    public boolean isFinished() {
-        return reaped;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public int exitValue() {
-        return process.exitValue();
-    }
-}
diff --git a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/Util.java b/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/Util.java
deleted file mode 100644
index 780fa8273..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/Util.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.lib.richexecution;
-
-import java.io.FileDescriptor;
-import java.lang.reflect.Field;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-/**
- *
- * @author ivan
- */
-
-// public because it's needed by "Term Driver".
-public final class Util {
-
-    /**
-     * Assign a numeric value to the {@link FileDescriptor} object.
-     * @param fd Numeric file descriptor value.
-     * @param FD Java object.
-     */
-    public static void assignFd(int fd, FileDescriptor FD) {
-	Class cls = FileDescriptor.class;
-	try {
-	    Field fieldFd = cls.getDeclaredField("fd");
-	    // Allow setting of private fields:
-	    fieldFd.setAccessible(true);
-	    fieldFd.setInt(FD, fd);
-	} catch (IllegalArgumentException ex) {
-	    Logger.getLogger(JNAPty.class.getName()).log(Level.SEVERE, null, ex);
-	} catch (IllegalAccessException ex) {
-	    Logger.getLogger(JNAPty.class.getName()).log(Level.SEVERE, null, ex);
-	} catch (NoSuchFieldException ex) {
-	    Logger.getLogger(JNAPty.class.getName()).log(Level.SEVERE, null, ex);
-	} catch (SecurityException ex) {
-	    Logger.getLogger(JNAPty.class.getName()).log(Level.SEVERE, null, ex);
-	}
-    }
-
-    /**
-     * Get the numeric value to the {@link FileDescriptor} object.
-     * @param FD Java object.
-     * @return Numeric file descriptor value.
-     */
-    public static int getFd(FileDescriptor FD) {
-	Class cls = FileDescriptor.class;
-        try {
-            Field fieldFd = cls.getDeclaredField("fd");
-            // Allow getting of private fields:
-            fieldFd.setAccessible(true);
-            return fieldFd.getInt(FD);
-	} catch (IllegalAccessException ex) {
-	    Logger.getLogger(JNAPty.class.getName()).log(Level.SEVERE, null, ex);
-	} catch (NoSuchFieldException ex) {
-	    Logger.getLogger(JNAPty.class.getName()).log(Level.SEVERE, null, ex);
-        }
-        return -1;
-    }
-}
diff --git a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/package.html b/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/package.html
deleted file mode 100644
index c54793b17..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/package.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-
-<html>
-<body>
-Unix-flavored External Process Execution.
-<p>
-While this API is mostly geared to serving process execution under UNIX-based
-environments, it will fall back to reasonable behaviour, no worse than
-standard Java execution, under Windows.
-</body>
-</html>
diff --git a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/program/Command.java b/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/program/Command.java
deleted file mode 100644
index 7aa4ebd2b..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/program/Command.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.lib.richexecution.program;
-
-import org.netbeans.lib.richexecution.*;
-import java.util.StringTokenizer;
-
-/**
- * Description of a command to be run under a shell.
- * <p>
- * For example:
- * <pre>
- * Program printit = new Command("/bin/cat /etc/termcap");
- * </pre>
- * <p>
- * Use {@link PtyExecutor} or subclasses thereof to run the program.
- * @author ivan
- */
-public final class Command extends Shell {
-    private final String name;
-
-    public Command(String command) {
-        StringTokenizer st = new StringTokenizer(command);
-        String cmdName = st.nextToken();
-        name = basename(cmdName);
-
-	if (OS.get() == OS.WINDOWS)
-	    add("/c");
-	else
-	    add("-c");
-        add(command);
-    }
-
-    /**
-     * Return basename of the first word of the command.
-     * @return basename of the first word of the command.
-     */
-    @Override
-    public String name() {
-        return name;
-    }
-}
diff --git a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/program/Program.java b/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/program/Program.java
deleted file mode 100644
index 6ae588963..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/program/Program.java
+++ /dev/null
@@ -1,109 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.lib.richexecution.program;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-
-/**
- * Description of a program to be executed.
- * Similar to {@link java.lang.ProcessBuilder} except for the lack of start().
- * Use {@link PtyExecutor} or subclasses thereof to run the program.
- * @author ivan
- */
-public class Program {
-    // Use ProcessBuilder strictly as a convenience to hold state
-    private final ProcessBuilder processBuilder;
-    private List<String> command;
-
-    public Program() {
-        processBuilder = new ProcessBuilder();
-        processBuilder.redirectErrorStream(true);
-        command = new ArrayList<String>();
-    }
-
-    /**
-     * After {@link ProcessBuilder#ProcessBuilder(java.util.List)}.
-     */
-    public Program(List<String> command) {
-        if (command == null)
-            throw new NullPointerException();
-        this.command = command;
-        processBuilder = new ProcessBuilder();
-        processBuilder.redirectErrorStream(true);
-    }
-
-    /**
-     * After {@link ProcessBuilder#ProcessBuilder(java.lang.String[])}.
-     */
-    public Program(String... command) {
-        processBuilder = new ProcessBuilder();
-        processBuilder.redirectErrorStream(true);
-        command(command);
-    }
-
-    public void add(String arg) {
-        command.add(arg);
-    }
-
-    protected String basename(String name) {
-        File nameFile = new File(name);
-        return nameFile.getName();
-    }
-
-    public List<String> command() {
-        return command;
-    }
-
-    public void command(List<String> command) {
-        if (command == null) {
-            throw new NullPointerException();
-        }
-        this.command = command;
-    }
-
-    public void command(String... command) {
-        this.command = new ArrayList<String>(command.length);
-        for (String arg : command) {
-            this.command.add(arg);
-        }
-    }
-
-    public File directory() {
-        return processBuilder.directory();
-    }
-
-    public void directory(File directory) {
-        processBuilder.directory(directory);
-    }
-
-    public Map<String, String> environment() {
-        return processBuilder.environment();
-    }
-
-    public String name() {
-        if (command.size() == 0) {
-            throw new IllegalStateException("No arguments assigned yet");
-        }
-        return command.get(0);
-    }
-}
diff --git a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/program/Shell.java b/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/program/Shell.java
deleted file mode 100644
index 46e3f1dcf..000000000
--- a/lib.terminalemulator/examples/lib.richexecution/src/org/netbeans/lib/richexecution/program/Shell.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.netbeans.lib.richexecution.program;
-
-import org.netbeans.lib.richexecution.OS;
-import org.netbeans.lib.richexecution.PtyExecutor;
-
-/**
- * Description of a shell to be started under a pty.
- * <br>
- * On unix ...
- * <br>
- * The shell defined by <code>$SHELL</code> is started.
- * If <code>$SHELL</code> is empty <code>/bin/bash</code> is started.
- * <br>
- * On windows ...
- * <br>
- * <code>cmd.exe</code> is started.
- * <p>
- * Use {@link PtyExecutor} or subclasses thereof to run the program.
- * @author ivan
- */
-public class Shell extends Program {
-
-    private final static OS os = OS.get();
-    private final String name;
-
-    private static void error(String fmt, Object...args) {
-        String msg = String.format(fmt, args);
-        throw new IllegalStateException(msg);
-    }
-
-
-    public Shell() {
-        String shell = System.getenv("SHELL");
-
-        if (shell == null)
-            shell = "/bin/bash";
-
-        switch (os) {
-            case WINDOWS:
-                add("cmd.exe");
-                add("/q");  // turn echo off
-                add("/a");  // use ANSI
-                name = "cmd.exe";
-                break;
-
-            case LINUX:
-//		add("/usr/bin/strace");
-//		add("-o");
-//		add("/tmp/rich-cmd.tr");
-                add(shell);
-                name = basename(shell);
-                break;
-            case SOLARIS:
-//		add("/usr/bin/truss");
-//		add("-o");
-//		add("/tmp/rich-cmd.tr");
-                add(shell);
-                name = basename(shell);
-                break;
-            case MACOS:
-                add(shell);
-                name = basename(shell);
-                break;
-            default:
-                error("Unsupported os '%s'", os);
-                name = "";
-                break;
-	}
-    }
-
-    /**
-     * Return the basename of the shell being run.
-     * @return the basename of the shell being run.
-     */
-    @Override
-    public String name() {
-        return name;
-    }
-}
diff --git a/lib.terminalemulator/examples/telnet/README b/lib.terminalemulator/examples/telnet/README
deleted file mode 100644
index 5009a3ee0..000000000
--- a/lib.terminalemulator/examples/telnet/README
+++ /dev/null
@@ -1,48 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-
-A simple telnet application
-===========================
-
-TelnetApp implements a simple telnet client based on ...
-	org.netbeans.lib.terminalemulator.Term
-	de.mud.jta.*
-	de.mud.telnet.*
-
-It illustrates ...
-- Simple Term creation and i/o connectivity.
-- Terminal emulation capabilities through setting of the terminal
-  type to "ansi".
-
-To run it issue from a shell
-	./telnet <hostname>
-
-For telnet connectivity it uses portions of
-	JTA - Telnet/SSH for the JAVA(tm) platform
-by Matthias L. Jugel and Marcus Meisner at
-	http://javassh.org/space/start
-
-I haven't included that stuff under CVS to avoid licensing issues since
-their code is GPL, but you only need:
-
-de/mud/jta/Wrapper.java
-de/mud/telnet/ScriptHandler.java
-de/mud/telnet/TelnetProtocolHandler.java
-de/mud/telnet/TelnetWrapper.java
-
-To build this demo download JTA, copy these files to a local de/ and issue 'ant'
diff --git a/lib.terminalemulator/examples/telnet/TelnetApp.java b/lib.terminalemulator/examples/telnet/TelnetApp.java
deleted file mode 100644
index 6f1a6e48c..000000000
--- a/lib.terminalemulator/examples/telnet/TelnetApp.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import java.awt.*;
-import java.awt.event.*;
-import javax.swing.*;
-
-import de.mud.telnet.*;
-
-import org.netbeans.lib.terminalemulator.Term;
-import org.netbeans.lib.terminalemulator.TermInputListener;
-import org.netbeans.lib.terminalemulator.WordDelineator;
-
-
-public class TelnetApp extends JFrame {
-    TermInputListener input_listener;
-    Term term;
-    TelnetWrapper tio;
-
-    /*
-     * Override de.mud.telnet.TelnetWrapper so we can specialize
-     * the terminal type.
-     */
-    static class MyTelnetWrapper extends TelnetWrapper {
-
-	private String terminalType;
-
-	MyTelnetWrapper(String terminalType) {
-	    this.terminalType = terminalType;
-	} 
-
-	public String getTerminalType() {
-	    return terminalType;
-	}
-    }
-
-    TelnetApp(Font font) {
-	super("TelnetApp");
-
-	input_listener = new TermInputListener() {
-	    public void sendChar(char c) {
-		// System.out.println(c);
-		final char tmp[]= new char[1];
-		tmp[0] = c;
-		String s = new String(tmp);
-		try {
-		    tio.write(s.getBytes());
-		} catch (Exception x) {
-		    x.printStackTrace();
-		} 
-	    }
-	    public void sendChars(char[] c, int offset, int count) {
-		// System.out.println(c);
-		String s = new String(c, offset, count);
-		try {
-		    tio.write(s.getBytes());
-		} catch (Exception x) {
-		    x.printStackTrace();
-		} 
-	    }
-	};
-
-	term = new Term();
-	term.addInputListener(input_listener);
-
-	term.setEmulation("ansi");
-	term.setBackground(Color.white);
-	term.setClickToType(false);
-	term.setHighlightColor(Color.orange);
-	term.setWordDelineator(new WordDelineator() {
-	    public int charClass(char c) {
-		if (Character.isJavaIdentifierPart(c))
-		    return 1;
-		else
-		    return 0;
-	    }
-	} );
-    } 
-
-    public String terminalType() {
-	return term.getEmulation();
-    } 
-
-    private void setup_gui() {
-	addWindowListener(new WindowAdapter() {
-	    public void windowClosing(WindowEvent e) {
-		System.exit(0);
-	    }
-	});
-	setContentPane(term);
-	pack();
-    } 
-
-    private void setup_telnet(String host, String terminalType) {
-	tio = new MyTelnetWrapper(terminalType);
-	try {
-	    System.out.println("connecting to '" + host + "' ...");
-	    tio.connect(host, 23);
-	} catch (Exception x) {
-	    x.printStackTrace();
-	} 
-    } 
-
-    private void run() {
-	byte[] buf = new byte[512];
-	int count;
-	while (true) {
-	    try {
-		count = tio.read(buf);
-	    } catch (Exception x) {
-		x.printStackTrace();
-		break;
-	    } 
-	    if (count == -1)
-		break;
-	    String s = new String(buf, 0, count);
-	    char[] tmp = new char[s.length()];
-	    s.getChars(0, s.length(), tmp, 0);
-	    term.putChars(tmp, 0, s.length());
-	}
-	System.exit(0);
-    } 
-
-    private static void usage(String msg) {
-	System.out.println(msg);
-	System.out.println("usage: TelnetApp [ <hostname> ]");
-	System.exit(1);
-    }
-
-    public static void main(String[] args) {
-
-	String host = "localhost";
-
-	// process cmdline args
-	for (int cx = 0; cx < args.length; cx++) {
-	    if (args[cx].startsWith("-")) {
-		usage("Unrecognized option: " + args[cx]);
-	    } else {
-		host = args[cx];
-	    }
-	}
-
-	Font term_font = new Font("Helvetica", Font.PLAIN, 10);
-	TelnetApp app = new TelnetApp(term_font);
-	app.setup_gui();
-	app.setVisible(true);
-	app.setup_telnet(host, app.terminalType());
-	app.run();
-    }
-}
diff --git a/lib.terminalemulator/examples/telnet/build.xml b/lib.terminalemulator/examples/telnet/build.xml
deleted file mode 100644
index 80cc43fb6..000000000
--- a/lib.terminalemulator/examples/telnet/build.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version='1.0' encoding='ISO-8859-1' ?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-
-<project name="telnet" default="telnet">
-
-    <target name="telnet" depends="compile"/>
-
-    <target name="compile">
-	<mkdir dir="classes"/>
-	<javac srcdir="."
-	       destdir="classes"
-	       debug="on"
-	       encoding="utf8"
-	       classpath="../../build/classes"
-	/>
-    </target>
-
-    <target name="clean">
-	<delete dir="classes"/>
-    </target>
-</project>
-
diff --git a/lib.terminalemulator/examples/telnet/telnet b/lib.terminalemulator/examples/telnet/telnet
deleted file mode 100644
index 7607418dc..000000000
--- a/lib.terminalemulator/examples/telnet/telnet
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/ksh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-TERM=../../build/classes
-java -classpath "classes:$TERM" TelnetApp $*


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists