This commit was manufactured by cvs2svn to create branch 'Eclipse_0_9'.
Sprout from master 2001-06-14 15:33:50 UTC vlad <vlad> '*** empty log message ***'
Delete:
ant/org.eclipse.ant.core/.classpath
ant/org.eclipse.ant.core/.cvsignore
ant/org.eclipse.ant.core/.vcm_meta
ant/org.eclipse.ant.core/ant.jar
ant/org.eclipse.ant.core/build.properties
ant/org.eclipse.ant.core/doc/hglegal.htm
ant/org.eclipse.ant.core/doc/ngibmcpy.gif
ant/org.eclipse.ant.core/doc/org_eclipse_ant_core.html
ant/org.eclipse.ant.core/doc/org_eclipse_ant_core_antObjects.html
ant/org.eclipse.ant.core/doc/org_eclipse_ant_core_antTasks.html
ant/org.eclipse.ant.core/doc/org_eclipse_ant_core_antTypes.html
ant/org.eclipse.ant.core/plugin.jars
ant/org.eclipse.ant.core/plugin.properties
ant/org.eclipse.ant.core/plugin.xml
ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntPlugin.java
ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntRunner.java
ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntRunnerListener.java
ant/org.eclipse.ant.core/src/org/eclipse/ant/core/CommaPatternSet.java
ant/org.eclipse.ant.core/src/org/eclipse/ant/core/EclipseAnt.java
ant/org.eclipse.ant.core/src/org/eclipse/ant/core/EclipseCompilerAdapterFactory.java
ant/org.eclipse.ant.core/src/org/eclipse/ant/core/EclipseJavac.java
ant/org.eclipse.ant.core/src/org/eclipse/ant/core/EclipseProject.java
ant/org.eclipse.ant.core/src/org/eclipse/ant/core/IncrementalBuild.java
ant/org.eclipse.ant.core/src/org/eclipse/ant/core/Messages.properties
ant/org.eclipse.ant.core/src/org/eclipse/ant/core/Policy.java
ant/org.eclipse.ant.core/src/org/eclipse/ant/core/RefreshLocal.java
ant/org.eclipse.ant.core/src/org/eclipse/ant/core/XercesRegexpMatcher.java
ant/org.eclipse.ant.core/src/org/eclipse/ant/core/package.html
ant/org.eclipse.ant.ui/.classpath
ant/org.eclipse.ant.ui/.cvsignore
ant/org.eclipse.ant.ui/.vcm_meta
ant/org.eclipse.ant.ui/build.properties
ant/org.eclipse.ant.ui/icons/basic/clcl16/clear.gif
ant/org.eclipse.ant.ui/icons/basic/cview/ant_view.gif
ant/org.eclipse.ant.ui/icons/basic/eview/ant_view.gif
ant/org.eclipse.ant.ui/icons/basic/wizban/ant_wiz.gif
ant/org.eclipse.ant.ui/icons/full/cview16/ant_view.gif
ant/org.eclipse.ant.ui/icons/full/eview16/ant_view.gif
ant/org.eclipse.ant.ui/icons/full/wizban/ant_wiz.gif
ant/org.eclipse.ant.ui/plugin.jars
ant/org.eclipse.ant.ui/plugin.properties
ant/org.eclipse.ant.ui/plugin.xml
ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/AntConsole.java
ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/AntLaunchWizard.java
ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/AntLaunchWizardPage.java
ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/AntUIPlugin.java
ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/BuildCanceledException.java
ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/Messages.properties
ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/Policy.java
ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/RunAntActionDelegate.java
ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/TargetsListContentProvider.java
ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/TargetsListLabelProvider.java
ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/UIBuildListener.java
diff --git a/ant/org.eclipse.ant.core/.classpath b/ant/org.eclipse.ant.core/.classpath
deleted file mode 100644
index 472533c..0000000
--- a/ant/org.eclipse.ant.core/.classpath
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>
- <classpathentry kind="src" path="/org.eclipse.core.resources"/>
- <classpathentry kind="src" path="/org.eclipse.core.runtime"/>
- <classpathentry kind="src" path="/org.eclipse.core.boot"/>
- <classpathentry kind="src" path="Eclipse Ant Core"/>
- <classpathentry kind="var" path="TARGET/org.apache.xerces/xerces.jar"/>
- <classpathentry kind="lib" path="ant.jar"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/ant/org.eclipse.ant.core/.cvsignore b/ant/org.eclipse.ant.core/.cvsignore
deleted file mode 100644
index c5e82d7..0000000
--- a/ant/org.eclipse.ant.core/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-bin
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.core/.vcm_meta b/ant/org.eclipse.ant.core/.vcm_meta
deleted file mode 100644
index 4cc1a7d..0000000
--- a/ant/org.eclipse.ant.core/.vcm_meta
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project-description>
- <comment></comment>
- <nature id="org.eclipse.jdt.core.javanature"/>
- <reference project-name="org.eclipse.core.boot"/>
- <reference project-name="org.eclipse.core.resources"/>
- <reference project-name="org.eclipse.core.runtime"/>
- <builder name="org.eclipse.jdt.core.javabuilder">
- </builder>
-</project-description>
diff --git a/ant/org.eclipse.ant.core/ant.jar b/ant/org.eclipse.ant.core/ant.jar
deleted file mode 100644
index e4efab3..0000000
--- a/ant/org.eclipse.ant.core/ant.jar
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.core/build.properties b/ant/org.eclipse.ant.core/build.properties
deleted file mode 100644
index 1df8d27..0000000
--- a/ant/org.eclipse.ant.core/build.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-# VAJ build contribution
-build.includes=ant.jar,plugin.jars,plugin.xml,build.properties,plugin.properties,doc/
-build.vaj.Eclipse\ Ant\ Core=Eclipse Ant Core
-
-# Eclipse build contribution
-source.antsupport.jar=Eclipse Ant Core
-bin.includes=example.*,plugin.xml,*.jar,plugin.properties
-javadoc.packages=org.eclipse.*
diff --git a/ant/org.eclipse.ant.core/doc/hglegal.htm b/ant/org.eclipse.ant.core/doc/hglegal.htm
deleted file mode 100644
index b071dbd..0000000
--- a/ant/org.eclipse.ant.core/doc/hglegal.htm
+++ /dev/null
@@ -1,14 +0,0 @@
-<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <meta name="GENERATOR" content="Mozilla/4.73 [en] (Win98; U) [Netscape]">
- <title>Legal Notices</title>
-</head>
-<body>
-
-<h3>
-<a NAME="Notices"></a>Notices</h3>
-(c) Copyright IBM Corp. 2000, 2001. All Rights Reserved.
-</body>
-</html>
diff --git a/ant/org.eclipse.ant.core/doc/ngibmcpy.gif b/ant/org.eclipse.ant.core/doc/ngibmcpy.gif
deleted file mode 100644
index 360f8e9..0000000
--- a/ant/org.eclipse.ant.core/doc/ngibmcpy.gif
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.core/doc/org_eclipse_ant_core.html b/ant/org.eclipse.ant.core/doc/org_eclipse_ant_core.html
deleted file mode 100644
index 21583e1..0000000
--- a/ant/org.eclipse.ant.core/doc/org_eclipse_ant_core.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
- <title>Ant Build Tool Core extension-points</title>
-</head>
-<body link="#0000FF" vlink="#800080">
-
-<center>
-<h1>
-Ant Build Tool Core Plug-in</h1></center>
-This document lists all of the extension points that the Ant Build Tool Core
-plug-in makes available to tool developers.
-<p>
-<hr WIDTH="100%">
-<h1>
-General Extension Points</h1>
-The following extension points can be used to extend the fundamental capabilities
-of the Ant core plug-in:
-<ul>
-<li>
-<a href="org_eclipse_ant_core_antObjects.html">org.eclipse.ant.core.antObjects</a></li>
-
-<li>
-<a href="org_eclipse_ant_core_antTasks.html">org.eclipse.ant.core.antTasks</a></li>
-
-<li>
-<a href="org_eclipse_ant_core_antTypes.html">org.eclipse.ant.core.antTypes</a></li>
-</ul>
-<a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation 2000" BORDER=0 height=12 width=195></a>
-</body>
-</html>
diff --git a/ant/org.eclipse.ant.core/doc/org_eclipse_ant_core_antObjects.html b/ant/org.eclipse.ant.core/doc/org_eclipse_ant_core_antObjects.html
deleted file mode 100644
index 63e310b..0000000
--- a/ant/org.eclipse.ant.core/doc/org_eclipse_ant_core_antObjects.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
- <title>AntObjects</title>
-</head>
-<body link="#0000FF" vlink="#800080">
-
-<center>
-<h1>
-AntObjects</h1></center>
-<b><i>Identifier: </i></b>org.eclipse.ant.core.antObjects<p><b><i>Description: </i></b>Allows
-plug-ins to define arbitrary classes for use by the Ant infrastructure.
-For example, in the case of a Javac compiler adapters, the compiler adapter
-factory can be supplied, via a property setting, with the name of an adapter
-class to use. Unfortunately, it is unlikely that the Ant Core plug-in
-would have this class on its classpath (or that of any of its
-prerequisites). To address this, clients should define an extension which
-plugs into this extension-point and maps a name onto a class. The Ant
-plug-in can then request that the declaring plug-in load the specified class.
-<p><b><i>Configuration Markup: </i></b>
-<p><tt> <!ELEMENT antObject EMPTY></tt>
-<br><tt> <!ATTLIST antObject</tt>
-<br><tt> name
-CDATA #REQUIRED</tt>
-<br><tt> class
-CDATA #REQUIRED</tt>
-<br><tt> ></tt>
-<ul>
-<li>
-<b>name -</b> name of the class to be defined</li>
-
-<li>
-<b>class</b> - the fully qualified name of a Java class</li>
-</ul>
-<p><i><b>Examples: </b> </i>The following is an example of an object
-declaration:
-<p><tt> <extension point="org.eclipse.ant.core.antObject"></tt><br>
-<tt> <antObject name="com.example.Foo"
-class="com.example.Foo"/></tt><br>
-<tt> </extension></tt>
-<p><b><i>API Information</i>:</b><i> </i>The objects declared via this
-extension-point are accessible though the following API:<p><tt>
-org.eclipse.core.ant.AntPlugin.getObjectExtensions</tt>
-<p><b><i>Supplied Implementation:</i></b> The platform itself does not supply
-any object extension.
-<p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation 2000" BORDER=0 height=12 width=195></a>
-</body>
-</html>
diff --git a/ant/org.eclipse.ant.core/doc/org_eclipse_ant_core_antTasks.html b/ant/org.eclipse.ant.core/doc/org_eclipse_ant_core_antTasks.html
deleted file mode 100644
index a2a14ad..0000000
--- a/ant/org.eclipse.ant.core/doc/org_eclipse_ant_core_antTasks.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
- <title>AntTasks</title>
-</head>
-<body link="#0000FF" vlink="#800080">
-
-<center>
-<h1>
-AntTasks</h1></center>
-<b><i>Identifier: </i></b>org.eclipse.ant.core.antTasks<p><b><i>Description: </i></b>Allows
-plug-ins to define arbitrary Ant tasks for use by the Ant infrastructure.
-The standard Ant infrastructure allows for the addition of arbitrary
-tasks. Unfortunately, it is unlikely that the Ant Core plug-in
-would have the classes required by these tasks on its classpath (or that of any of its
-prerequisites). To address this, clients should define an extension which
-plugs into this extension-point and maps a task name onto a class. The Ant
-plug-in can then request that the declaring plug-in load the specified class.
-<p><b><i>Configuration Markup: </i></b>
-<p><tt> <!ELEMENT antTask EMPTY></tt>
-<br><tt> <!ATTLIST antTask</tt>
-<br><tt> name
-CDATA #REQUIRED</tt>
-<br><tt> class
-CDATA #REQUIRED</tt>
-<br><tt> ></tt>
-<ul>
-<li>
-<b>name -</b> name of the task to be defined</li>
-
-<li>
-<b>class</b> - the fully qualified name of a Java class implementing the
-task. Generally this class must be a subclass of <tt>org.apache.tools.ant.Task</tt>.</li>
-</ul>
-<p><i><b>Examples: </b> </i>The following is an example of an object
-declaration:
-<p><tt> <extension point="org.eclipse.ant.core.antTask"></tt><br>
-<tt> <antTask name="coolTask"
-class="com.example.CoolTask"/></tt><br>
-<tt> </extension></tt>
-<p><b><i>API Information</i>:</b><i> </i>The objects declared via this
-extension-point are accessible though the following API:<p><tt>
-org.eclipse.core.ant.AntPlugin.getTaskExtensions</tt>
-<p><b><i>Supplied Implementation:</i></b> The platform itself supplies a number
-of tasks including <tt>incremental, javac and refreshLocal</tt>.
-<p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation 2000" BORDER=0 height=12 width=195></a>
-</body>
-</html>
diff --git a/ant/org.eclipse.ant.core/doc/org_eclipse_ant_core_antTypes.html b/ant/org.eclipse.ant.core/doc/org_eclipse_ant_core_antTypes.html
deleted file mode 100644
index f3ffef7..0000000
--- a/ant/org.eclipse.ant.core/doc/org_eclipse_ant_core_antTypes.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
- <title>AntObjects</title>
-</head>
-<body link="#0000FF" vlink="#800080">
-
-<center>
-<h1>
-AntTypes</h1></center>
-<b><i>Identifier: </i></b>org.eclipse.ant.core.antTypes<p><b><i>Description: </i></b>Allows
-plug-ins to define arbitrary Ant datatypes for use by the Ant infrastructure.
-The standard Ant infrastructure allows for the addition of arbitrary datatypes. Unfortunately, it is unlikely that the Ant Core plug-in
-would have the classes required by these datatypes on its classpath (or that of any of its
-prerequisites). To address this, clients should define an extension which
-plugs into this extension-point and maps a datatype name onto a class. The Ant
-plug-in can then request that the declaring plug-in load the specified class.
-<p><b><i>Configuration Markup: </i></b>
-<p><tt> <!ELEMENT antType EMPTY></tt>
-<br><tt> <!ATTLIST antType</tt>
-<br><tt> name
-CDATA #REQUIRED</tt>
-<br><tt> class
-CDATA #REQUIRED</tt>
-<br><tt> ></tt>
-<ul>
-<li>
-<b>name -</b> name of the task to be defined</li>
-
-<li>
-<b>class</b> - the fully qualified name of a Java class implementing the
-datatype. Generally this class must be a subclass of <tt>org.apache.tools.ant.types.DataType</tt>.</li>
-</ul>
-<p><i><b>Examples: </b> </i>The following is an example of an object
-declaration:
-<p><tt> <extension point="org.eclipse.ant.core.antType"></tt><br>
-<tt> <antTask name="coolType"
-class="com.example.CoolType"/></tt><br>
-<tt> </extension></tt>
-<p><b><i>API Information</i>:</b><i> </i>The objects declared via this
-extension-point are accessible though the following API:<p><tt>
-org.eclipse.core.ant.AntPlugin.getTypeExtensions</tt>
-<p><b><i>Supplied Implementation:</i></b> The platform itself supplies a number
-of datatypes including <tt>commaPatternSet</tt>.
-<p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation 2000" BORDER=0 height=12 width=195></a>
-</body>
-</html>
diff --git a/ant/org.eclipse.ant.core/plugin.jars b/ant/org.eclipse.ant.core/plugin.jars
deleted file mode 100644
index 3d1e2ee..0000000
--- a/ant/org.eclipse.ant.core/plugin.jars
+++ /dev/null
@@ -1,2 +0,0 @@
-ant.jar=Ant
-antsupport.jar=Eclipse Ant Core
diff --git a/ant/org.eclipse.ant.core/plugin.properties b/ant/org.eclipse.ant.core/plugin.properties
deleted file mode 100644
index c3fe97e..0000000
--- a/ant/org.eclipse.ant.core/plugin.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-pluginName = Ant Build Tool Core
-objectsName = Ant Object Definitions
-tasksName = Ant Task Definitions
-typesName = Ant Type Definitions
diff --git a/ant/org.eclipse.ant.core/plugin.xml b/ant/org.eclipse.ant.core/plugin.xml
deleted file mode 100644
index b62d52d..0000000
--- a/ant/org.eclipse.ant.core/plugin.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin
- name="%pluginName"
- id="org.eclipse.ant.core"
- version="0.9"
- class="org.eclipse.ant.core.AntPlugin"
- provider-name="Object Technology International, Inc.">
-
- <runtime>
- <library name="ant.jar">
- <export name="*"/>
- </library>
- <library name="antsupport.jar">
- <export name="*"/>
- </library>
- </runtime>
-
- <requires>
- <import plugin="org.eclipse.core.resources"/>
- <import plugin="org.apache.xerces"/>
- </requires>
-
- <extension id="antRunner" point="org.eclipse.core.runtime.applications">
- <application>
- <run class="org.eclipse.ant.core.AntRunner">
- </run>
- </application>
- </extension>
-
- <extension-point name="%objectsName" id="antObjects"/>
- <extension-point name="%tasksName" id="antTasks"/>
- <extension-point name="%typesName" id="antTypes"/>
-
- <extension point="org.eclipse.ant.core.antTypes">
- <antType name="commapatternset" class="org.eclipse.ant.core.CommaPatternSet"/>
- </extension>
-
- <extension point="org.eclipse.ant.core.antTasks">
- <antTask name="incremental" class="org.eclipse.ant.core.IncrementalBuild"/>
- <antTask name="javac" class="org.eclipse.ant.core.EclipseJavac"/>
- <antTask name="refreshLocal" class="org.eclipse.ant.core.RefreshLocal"/>
- </extension>
-
-</plugin>
diff --git a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntPlugin.java b/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntPlugin.java
deleted file mode 100644
index 5e70851..0000000
--- a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntPlugin.java
+++ /dev/null
@@ -1,176 +0,0 @@
-package org.eclipse.ant.core;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2001.
- * All Rights Reserved.
- */
-
-import org.eclipse.core.runtime.*;
-import java.util.HashMap;
-import java.util.Map;
-import org.apache.tools.ant.Task;
-
-/**
- * The plug-in runtime class for the Ant Core plug-in.
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under
- * development and expected to change significantly before reaching stability.
- * It is being made available at this early stage to solicit feedback from pioneering
- * adopters on the understanding that any code that uses this API will almost
- * certainly be broken (repeatedly) as the API evolves.
- * </p>
- */
-
-public final class AntPlugin extends Plugin {
- /**
- * The single instance of this plug-in runtime class.
- */
- private static AntPlugin plugin;
-
- /**
- * Table of Ant tasks added through the antTasks extension point
- */
- private Map taskExtensions;
-
- /**
- * Table of Ant objects added through the antObjects extension point
- */
- private Map objectExtensions;
-
- /**
- * Table of Ant types added through the antTypes extension point
- */
- private Map typeExtensions;
-
- /**
- * Unique identifier constant (value <code>"org.eclipse.ant.core"</code>)
- * for the Ant plug-in.
- */
- public static final String PI_ANT= "org.eclipse.ant.core";
-
- /**
- * Simple identifier constant (value <code>"antTasks"</code>)
- * for the Ant tasks extension point.
- */
- public static final String PT_ANTTASKS = "antTasks";
-
- /**
- * Simple identifier constant (value <code>"antTypes"</code>)
- * for the Ant types extension point.
- */
- public static final String PT_ANTTYPES = "antTypes";
-
- /**
- * Simple identifier constant (value <code>"antObjects"</code>)
- * for the Ant objects extension point.
- */
- public static final String PT_ANTOBJECTS = "antObjects";
-
- /**
- * Simple identifier constant (value <code>"class"</code>)
- * of a tag that appears in Ant extensions.
- */
- public static final String CLASS = "class";
-
- /**
- * Simple identifier constant (value <code>"class"</code>)
- * of a tag that appears in Ant extensions.
- */
- public static final String NAME = "name";
-
-/**
- * Constructs an instance of this plug-in runtime class.
- * <p>
- * Instances of plug-in runtime classes are automatically created
- * by the platform in the course of plug-in activation.
- * <b>No client or plug-in should ever explicitly instantiate
- * a plug-in runtime class</b>.
- * </p>
- *
- * @param pluginDescriptor the plug-in descriptor for the
- * Resources plug-in
- */
-public AntPlugin(IPluginDescriptor pluginDescriptor) {
- super(pluginDescriptor);
- plugin = this;
-}
-
-/**
- * Returns the internal collection of object extensions.
- *
- * @return the internal collection of object extensions
- */
-public Map getObjectExtensions() {
- return objectExtensions;
-}
-
-/**
- * Returns this plug-in.
- *
- * @return the single instance of this plug-in runtime class
- */
-public static AntPlugin getPlugin() {
- return plugin;
-}
-
-/**
- * Returns the internal collection of task extensions.
- *
- * @return the internal collection of task extensions
- */
-public Map getTaskExtensions() {
- return taskExtensions;
-}
-
-/**
- * Returns the internal collection of type extensions.
- *
- * @return the internal collection of type extensions
- */
-public Map getTypeExtensions() {
- return typeExtensions;
-}
-
-/**
- * This implementation of the corresponding <code>Plugin</code> method
- *
- * @exception CoreException if this method fails to shut down this plug-in
- */
-public void shutdown() throws CoreException {
-}
-
-/**
- * This implementation of the corresponding <code>Plugin</code> method
- *
- * @exception CoreException if this plug-in did not start up properly
- */
-public void startup() throws CoreException {
- IExtensionPoint extensionPoint = getDescriptor().getExtensionPoint(PT_ANTTASKS);
- if (extensionPoint != null) {
- IConfigurationElement[] extensions = extensionPoint.getConfigurationElements();
- taskExtensions = new HashMap(extensions.length);
- for (int i = 0; i < extensions.length; i++) {
- String name = extensions[i].getAttribute(NAME);
- taskExtensions.put(name, extensions[i]);
- }
- }
- extensionPoint = getDescriptor().getExtensionPoint(PT_ANTTYPES);
- if (extensionPoint != null) {
- IConfigurationElement[] extensions = extensionPoint.getConfigurationElements();
- typeExtensions = new HashMap(extensions.length);
- for (int i = 0; i < extensions.length; i++) {
- String name = extensions[i].getAttribute(NAME);
- typeExtensions.put(name, extensions[i]);
- }
- }
- extensionPoint = getDescriptor().getExtensionPoint(PT_ANTOBJECTS);
- if (extensionPoint != null) {
- IConfigurationElement[] extensions = extensionPoint.getConfigurationElements();
- objectExtensions = new HashMap(extensions.length);
- for (int i = 0; i < extensions.length; i++) {
- String name = extensions[i].getAttribute(NAME);
- objectExtensions.put(name, extensions[i]);
- }
- }
-}
-}
diff --git a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntRunner.java b/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntRunner.java
deleted file mode 100644
index 7e5e24a..0000000
--- a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntRunner.java
+++ /dev/null
@@ -1,677 +0,0 @@
-package org.eclipse.ant.core;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2001.
- * All Rights Reserved.
- */
-
-/*
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1999, 2000 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowlegement may appear in the software itself,
- * if and wherever such third-party acknowlegements normally appear.
- *
- * 4. The names "The Jakarta Project", "Ant", and "Apache Software
- * Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
- * permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache"
- * nor may "Apache" appear in their names without prior written
- * permission of the Apache Group.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * <http://www.apache.org/>.
- */
-import org.eclipse.core.boot.IPlatformRunnable;
-import java.io.*;
-import java.util.*;
-import org.apache.tools.ant.*;
-
-/**
- * Eclipse application entry point into Ant. Derived from the original Ant Main class
- * to ensure that the functionality was equivalent when running in the platform.
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under
- * development and expected to change significantly before reaching stability.
- * It is being made available at this early stage to solicit feedback from pioneering
- * adopters on the understanding that any code that uses this API will almost
- * certainly be broken (repeatedly) as the API evolves.
- * </p>
- */
-
-public class AntRunner implements IPlatformRunnable {
-
- /** The default build file name */
- public static final String DEFAULT_BUILD_FILENAME= "build.xml";
-
- /** Our current message output status. Follows Project.MSG_XXX */
- private int msgOutputLevel= Project.MSG_INFO;
-
- /** File that we are using for configuration */
- private File buildFile; /** null */
-
- /** Stream that we are using for logging */
- private PrintStream out= System.out;
-
- /** Stream that we are using for logging error messages */
- private PrintStream err= System.err;
-
- /** The build targets */
- private Vector targets= new Vector(5);
-
- /** Set of properties that can be used by tasks */
- private Properties definedProps= new Properties();
-
- /** Names of classes to add as listeners to project */
- private Vector listeners= new Vector(5);
-
- /** Names of classes to add as listeners to project */
- private AntRunnerListener clientListener;
-
- /**
- * The Ant logger class. There may be only one logger. It will have the
- * right to use the 'out' PrintStream. The class must implements the BuildLogger
- * interface
- */
- private String loggerClassname= null;
-
- /**
- * Indicates whether output to the log is to be unadorned.
- */
- private boolean emacsMode= false;
-
- /**
- * Indicates if this ant should be run.
- */
- private boolean readyToRun= false;
-
- /**
- * Indicates we should only parse and display the project help information
- */
- private boolean projectHelp= false;
-
- /**
- * Adds a logger and all registered build listeners to an ant project.
- *
- * @param project the project to add listeners to
- */
-protected void addBuildListeners(Project project) {
-
- // Add the default listener
- project.addBuildListener(createLogger());
-
- for (int i= 0; i < listeners.size(); i++) {
- String className= (String) listeners.elementAt(i);
- try {
- BuildListener listener= (BuildListener) Class.forName(className).newInstance();
- project.addBuildListener(listener);
- } catch (Exception exc) {
- throw new BuildException(Policy.bind("exception.cannotCreateListener",className), exc);
- }
- }
-}
-
-/**
- * Creates and returns the default build logger for logging build events to the ant log.
- *
- * @return the default build logger for logging build events to the ant log
- */
-private BuildLogger createLogger() {
- BuildLogger logger= null;
- if (loggerClassname != null) {
- try {
- logger= (BuildLogger) (Class.forName(loggerClassname).newInstance());
- } catch (ClassCastException e) {
- System.err.println(Policy.bind("exception.loggerDoesNotImplementInterface",loggerClassname));
- throw new RuntimeException();
- } catch (Exception e) {
- System.err.println(Policy.bind("exception.cannotCreateLogger",loggerClassname));
- throw new RuntimeException();
- }
- } else {
- logger= new DefaultLogger();
- }
-
- logger.setMessageOutputLevel(msgOutputLevel);
- logger.setOutputPrintStream(out);
- logger.setErrorPrintStream(err);
- logger.setEmacsMode(emacsMode);
-
- return logger;
-}
-
-/**
- * Search parent directories for the build file.
- *
- * <P>Takes the given target as a suffix to append to each
- * parent directory in seach of a build file. Once the
- * root of the file-system has been reached an exception
- * is thrown.
- *
- * @param suffix Suffix filename to look for in parents.
- * @return A handle to the build file
- *
- * @exception BuildException Failed to locate a build file
- */
-private File findBuildFile(String start, String suffix) throws BuildException {
-
- clientListener.messageLogged(Policy.bind("info.searchingFor",suffix), Project.MSG_INFO);
-
- File parent = new File(new File(start).getAbsolutePath());
- File file = new File(parent, suffix);
-
- // check if the target file exists in the current directory
- while (!file.exists()) {
- // change to parent directory
- parent= getParentFile(parent);
-
- // if parent is null, then we are at the root of the fs,
- // complain that we can't find the build file.
- if (parent == null)
- throw new BuildException(Policy.bind("exception.noBuildFile"));
-
- // refresh our file handle
- file= new File(parent, suffix);
- }
-
- return file;
-}
-
-/**
- * Returns the appropriate insertion index for a given string into a sorted collection.
- *
- * @return the insertion index
- * @param names the initial collection of sorted strings
- * @param name the string whose insertion index into <code>names</code> is to be determined
- */
-private int findTargetPosition(Vector names, String name) {
- int res= names.size();
- for (int i= 0; i < names.size() && res == names.size(); i++) {
- if (name.compareTo((String) names.elementAt(i)) < 0) {
- res= i;
- }
- }
- return res;
-}
-
-/**
- * Helper to get the parent file for a given file.
- *
- * <P>Added to simulate File.getParentFile() from JDK 1.2.
- *
- * @param file File
- * @return Parent file or null if none
- */
-private File getParentFile(File file) {
- String filename= file.getAbsolutePath();
- file= new File(filename);
- filename= file.getParent();
-
- clientListener.messageLogged(Policy.bind("info.searchingIn",filename), Project.MSG_VERBOSE);
-
- return (filename == null) ? null : new File(filename);
-}
-
-/**
- * Command-line invocation method.
- *
- * @param args the string arguments present on the command line
- */
-public static void main(String[] args) throws Exception {
- new AntRunner().run(args);
-}
-
-/**
- * Equivalent to the standard command-line invocation method except
- * that command-line arguments are provided in the form of a string
- * instead of an array.
- *
- * @param argString the string arguments present on the command line
- */
-public static void main(String argString) throws Exception {
- main(tokenizeArgs(argString));
-}
-
-/**
- * Returns the output message level that has been requested by the
- * client. This value will be one of <code>Project.MSG_ERR</code>,
- * <code>Project.MSG_WARN</code>, <code>Project.MSG_INFO</code>,
- * <code>Project.MSG_VERBOSE</code> or <code>Project.MSG_DEBUG</code>.
- *
- * @see org.apache.tools.ant.Project
- * @return the output message level that has been requested by the client
- */
-public int getOutputMessageLevel() {
- return msgOutputLevel;
-}
-
-/**
- * Prints the message of the Throwable if it is not null.
- *
- * @param t the throwable whose message is to be displayed
- */
-private void printMessage(Throwable t) {
- String message= t.getMessage();
- if (message != null) {
- System.err.println(message);
- }
-}
-
-/**
- * Logs a message with the client that lists the target names and optional descriptions
- *
- * @param names the targets names
- * @param descriptions the corresponding descriptions
- * @param heading the message heading
- * @param maxlen maximum length that can be allocated for a name
- */
-private void printTargets(Vector names, Vector descriptions, String heading, int maxlen) {
- // now, start printing the targets and their descriptions
- String lSep= System.getProperty("line.separator");
- // got a bit annoyed that I couldn't find a pad function
- String spaces= " ";
- while (spaces.length() < maxlen) {
- spaces += spaces;
- }
- StringBuffer msg= new StringBuffer();
- msg.append(heading + lSep + lSep);
- for (int i= 0; i < names.size(); i++) {
- msg.append(" ");
- msg.append(names.elementAt(i));
- if (descriptions != null) {
- msg.append(spaces.substring(0, maxlen - ((String) names.elementAt(i)).length() + 2));
- msg.append(descriptions.elementAt(i));
- }
- msg.append(lSep);
- }
-
- clientListener.messageLogged(msg.toString(), Project.MSG_INFO);
-}
-
-/**
- * Logs a message with the client that lists the targets
- * in a project
- *
- * @param project the project to list targets from
- */
-private void printTargets(Project project) {
- // find the target with the longest name
- int maxLength= 0;
- Enumeration ptargets= project.getTargets().elements();
- String targetName;
- String targetDescription;
- Target currentTarget;
- // split the targets in top-level and sub-targets depending
- // on the presence of a description
- Vector topNames= new Vector();
- Vector topDescriptions= new Vector();
- Vector subNames= new Vector();
-
- while (ptargets.hasMoreElements()) {
- currentTarget= (Target) ptargets.nextElement();
- targetName= currentTarget.getName();
- targetDescription= currentTarget.getDescription();
- // maintain a sorted list of targets
- if (targetDescription == null) {
- int pos= findTargetPosition(subNames, targetName);
- subNames.insertElementAt(targetName, pos);
- } else {
- int pos= findTargetPosition(topNames, targetName);
- topNames.insertElementAt(targetName, pos);
- topDescriptions.insertElementAt(targetDescription, pos);
- if (targetName.length() > maxLength) {
- maxLength= targetName.length();
- }
- }
- }
- printTargets(topNames, topDescriptions, Policy.bind("label.mainTargets"), maxLength);
- printTargets(subNames, null, Policy.bind("label.subTargets"), 0);
-}
-
-/**
- * Logs a message with the client outlining the usage of <b>Ant</b>.
- */
-private void printUsage() {
- String lSep= System.getProperty("line.separator");
- StringBuffer msg= new StringBuffer();
- msg.append("ant [" + Policy.bind("usage.options") + "] ["
- + Policy.bind("usage.target") + " ["
- + Policy.bind("usage.target") + "2 ["
- + Policy.bind("usage.target") + "3] ...]]" + lSep);
- msg.append(Policy.bind("usage.Options") + ": " + lSep);
- msg.append(" -help " + Policy.bind("usage.printMessage") + lSep);
- msg.append(" -projecthelp " + Policy.bind("usage.projectHelp") + lSep);
- msg.append(" -version " + Policy.bind("usage.versionInfo") + lSep);
- msg.append(" -quiet " + Policy.bind("usage.beQuiet") + lSep);
- msg.append(" -verbose " + Policy.bind("usage.beVerbose") + lSep);
- msg.append(" -debug " + Policy.bind("usage.printDebugInfo") + lSep);
- msg.append(" -emacs " + Policy.bind("usage.emacsLog") + lSep);
- msg.append(" -logfile <file> " + Policy.bind("usage.useFile") + lSep);
- msg.append(" -logger <classname> " + Policy.bind("usage.logClass") + lSep);
- msg.append(" -listener <classname> " + Policy.bind("usage.listenerClass") + lSep);
- msg.append(" -buildfile <file> " + Policy.bind("usage.fileToBuild") + lSep);
- msg.append(" -D<property>=<value> " + Policy.bind("usage.propertiesValues") + lSep);
- msg.append(" -find <file> " + Policy.bind("usage.findFileToBuild") + lSep);
-
- clientListener.messageLogged(msg.toString(), Project.MSG_INFO);
-}
-
-/**
- * Logs a message with the client indicating the version of <b>Ant</b> that this class
- * fronts.
- */
-private void printVersion() {
- try {
- Properties props= new Properties();
- InputStream in= Main.class.getResourceAsStream("/org/apache/tools/ant/version.txt");
- props.load(in);
- in.close();
-
- String lSep= System.getProperty("line.separator");
- StringBuffer msg= new StringBuffer();
- msg.append(Policy.bind("usage.antVersion"));
- msg.append(props.getProperty("VERSION") + " ");
- msg.append(Policy.bind("usage.compiledOn"));
- msg.append(props.getProperty("DATE"));
- msg.append(lSep);
-
- clientListener.messageLogged(msg.toString(), Project.MSG_INFO);
- } catch (IOException ioe) {
- System.err.println(Policy.bind("exception.cannotLoadVersionInfo"));
- System.err.println(ioe.getMessage());
- } catch (NullPointerException npe) {
- System.err.println(Policy.bind("exception.cannotLoadVersionInfo"));
- }
-}
-
-/**
- * Processes the command line passed in by the client.
- *
- * @execption BuildException occurs if the build file is not properly specified
- * @param args the collection of arguments
- */
-protected void processCommandLine(String[] args) throws BuildException {
-
- String searchForThis= null;
-
- // cycle through given args
-
- for (int i= 0; i < args.length; i++) {
- String arg= args[i];
-
- if (arg.equals("-help")) {
- printUsage();
- return;
- } else if (arg.equals("-version")) {
- printVersion();
- return;
- } else if (arg.equals("-quiet") || arg.equals("-q")) {
- msgOutputLevel= Project.MSG_WARN;
- } else if (arg.equals("-verbose") || arg.equals("-v")) {
- printVersion();
- msgOutputLevel= Project.MSG_VERBOSE;
- } else if (arg.equals("-debug")) {
- printVersion();
- msgOutputLevel= Project.MSG_DEBUG;
- } else if (arg.equals("-logfile") || arg.equals("-l")) {
- try {
- File logFile= new File(args[i + 1]);
- i++;
- out= new PrintStream(new FileOutputStream(logFile));
- err= out;
- System.setOut(out);
- System.setErr(out);
- } catch (IOException ioe) {
- clientListener.messageLogged(Policy.bind("exception.cannotWriteToLog"), Project.MSG_INFO);
- return;
- } catch (ArrayIndexOutOfBoundsException aioobe) {
- clientListener.messageLogged(Policy.bind("exception.missingLogFile"), Project.MSG_INFO);
- return;
- }
- } else if (arg.equals("-buildfile") || arg.equals("-file") || arg.equals("-f")) {
- try {
- buildFile= new File(args[i + 1]);
- i++;
- } catch (ArrayIndexOutOfBoundsException aioobe) {
- clientListener.messageLogged(Policy.bind("exception.missingBuildFile"), Project.MSG_INFO);
- return;
- }
- } else if (arg.equals("-listener")) {
- try {
- listeners.addElement(args[i + 1]);
- i++;
- } catch (ArrayIndexOutOfBoundsException aioobe) {
- clientListener.messageLogged(Policy.bind("exception.missingClassName"), Project.MSG_INFO);
- return;
- }
- } else if (arg.startsWith("-D")) {
-
- /* Interestingly enough, we get to here when a user
- * uses -Dname=value. However, in some cases, the JDK
- * goes ahead * and parses this out to args
- * {"-Dname", "value"}
- * so instead of parsing on "=", we just make the "-D"
- * characters go away and skip one argument forward.
- *
- * I don't know how to predict when the JDK is going
- * to help or not, so we simply look for the equals sign.
- */
-
- String name= arg.substring(2, arg.length());
- String value= null;
- int posEq= name.indexOf("=");
- if (posEq > 0) {
- value= name.substring(posEq + 1);
- name= name.substring(0, posEq);
- } else if (i < args.length - 1)
- value= args[++i];
-
- definedProps.put(name, value);
- } else if (arg.equals("-logger")) {
- if (loggerClassname != null) {
- clientListener.messageLogged(Policy.bind("exception.multipleLoggers"), Project.MSG_INFO);
- return;
- }
- loggerClassname= args[++i];
- } else if (arg.equals("-emacs"))
- emacsMode = true;
- else if (arg.equals("-projecthelp"))
- projectHelp= true; // set the flag to display the targets and quit
- else if (arg.equals("-find")) {
- // eat up next arg if present, default to build.xml
- if (i < args.length - 1)
- searchForThis= args[++i];
- else
- searchForThis= DEFAULT_BUILD_FILENAME;
- } else if (arg.startsWith("-")) {
- // we don't have any more args to recognize!
- clientListener.messageLogged(Policy.bind("exception.unknownArgument",arg), Project.MSG_INFO);
- printUsage();
- return;
- } else
- targets.addElement(arg); // if it's no other arg, it may be the target
-
- }
-
- // if buildFile was not specified on the command line,
- if (buildFile == null) {
- // but -find then search for it
- if (searchForThis != null)
- buildFile= findBuildFile(".", searchForThis);
- else
- buildFile= new File(DEFAULT_BUILD_FILENAME);
- }
-
- // make sure buildfile exists
- if (!buildFile.getAbsoluteFile().exists()) {
- clientListener.messageLogged(Policy.bind("exception.buildFileNotFound",buildFile.toString()), Project.MSG_INFO);
- throw new BuildException(Policy.bind("error.buildFailed"));
- }
-
- // make sure it's not a directory (this falls into the ultra
- // paranoid lets check everything catagory
-
- if (buildFile.isDirectory()) {
- clientListener.messageLogged(Policy.bind("exception.buildFileIsDirectory",buildFile.toString()), Project.MSG_INFO);
- throw new BuildException(Policy.bind("error.buildFailed"));
- }
-
- readyToRun= true;
-}
-
-/**
- * Invokes the building of a project object and executes a build using either a given
- * target or the default target.
- *
- * @param argArray the command line arguments
- * @exception execution exceptions
- */
-public Object run(Object argArray) throws Exception {
- String[] args= (String[]) argArray;
- processCommandLine(args);
- try {
- runBuild();
- } catch (BuildException e) {
- if (err != System.err)
- printMessage(e);
- throw e;
- } catch (ThreadDeath e) {
- throw e;
- } catch (Throwable e) {
- printMessage(e);
- }
- return null;
-}
-
-/**
- * Invokes the building of a project object and executes a build using either a given
- * target or the default target.
- *
- * @param argArray the command line arguments
- * @param listener the client listener
- * @exception execution exceptions
- */
-public Object run(Object argArray, AntRunnerListener listener) throws Exception {
- clientListener = listener;
- return run(argArray);
-}
-
-/**
- * Executes the build.
- *
- * @exception BuildException thrown if there is a problem during building.
- */
-private void runBuild() throws BuildException {
- if (!readyToRun)
- return;
-
- clientListener.messageLogged(Policy.bind("label.buildFile",buildFile.toString()),Project.MSG_INFO);
-
- EclipseProject project = new EclipseProject();
-
- Throwable error= null;
-
- try {
- if (clientListener != null)
- project.addBuildListener(clientListener);
- else
- addBuildListeners(project);
-
- project.fireBuildStarted();
-
- project.init();
-
- // set user-define properties
- Enumeration e= definedProps.keys();
- while (e.hasMoreElements()) {
- String arg= (String) e.nextElement();
- String value= (String) definedProps.get(arg);
- project.setUserProperty(arg, value);
- }
-
- project.setUserProperty("ant.file", buildFile.getAbsolutePath());
-
- // first use the ProjectHelper to create the project object
- // from the given build file.
- try {
- Class.forName("javax.xml.parsers.SAXParserFactory");
- ProjectHelper.configureProject(project, buildFile);
- } catch (NoClassDefFoundError ncdfe) {
- throw new BuildException(Policy.bind("exception.noParser"),ncdfe);
- } catch (ClassNotFoundException cnfe) {
- throw new BuildException(Policy.bind("exception.noParser"),cnfe);
- } catch (NullPointerException npe) {
- throw new BuildException(Policy.bind("exception.noParser"),npe);
- }
-
- // make sure that we have a target to execute
- if (targets.size() == 0) {
- targets.addElement(project.getDefaultTarget());
- }
-
- if (projectHelp) {
- printTargets(project);
- } else {
- // actually do some work
- project.executeTargets(targets);
- }
- } catch (RuntimeException exc) {
- error= exc;
- throw exc;
- } catch (Error err) {
- error= err;
- throw err;
- } finally {
- project.fireBuildFinished(error);
- }
-}
-
-/**
- * Returns a tokenized version of a string.
- *
- * @return a tokenized version of a string
- * @param argString the original argument string
- */
-public static String[] tokenizeArgs(String argString) throws Exception {
- Vector list = new Vector(5);
- for (StringTokenizer tokens = new StringTokenizer(argString, " "); tokens.hasMoreElements();)
- list.addElement((String) tokens.nextElement());
- return (String[]) list.toArray(new String[list.size()]);
-}
-}
diff --git a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntRunnerListener.java b/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntRunnerListener.java
deleted file mode 100644
index f2bde5e..0000000
--- a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/AntRunnerListener.java
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/CommaPatternSet.java b/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/CommaPatternSet.java
deleted file mode 100644
index 543955b..0000000
--- a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/CommaPatternSet.java
+++ /dev/null
@@ -1,390 +0,0 @@
-package org.eclipse.ant.core;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2001.
- * All Rights Reserved.
- */
-
-/*
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 2000 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowlegement may appear in the software itself,
- * if and wherever such third-party acknowlegements normally appear.
- *
- * 4. The names "The Jakarta Project", "Ant", and "Apache Software
- * Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
- * permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache"
- * nor may "Apache" appear in their names without prior written
- * permission of the Apache Group.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * <http://www.apache.org/>.
- */
-
-import org.apache.tools.ant.Project;
-import org.apache.tools.ant.ProjectHelper;
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.types.PatternSet;
-import org.apache.tools.ant.types.Reference;
-
-import java.io.*;
-import java.util.Enumeration;
-import java.util.Stack;
-import java.util.StringTokenizer;
-import java.util.Vector;
-
-/**
- * Named collection of include/exclude tags. This is largely a copy of the original
- * Ant PatternSet data type. Unfortunately, that datatype used both the comma and
- * the space character as a token to delimit pattern entries. This makes it virtually
- * impossible to use for files which have spaces in their names. The <code>CommaPatternSet</code>
- * is not particularly usable but it is easier than trying to deal with the original.
- * <p>
- * A complete copy was done to ensure that the behavior is correct. Otherwise there is a
- * risk of getting some values from the private slots of the superclass and some from this
- * class. Unfortunately, there is no way to link this support into <code>FileSet</code>.
- * </p>
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under
- * development and expected to change significantly before reaching stability.
- * It is being made available at this early stage to solicit feedback from pioneering
- * adopters on the understanding that any code that uses this API will almost
- * certainly be broken (repeatedly) as the API evolves.
- * </p>
- * @see PatternSet
- */
-public class CommaPatternSet extends PatternSet {
- private Vector includeList = new Vector();
- private Vector excludeList = new Vector();
- private File incl = null;
- private File excl = null;
-
-/**
- * Constructs an instance of a <code>CommaPatternSet</code>.
- */
-public CommaPatternSet() {
- super();
-}
-/**
- * Adds a name entry to the given list.
- *
- * @return the new name entry
- * @param list the target list
- */
-private NameEntry addPatternToList(Vector list) {
- NameEntry result = new NameEntry();
- list.addElement(result);
- return result;
-}
-
-/**
- * Adds the patterns of another <code>PatternSet</code> to the receiver.
- *
- * @param other the other <code>PatternSet</code>
- * @param p the target project
- */
-public void append(PatternSet other, Project p) {
- if (isReference()) {
- throw new BuildException(Policy.bind("exception.cannotAppendToReference"));
- }
-
- String[] incl = other.getIncludePatterns(p);
- if (incl != null) {
- for (int i=0; i<incl.length; i++) {
- createInclude().setName(incl[i]);
- }
- }
-
- String[] excl = other.getExcludePatterns(p);
- if (excl != null) {
- for (int i=0; i<excl.length; i++) {
- createExclude().setName(excl[i]);
- }
- }
-}
-
-/**
- * Adds a name entry to the receiver's exclude list.
- *
- * @return the new name entry
- */
-public NameEntry createExclude() {
- if (isReference()) {
- throw noChildrenAllowed();
- }
- return addPatternToList(excludeList);
-}
-
-/**
- * Adds a name entry to the receiver's include list.
- *
- * @return the new name entry
- */
-public NameEntry createInclude() {
- if (isReference()) {
- throw noChildrenAllowed();
- }
- return addPatternToList(includeList);
-}
-
-/**
- * Returns the receiver's filtered exclude patterns.
- *
- * @return the receiver's filtered exclude patterns.
- * @param the target project
- */
-public String[] getExcludePatterns(Project p) {
- if (isReference()) {
- return getRef(p).getExcludePatterns(p);
- } else {
- readFiles(p);
- return makeArray(excludeList, p);
- }
-}
-
-/**
- * Returns the receiver's filtered include patterns.
- *
- * @return the receiver's filtered include patterns.
- * @param the target project
- */
-public String[] getIncludePatterns(Project p) {
- if (isReference()) {
- return getRef(p).getIncludePatterns(p);
- } else {
- readFiles(p);
- return makeArray(includeList, p);
- }
-}
-
-/**
- * Performs a check for circular references and returns the
- * referenced <code>PatternSet</code>.
- *
- * @return the referenced <code>PatternSet</code>
- * @param the target project
- */
-private PatternSet getRef(Project p) {
- if (!checked) {
- Stack stk = new Stack();
- stk.push(this);
- dieOnCircularReference(stk, p);
- }
-
- Object o = ref.getReferencedObject(p);
- if (!(o instanceof PatternSet))
- throw new BuildException(Policy.bind("exception.notAPatternSet",ref.getRefId()));
- else
- return (PatternSet) o;
-}
-
-/**
- * Returns a boolean indicating whether this instance has any patterns.
- *
- * @return a boolean indicating whether this instance has any patterns
- */
-boolean hasPatterns() {
- return incl != null || excl != null
- || includeList.size() > 0 || excludeList.size() > 0;
-}
-
-/**
- * Returns a given vector of name entries as an array of strings.
- *
- * @return a string array of name entries
- * @param list the original vector of name entries
- * @param p the target project
- */
-private String[] makeArray(Vector list, Project p) {
- if (list.size() == 0) return null;
-
- Vector tmpNames = new Vector();
- for (Enumeration e = list.elements() ; e.hasMoreElements() ;) {
- NameEntry ne = (NameEntry)e.nextElement();
- String pattern = ne.evalName(p);
- if (pattern != null && pattern.length() > 0) {
- tmpNames.addElement(pattern);
- }
- }
-
- String result[] = new String[tmpNames.size()];
- tmpNames.copyInto(result);
- return result;
-}
-
-/**
- * Reads includefile and excludefile if not already done.
- *
- * @param p the target project
- */
-private void readFiles(Project p) {
- if (incl != null) {
- readPatterns(incl, includeList, p);
- incl = null;
- }
- if (excl != null) {
- readPatterns(excl, excludeList, p);
- excl = null;
- }
-}
-
-/**
- * Reads path matching patterns from a file and adds them to the
- * includes or excludes list as appropriate.
- *
- * @param patternfile the source file
- * @param patternlist the list of patterns
- * @param p the target project
- * @exception BuildException thrown if the file cannot be read
- */
-private void readPatterns(File patternfile, Vector patternlist, Project p)
- throws BuildException {
-
- try {
- // Get a FileReader
- BufferedReader patternReader =
- new BufferedReader(new FileReader(patternfile));
-
- // Create one NameEntry in the appropriate pattern list for each
- // line in the file.
- String line = patternReader.readLine();
- while (line != null) {
- if (line.length() > 0) {
- line = ProjectHelper.replaceProperties(p, line,
- p.getProperties());
- addPatternToList(patternlist).setName(line);
- }
- line = patternReader.readLine();
- }
- } catch(IOException ioe) {
- throw new BuildException(Policy.bind("exception.patternFile",patternfile.toString()),ioe);
- }
-}
-
-/**
- * Sets the receiver's set of exclude patterns. Patterns may be separated by a comma
- * or a space.
- *
- * @param excludes the exclude patterns
- */
-public void setExcludes(String excludes) {
- if (isReference()) {
- throw tooManyAttributes();
- }
- if (excludes != null && excludes.length() > 0) {
- StringTokenizer tok = new StringTokenizer(excludes, ",", false);
- while (tok.hasMoreTokens()) {
- createExclude().setName(tok.nextToken());
- }
- }
-}
-
-/**
- * Sets the name of the file containing the excludes patterns.
- *
- * @param excl the file to retrieve the exclude patterns from
- * @exception BuildException thrown if the file does not exist
- */
-public void setExcludesfile(File excl) throws BuildException {
- if (isReference())
- throw tooManyAttributes();
- if (!excl.exists())
- throw new BuildException(Policy.bind("exception.missingExcludesFile",excl.getAbsolutePath()));
- this.excl = excl;
-}
-
-/**
- * Sets the receiver's id.
- *
- * @param value the id
- */
-public void setId(String value) {
-}
-
-/**
- * Sets the receiver's set of include patterns. Patterns may be separated by a comma
- * or a space.
- *
- * @param includes the include patterns
- */
-public void setIncludes(String includes) {
- if (isReference()) {
- throw tooManyAttributes();
- }
- if (includes != null && includes.length() > 0) {
- StringTokenizer tok = new StringTokenizer(includes, ",", false);
- while (tok.hasMoreTokens()) {
- createInclude().setName(tok.nextToken());
- }
- }
-}
-
-/**
- * Sets the name of the file containing the includes patterns.
- *
- * @param incl the file to retrieve the include patterns from
- * @exception BuildException thrown if the file does not exist
- */
-public void setIncludesfile(File incl) throws BuildException {
- if (isReference())
- throw tooManyAttributes();
- if (!incl.exists())
- throw new BuildException(Policy.bind("exception.missingIncludesFile",incl.getAbsolutePath()));
- this.incl = incl;
-}
-
-/**
- * Makes the receiver effectively a reference to another <code>PatternSet</code>
- * instance.
- *
- * <p>Once this element becomes a reference its internal attributes and nested elements
- * must not be modified.</p>
- *
- * @param r the other <code>PatternSet</code>
- * @exception BuildException
- */
-public void setRefid(Reference r) throws BuildException {
- if (!includeList.isEmpty() || !excludeList.isEmpty()) {
- throw tooManyAttributes();
- }
- super.setRefid(r);
-}
-}
diff --git a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/EclipseAnt.java b/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/EclipseAnt.java
deleted file mode 100644
index 35303a3..0000000
--- a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/EclipseAnt.java
+++ /dev/null
@@ -1,284 +0,0 @@
-package org.eclipse.ant.core;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2001.
- * All Rights Reserved.
- */
-
-/*
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1999 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowlegement may appear in the software itself,
- * if and wherever such third-party acknowlegements normally appear.
- *
- * 4. The names "The Jakarta Project", "Ant", and "Apache Software
- * Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
- * permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache"
- * nor may "Apache" appear in their names without prior written
- * permission of the Apache Group.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * <http://www.apache.org/>.
- */
-
-import org.apache.tools.ant.*;
-import org.apache.tools.ant.taskdefs.Property;
-import org.apache.tools.ant.taskdefs.Ant;
-import java.io.*;
-import java.util.*;
-
-/**
- * Call Ant in a sub-project.
- * This is a bulk copy of the original Ant task. Unfortunately the original
- * created a new Project in which to run Ant. This prevents people from
- * providing their own kind of Project and having that propogate into
- * the subprojects.
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under
- * development and expected to change significantly before reaching stability.
- * It is being made available at this early stage to solicit feedback from pioneering
- * adopters on the understanding that any code that uses this API will almost
- * certainly be broken (repeatedly) as the API evolves.
- * </p>
- */
-public class EclipseAnt extends Ant {
-
- private File dir = null;
- private String antFile = null;
- private String target = null;
- private String output = null;
- private final static String DEFAULT_ANTFILE = "build.xml";
- private Vector properties = new Vector();
- private Project p1;
-
-/**
- * Creates and returns a new <code>Property</code> for the receiver's
- * target project.
- *
- * @return the new property
- */
-public Property createProperty() {
- if (p1 == null) {
- reinit();
- }
-
- Property p=(Property)p1.createTask("property");
- p.setUserProperty(true);
- properties.addElement( p );
- return p;
-}
-
-/**
- * Performs the execution.
- *
- * @exception BuildException thrown if an execution problem occurs
- */
-public void execute() throws BuildException {
- try {
- if (p1 == null) {
- reinit();
- }
-
- if (dir == null)
- dir = project.getBaseDir();
-
- initializeProject();
-
- p1.setBaseDir(dir);
- p1.setUserProperty("basedir" , dir.getAbsolutePath());
-
- // Override with local-defined properties
- Enumeration e = properties.elements();
- while (e.hasMoreElements()) {
- Property p=(Property) e.nextElement();
- p.execute();
- }
-
- if (antFile == null)
- antFile = DEFAULT_ANTFILE;
-
- File file = new File(antFile);
- if (!file.isAbsolute()) {
- antFile = (new File(dir, antFile)).getAbsolutePath();
- file = (new File(antFile)) ;
- if(!file.isFile() ) {
- throw new BuildException(Policy.bind("exception.buildFileNotFound",file.toString()));
- }
- }
-
- p1.setUserProperty("ant.file", antFile );
- ProjectHelper.configureProject(p1, new File(antFile));
-
- if (target == null) {
- target = p1.getDefaultTarget();
- }
-
- // Are we trying to call the target in which we are defined?
- if (p1.getBaseDir().equals(project.getBaseDir()) &&
- p1.getProperty("ant.file").equals(project.getProperty("ant.file")) &&
- target.equals(this.getOwningTarget().getName())) {
-
- throw new BuildException(Policy.bind("exception.antTaskCallingParentTarget"));
- }
-
- p1.executeTarget(target);
- } finally {
- // help the gc
- p1 = null;
- }
-}
-
-/**
- * Initializes the receiver.
- */
-public void init() {
- p1 = new Project();
- p1.setJavaVersionProperty();
- p1.addTaskDefinition("property",
- (Class)project.getTaskDefinitions().get("property"));
-}
-
-/**
- * Initializes the target project.
- */
-private void initializeProject() {
- Vector listeners = project.getBuildListeners();
- for (int i = 0; i < listeners.size(); i++) {
- p1.addBuildListener((BuildListener)listeners.elementAt(i));
- }
-
- if (output != null) {
- try {
- PrintStream out = new PrintStream(new FileOutputStream(output));
- DefaultLogger logger = new DefaultLogger();
- logger.setMessageOutputLevel(Project.MSG_INFO);
- logger.setOutputPrintStream(out);
- logger.setErrorPrintStream(out);
- p1.addBuildListener(logger);
- } catch(IOException ex) {
- log(Policy.bind("exception.cannotSetOutput",output));
- }
- }
-
- Hashtable taskdefs = project.getTaskDefinitions();
- Enumeration et = taskdefs.keys();
- while (et.hasMoreElements()) {
- String taskName = (String) et.nextElement();
- Class taskClass = (Class) taskdefs.get(taskName);
- p1.addTaskDefinition(taskName, taskClass);
- }
-
- Hashtable typedefs = project.getDataTypeDefinitions();
- Enumeration e = typedefs.keys();
- while (e.hasMoreElements()) {
- String typeName = (String) e.nextElement();
- Class typeClass = (Class) typedefs.get(typeName);
- p1.addDataTypeDefinition(typeName, typeClass);
- }
-
- // set user-define properties
- Hashtable prop1 = project.getProperties();
- e = prop1.keys();
- while (e.hasMoreElements()) {
- String arg = (String) e.nextElement();
- String value = (String) prop1.get(arg);
- p1.setProperty(arg, value);
- }
-}
-
-/**
- * Reinitializes the receiver.
- */
-private void reinit() {
- init();
- for (int i=0; i<properties.size(); i++) {
- Property p = (Property) properties.elementAt(i);
- Property newP = (Property) p1.createTask("property");
- newP.setName(p.getName());
- if (p.getValue() != null) {
- newP.setValue(p.getValue());
- }
- if (p.getFile() != null) {
- newP.setFile(p.getFile());
- }
- if (p.getResource() != null) {
- newP.setResource(p.getResource());
- }
- properties.setElementAt(newP, i);
- }
-}
-
-/**
- * Sets the receiver's target <b>Ant</b> file.
- *
- * @param s the <b>Ant</b> file location
- */
-public void setAntfile(String s) {
- this.antFile = s;
-}
-
-/**
- * Sets the receiver's target directory.
- *
- * @param s the target directory
- */
-public void setDir(File d) {
- this.dir = d;
-}
-
-/**
- * Sets the receiver's output destination.
- *
- * @param s the output destination
- */
-public void setOutput(String s) {
- this.output = s;
-}
-
-/**
- * Sets the receiver's <b>Ant</b> target to invoke.
- *
- * @param s the <b>Ant</b> target to invoke
- */
-public void setTarget(String s) {
- this.target = s;
-}
-}
diff --git a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/EclipseCompilerAdapterFactory.java b/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/EclipseCompilerAdapterFactory.java
deleted file mode 100644
index b4fab82..0000000
--- a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/EclipseCompilerAdapterFactory.java
+++ /dev/null
@@ -1,68 +0,0 @@
-package org.eclipse.ant.core;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2001.
- * All Rights Reserved.
- */
-
-import org.eclipse.core.runtime.IConfigurationElement;
-
-import org.apache.tools.ant.*;
-import org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory;
-import org.apache.tools.ant.taskdefs.compilers.CompilerAdapter;
-import java.util.Map;
-
-/**
- * Static helper functionality for finding the correct compiler adapter to use for the current
- * Javac task. This class logically wrappers the standard Ant
- * <code>CompilerAdapterFactory</code>. It changes the behvaior to use the
- * Ant plug-ins object class registry to find the compiler adapter class. This is needed
- * because of the platform's class loading strategy (otherwise the Ant plug-in would likely not
- * be able to see the other classes).
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under
- * development and expected to change significantly before reaching stability.
- * It is being made available at this early stage to solicit feedback from pioneering
- * adopters on the understanding that any code that uses this API will almost
- * certainly be broken (repeatedly) as the API evolves.
- * </p>
- */
-
-public class EclipseCompilerAdapterFactory {
-
-private EclipseCompilerAdapterFactory() {
-}
-/**
- * Returns the <code>CompilerAdapter</code> to use given a compiler type and task.
- *
- * @return the compiler adapter to use
- * @param compilerType the type of compiler
- * @param task the task
- * @exception BuildException thrown if a problem occurs while returning the adapter
- */
-public static CompilerAdapter getCompiler(String compilerType, Task task) throws BuildException {
- try {
- return CompilerAdapterFactory.getCompiler(compilerType, task);
- } catch (BuildException be) {
- if (AntPlugin.getPlugin() == null)
- throw be;
- Map objects = AntPlugin.getPlugin().getObjectExtensions();
- if (objects == null)
- throw be;
- IConfigurationElement declaration = (IConfigurationElement) objects.get(compilerType);
- if (declaration == null)
- throw be;
- String className = declaration.getAttribute(AntPlugin.CLASS);
- try {
- Class clazz = declaration.getDeclaringExtension().getDeclaringPluginDescriptor().getPluginClassLoader().loadClass(className);
- return (CompilerAdapter) clazz.newInstance();
- } catch (ClassNotFoundException e) {
- throw new BuildException(Policy.bind("exception.classNotFound",className), e);
- } catch (ClassCastException e) {
- throw new BuildException(Policy.bind("exception.classNotCompiler",className), e);
- } catch (Exception e) {
- throw new BuildException(Policy.bind("exception.creationProblem",className), e);
- }
- }
-}
-}
diff --git a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/EclipseJavac.java b/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/EclipseJavac.java
deleted file mode 100644
index 2bf00d8..0000000
--- a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/EclipseJavac.java
+++ /dev/null
@@ -1,99 +0,0 @@
-package org.eclipse.ant.core;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2001.
- * All Rights Reserved.
- */
-
-import org.apache.tools.ant.taskdefs.Javac;
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.types.Path;
-import java.io.File;
-import org.apache.tools.ant.DirectoryScanner;
-import org.apache.tools.ant.Project;
-import org.apache.tools.ant.taskdefs.compilers.CompilerAdapter;
-
-/**
- * Ant task which replaces the standard Ant Javac task. This version of the task
- * uses a special compiler adapter factory which in turn uses the Ant plug-in's
- * object class registry to find the class to use for compiler adapters. This is required
- * because of the platform's classloading strategy.
- * <p>
- * This task can be used as a direct replacement for the original Javac task
- * </p>
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under
- * development and expected to change significantly before reaching stability.
- * It is being made available at this early stage to solicit feedback from pioneering
- * adopters on the understanding that any code that uses this API will almost
- * certainly be broken (repeatedly) as the API evolves.
- * </p>
- */
-
-public class EclipseJavac extends Javac {
-
-/**
- * Executes the task.
- *
- * @exception BuildException thrown if a problem occurs during execution
- */
-public void execute() throws BuildException {
- // first off, make sure that we've got a srcdir
-
- Path src = getSrcdir();
- if (src == null)
- throw new BuildException(Policy.bind("exception.missingSrcAttribute"), location);
- String[] list = src.list();
- if (list.length == 0)
- throw new BuildException(Policy.bind("exception.missingSrcAttribute"), location);
-
- File destDir = getDestdir();
- if (destDir != null && !destDir.isDirectory())
- throw new BuildException(Policy.bind("exception.missingDestinationDir",destDir.toString()), location);
-
- // scan source directories and dest directory to build up
- // compile lists
- resetFileLists();
- for (int i = 0; i < list.length; i++) {
- File srcDir = (File) project.resolveFile(list[i]);
- if (!srcDir.exists()) {
- throw new BuildException(Policy.bind("exception.missingSourceDir",srcDir.getPath()), location);
- }
-
- DirectoryScanner ds = this.getDirectoryScanner(srcDir);
-
- String[] files = ds.getIncludedFiles();
-
- scanDir(srcDir, destDir != null ? destDir : srcDir, files);
- }
-
- // compile the source files
-
- String compiler = project.getProperty("build.compiler");
- if (compiler == null) {
- if (Project.getJavaVersion().startsWith("1.3")) {
- compiler = "modern";
- } else {
- compiler = "classic";
- }
- }
-
- if (compileList.length > 0) {
-
- CompilerAdapter adapter = EclipseCompilerAdapterFactory.getCompiler(compiler, this);
- log(Policy.bind("info.compiling"));
-
- // now we need to populate the compiler adapter
- adapter.setJavac(this);
-
- // finally, lets execute the compiler!!
- if (!adapter.execute()) {
- if (failOnError) {
- throw new BuildException(Policy.bind("error.compileFailed"), location);
- } else {
- log(Policy.bind("error.compileFailed"), Project.MSG_ERR);
- }
- }
- }
-}
-}
diff --git a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/EclipseProject.java b/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/EclipseProject.java
deleted file mode 100644
index bf6f82f..0000000
--- a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/EclipseProject.java
+++ /dev/null
@@ -1,143 +0,0 @@
-package org.eclipse.ant.core;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2001.
- * All Rights Reserved.
- */
-
-import org.eclipse.core.resources.*;
-import org.eclipse.core.runtime.*;
-import org.apache.tools.ant.*;
-import java.io.File;
-import java.io.IOException;
-import java.util.Iterator;
-import java.util.Map;
-
-/**
- * An Ant project adapted to running inside the Eclipse Platform. Because of the class
- * loading structure of the Eclipse platform, the standard techniques for creating instances
- * of tasks and datatypes needs to be adapted.
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under
- * development and expected to change significantly before reaching stability.
- * It is being made available at this early stage to solicit feedback from pioneering
- * adopters on the understanding that any code that uses this API will almost
- * certainly be broken (repeatedly) as the API evolves.
- * </p>
- */
-
-public class EclipseProject extends Project {
-
-/**
- * Creates a new project for use in running Ant inside the Eclipse Platform.
- */
-public EclipseProject() {
-}
-/**
- * Creates and returns a new instance of the identified data type.
- *
- * @return the new data type instance
- * @param typeName the name of the type to create
- * @exception BuildException thrown if a problem occurs during data type creation
- */
-public Object createDataType(String typeName) throws BuildException {
- // look in the predeclared types. If found, do the super behavior.
- // If its not found, look in the types defined in the plugin extension point.
- Class c = (Class) getDataTypeDefinitions().get(typeName);
- if (c != null)
- return super.createDataType(typeName);
- // check to see if the ant plugin is available. If we are running from
- // the command line (i.e., no platform) it will not be.
- if (AntPlugin.getPlugin() == null)
- return null;
- Map types = AntPlugin.getPlugin().getTypeExtensions();
- if (types == null)
- return null;
- IConfigurationElement declaration = (IConfigurationElement) types.get(typeName);
- if (declaration == null)
- return null;
- String className = declaration.getAttribute(AntPlugin.CLASS);
- try {
- Class typeClass = declaration.getDeclaringExtension().getDeclaringPluginDescriptor().getPluginClassLoader().loadClass(className);
- addDataTypeDefinition(typeName, typeClass);
- } catch (ClassNotFoundException e) {
- return null;
- }
- return super.createDataType(typeName);
-}
-/**
- * Creates and returns a new instance of the identified task.
- *
- * @return the new task
- * @param taskName the name of the task to create
- * @exception BuildException thrown if a problem occurs during task creation
- */
-public Task createTask(String taskName) throws BuildException {
- // look in the predeclared tasks. If found, do the super behavior.
- // If its not found, look in the tasks defined in the plugin extension point.
- Class c = (Class) getTaskDefinitions().get(taskName);
- if (c != null)
- return super.createTask(taskName);
- // check to see if the ant plugin is available. If we are running from
- // the command line (i.e., no platform) it will not be.
- if (AntPlugin.getPlugin() == null)
- return null;
- Map tasks = AntPlugin.getPlugin().getTaskExtensions();
- if (tasks == null)
- return null;
- IConfigurationElement declaration = (IConfigurationElement) tasks.get(taskName);
- if (declaration == null)
- return null;
- String className = declaration.getAttribute(AntPlugin.CLASS);
- try {
- Class taskClass = declaration.getDeclaringExtension().getDeclaringPluginDescriptor().getPluginClassLoader().loadClass(className);
- addTaskDefinition(taskName, taskClass);
- } catch (ClassNotFoundException e) {
- return null;
- }
- return super.createTask(taskName);
-}
-/**
- * Sends a build finished notification to all registered listeners along with
- * the exception that caused the termination.
- *
- * @param exception the exception to include with the notification
- */
-protected void fireBuildFinished(Throwable exception) {
- super.fireBuildFinished(exception);
-}
-/**
- * Sends a build started notification to all registered listeners.
- */
-protected void fireBuildStarted() {
- super.fireBuildStarted();
-}
-/**
- * Returns a string in which all <code>File.separatorChar</code>
- * characters have been replaced with the platform's path separator
- * character.
- *
- * @return the result string
- * @param path the original string
- */
-public static String fixSeparators(String path) {
- if (File.separatorChar == '/')
- return path;
- return path.replace('\\', '/');
-}
-/**
- * Initializes the receiver.
- *
- * @exception BuildException thrown if a problem occurs during initialization.
- */
-public void init() throws BuildException {
- super.init();
- // add some additional tasks and datatypes. Normally they would be found
- // in the plugin.xml markup for the Ant Support plugin but if we are not running
- // the platform we need to add them here.
- addTaskDefinition("ant", EclipseAnt.class);
- addTaskDefinition("javac", EclipseJavac.class);
- addDataTypeDefinition("commapatternset", CommaPatternSet.class);
- System.setProperty("ant.regexp.matcherimpl", "org.eclipse.ant.core.XercesRegexpMatcher");
-}
-}
diff --git a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/IncrementalBuild.java b/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/IncrementalBuild.java
deleted file mode 100644
index 7060357..0000000
--- a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/IncrementalBuild.java
+++ /dev/null
@@ -1,140 +0,0 @@
-package org.eclipse.ant.core;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2001.
- * All Rights Reserved.
- */
-
-import org.eclipse.core.resources.*;
-import org.eclipse.core.runtime.CoreException;
-import java.util.HashMap;
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Task;
-
-/**
- * Ant task which runs the platform's incremental build facilities.
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under
- * development and expected to change significantly before reaching stability.
- * It is being made available at this early stage to solicit feedback from pioneering
- * adopters on the understanding that any code that uses this API will almost
- * certainly be broken (repeatedly) as the API evolves.
- * </p>
- */
-
-public class IncrementalBuild extends Task {
- private String builder;
- private String project;
- private int kind= IncrementalProjectBuilder.INCREMENTAL_BUILD;
- private HashMap args= new HashMap(5);
-
- /**
- * Unique identifier constant (value <code>"KIND_INCR"</code>)
- * indicating that an incremental build should be performed.
- */
- public final static String KIND_INCR = "incr";
-
- /**
- * Unique identifier constant (value <code>"KIND_FULL"</code>)
- * indicating that a full build should be performed.
- */
- public final static String KIND_FULL = "full";
-
- /**
- * Unique identifier constant (value <code>"KIND_AUTO"</code>)
- * indicating that an auto build should be performed.
- */
- public final static String KIND_AUTO = "auto";
-
- /**
- * Inner class that represents a name-value pair.
- */
- public class Argument {
- private String name;
-
- /**
- * Sets the name of this argument.
- * @param name the name of this argument
- */
- public void setName(String value) {
- name= value;
- }
-
- /**
- * Sets the value of this argument.
- * @param value the value of this argument
- */
- public void setValue(String value) {
- if (value == null)
- args.remove(name);
- else
- args.put(name, value);
- }
- }
-
-/**
- * Constructs an <code>IncrementalBuild</code> instance.
- */
-public IncrementalBuild() {
- super();
-}
-/**
- * Creates and returns a new <code>Argument</code>.
- *
- * @return the new argument
- */
-public Argument createArgument() {
- return new Argument();
-}
-/**
- * Executes this task.
- *
- * @exception BuildException thrown if a problem occurs during execution
- */
-public void execute() throws BuildException {
- try {
- if (project == null) {
- ResourcesPlugin.getWorkspace().build(kind, null);
- } else {
- IProject target= ResourcesPlugin.getWorkspace().getRoot().getProject(project);
- if (builder == null)
- target.build(kind, null);
- else
- target.build(kind, builder, args, null);
- }
- } catch (CoreException e) {
- throw new BuildException(e);
- }
-}
-/**
- * Sets the name of the receiver's builder.
- *
- * @param value the name of the receiver's builder
- */
-public void setBuilder(String value) {
- builder= value;
-}
-/**
- * Sets the receiver's kind> attribute. This value must be one
- * of <code>IncrementalBuild.KIND_FULL</code>, <code>IncrementalBuild.KIND_AUTO</code>,
- * <code>IncrementalBuild.KIND_INCR</code>.
- *
- * @param kind the receiver's kind attribute
- */
-public void setKind(String value) {
- if (IncrementalBuild.KIND_FULL.equalsIgnoreCase(value))
- kind= IncrementalProjectBuilder.FULL_BUILD;
- else if (IncrementalBuild.KIND_AUTO.equalsIgnoreCase(value))
- kind= IncrementalProjectBuilder.AUTO_BUILD;
- else if (IncrementalBuild.KIND_INCR.equalsIgnoreCase(value))
- kind= IncrementalProjectBuilder.INCREMENTAL_BUILD;
-}
-/**
- * Sets the receiver's target project.
- *
- * @param value the receiver's target project
- */
-public void setProject(String value) {
- project= value;
-}
-}
diff --git a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/Messages.properties b/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/Messages.properties
deleted file mode 100644
index 13a84b3..0000000
--- a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/Messages.properties
+++ /dev/null
@@ -1,67 +0,0 @@
-### Ant Core plugin message catalog
-
-### labels
-label.buildFile = Build file: {0}
-label.mainTargets = Main targets:
-label.subTargets = Subtargets:
-
-### usage
-usage.options = options
-usage.target = target
-usage.Options = Options
-usage.printMessage = print this message
-usage.projectHelp = print project help information
-usage.versionInfo = print the version information and exit
-usage.beQuiet = be extra quiet
-usage.beVerbose = be extra verbose
-usage.printDebugInfo = print debugging information
-usage.emacsLog = produce logging information without adornments
-usage.useFile = use given file for log
-usage.logClass = the class which is to perform logging
-usage.listenerClass = add an instance of class as a project listener
-usage.fileToBuild = use given buildfile
-usage.propertiesValues = use value for given property
-usage.findFileToBuild = search for buildfile towards the root of the filesystem and use it
-usage.antVersion = Ant version
-usage.compiledOn = compiled on
-
-
-
-### info
-info.compiling = Compiling source files
-info.searchingFor = Searching for: {0} ...
-info.searchingIn = Searching in: {0} ...
-
-### error
-error.compileFailed = Compile failed; messages should have been provided.
-error.buildFailed = Build Failed.
-
-### exception
-exception.antTaskCallingParentTarget = Ant task calling its own parent target.
-exception.buildFileIsDirectory = Build file is a directory: {0}
-exception.buildFileNotFound = Build file not found: {0}
-exception.cannotAppendToReference = Cannot append to a reference.
-exception.cannotCreateListener = Unable to instantiate listener: {0}
-exception.cannotCreateLogger = Unable to instantiate logger: {0}
-exception.cannotLoadVersionInfo = Could not load the version information.
-exception.cannotSetOutput = Ant cannot set output to: {0}
-exception.cannotWriteToLog = Cannot write on the specified log file. Make sure the path exists and you have write permissions.
-exception.classNotFound = Class not found: {0}
-exception.classNotCompiler = Class is not a compiler adapter: {0}
-exception.creationProblem = Exception creating: {0}
-exception.loggerDoesNotImplementInterface = The specified logger class does not implement the BuildLogger interface: {0}
-exception.missingBuildFile = You must specify a build file when using the -buildfile argument.
-exception.missingClassName = You must specify a class name when using the -listener argument.
-exception.missingDestinationDir = Destination directory does not exist or is not a directory: {0}
-exception.missingExcludesFile = Excludes file not found: {0}
-exception.missingIncludesFile = Includes file not found: {0}
-exception.missingLogFile = You must specify a log file when using the -log argument.
-exception.missingSrcAttribute = srcdir attribute must be set.
-exception.missingSourceDir = srcdir does not exist: {0}
-exception.multipleLoggers = Only one logger class may be specified.
-exception.noBuildFile = Could not locate a build file.
-exception.noParser = No JAXP compliant XML parser found. See http://java.sun.com/xml for the reference implementation.
-exception.notAPatternSet = Not a patternset: {0}
-exception.patternFile = An error occured while reading pattern file: {0}
-exception.resourceNotFound = Resource not found: {0}
-exception.unknownArgument = Unknown argument: {0}
diff --git a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/Policy.java b/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/Policy.java
deleted file mode 100644
index 1aad6f0..0000000
--- a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/Policy.java
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/RefreshLocal.java b/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/RefreshLocal.java
deleted file mode 100644
index 128e1d5..0000000
--- a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/RefreshLocal.java
+++ /dev/null
@@ -1,141 +0,0 @@
-package org.eclipse.ant.core;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2001.
- * All Rights Reserved.
- */
-
-import org.eclipse.core.resources.*;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.Path;
-import java.util.Vector;
-import org.apache.tools.ant.*;
-import org.apache.tools.ant.types.PatternSet;
-
-/**
- * An Ant task which refreshes the Eclipse Platform's view of the local filesystem.
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under
- * development and expected to change significantly before reaching stability.
- * It is being made available at this early stage to solicit feedback from pioneering
- * adopters on the understanding that any code that uses this API will almost
- * certainly be broken (repeatedly) as the API evolves.
- * </p>
- * @see IResource#refreshLocal
- */
-public class RefreshLocal extends Task {
- /**
- * Unique identifier constant (value <code>"DEPTH_ZERO"</code>)
- * indicating that refreshes should be performed only on the target
- * resource itself
- */
- public static final String DEPTH_ZERO = "zero";
-
- /**
- * Unique identifier constant (value <code>"DEPTH_ONE"</code>)
- * indicating that refreshes should be performed on the target
- * resource and its children
- */
- public static final String DEPTH_ONE = "one";
-
- /**
- * Unique identifier constant (value <code>"DEPTH_INFINITE"</code>)
- * indicating that refreshes should be performed on the target
- * resource and all of its recursive children
- */
- public static final String DEPTH_INFINITE = "infinite";
-
- /**
- * The resource to refresh.
- */
- protected IResource resource;
-
- /**
- * The depth to refresh to.
- */
- protected int depth = IResource.DEPTH_INFINITE;
-
- private IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
-
-/**
- * Constructs a new <code>RefreshLocal</code> instance.
- */
-public RefreshLocal() {
- super();
-}
-
-/**
- * Performs the refresh operation.
- *
- * @exception BuildException thrown if a problem occurs during execution.
- */
-public void execute() throws BuildException {
- // make sure we don't have an illegal set of options
- validateAttributes();
-
- // deal with the single resource
- if (resource != null) {
- if (!resource.exists())
- throw new BuildException(Policy.bind("exception.resourceNotFound",resource.toString()));
- try {
- resource.refreshLocal(depth, null);
- return;
- } catch (CoreException e) {
- throw new BuildException(e);
- }
- }
-}
-/**
- * Refreshes a collection of resources.
- *
- * @param resources the names of the resources to refresh
- * @exception BuildException thrown if a problem occurs during refresh
- */
-protected void refreshResources(String[] resources) throws BuildException {
- for (int i = 0; i < resources.length; i++) {
- IResource target = root.findMember(resources[i]);
- if (target == null)
- throw new BuildException(Policy.bind("exception.resourceNotFound",resources[i].toString()));
- try {
- target.refreshLocal(depth, null);
- } catch (CoreException e) {
- throw new BuildException(e);
- }
- }
-}
-
-/**
- * Sets the depth of this task appropriately. The specified argument must
- * by one of <code>RefreshLocal.DEPTH_ZERO</code>, <code>RefreshLocal.DEPTH_ONE</code>
- * or <code>RefreshLocal.DEPTH_INFINITE</code>.
- *
- * @param value the depth to refresh to
- */
-public void setDepth(String value) {
- if (DEPTH_ZERO.equalsIgnoreCase(value))
- depth = IResource.DEPTH_ZERO;
- else
- if (DEPTH_ONE.equalsIgnoreCase(value))
- depth = IResource.DEPTH_ONE;
- else
- if (DEPTH_INFINITE.equalsIgnoreCase(value))
- depth = IResource.DEPTH_INFINITE;
-}
-
-/**
- * Sets the root of the workspace resource tree to refresh.
- *
- * @param value the root value
- */
-public void setResource(String value) {
- resource = ResourcesPlugin.getWorkspace().getRoot().findMember(new Path(value));
-}
-
-/**
- * Performs a validation of the receiver.
- *
- * @exception BuildException thrown if a problem occurs during validation.
- */
-protected void validateAttributes() throws BuildException {
-}
-}
diff --git a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/XercesRegexpMatcher.java b/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/XercesRegexpMatcher.java
deleted file mode 100644
index 4b670e3..0000000
--- a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/XercesRegexpMatcher.java
+++ /dev/null
@@ -1,88 +0,0 @@
-package org.eclipse.ant.core;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2001.
- * All Rights Reserved.
- */
-
-import org.apache.tools.ant.util.regexp.RegexpMatcher;
-import org.apache.xerces.utils.regex.RegularExpression;
-import org.apache.xerces.utils.regex.Match;
-import java.util.Vector;
-import org.apache.tools.ant.BuildException;
-
-/**
- * An Ant regular expression matcher adapted to use the Xerces XML parser.
- * This implementation is the standard one used when running Ant inside the
- * Eclipse platform using the <code>AntRunner</code>.
- * <p>
- * <b>Note:</b> This class/interface is part of an interim API that is still under
- * development and expected to change significantly before reaching stability.
- * It is being made available at this early stage to solicit feedback from pioneering
- * adopters on the understanding that any code that uses this API will almost
- * certainly be broken (repeatedly) as the API evolves.
- * </p>
- */
-
-public class XercesRegexpMatcher implements RegexpMatcher {
- private RegularExpression regexp;
-
-/**
- * Creates a new Xerces based regular expression matcher.
- */
-public XercesRegexpMatcher() {
- super();
-}
-/**
- * Returns a collection of matched groups found in an argument.
- *
- * <p>Group 0 will be the full match, the rest are the
- * parenthesized subexpressions</p>.
- *
- * @return the collection of matched groups found in the argument.
- * @param argument the argument
- */
-public Vector getGroups(String argument) {
- Match match = new Match();
- if (!regexp.matches(argument, match))
- return null;
- int count = match.getNumberOfGroups();
- Vector result = new Vector(count);
- for (int i = 0; i < count; i++) {
- result.add(match.getCapturedText(i));
- }
- return result;
-}
-/**
- * Returns a string representation of the receiver
- *
- * @return a string representation of the receiver
- */
-public String getPattern() {
- return regexp.getPattern();
-}
-/**
- * Returns a <code>boolean</code> indicating whether an argument
- * matches with the receiver.
- *
- * @return a <code>boolean</code> indicating whether an argument
- * matches with the receiver.
- * @param argument the argument to match with the receiver
- */
-public boolean matches(String argument) {
- return regexp.matches(argument);
-}
-
-/**
- * Sets the receiver's pattern.
- *
- * @param pattern the pattern value
- * @exception BuildException thrown if a problem occurs setting the pattern
- */
-public void setPattern(String pattern) throws BuildException {
- if (regexp == null)
- regexp = new RegularExpression(pattern);
- else
- regexp.setPattern(pattern);
-}
-}
diff --git a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/package.html b/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/package.html
deleted file mode 100644
index d737de8..0000000
--- a/ant/org.eclipse.ant.core/src/org/eclipse/ant/core/package.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
- <title>Package-level Javadoc</title>
-</head>
-<body>
-Provides support for running the Ant build tool in the platform.
-<h2>
-Package Specification</h2>
-This package defines a number of task and data types and various infrastructure
-pieces which make Ant in the platform easier and more powerful.
-</body>
-</html>
diff --git a/ant/org.eclipse.ant.ui/.classpath b/ant/org.eclipse.ant.ui/.classpath
deleted file mode 100644
index 771f6bf..0000000
--- a/ant/org.eclipse.ant.ui/.classpath
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>
- <classpathentry kind="src" path="/org.eclipse.core.boot"/>
- <classpathentry kind="src" path="/org.eclipse.core.runtime"/>
- <classpathentry kind="src" path="/org.eclipse.core.resources"/>
- <classpathentry kind="src" path="/org.eclipse.ant.core"/>
- <classpathentry kind="src" path="Eclipse Ant UI"/>
- <classpathentry kind="var" path="TARGET/org.eclipse.ant.core/ant.jar"/>
- <classpathentry kind="var"
- path="TARGET/org.eclipse.ui/workbench.jar" sourcepath="TARGET/org.eclipse.ui/workbenchsrc.zip"/>
- <classpathentry kind="var" path="TARGET/org.eclipse.swt/swt.jar"
- rootpath="" sourcepath="TARGET/org.eclipse.swt/swtsrc.zip"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/ant/org.eclipse.ant.ui/.cvsignore b/ant/org.eclipse.ant.ui/.cvsignore
deleted file mode 100644
index c5e82d7..0000000
--- a/ant/org.eclipse.ant.ui/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-bin
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.ui/.vcm_meta b/ant/org.eclipse.ant.ui/.vcm_meta
deleted file mode 100644
index aa7cca7..0000000
--- a/ant/org.eclipse.ant.ui/.vcm_meta
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project-description>
- <comment></comment>
- <nature id="org.eclipse.jdt.core.javanature"/>
- <reference project-name="org.eclipse.ant.core"/>
- <reference project-name="org.eclipse.core.boot"/>
- <reference project-name="org.eclipse.core.resources"/>
- <reference project-name="org.eclipse.core.runtime"/>
- <builder name="org.eclipse.jdt.core.javabuilder">
- </builder>
-</project-description>
diff --git a/ant/org.eclipse.ant.ui/build.properties b/ant/org.eclipse.ant.ui/build.properties
deleted file mode 100644
index 01c9035..0000000
--- a/ant/org.eclipse.ant.ui/build.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-# VAJ build contribution
-build.includes=icons/,plugin.jars,plugin.xml,build.properties,plugin.properties
-build.vaj.Eclipse\ Ant\ UI=Eclipse Ant UI
-
-# Eclipse build contribution
-source.antui.jar=Eclipse Ant UI
-bin.includes=icons/,plugin.xml,*.jar,plugin.properties
-javadoc.packages=org.eclipse.*
diff --git a/ant/org.eclipse.ant.ui/icons/basic/clcl16/clear.gif b/ant/org.eclipse.ant.ui/icons/basic/clcl16/clear.gif
deleted file mode 100644
index 2558326..0000000
--- a/ant/org.eclipse.ant.ui/icons/basic/clcl16/clear.gif
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.ui/icons/basic/cview/ant_view.gif b/ant/org.eclipse.ant.ui/icons/basic/cview/ant_view.gif
deleted file mode 100644
index 233d379..0000000
--- a/ant/org.eclipse.ant.ui/icons/basic/cview/ant_view.gif
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.ui/icons/basic/eview/ant_view.gif b/ant/org.eclipse.ant.ui/icons/basic/eview/ant_view.gif
deleted file mode 100644
index 76be436..0000000
--- a/ant/org.eclipse.ant.ui/icons/basic/eview/ant_view.gif
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.ui/icons/basic/wizban/ant_wiz.gif b/ant/org.eclipse.ant.ui/icons/basic/wizban/ant_wiz.gif
deleted file mode 100644
index 3ab37ab..0000000
--- a/ant/org.eclipse.ant.ui/icons/basic/wizban/ant_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.ui/icons/full/cview16/ant_view.gif b/ant/org.eclipse.ant.ui/icons/full/cview16/ant_view.gif
deleted file mode 100644
index a79f250..0000000
--- a/ant/org.eclipse.ant.ui/icons/full/cview16/ant_view.gif
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.ui/icons/full/eview16/ant_view.gif b/ant/org.eclipse.ant.ui/icons/full/eview16/ant_view.gif
deleted file mode 100644
index eba5891..0000000
--- a/ant/org.eclipse.ant.ui/icons/full/eview16/ant_view.gif
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.ui/icons/full/wizban/ant_wiz.gif b/ant/org.eclipse.ant.ui/icons/full/wizban/ant_wiz.gif
deleted file mode 100644
index a6dbec0..0000000
--- a/ant/org.eclipse.ant.ui/icons/full/wizban/ant_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.ui/plugin.jars b/ant/org.eclipse.ant.ui/plugin.jars
deleted file mode 100644
index 2fd734a..0000000
--- a/ant/org.eclipse.ant.ui/plugin.jars
+++ /dev/null
@@ -1 +0,0 @@
-antui.jar=Eclipse Ant UI
diff --git a/ant/org.eclipse.ant.ui/plugin.properties b/ant/org.eclipse.ant.ui/plugin.properties
deleted file mode 100644
index 1ec30df..0000000
--- a/ant/org.eclipse.ant.ui/plugin.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-pluginName = Ant Build Tool UI
-runAnt = Run Ant...
-runAntTip = Run Ant with the selected build file
diff --git a/ant/org.eclipse.ant.ui/plugin.xml b/ant/org.eclipse.ant.ui/plugin.xml
deleted file mode 100644
index aa445ad..0000000
--- a/ant/org.eclipse.ant.ui/plugin.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0"?>
-
-<plugin
- name = "%pluginName"
- id="org.eclipse.ant.ui"
- version = "0.9"
- provider-name = "Object Technology International, Inc."
- class="org.eclipse.ant.internal.ui.AntUIPlugin">
-
- <requires>
- <import plugin="org.eclipse.ui"/>
- <import plugin="org.eclipse.core.resources"/>
- <import plugin="org.eclipse.ant.core"/>
- </requires>
-
- <runtime>
- <library name="antui.jar">
- <export name = "*"/>
- </library>
- </runtime>
-
- <extension point="org.eclipse.ui.popupMenus">
- <objectContribution
- id="org.eclipse.ant.internal.ui.RunAnt"
- objectClass="org.eclipse.core.resources.IResource"
- nameFilter="*.xml">
- <action
- id="RunAnt"
- label="%runAnt"
- tooltip="%runAntTip"
- menubarPath="additions"
- enablesFor="1"
- class="org.eclipse.ant.internal.ui.RunAntActionDelegate">
- </action>
- </objectContribution>
- </extension>
-
- <extension point="org.eclipse.ui.views">
- <category
- id="org.eclipse.ant.ui"
- name="&Ant">
- </category>
- <view
- id="org.eclipse.ant.ui.antconsole"
- name="Ant Console"
- icon="icons/basic/cview/ant_view.gif"
- category="org.eclipse.ant.ui"
- class="org.eclipse.ant.internal.ui.AntConsole">
- </view>
- </extension>
-
-</plugin>
diff --git a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/AntConsole.java b/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/AntConsole.java
deleted file mode 100644
index 4f801a2..0000000
--- a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/AntConsole.java
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/AntLaunchWizard.java b/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/AntLaunchWizard.java
deleted file mode 100644
index 036ec6d..0000000
--- a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/AntLaunchWizard.java
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/AntLaunchWizardPage.java b/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/AntLaunchWizardPage.java
deleted file mode 100644
index e38cc28..0000000
--- a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/AntLaunchWizardPage.java
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/AntUIPlugin.java b/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/AntUIPlugin.java
deleted file mode 100644
index fda4505..0000000
--- a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/AntUIPlugin.java
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/BuildCanceledException.java b/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/BuildCanceledException.java
deleted file mode 100644
index 60e7e6b..0000000
--- a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/BuildCanceledException.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package org.eclipse.ant.internal.ui;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2001.
- * All Rights Reserved.
- */
-
-import org.apache.tools.ant.BuildException;
-
-public class BuildCanceledException extends BuildException {
-
-public BuildCanceledException() {
- super(Policy.bind("exception.canceled"));
-}
-
-}
diff --git a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/Messages.properties b/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/Messages.properties
deleted file mode 100644
index dfd6132..0000000
--- a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/Messages.properties
+++ /dev/null
@@ -1,58 +0,0 @@
-### Ant UI plugin message catalog
-
-
-### wizard
-wizard.title = Run Ant
-wizard.executeAntScriptTitle = Execute Ant Script
-wizard.availableTargetsLabel = Available Targets:
-wizard.argumentsLabel = Arguments:
-wizard.displayLogLabel = Display execution log to Ant console
-
-
-### label provider
-labelprovider.defaultTarget = Default target
-
-
-### console labels
-find_action.label=Find...@Ctrl+F
-find_action.tooltip=Find
-find_action.image=
-find_action.description=Find
-
-
-### monitor
-monitor.runningAnt = Running Ant.
-monitor.buildStarted = Build started...
-monitor.targetColumn = Target:
-monitor.started = started.
-
-
-### console
-console.copy = Copy
-console.selectAll = &Select All
-console.clearOutput = &Clear Output
-
-
-### status
-status.targetPropertyNotRead = Could not read ant targets property from resource: {0}.
-status.targetPropertyNotWritten = Could not write ant targets property to resource: {0}.
-status.logPropertyNotRead = Could not read log property from resource: {0}.
-status.logPropertyNotWritten = Could not write log property to resource: {0}.
-status.consoleNotInitialized = Could not initialize Ant console view
-status.argumentPropertyNotRead = Could not read argument property from resource: {0}.
-status.argumentPropertyNotWritten = Could not write argument property to resource: {0}.
-
-
-### error
-error.antScriptError = Ant script error.
-error.antParsingError = A problem occurred parsing the Ant file.
-error.antExecutionErrorTitle = Ant Execution Problems.
-error.antExecutionError = A problem occurred executing the Ant file.
-error.antExecutionErrorGeneral = See the output console for details.
-
-
-### exception
-exception.canceled = Canceled.
-exception.buildException = BuildException: {0}.
-exception.missingResourceBundle = Missing Resource Bundle
-exception.missingResourceBundle.message = The resource properties for the Ant UI plugin could not be found.
diff --git a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/Policy.java b/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/Policy.java
deleted file mode 100644
index f54d330..0000000
--- a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/Policy.java
+++ /dev/null
@@ -1,109 +0,0 @@
-package org.eclipse.ant.internal.ui;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2001.
- * All Rights Reserved.
- */
-
-import org.eclipse.core.runtime.*;
-import java.util.*;
-
-class Policy {
- private static ResourceBundle bundle;
- private static String bundleName = "org.eclipse.ant.internal.ui.Messages";
-
- static {
- relocalize();
- }
-/**
- * Lookup the message with the given ID in this catalog
- */
-public static String bind(String id) {
- return bind(id, (String[])null);
-}
-/**
- * Lookup the message with the given ID in this catalog and bind its
- * substitution locations with the given string.
- */
-public static String bind(String id, String binding) {
- return bind(id, new String[] {binding});
-}
-/**
- * Lookup the message with the given ID in this catalog and bind its
- * substitution locations with the given strings.
- */
-public static String bind(String id, String binding1, String binding2) {
- return bind(id, new String[] {binding1, binding2});
-}
-
-/**
- * Lookup the message with the given ID in this catalog and bind its
- * substitution locations with the given string values.
- */
-public static String bind(String id, String[] bindings) {
- if (id == null)
- return "No message available";
- String message = null;
- try {
- message = bundle.getString(id);
- } catch (MissingResourceException e) {
- // If we got an exception looking for the message, fail gracefully by just returning
- // the id we were looking for. In most cases this is semi-informative so is not too bad.
- return "Missing message: " + id + "in: " + bundleName;
- }
- if (bindings == null)
- return message;
- int length = message.length();
- int start = -1;
- int end = length;
- StringBuffer output = new StringBuffer(80);
- while (true) {
- if ((end = message.indexOf('{', start)) > -1) {
- output.append(message.substring(start + 1, end));
- if ((start = message.indexOf('}', end)) > -1) {
- int index = -1;
- try {
- index = Integer.parseInt(message.substring(end + 1, start));
- output.append(bindings[index]);
- } catch (NumberFormatException nfe) {
- output.append(message.substring(end + 1, start + 1));
- } catch (ArrayIndexOutOfBoundsException e) {
- output.append("{missing " + Integer.toString(index) + "}");
- }
- } else {
- output.append(message.substring(end, length));
- break;
- }
- } else {
- output.append(message.substring(start + 1, length));
- break;
- }
- }
- return output.toString();
-}
-public static IProgressMonitor monitorFor(IProgressMonitor monitor) {
- if (monitor == null)
- return new NullProgressMonitor();
- return monitor;
-}
-/**
- * Creates a NLS catalog for the given locale.
- */
-public static void relocalize() {
- bundle = ResourceBundle.getBundle(bundleName, Locale.getDefault());
-}
-public static IProgressMonitor subMonitorFor(IProgressMonitor monitor, int ticks) {
- if (monitor == null)
- return new NullProgressMonitor();
- if (monitor instanceof NullProgressMonitor)
- return monitor;
- return new SubProgressMonitor(monitor, ticks);
-}
-public static IProgressMonitor subMonitorFor(IProgressMonitor monitor, int ticks, int style) {
- if (monitor == null)
- return new NullProgressMonitor();
- if (monitor instanceof NullProgressMonitor)
- return monitor;
- return new SubProgressMonitor(monitor, ticks, style);
-}
-}
diff --git a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/RunAntActionDelegate.java b/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/RunAntActionDelegate.java
deleted file mode 100644
index ded6c24..0000000
--- a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/RunAntActionDelegate.java
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/TargetsListContentProvider.java b/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/TargetsListContentProvider.java
deleted file mode 100644
index 441b8d5..0000000
--- a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/TargetsListContentProvider.java
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/TargetsListLabelProvider.java b/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/TargetsListLabelProvider.java
deleted file mode 100644
index b03304f..0000000
--- a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/TargetsListLabelProvider.java
+++ /dev/null
Binary files differ
diff --git a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/UIBuildListener.java b/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/UIBuildListener.java
deleted file mode 100644
index 3c534d0..0000000
--- a/ant/org.eclipse.ant.ui/src/org/eclipse/ant/internal/ui/UIBuildListener.java
+++ /dev/null
Binary files differ