This commit was manufactured by cvs2svn to create tag 'R3_0_2'.
Sprout from R3_0_maintenance 2005-03-10 20:56:33 UTC darins 'Reving the plugin version number'
Cherrypick from R3_0_maintenance 2004-07-08 17:31:18 UTC cvs2svn <platform-releng-dev@eclipse.org> 'This commit was manufactured by cvs2svn to create branch 'R3_0_maintenance'.':
ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/AbstractAntUIBuildTest.java
ant/org.eclipse.ant.tests.ui/plugin.xml
ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AbstractAntUITest.java
ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/ProjectCreationDecorator.java
ant/org.eclipse.ant.tests.ui/test.xml
Delete:
ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ant/tests/ui/editor/performance/EditorTestHelper.java
ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ant/tests/ui/editor/performance/OpenAntEditorTest.java
ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/AbstractAntUIBuildPerformanceTest.java
ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/performance/OpenLaunchConfigurationDialogTests.java
ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/performance/SeparateVMTests.java
ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AntUIPerformanceTests.java
ant/org.eclipse.ant.tests.ui/testbuildfiles/performance/build.xml
update/org.eclipse.update.examples/.classpath
update/org.eclipse.update.examples/.cvsignore
update/org.eclipse.update.examples/.project
update/org.eclipse.update.examples/Scrapbook2.jpage
update/org.eclipse.update.examples/about.html
update/org.eclipse.update.examples/build.properties
update/org.eclipse.update.examples/plugin.properties
update/org.eclipse.update.examples/plugin.xml
update/org.eclipse.update.examples/site/features/com.reddot.reddot_1.0.0.jar
update/org.eclipse.update.examples/site/features/com.reddot.reddot_2.0.0.jar
update/org.eclipse.update.examples/site/info/images/redDot.jpg
update/org.eclipse.update.examples/site/info/siteInfo.html
update/org.eclipse.update.examples/site/plugins/com.reddot.reddot_1.0.0.jar
update/org.eclipse.update.examples/site/plugins/com.reddot.reddot_2.0.0.jar
update/org.eclipse.update.examples/site/site.xml
update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipConverter.java
update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureContentProvider.java
update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureFactory.java
update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureParser.java
update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipPluginParser.java
update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipSiteContentProvider.java
update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipSiteFactory.java
update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/DefaultModelWriter.java
update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/Test.java
update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/java.page.jpage
update/org.eclipse.update.examples/src/org/eclipse/update/examples/freeform/FreeFormSiteContentProvider.java
update/org.eclipse.update.examples/src/org/eclipse/update/examples/freeform/FreeFormSiteFactory.java
update/org.eclipse.update.ui.forms/.project
update/org.eclipse.update.ui.win32/.project
update/org.eclipse.update/.project
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ant/tests/ui/editor/performance/EditorTestHelper.java b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ant/tests/ui/editor/performance/EditorTestHelper.java
deleted file mode 100644
index 690d62b..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ant/tests/ui/editor/performance/EditorTestHelper.java
+++ /dev/null
@@ -1,149 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.ant.tests.ui.editor.performance;
-
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.jobs.IJobManager;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.IWorkbenchPart;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.ide.IDE;
-import org.eclipse.ui.texteditor.IDocumentProvider;
-import org.eclipse.ui.texteditor.ITextEditor;
-
-
-/**
- * @since 3.1
- */
-public class EditorTestHelper {
-
- public static IEditorPart openInEditor(IFile file, boolean runEventLoop) throws PartInitException {
- IEditorPart part= IDE.openEditor(getActivePage(), file);
- if (runEventLoop)
- runEventQueue(part);
- return part;
- }
-
- public static IEditorPart openInEditor(IFile file, String editorId, boolean runEventLoop) throws PartInitException {
- IEditorPart part= IDE.openEditor(getActivePage(), file, editorId);
- if (runEventLoop)
- runEventQueue(part);
- return part;
- }
-
- public static IDocument getDocument(ITextEditor editor) {
- IDocumentProvider provider= editor.getDocumentProvider();
- IEditorInput input= editor.getEditorInput();
- return provider.getDocument(input);
- }
-
- public static void revertEditor(ITextEditor editor, boolean runEventQueue) {
- editor.doRevertToSaved();
- if (runEventQueue)
- runEventQueue(editor);
- }
-
- public static void closeAllEditors() {
- IWorkbenchPage page= getActivePage();
- if (page != null)
- page.closeAllEditors(false);
- }
-
- public static void runEventQueue() {
- IWorkbenchWindow window= getActiveWorkbenchWindow();
- if (window != null)
- runEventQueue(window.getShell());
- }
-
- public static void runEventQueue(IWorkbenchPart part) {
- runEventQueue(part.getSite().getShell());
- }
-
- public static void runEventQueue(Shell shell) {
- while (shell.getDisplay().readAndDispatch());
- }
-
- public static void runEventQueue(long minTime) {
- long nextCheck= System.currentTimeMillis() + minTime;
- while (System.currentTimeMillis() < nextCheck) {
- runEventQueue();
- sleep(1);
- }
- }
-
- public static IWorkbenchWindow getActiveWorkbenchWindow() {
- return PlatformUI.getWorkbench().getActiveWorkbenchWindow();
- }
-
- public static IWorkbenchPage getActivePage() {
- IWorkbenchWindow window= getActiveWorkbenchWindow();
- return window != null ? window.getActivePage() : null;
- }
-
- public static Display getActiveDisplay() {
- IWorkbenchWindow window= getActiveWorkbenchWindow();
- return window != null ? window.getShell().getDisplay() : null;
- }
-
- public static boolean calmDown(long minTime, long maxTime, long intervalTime) {
- long startTime= System.currentTimeMillis() + minTime;
- runEventQueue();
- while (System.currentTimeMillis() < startTime)
- runEventQueue(intervalTime);
-
- long endTime= maxTime > 0 ? System.currentTimeMillis() + maxTime : Long.MAX_VALUE;
- boolean calm= isCalm();
- while (!calm && System.currentTimeMillis() < endTime) {
- runEventQueue(intervalTime);
- calm= isCalm();
- }
-// System.out.println("--------------------------------------------------");
- return calm;
- }
-
- public static void sleep(int intervalTime) {
- try {
- Thread.sleep(intervalTime);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- public static boolean isCalm() {
- IJobManager jobManager= Platform.getJobManager();
- Job[] jobs= jobManager.find(null);
- for (int i= 0; i < jobs.length; i++) {
- Job job= jobs[i];
- int state= job.getState();
-// System.out.println(job.getName() + ": " + getStateName(state));
- if (state == Job.RUNNING || state == Job.WAITING) {
-// System.out.println();
- return false;
- }
- }
-// System.out.println();
- return true;
- }
-
- public static void bringToTop() {
- getActiveWorkbenchWindow().getShell().forceActive();
- }
-}
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ant/tests/ui/editor/performance/OpenAntEditorTest.java b/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ant/tests/ui/editor/performance/OpenAntEditorTest.java
deleted file mode 100644
index 07167a9..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ant/tests/ui/editor/performance/OpenAntEditorTest.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.ant.tests.ui.editor.performance;
-
-import java.io.File;
-
-import org.eclipse.ant.tests.ui.testplugin.ProjectHelper;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.test.performance.Dimension;
-import org.eclipse.test.performance.PerformanceTestCase;
-import org.eclipse.ui.PartInitException;
-
-public class OpenAntEditorTest extends PerformanceTestCase {
-
- protected void setUp() throws Exception {
- super.setUp();
- EditorTestHelper.runEventQueue();
- }
-
- public void testOpenAntEditor1() throws PartInitException {
- // cold run
- IFile file= getIFile("build.xml");
- measureOpenInEditor(file);
- }
-
- public void testOpenAntEditor2() throws PartInitException {
- // warm run
- IFile file= getIFile("build.xml");
- tagAsGlobalSummary("Open Ant Editor", Dimension.CPU_TIME);
- measureOpenInEditor(file);
- }
-
- public void testOpenAntEditorNoFolding() throws PartInitException {
- //there was no folding in 3.0.1
- IFile file= getIFile("build.xml");
- tagAsSummary("Open Ant Editor; No folding", Dimension.CPU_TIME);
- measureOpenInEditor(file);
- }
-
- protected IFile getIFile(String buildFileName) {
- return getProject().getFolder("buildfiles").getFolder("performance").getFile(buildFileName);
- }
-
- protected File getBuildFile(String buildFileName) {
- IFile file = getIFile(buildFileName);
- assertTrue("Could not find build file named: " + buildFileName, file.exists());
- return file.getLocation().toFile();
- }
-
- /**
- * Returns the 'AntUITests' project.
- *
- * @return the test project
- */
- protected IProject getProject() {
- return ResourcesPlugin.getWorkspace().getRoot().getProject(ProjectHelper.PROJECT_NAME);
- }
-
- protected void measureOpenInEditor(IFile file) throws PartInitException {
- try {
- for (int i= 0; i < 15; i++) {
- startMeasuring();
- EditorTestHelper.openInEditor(file, true);
- stopMeasuring();
- EditorTestHelper.closeAllEditors();
- sleep(2000); // NOTE: runnables posted from other threads, while the main thread waits here, are executed and measured only in the next iteration
- }
- commitMeasurements();
- assertPerformance();
- } finally {
- EditorTestHelper.closeAllEditors();
- }
- }
-
- private synchronized void sleep(int time) {
- try {
- wait(time);
- } catch (InterruptedException e) {
- }
- }
-}
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/AbstractAntUIBuildPerformanceTest.java b/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/AbstractAntUIBuildPerformanceTest.java
deleted file mode 100644
index f7f4503..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/AbstractAntUIBuildPerformanceTest.java
+++ /dev/null
@@ -1,142 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.ant.tests.ui;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.test.performance.Dimension;
-import org.eclipse.test.performance.Performance;
-import org.eclipse.test.performance.PerformanceMeter;
-
-public class AbstractAntUIBuildPerformanceTest extends AbstractAntUIBuildTest {
-
- protected PerformanceMeter fPerformanceMeter;
-
- /**
- * Constructs a performance test case with the given name.
- * @param name the name of the performance test case
- */
- public AbstractAntUIBuildPerformanceTest(String name) {
- super(name);
- }
-
- /**
- * Overridden to create a default performance meter for this test case.
- * @throws Exception
- */
- protected void setUp() throws Exception {
- Performance performance= Performance.getDefault();
- fPerformanceMeter= performance.createPerformanceMeter(performance.getDefaultScenarioId(this));
- }
-
- /**
- * Overridden to dispose of the performance meter.
- * @throws Exception
- */
- protected void tearDown() throws Exception {
- fPerformanceMeter.dispose();
- }
-
- /**
- * Mark the scenario of this test case
- * to be included into the global performance summary. The summary shows
- * the given dimension of the scenario and labels the scenario with the short name.
- *
- * @param shortName a short (shorter than 40 characters) descritive name of the scenario
- * @param dimension the dimension to show in the summary
- */
- public void tagAsGlobalSummary(String shortName, Dimension dimension) {
- Performance performance= Performance.getDefault();
- performance.tagAsGlobalSummary(fPerformanceMeter, shortName, new Dimension[] { dimension } );
- }
-
- /**
- * Mark the scenario of this test case
- * to be included into the performance summary. The summary shows
- * the given dimension of the scenario and labels the scenario with the short name.
- *
- * @param shortName a short (shorter than 40 characters) descritive name of the scenario
- * @param dimension the dimension to show in the summary
- */
- public void tagAsSummary(String shortName, Dimension dimension) {
- Performance performance= Performance.getDefault();
- performance.tagAsSummary(fPerformanceMeter, shortName, new Dimension[] { dimension } );
- }
-
- /**
- * Mark the scenario represented by the given PerformanceMeter
- * to be included into the global performance summary. The summary shows
- * the given dimensions of the scenario and labels the scenario with the short name.
- *
- * @param shortName a short (shorter than 40 characters) descritive name of the scenario
- * @param dimensions an array of dimensions to show in the summary
- */
- public void tagAsGlobalSummary(String shortName, Dimension[] dimensions) {
- Performance performance= Performance.getDefault();
- performance.tagAsGlobalSummary(fPerformanceMeter, shortName, dimensions );
- }
-
- /**
- * Called from within a test case immediately before the code to measure is run.
- * It starts capturing of performance data.
- * Must be followed by a call to {@link PerformanceTestCase#stopMeasuring()} before subsequent calls
- * to this method or {@link PerformanceTestCase#commitMeasurements()}.
- */
- protected void startMeasuring() {
- fPerformanceMeter.start();
- }
-
- protected void stopMeasuring() {
- fPerformanceMeter.stop();
- }
-
- protected void commitMeasurements() {
- fPerformanceMeter.commit();
- }
-
- /**
- * Asserts default properties of the measurements captured for this test case.
- *
- * @throws RuntimeException if the properties do not hold
- */
- protected void assertPerformance() {
- Performance.getDefault().assertPerformance(fPerformanceMeter);
- }
-
- /**
- * Asserts that the measurement specified by the given dimension
- * is within a certain range with respect to some reference value.
- * If the specified dimension isn't available, the call has no effect.
- *
- * @param dim the Dimension to check
- * @param lowerPercentage a negative number indicating the percentage the measured value is allowed to be smaller than some reference value
- * @param upperPercentage a positive number indicating the percentage the measured value is allowed to be greater than some reference value
- * @throws RuntimeException if the properties do not hold
- */
- protected void assertPerformanceInRelativeBand(Dimension dim, int lowerPercentage, int upperPercentage) {
- Performance.getDefault().assertPerformanceInRelativeBand(fPerformanceMeter, dim, lowerPercentage, upperPercentage);
- }
-
- /**
- * Launches the Ant build for this config.
- * Waits for all of the lines to be appended to the console.
- *
- * @param config the launch configuration to execute
- * @param i the number of times to perform the launch
- */
- protected void launch(ILaunchConfiguration config, int i) throws CoreException {
- startMeasuring();
- for (int j = 0; j < i; j++) {
- super.launch(config);
- }
- stopMeasuring();
- }
-}
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/AbstractAntUIBuildTest.java b/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/AbstractAntUIBuildTest.java
index cdd0702..8f1edb6 100644
--- a/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/AbstractAntUIBuildTest.java
+++ b/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/AbstractAntUIBuildTest.java
@@ -16,10 +16,10 @@
import org.eclipse.ant.tests.ui.testplugin.AbstractAntUITest;
import org.eclipse.ant.tests.ui.testplugin.ConsoleLineTracker;
import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.ui.console.IConsoleHyperlink;
import org.eclipse.swt.widgets.Display;
+
public abstract class AbstractAntUIBuildTest extends AbstractAntUITest {
/**
@@ -66,7 +66,7 @@
* Launches the Ant build with the buildfile name (no extension).
* Waits for all of the lines to be appended to the console.
*
- * @param buildFileName the buildfile to execute
+ * @param mainTypeName the program to launch
* @return thread in which the first suspend event occurred
*/
protected void launch(String buildFileName) throws CoreException {
@@ -74,18 +74,6 @@
ConsoleLineTracker.waitForConsole();
}
- /**
- * Launches the launch configuration
- * Waits for all of the lines to be appended to the console.
- *
- * @param config the config to execute
- * @return thread in which the first suspend event occurred
- */
- protected void launch(ILaunchConfiguration config) throws CoreException {
- launchAndTerminate(config, 20000);
- ConsoleLineTracker.waitForConsole();
- }
-
protected void activateLink(final IConsoleHyperlink link) {
Display.getDefault().asyncExec(new Runnable() {
public void run() {
@@ -100,4 +88,4 @@
super.launch(buildFileName, arguments);
ConsoleLineTracker.waitForConsole();
}
-}
\ No newline at end of file
+}
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/performance/OpenLaunchConfigurationDialogTests.java b/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/performance/OpenLaunchConfigurationDialogTests.java
deleted file mode 100644
index bf5f752..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/performance/OpenLaunchConfigurationDialogTests.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.ant.tests.ui.performance;
-
-import org.eclipse.ant.internal.ui.model.IAntUIConstants;
-import org.eclipse.ant.tests.ui.editor.performance.EditorTestHelper;
-import org.eclipse.ant.tests.ui.testplugin.AbstractAntUITest;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.internal.ui.DebugUIPlugin;
-import org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.test.performance.Dimension;
-import org.eclipse.test.performance.PerformanceTestCase;
-import org.eclipse.ui.externaltools.internal.model.IExternalToolConstants;
-
-public class OpenLaunchConfigurationDialogTests extends PerformanceTestCase {
-
- public static String fgIdentifier= IExternalToolConstants.ID_EXTERNAL_TOOLS_LAUNCH_GROUP;
-
- public void testOpenAntLaunchConfigurationDialog1() {
- //cold run
- ILaunchConfiguration configuration= getLaunchConfiguration("big");
- IStructuredSelection selection= new StructuredSelection(configuration);
- for (int i = 0; i < 10; i++) {
- openLCD(selection, fgIdentifier, 20);
- }
-
- commitMeasurements();
- assertPerformance();
- }
-
- public void testOpenAntLaunchConfigurationDialog2() {
- //warm run
- ILaunchConfiguration configuration= getLaunchConfiguration("big");
- IStructuredSelection selection= new StructuredSelection(configuration);
- tagAsSummary("Open LCD on Targets tab", Dimension.CPU_TIME);
- for (int i = 0; i < 10; i++) {
- openLCD(selection, fgIdentifier, 20);
- }
-
- commitMeasurements();
- assertPerformance();
- }
-
- private ILaunchConfiguration getLaunchConfiguration(String buildFileName) {
- IFile file = AbstractAntUITest.getJavaProject().getProject().getFolder("launchConfigurations").getFile(buildFileName + ".launch");
- ILaunchConfiguration config = AbstractAntUITest.getLaunchManager().getLaunchConfiguration(file);
- assertTrue("Could not find launch configuration for " + buildFileName, config.exists());
- return config;
- }
-
- private void openLCD(final IStructuredSelection selection, final String groupIdentifier, int numberOfOpens) {
- startMeasuring();
- for (int i = 0; i < numberOfOpens; i++) {
- //set a status to go to the targets tab
- IStatus status = new Status(IStatus.INFO, IAntUIConstants.PLUGIN_ID, IAntUIConstants.STATUS_INIT_RUN_ANT, "", null); //$NON-NLS-1$
- LaunchConfigurationsDialog dialog= new LaunchConfigurationsDialog(DebugUIPlugin.getShell(), DebugUIPlugin.getDefault().getLaunchConfigurationManager().getLaunchGroup(groupIdentifier));
- dialog.setBlockOnOpen(false);
- dialog.setOpenMode(LaunchConfigurationsDialog.LAUNCH_CONFIGURATION_DIALOG_OPEN_ON_SELECTION);
- dialog.setInitialSelection(selection);
- dialog.setInitialStatus(status);
-
- dialog.open();
- EditorTestHelper.runEventQueue(dialog.getShell());
- dialog.close();
- }
- stopMeasuring();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.test.performance.PerformanceTestCase#setUp()
- */
- protected void setUp() throws Exception {
- super.setUp();
- EditorTestHelper.runEventQueue();
- }
-}
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/performance/SeparateVMTests.java b/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/performance/SeparateVMTests.java
deleted file mode 100644
index 29ceaf2..0000000
--- a/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/performance/SeparateVMTests.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.ant.tests.ui.performance;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-import org.eclipse.ant.tests.ui.AbstractAntUIBuildPerformanceTest;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.test.performance.Dimension;
-import org.eclipse.ui.externaltools.internal.model.IExternalToolConstants;
-
-public class SeparateVMTests extends AbstractAntUIBuildPerformanceTest {
-
- public SeparateVMTests(String name) {
- super(name);
- }
-
- public static Test suite() {
- return new TestSuite(SeparateVMTests.class);
- }
-
- /**
- * Performance test for launching Ant in a separate vm.
- */
- public void testBuild() throws CoreException {
- tagAsSummary("Separate JRE Build", Dimension.CPU_TIME);
- ILaunchConfiguration config= getLaunchConfiguration("echoingSepVM");
- for (int i = 0; i < 10; i++) {
- launch(config, 10);
- }
- commitMeasurements();
- assertPerformance();
- }
-
- /**
- * Performance test for launching Ant in a separate vm with no console output.
- */
- public void testBuildNoConsole() throws CoreException {
- tagAsSummary("Separate JRE Build; capture output off", Dimension.CPU_TIME);
- ILaunchConfiguration config = getLaunchConfiguration("echoingSepVM");
- assertNotNull("Could not locate launch configuration for " + "echoingSepVM", config);
- ILaunchConfigurationWorkingCopy copy= config.getWorkingCopy();
- copy.setAttribute(IExternalToolConstants.ATTR_CAPTURE_OUTPUT, false);
- for (int i = 0; i < 10; i++) {
- startMeasuring();
- for (int j = 0; j < i; j++) {
- launchAndTerminate(copy, 20000);
- }
- stopMeasuring();
- }
- commitMeasurements();
- assertPerformance();
- }
-
- /**
- * Performance test for launching Ant in a separate vm with debug information.
- */
- public void testBuildMinusDebug() throws CoreException {
- tagAsSummary("Separate JRE Build; -debug", Dimension.CPU_TIME);
- ILaunchConfiguration config = getLaunchConfiguration("echoingSepVM");
- assertNotNull("Could not locate launch configuration for " + "echoingSepVM", config);
- ILaunchConfigurationWorkingCopy copy= config.getWorkingCopy();
- copy.setAttribute(IExternalToolConstants.ATTR_TOOL_ARGUMENTS, "-debug");
- for (int i = 0; i < 10; i++) {
- launch(copy, 10);
- }
- commitMeasurements();
- assertPerformance();
- }
-}
\ No newline at end of file
diff --git a/ant/org.eclipse.ant.tests.ui/plugin.xml b/ant/org.eclipse.ant.tests.ui/plugin.xml
index c3911d1..cb5d656 100644
--- a/ant/org.eclipse.ant.tests.ui/plugin.xml
+++ b/ant/org.eclipse.ant.tests.ui/plugin.xml
@@ -27,7 +27,6 @@
<import plugin="org.eclipse.ui.externaltools"/>
<import plugin="org.eclipse.ant.ui"/>
<import plugin="org.eclipse.core.runtime"/>
- <import plugin="org.eclipse.test.performance"/>
</requires>
<runtime>
diff --git a/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AbstractAntUITest.java b/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AbstractAntUITest.java
index effdc46..9258ed1 100644
--- a/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AbstractAntUITest.java
+++ b/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AbstractAntUITest.java
@@ -80,7 +80,7 @@
*
* @return the test project
*/
- protected static IProject getProject() {
+ protected IProject getProject() {
return ResourcesPlugin.getWorkspace().getRoot().getProject(ProjectHelper.PROJECT_NAME);
}
@@ -258,7 +258,7 @@
*
* @return launch manager
*/
- public static ILaunchManager getLaunchManager() {
+ protected ILaunchManager getLaunchManager() {
return DebugPlugin.getDefault().getLaunchManager();
}
@@ -267,7 +267,7 @@
*
* @return the test project
*/
- public static IJavaProject getJavaProject() {
+ protected IJavaProject getJavaProject() {
return JavaCore.create( getProject());
}
diff --git a/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AntUIPerformanceTests.java b/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AntUIPerformanceTests.java
deleted file mode 100644
index cfd7a52..0000000
--- a/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AntUIPerformanceTests.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.ant.tests.ui.testplugin;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.ant.tests.ui.editor.performance.OpenAntEditorTest;
-import org.eclipse.ant.tests.ui.performance.OpenLaunchConfigurationDialogTests;
-import org.eclipse.ant.tests.ui.performance.SeparateVMTests;
-
-/**
- * Performance Test suite for the Ant UI
- */
-public class AntUIPerformanceTests extends TestSuite {
-
- public static Test suite() {
-
- TestSuite suite= new AntUIPerformanceTests();
- suite.setName("Ant UI Performance Unit Tests");
- suite.addTest(new TestSuite(ProjectCreationDecorator.class));
- suite.addTest(new TestSuite(OpenAntEditorTest.class));
- suite.addTest(new TestSuite(OpenLaunchConfigurationDialogTests.class));
- suite.addTest(new TestSuite(SeparateVMTests.class));
- return suite;
- }
-}
diff --git a/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/ProjectCreationDecorator.java b/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/ProjectCreationDecorator.java
index 8ca672e..8ef115b 100644
--- a/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/ProjectCreationDecorator.java
+++ b/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/ProjectCreationDecorator.java
@@ -20,9 +20,7 @@
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationType;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.debug.ui.IDebugUIConstants;
@@ -31,6 +29,10 @@
import org.eclipse.jdt.launching.JavaRuntime;
import org.eclipse.ui.externaltools.internal.model.IExternalToolConstants;
+/**
+ * Test to close the workbench, since debug tests do not run in the UI
+ * thread.
+ */
public class ProjectCreationDecorator extends AbstractAntUITest {
public ProjectCreationDecorator(String name) {
@@ -51,43 +53,31 @@
File root = AntUITestPlugin.getDefault().getFileInPlugin(ProjectHelper.TEST_BUILDFILES_DIR);
ProjectHelper.importFilesFromDirectory(root, folder.getFullPath(), null);
- createLaunchConfigurationForBoth("echoing");
+ createLaunchConfiguration("echoing");
createLaunchConfiguration("build");
createLaunchConfiguration("bad");
- createLaunchConfigurationForSeparateVM("extensionPointSepVM", null);
- createLaunchConfigurationForSeparateVM("extensionPointTaskSepVM", null);
- createLaunchConfigurationForSeparateVM("extensionPointTypeSepVM", null);
-
- createLaunchConfiguration("big", ProjectHelper.PROJECT_NAME + "/buildfiles/performance/build.xml");
-
+ createLaunchConfigurationForSeparateVM("echoingSepVM");
+ createLaunchConfigurationForSeparateVM("extensionPointSepVM");
+ createLaunchConfigurationForSeparateVM("extensionPointTaskSepVM");
+ createLaunchConfigurationForSeparateVM("extensionPointTypeSepVM");
} finally {
//do not show the Ant build failed error dialog
AntUIPlugin.getDefault().getPreferenceStore().setValue(IAntUIPreferenceConstants.ANT_ERROR_DIALOG, false);
}
}
- private void createLaunchConfigurationForBoth(String launchConfigName) throws Exception {
- createLaunchConfiguration(launchConfigName);
- createLaunchConfigurationForSeparateVM(launchConfigName + "SepVM", launchConfigName);
-
- }
-
/**
* Creates a shared launch configuration for launching Ant in a separate VM with the given
* name.
*/
- protected void createLaunchConfigurationForSeparateVM(String launchConfigName, String buildFileName) throws Exception {
+ protected void createLaunchConfigurationForSeparateVM(String launchConfigName) throws Exception {
ILaunchConfigurationType type = getLaunchManager().getLaunchConfigurationType(IAntLaunchConfigurationConstants.ID_ANT_LAUNCH_CONFIGURATION_TYPE);
ILaunchConfigurationWorkingCopy config = type.newInstance(getJavaProject().getProject().getFolder("launchConfigurations"), launchConfigName);
config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, "org.eclipse.ant.internal.ui.antsupport.InternalAntRunner"); //$NON-NLS-1$
config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH_PROVIDER, "org.eclipse.ant.ui.AntClasspathProvider"); //$NON-NLS-1$
config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, getJavaProject().getElementName());
- if (buildFileName == null) {
- buildFileName= launchConfigName;
- }
- config.setAttribute(IExternalToolConstants.ATTR_LOCATION, "${workspace_loc:/" + ProjectHelper.PROJECT_NAME + "/buildfiles/" + buildFileName + ".xml}");
-
+ config.setAttribute(IExternalToolConstants.ATTR_LOCATION, "${workspace_loc:/" + ProjectHelper.PROJECT_NAME + "/buildfiles/" + launchConfigName + ".xml}");
config.setAttribute(IDebugUIConstants.ATTR_LAUNCH_IN_BACKGROUND, true);
config.setAttribute(DebugPlugin.ATTR_PROCESS_FACTORY_ID, IAntUIConstants.REMOTE_ANT_PROCESS_FACTORY_ID);
@@ -101,19 +91,14 @@
* name.
*/
protected void createLaunchConfiguration(String launchConfigName) throws Exception {
- createLaunchConfiguration(launchConfigName, ProjectHelper.PROJECT_NAME + "/buildfiles/" + launchConfigName + ".xml");
- }
-
- public static ILaunchConfiguration createLaunchConfiguration(String launchConfigName, String path) throws CoreException {
- ILaunchConfigurationType type = getLaunchManager().getLaunchConfigurationType(IAntLaunchConfigurationConstants.ID_ANT_LAUNCH_CONFIGURATION_TYPE);
+ ILaunchConfigurationType type = getLaunchManager().getLaunchConfigurationType(IAntLaunchConfigurationConstants.ID_ANT_LAUNCH_CONFIGURATION_TYPE);
ILaunchConfigurationWorkingCopy config = type.newInstance(getJavaProject().getProject().getFolder("launchConfigurations"), launchConfigName);
config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, getJavaProject().getElementName());
- config.setAttribute(IExternalToolConstants.ATTR_LOCATION, "${workspace_loc:/" + path + "}");
+ config.setAttribute(IExternalToolConstants.ATTR_LOCATION, "${workspace_loc:/" + ProjectHelper.PROJECT_NAME + "/buildfiles/" + launchConfigName + ".xml}");
config.setAttribute(IDebugUIConstants.ATTR_LAUNCH_IN_BACKGROUND, true);
config.doSave();
- return config;
}
private void setVM(ILaunchConfigurationWorkingCopy config) {
diff --git a/ant/org.eclipse.ant.tests.ui/test.xml b/ant/org.eclipse.ant.tests.ui/test.xml
index c6f1563..e5dff43 100644
--- a/ant/org.eclipse.ant.tests.ui/test.xml
+++ b/ant/org.eclipse.ant.tests.ui/test.xml
@@ -31,19 +31,6 @@
value="org.eclipse.ant.tests.ui.testplugin.AntUITests"/>
</ant>
</target>
-
- <!-- This target defines the performance tests that need to be run. -->
- <target name="perfsuite">
- <property name="jdt-folder"
- value="${eclipse-home}/jdt_folder"/>
- <delete dir="${jdt-folder}" quiet="true"/>
- <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
- <property name="data-dir" value="${jdt-folder}"/>
- <property name="plugin-name" value="${plugin-name}"/>
- <property name="classname"
- value="org.eclipse.ant.tests.ui.testplugin.AntUIPerformanceTests"/>
- </ant>
- </target>
<!-- This target holds code to cleanup the testing environment after -->
<!-- after all of the tests have been run. You can use this target to -->
@@ -60,12 +47,4 @@
</ant>
</target>
- <!--This target runs the performance test suites and collects results.-->
- <target name="performance" depends="init, perfsuite, cleanup">
- <ant target="collect" antfile="${library-file}" dir="${eclipse-home}">
- <property name="includes" value="org*.xml"/>
- <property name="output-file" value="${plugin-name}.xml"/>
- </ant>
- </target>
-
</project>
diff --git a/ant/org.eclipse.ant.tests.ui/testbuildfiles/performance/build.xml b/ant/org.eclipse.ant.tests.ui/testbuildfiles/performance/build.xml
deleted file mode 100644
index 8134903..0000000
--- a/ant/org.eclipse.ant.tests.ui/testbuildfiles/performance/build.xml
+++ /dev/null
@@ -1,2360 +0,0 @@
-<?xml version="1.0"?>
-<!-- Copyright (C) 1993-2003 SEAGULL -->
-<?xm-well_formed path = ""?>
-<!-- ===================================================================
-
-Build file for the Transidiom Java components: AIS, IDT, IFT, etc.
-
-Notes:
-
- - This is a build file for use with the Jakarta Ant build tool.
- - naming guidelines:
- - For properties, the names are generally moduleName.propertyType, e.g. ais.files.
- - For targets, the names are generally action.moduleName, e.g. compile.ais.
-
-Prerequisites:
-
- jakarta-ant from http://jakarta.apache.org
- A JAXP-compliant XSLT transformer.
- - Xalan, from http://xml.apache.org.
- A JAXP-compliant DOM parser.
- - Xerces, from http://xml.apache.org.
-
-Main targets:
-
- clean Removes all the generated files and directories
- clean.classes Removes all .class files
- compile Compiles all the sources into ${build.classes}
- dist Creates the distribution in ${build.dist}
- jars Creates the jar files in ${build.lib}
- nightly-build Creates a nightly build (does it all)
- test Runs the tests.
- test.compile Compiles the unit tests without triggering any dependencies.
- verify Verifies the build by performing a load tests on jar files (does not trigger the jar dependencies.)
- zip Creates the final ${zip-file} (does it all)
-
-TODO:
- Distinguish between compile and runtime classpath:
- - component.classpath.compile
- - component.classpath.rt
-
-Authors:
-
- Lee Breisacher: lbreisacher@seagullsw.com
- Gary Gregory: ggregory@seagullsw.com
-
-==================================================================== -->
-<project default="zip" basedir="." name="transidiom">
- <!-- General properties -->
- <property file="local-build.properties"/>
- <property file="build.properties"/>
- <property name="COMPANY.word" value="SEAGULL"/>
- <property name="product.name" value="Application Interface Server"/>
- <property name="Name" value="Application Interface Server"/>
- <property name="src.root.dir" value=".."/>
- <property name="binary.root.dir" value="${src.root.dir}/../../BinE"/>
- <!-- UGLY!! This creates a dependency to the 'E' tree. Not sure how to solve it, though -->
- <property name="src.dir" value="${src.root.dir}/Source"/>
- <property name="java.resource.dir" value="${src.root.dir}/Resources"/>
- <property name="xslt.resource.dir" value="../../Resources/XSLT"/>
- <property name="fdef.dirname" value="config/functions"/>
- <property name="root.dir" value="${src.root.dir}/Root"/>
- <property name="root.dir.sys" value="${root.dir}/System"/>
- <property name="root.dir.sysdef" value="${root.dir.sys}/Defaults"/>
- <property name="root.dir.server" value="${root.dir}/server"/>
- <property name="root.dir.server-config" value="${root.dir.server}/config"/>
- <property name="root.dir.tools-config" value="${root.dir}/tools/config"/>
- <property name="root.dir.mq" value="${root.dir}/mq"/>
- <property name="root.dir.server-log" value="${root.dir.server-config}/log"/>
- <property name="root.dir.server-transform" value="${root.dir.server-config}/transform"/>
- <property name="root.dir.tools-log" value="${root.dir.tools-config}/log"/>
- <property name="doc.dir" value="${src.root.dir}/Doc/Deliver"/>
- <property name="test.dir" value="${src.root.dir}/Test"/>
- <property name="src.test.dir" value="${test.dir}/Source"/>
- <property name="build.dir" location="${basedir}/../buildoutput"/>
- <property name="build.classes" value="${build.dir}/classes"/>
- <property name="build.etc" value="${build.dir}/etc"/>
- <property name="build.lib" value="${build.dir}/lib"/>
- <property name="build.checksum" location="${build.lib}/checksum"/>
- <property name="all-jars.xml" location="${build.checksum}/all-jars.xml"/>
- <property name="build.dist" value="${build.dir}/dist"/>
- <property name="zipFileBaseName" value="AppInterface"/>
- <property name="thirdparty.dir" value="../../../../ThirdParty"/>
- <property name="modifiedthirdparty.dir" value="../../ModifiedThirdParty"/>
- <property name="sourcesafemirror.dir" value="../../SourceSafeMirror"/>
- <property name="src.sourcesafemirror.dir" value="${sourcesafemirror.dir}/Java/Source"/>
- <!-- 3rd party jar references -->
- <property name="apache.dir" value="${thirdparty.dir}/apache.org"/>
- <property name="xalan.dir" value="${apache.dir}/xalan-j/2.5.1/bin"/>
- <property name="ant.jarname" value="ant.jar"/>
- <property name="ant.jar" value="${apache.dir}/jakarta-ant/1.5.2/${ant.jarname}"/>
- <property name="xerces.jarname" value="xercesImpl.jar"/>
- <property name="xerces.jar" value="${xalan.dir}/${xerces.jarname}"/>
- <property name="xalan.jarname" value="xalan.jar"/>
- <property name="xalan.jar" value="${xalan.dir}/${xalan.jarname}"/>
- <property name="xsltc.jarname" value="xsltc.jar"/>
- <property name="xsltc.jar" value="${xalan.dir}/${xsltc.jarname}"/>
- <property name="xml-apis.jarname" value="xml-apis.jar"/>
- <property name="xml-apis.jar" value="${xalan.dir}/${xml-apis.jarname}"/>
- <property name="soap.jarname" value="soap.jar"/>
- <property name="soap.jar" value="${modifiedthirdparty.dir}/Soap/2.2/java/build/lib/${soap.jarname}"/>
- <property name="mail.jarname" value="mailapi.jar"/>
- <property name="mail.jar" value="${thirdparty.dir}/sun/JavaMail/1.3/lib/${mail.jarname}"/>
- <property name="activation.jarname" value="activation.jar"/>
- <property name="activation.jar" value="${thirdparty.dir}/sun/jaf/1.0.2/${activation.jarname}"/>
- <property name="servlet.jarname" value="servlet.jar"/>
- <property name="servlet.dir" value="${apache.dir}/jakarta-tomcat/3.2.1/ServletAPI/lib"/>
- <property name="servlet.jar" value="${servlet.dir}/${servlet.jarname}"/>
- <property name="commons-httpclient.jarname" value="commons-httpclient-2.0-rc2.jar"/>
- <property name="commons-httpclient.dir" value="${apache.dir}/commons-httpclient/2.0-rc2"/>
- <property name="commons-httpclient.jar" value="${commons-httpclient.dir}/${commons-httpclient.jarname}"/>
- <property name="commons-logging.jarname" value="commons-logging.jar"/>
- <property name="commons-logging.dir" value="${apache.dir}/commons-logging/1.0.3"/>
- <property name="commons-logging.jar" value="${commons-logging.dir}/${commons-logging.jarname}"/>
- <property name="ibm.mq.jarname" value="com.ibm.mq.jar"/>
- <property name="ibm.mq.jar" value="${thirdparty.dir}/IBM/MQSeries/5.2.2/${ibm.mq.jarname}"/>
- <property name="ibm.mqbind.jar" value="${thirdparty.dir}/IBM/MQSeries/5.2.2/com.ibm.mqbind.jar"/>
- <property name="ibm.mqjms.jar" value="${thirdparty.dir}/IBM/MQSeries/5.2.2/com.ibm.mqjms.jar"/>
- <property name="ibm.mq.connector.jar" value="${thirdparty.dir}/IBM/MQSeries/5.2.2/connector.jar"/>
- <property name="ibm.mq.jta.jar" value="${thirdparty.dir}/IBM/MQSeries/5.2.2/jta.jar"/>
- <property name="microsoftsecurityclasses.zip" value="${thirdparty.dir}/Microsoft/security/5.00.2922.0/MicrosoftSecurityClasses.zip"/>
- <property name="commons-codec.jarname" value="commons-codec-1.1.1-dev.jar"/>
- <property name="commons-codec.jar" value="${apache.dir}/commons-codec/20030516/${commons-codec.jarname}"/>
- <property name="commons-collections.jarname" value="commons-collections-2_1.jar"/>
- <property name="commons-collections.jar" value="${apache.dir}/commons-collections/2.1/${commons-collections.jarname}"/>
- <property name="commons-cli.jarname" value="commons-cli-1_0.jar"/>
- <property name="commons-cli.jar" value="${apache.dir}/commons-cli/1.0/${commons-cli.jarname}"/>
- <property name="commons-lang.jarname" value="commons-lang-2.0.jar"/>
- <property name="commons-lang.jar" value="${apache.dir}/commons-lang/2.0/${commons-lang.jarname}"/>
- <property name="commons-pool.jarname" value="commons-pool.jar"/>
- <property name="commons-pool.jar" value="${apache.dir}/commons-pool/20030429/${commons-pool.jarname}"/>
- <property name="ctgclient.jarname" value="ctgclient.jar"/>
- <property name="ctgclient.dir" value="${thirdparty.dir}/IBM/CICS Transaction Gateway/5.0"/>
- <property name="ctgclient.jar" value="${ctgclient.dir}/${ctgclient.jarname}"/>
- <property name="jakarta-oro.jarname" value="jakarta-oro-2.0.7.jar"/>
- <property name="jakarta-oro.jar" value="${apache.dir}/jakarta-oro/2.0.7/${jakarta-oro.jarname}"/>
- <property name="log4j.jarname" value="log4j-1_2_7.jar"/>
- <property name="log4j.jar" value="${apache.dir}/jakarta-log4j/1.2.7/${log4j.jarname}"/>
- <property name="goXMLEngine.jar" value="${thirdparty.dir}/XMLGlobal/GoXMLTransform/3_0_0/lib/engine.jar"/>
- <property name="goXMLResource.zip" value="${thirdparty.dir}/XMLGlobal/GoXMLTransform/3_0_0/lib/resource.zip"/>
- <property name="goXMLconfig.dir" value="${thirdparty.dir}/XMLGlobal/GoXMLTransform/3_0_0/config"/>
- <!-- JDom beta 8 is not compatible with GoXMLTransform 3.0.0, use beta 7 from GoXMLTransform 3.0.0 -->
- <property name="jdom.jarname" value="jdom.jar"/>
- <property name="jdom.jar" value="${thirdparty.dir}/XMLGlobal/GoXMLTransform/3_0_0/lib/${jdom.jarname}"/>
- <property name="jaxb1.jarname" value="jaxb-api.jar"/>
- <property name="jaxb2.jarname" value="jaxb-impl.jar"/>
- <property name="jaxb3.jarname" value="jaxb-libs.jar"/>
- <property name="jaxb4.jarname" value="jax-qname.jar"/>
- <property name="jaxb5.jarname" value="namespace.jar"/>
- <property name="jaxb6.jarname" value="xsdlib.jar"/>
- <property name="jaxb7.jarname" value="relaxngDatatype.jar"/>
- <property name="jaxb.jarnames" value="${jaxb1.jarname} ${jaxb2.jarname} ${jaxb3.jarname} ${jaxb4.jarname} ${jaxb5.jarname} ${jaxb6.jarname} ${jaxb7.jarname} "/>
- <property name="jwsdp.dir" value="${thirdparty.dir}/sun/jwsdp/1.2"/>
- <property name="jaxb.dir" value="${jwsdp.dir}/jaxb/lib"/>
- <property name="jaxb.shared.dir" value="${jwsdp.dir}/jwsdp-shared/lib"/>
- <property name="jaxb1.jar" value="${jaxb.dir}/${jaxb1.jarname}"/>
- <property name="jaxb2.jar" value="${jaxb.dir}/${jaxb2.jarname}"/>
- <property name="jaxb3.jar" value="${jaxb.dir}/${jaxb3.jarname}"/>
- <property name="jaxb4.jar" value="${jaxb.shared.dir}/${jaxb4.jarname}"/>
- <property name="jaxb5.jar" value="${jaxb.shared.dir}/${jaxb5.jarname}"/>
- <property name="jaxb6.jar" value="${jaxb.shared.dir}/${jaxb6.jarname}"/>
- <property name="jaxb7.jar" value="${jaxb.shared.dir}/${jaxb7.jarname}"/>
- <property name="jms.jarname" value="jms-1_0_2_b.jar"/>
- <property name="jms.jar" value="${thirdparty.dir}/sun/jms/1.0.2b/${jms.jarname}"/>
- <property name="jce.jarname" value="jce1_2_2.jar"/>
- <property name="jce.jar" value="${thirdparty.dir}/sun/jce/1.2.2/lib/${jce.jarname}"/>
- <property name="jce_provider.jarname" value="sunjce_provider.jar"/>
- <property name="jce_provider.jar" value="${thirdparty.dir}/sun/jce/1.2.2/lib/${jce_provider.jarname}"/>
- <property name="jcert.jarname" value="jcert.jar"/>
- <property name="jnet.jarname" value="jnet.jar"/>
- <property name="jsse.jarname" value="jsse.jar"/>
- <property name="jsse.dir" value="${thirdparty.dir}/sun/jsse/1.0.3_02-gl/lib"/>
- <property name="jcert.jar" value="${jsse.dir}/${jcert.jarname}"/>
- <property name="jnet.jar" value="${jsse.dir}/${jnet.jarname}"/>
- <property name="jsse.jar" value="${jsse.dir}/${jsse.jarname}"/>
- <property name="jaas.jarname" value="jaas-1_0.jar"/>
- <property name="jaas.jar" value="${thirdparty.dir}/sun/jaas/1.0/lib/${jaas.jarname}"/>
- <property name="jta.jarname" value="jta-1_0_1B-classes.zip"/>
- <property name="jta.jar" value="${thirdparty.dir}/sun/jta/jta-1_0_1b/${jta.jarname}"/>
- <property name="concurrent.jarname" value="concurrent-1_3_2.jar"/>
- <property name="concurrent.jar" value="${thirdparty.dir}/oswego.edu/util.concurrent/1.3.2/${concurrent.jarname}"/>
- <property name="xmlsec.jar" value="${apache.dir}/xml-security/xml-security-1_0_4/build/xmlsec-1_0_4.jar"/>
- <property name="imsico.jarname" value="imsico-1_2_5.jar"/>
- <property name="imsico.jar" value="${thirdparty.dir}/IBM/IMSICO/1.2.5/${imsico.jarname}"/>
- <property name="imsico-connector.jarname" value="imsico-connector-1_2_5.jar"/>
- <property name="imsico-connector.jar" value="${thirdparty.dir}/IBM/IMSICO/1.2.5/${imsico-connector.jarname}"/>
- <property name="junit.jar" value="${thirdparty.dir}/junit/3.8.1/junit.jar"/>
- <property name="mtjunit.jar" value="${thirdparty.dir}/MTJUnit/1.0/MTJUnit-1.jar"/>
- <property name="retroguard.jar" value="${thirdparty.dir}/Retroguard/1.1.13/retroguard.jar"/>
- <property name="j2se.tools.jarname" value="tools.jar"/>
- <property name="j2se.tools.jar" value="${thirdparty.dir}/sun/j2se/1.3.1_08/lib/${j2se.tools.jarname}"/>
- <property name="obfuscate.script" value="${src.root.dir}/Build/obfuscate_hsc.rgs"/>
- <property name="obfuscate.log" value="${build.lib}/obfuscate_hsc.log"/>
- <property name="extension.dir.name" value="ext"/>
- <property name="compile.debug" value="on"/>
- <property name="compile.optimize" value="off"/>
- <!-- These two will normally be set outside this file in the build.properties file. -->
- <property name="version" value="2.3.X.WIP"/>
- <property name="build.id" value="0"/>
- <!-- Jar Manifest standard properties -->
- <property name="manifest.key.main-class" value="Main-Class"/>
- <property name="manifest.key.class-path" value="Class-Path"/>
- <!-- Jar Manifest Seagull properties -->
- <property name="manifest.key.product" value="${COMPANY.word}-Product"/>
- <property name="manifest.key.component" value="${COMPANY.word}-Component"/>
- <property name="manifest.key.version" value="${COMPANY.word}-Version"/>
- <property name="manifest.key.build" value="${COMPANY.word}-Build"/>
- <property name="manifest.key.build-ts" value="${COMPANY.word}-Build-Timestamp"/>
- <!-- Javadoc -->
- <property name="javadoc.j2se.link" value="http://java.sun.com/j2se/1.3/docs/api/"/>
- <!-- Checksum -->
- <property name="checksum.algorithm.md5" value="MD5"/>
- <property name="checksum.algorithm.sha" value="SHA"/>
- <!-- =================================================================== -->
- <!-- Source files and class paths -->
- <!-- =================================================================== -->
- <!-- AIS -->
- <patternset id="ais.files">
- <include name="com/seagullsw/appinterface/server/**"/>
- <include name="com/seagullsw/perftest/"/>
- <exclude name="com/seagullsw/appinterface/server/backend/cics/"/>
- <exclude name="com/seagullsw/appinterface/server/backend/cobol/"/>
- <exclude name="com/seagullsw/appinterface/server/backend/ims/"/>
- <exclude name="com/seagullsw/appinterface/server/backend/hostconnector/"/>
- <exclude name="com/seagullsw/appinterface/server/backend/hostconnector2/"/>
- <exclude name="com/seagullsw/appinterface/server/backend/hc5250/"/>
- <exclude name="com/seagullsw/appinterface/server/backend/hc3270/"/>
- <exclude name="com/seagullsw/appinterface/server/admin/"/>
- <exclude name="com/seagullsw/appinterface/server/InvocationUnitTests.*"/>
- </patternset>
- <property name="ais-core.jarname" value="ais-core.jar"/>
- <property name="ais-core.jar" value="${build.lib}/${ais-core.jarname}"/>
- <path id="jaxb.classpath">
- <pathelement location="${jaxb1.jar}"/>
- <pathelement location="${jaxb2.jar}"/>
- <pathelement location="${jaxb3.jar}"/>
- <pathelement location="${jaxb4.jar}"/>
- <pathelement location="${jaxb5.jar}"/>
- <pathelement location="${jaxb6.jar}"/>
- <pathelement location="${jaxb7.jar}"/>
- </path>
- <path id="jsse.classpath">
- <pathelement location="${jcert.jar}"/>
- <pathelement location="${jnet.jar}"/>
- <pathelement location="${jsse.jar}"/>
- </path>
- <path id="jce.classpath.rt">
- <pathelement location="${jce.jar}"/>
- <pathelement location="${jce_provider.jar}"/>
- </path>
- <path id="ais.classpath">
- <pathelement location="${ibm.mq.jar}"/>
- <pathelement location="${ibm.mqbind.jar}"/>
- <pathelement location="${ibm.mqjms.jar}"/>
- <pathelement location="${xerces.jar}"/>
- <pathelement location="${xml-apis.jar}"/>
- <pathelement location="${xalan.jar}"/>
- <pathelement location="${soap.jar}"/>
- <pathelement location="${mail.jar}"/>
- <pathelement location="${commons-codec.jar}"/>
- <pathelement location="${commons-collections.jar}"/>
- <pathelement location="${commons-httpclient.jar}"/>
- <pathelement location="${commons-lang.jar}"/>
- <pathelement location="${commons-pool.jar}"/>
- <pathelement location="${commons-cli.jar}"/>
- <path refid="jaxb.classpath"/>
- <pathelement location="${jms.jar}"/>
- <pathelement location="${concurrent.jar}"/>
- <pathelement location="${jce.jar}"/>
- </path>
- <path id="xml.classpath.compile">
- <pathelement location="${xml-apis.jar}"/>
- </path>
- <path id="xml.classpath.rt">
- <pathelement location="${xml-apis.jar}"/>
- <pathelement location="${xerces.jar}"/>
- <pathelement location="${xalan.jar}"/>
- </path>
- <path id="transforms.classpath">
- <pathelement location="${jakarta-oro.jar}"/>
- <pathelement location="${xml-apis.jar}"/>
- <pathelement location="${xerces.jar}"/>
- <pathelement location="${xalan.jar}"/>
- <pathelement location="${goXMLEngine.jar}"/>
- <path refid="jaxb.classpath"/>
- <pathelement location="${commons-lang.jar}"/>
- </path>
- <path id="ais.client.classpath">
- <pathelement location="${ibm.mq.jar}"/>
- <pathelement location="${ibm.mqbind.jar}"/>
- <pathelement location="${ibm.mqjms.jar}"/>
- <pathelement location="${xml-apis.jar}"/>
- <pathelement location="${commons-collections.jar}"/>
- <pathelement location="${commons-lang.jar}"/>
- <pathelement location="${commons-pool.jar}"/>
- <path refid="jaxb.classpath"/>
- <pathelement location="${jms.jar}"/>
- </path>
- <!-- AppInterface Communications -->
- <patternset id="appinterfacecomm.files">
- <include name="com/seagullsw/appinterface/comm/"/>
- <exclude name="com/seagullsw/appinterface/comm/servlet/*"/>
- </patternset>
- <!-- MTalk Communications -->
- <patternset id="mtalkcomm.files">
- <include name="com/seagullsw/net/client/mtalk/"/>
- </patternset>
- <!-- AppInterface Setting -->
- <patternset id="appinterfacesettings.files">
- <include name="com/seagullsw/appinterface/settings/*"/>
- </patternset>
- <path id="appinterfacesettings.classpath">
- <pathelement location="${xml-apis.jar}"/>
- <pathelement location="${commons-lang.jar}"/>
- </path>
- <!-- AppInterface Server Settings -->
- <patternset id="appinterfaceserversettings.files">
- <include name="com/seagullsw/appinterface/server/settings/"/>
- </patternset>
- <!-- AppInterface Client -->
- <patternset id="ais.client.files">
- <include name="com/seagullsw/appinterface/client/"/>
- <include name="com/seagullsw/toolbox/config/"/>
- <include name="com/seagullsw/toolbox/xml/"/>
- <include name="com/seagullsw/toolbox/log/"/>
- </patternset>
- <property name="ais.client.jarname" value="ais-client.jar"/>
- <property name="ais.client.jar" value="${build.lib}/${ais.client.jarname}"/>
- <!-- AppInterface Admin Client-->
- <patternset id="ais.adminclient.files">
- <include name="com/seagullsw/appinterface/server/admin/*"/>
- </patternset>
- <path id="ais.adminclient.classpath">
- <pathelement location="${commons-lang.jar}"/>
- <pathelement location="${commons-cli.jar}"/>
- </path>
- <property name="ais-adminclient.jarname" value="ais-admin-client.jar"/>
- <property name="ais-adminclient.jar" value="${build.lib}/${ais-adminclient.jarname}"/>
- <!-- AppInterface Models -->
- <patternset id="appinterfacemodels.files">
- <include name="com/seagullsw/appinterface/model/"/>
- <exclude name="com/seagullsw/appinterface/model/cics/"/>
- <exclude name="com/seagullsw/appinterface/model/cobol/"/>
- <exclude name="com/seagullsw/appinterface/model/ims/"/>
- </patternset>
- <!-- Java Extensions -->
- <patternset id="javaextensions.files">
- <include name="com/seagullsw/debug/*"/>
- <include name="com/seagullsw/javax/"/>
- <exclude name="com/seagullsw/javax/swing/"/>
- </patternset>
- <path id="javaextensions.classpath">
- <pathelement location="${commons-lang.jar}"/>
- </path>
- <!-- UIFacilities -->
- <patternset id="uifacilities.files">
- <include name="com/parcplace/pjava/Framer/"/>
- <include name="com/seagullsw/javax/swing/SwingUtilitiesX.*"/>
- <include name="com/seagullsw/javax/swing/JTextPaneX.*"/>
- <include name="com/seagullsw/javax/swing/border/"/>
- <include name="com/seagullsw/ui/"/>
- <include name="com/seagullsw/debug/ui/"/>
- </patternset>
- <path id="uifacilities.classpath">
- <pathelement location="${commons-lang.jar}"/>
- </path>
- <!-- XML Services -->
- <patternset id="xmlservices.files">
- <include name="com/seagullsw/io/xml/"/>
- </patternset>
- <path id="xmlservices.classpath">
- <pathelement location="${xml-apis.jar}"/>
- <pathelement location="${xerces.jar}"/>
- </path>
- <!-- Transforms -->
- <patternset id="transforms.files">
- <include name="com/seagullsw/appinterface/transforms/"/>
- </patternset>
- <!-- Seagull Toolbox -->
- <patternset id="seagulltoolbox.files">
- <include name="com/seagullsw/toolbox/"/>
- </patternset>
- <path id="seagulltoolbox.classpath">
- <path refid="xml.classpath.rt"/>
- <path refid="jaxb.classpath"/>
- <path refid="jsse.classpath"/>
- <pathelement location="${commons-httpclient.jar}"/>
- <pathelement location="${commons-lang.jar}"/>
- <pathelement location="${commons-cli.jar}"/>
- </path>
- <!-- Win32 Interface -->
- <patternset id="win32interface.files">
- <include name="com/seagullsw/appinterface/win32/"/>
- </patternset>
- <!-- Proxy Servlet -->
- <patternset id="proxyservlet.files">
- <include name="com/seagullsw/appinterface/comm/servlet/"/>
- </patternset>
- <property name="proxyservlet.jarname" value="ais-servlet-proxy.jar"/>
- <property name="proxyservlet.jar" value="${build.lib}/${proxyservlet.jarname}"/>
- <path id="proxyservlet.classpath">
- <pathelement location="${servlet.jar}"/>
- <pathelement location="${xerces.jar}"/>
- </path>
- <!-- Admin Console -->
- <patternset id="adminconsole.files">
- <include name="com/seagullsw/appinterface/server/admin/client/"/>
- </patternset>
- <property name="adminconsole.jarname" value="ais-admin.jar"/>
- <property name="adminconsole.jar" value="${build.lib}/${adminconsole.jarname}"/>
- <!-- Java Connector Generator -->
- <patternset id="javaconnectorgenerator.files">
- <include name="com/seagullsw/appinterface/tools/javaconnectorgenerator/"/>
- </patternset>
- <property name="javaconnectorgenerator.jarname" value="JavaConnectorGenerator.jar"/>
- <property name="javaconnectorgenerator.jar" value="${build.lib}/${javaconnectorgenerator.jarname}"/>
- <!-- Security Toolkit -->
- <patternset id="securitytoolkit.files">
- <include name="com/seagullsw/appinterface/tools/security/"/>
- </patternset>
- <property name="securitytoolkit.jarname" value="SecurityToolkit.jar"/>
- <property name="securitytoolkit.jar" value="${build.lib}/${securitytoolkit.jarname}"/>
- <!-- Tools Framework -->
- <patternset id="devtools.framework.files">
- <include name="com/seagullsw/appinterface/tools/framework/"/>
- </patternset>
- <path id="devtools.framework.classpath">
- <pathelement location="${commons-lang.jar}"/>
- </path>
- <!-- Dev Tools -->
- <patternset id="devtools.files">
- <include name="com/seagullsw/appinterface/tools/"/>
- <exclude name="com/seagullsw/appinterface/tools/security/"/>
- </patternset>
- <path id="devtools.classpath">
- <pathelement location="${xml-apis.jar}"/>
- <pathelement location="${soap.jar}"/>
- <pathelement location="${commons-lang.jar}"/>
- <pathelement location="${jce.jar}"/>
- </path>
- <property name="ais-tools.jarname" value="ais-tools.jar"/>
- <property name="ais-tools.jar" value="${build.lib}/${ais-tools.jarname}"/>
- <!-- JavaTools (e.g. invoking the Java compiler) -->
- <patternset id="javatools.files">
- <include name="com/seagullsw/javatools/"/>
- </patternset>
- <path id="javatools.classpath">
- <pathelement location="${j2se.tools.jar}"/>
- <pathelement location="${jce.jar}"/>
- <path refid="jaxb.classpath"/>
- <pathelement location="${commons-lang.jar}"/>
- </path>
- <!-- Backends -->
- <patternset id="hcbackend.files">
- <include name="com/seagullsw/appinterface/**/*hostconnector*/"/>
- <include name="com/seagullsw/appinterface/server/backend/hsc/**"/>
- </patternset>
- <patternset id="cobol.files">
- <include name="com/seagullsw/appinterface/server/backend/cobol/"/>
- <include name="com/seagullsw/appinterface/model/cobol/"/>
- </patternset>
- <path id="cobol.classpath">
- <pathelement location="${xml-apis.jar}"/>
- <pathelement location="${commons-lang.jar}"/>
- <pathelement location="${commons-httpclient.jar}"/>
- </path>
- <patternset id="cics.files">
- <include name="com/seagullsw/appinterface/server/backend/cics/"/>
- <include name="com/seagullsw/appinterface/model/cics/"/>
- </patternset>
- <patternset id="ims.backend.files">
- <include name="com/seagullsw/appinterface/server/backend/ims/"/>
- <include name="com/seagullsw/appinterface/model/ims/"/>
- </patternset>
- <path id="cics.backend.classpath">
- <pathelement location="${ctgclient.jar}"/>
- <pathelement location="${xml-apis.jar}"/>
- <pathelement location="${xerces.jar}"/>
- <path refid="jaxb.classpath"/>
- <pathelement location="${jce.jar}"/>
- <pathelement location="${commons-codec.jar}"/>
- <pathelement location="${commons-lang.jar}"/>
- </path>
- <path id="ims.backend.classpath">
- <pathelement location="${xml-apis.jar}"/>
- <pathelement location="${jaas.jar}"/>
- <pathelement location="${imsico.jar}"/>
- <pathelement location="${imsico-connector.jar}"/>
- <pathelement location="${jce.jar}"/>
- <pathelement location="${jta.jar}"/>
- <pathelement location="${commons-httpclient.jar}"/>
- <path refid="jaxb.classpath"/>
- </path>
- <property name="ais-5250.jarname" value="ais-5250.jar"/>
- <property name="ais-5250.jar" value="${build.lib}/${ais-5250.jarname}"/>
- <property name="ais-3270.jarname" value="ais-3270.jar"/>
- <property name="ais-3270.jar" value="${build.lib}/${ais-3270.jarname}"/>
- <property name="ais-cobol.jarname" value="ais-cobol.jar"/>
- <property name="ais-cobol.jar" value="${build.lib}/${ais-cobol.jarname}"/>
- <property name="ais-cics.jarname" value="ais-cics.jar"/>
- <property name="ais-cics.jar" value="${build.lib}/${ais-cics.jarname}"/>
- <property name="ais-ims.jarname" value="ais-ims.jar"/>
- <property name="ais-ims.jar" value="${build.lib}/${ais-ims.jarname}"/>
- <property name="hsc.jarname" value="gwhsc.jar"/>
- <property name="hsc.jar" value="${build.lib}/${hsc.jarname}"/>
- <property name="hscu.jarname" value="gwhscu.jar"/>
- <property name="hscu.jar" value="${build.lib}/${hscu.jarname}"/>
- <!-- HSC -->
- <patternset id="hsc.files">
- <include name="com/seagullsw/gateway/"/>
- <include name="com/seagullsw/net/"/>
- <include name="com/seagullsw/security/"/>
- <include name="com/seagullsw/system/"/>
- <exclude name="com/seagullsw/net/client/mtalk/"/>
- </patternset>
- <!-- All the XSLT files -->
- <fileset id="xslt.files" dir="${xslt.resource.dir}">
- <include name="*.xsl"/>
- </fileset>
- <!-- All the AppInterface "base" classes -->
- <fileset id="appinterface.base.files" dir="${build.classes}">
- <patternset refid="appinterfacecomm.files"/>
- <patternset refid="appinterfacemodels.files"/>
- <patternset refid="javaextensions.files"/>
- <patternset refid="xmlservices.files"/>
- <patternset refid="mtalkcomm.files"/>
- </fileset>
- <!-- All the AppInterface "base" classes -->
- <fileset id="appinterface.baseplus.files" dir="${build.classes}">
- <!-- What I really want to do here is refer to the .base.files
- fileset, but ant doesn't allow nested filesets. Sigh.
- <fileset refid="appinterface.base.files"/> -->
- <patternset refid="appinterfacecomm.files"/>
- <patternset refid="appinterfacemodels.files"/>
- <patternset refid="javaextensions.files"/>
- <patternset refid="xmlservices.files"/>
- <patternset refid="appinterfacesettings.files"/>
- <patternset refid="uifacilities.files"/>
- <patternset refid="seagulltoolbox.files"/>
- <patternset refid="mtalkcomm.files"/>
- <patternset refid="transforms.files"/>
- </fileset>
- <!-- =================================================================== -->
- <!-- Set file copy filters -->
- <!-- =================================================================== -->
- <property name="text.copyright.1" value="(c) 1993 - 2003 Seagull Business Software Ireland Ltd."/>
- <property name="text.copyright.2" value="All Rights Reserved."/>
- <target name="init.filters">
- <filter token="PRODUCT" value="${product.name}"/>
- <filter token="VERSION" value="${version}"/>
- <filter token="BUILDID" value="${build.id}"/>
- <filter token="BUILDTIMESTAMP" value="${BuildTimeStamp}"/>
- <filter token="COPYRIGHT-1" value="${text.copyright.1}"/>
- <filter token="COPYRIGHT-2" value="${text.copyright.2}"/>
- </target>
- <!-- =================================================================== -->
- <!-- Compiles -->
- <!-- =================================================================== -->
- <target name="compile" depends="compile.ais, compile.ais.client, compile.ais.adminclient, compile.devtools, compile.proxyservlet, compile.adminconsole, compile.javaconnectorgenerator, compile.securitytoolkit, compile.hcbackend, compile.cobol, compile.cics, compile.IMSbackend" description="Compiles all the sources into ${build.classes}"/>
- <!-- doACompile - a compile "subroutine" -->
- <target name="doACompile">
- <javac srcdir="${src.dir}" destdir="${build.classes}" debug="${compile.debug}" optimize="${compile.optimize}" failonerror="true" includeAntRuntime="false">
- <patternset refid="${doACompile.files}"/>
- </javac>
- </target>
- <!-- doACompileWithClasspath - a compile "subroutine" -->
- <target name="doACompileWithClasspath">
- <javac srcdir="${src.dir}" destdir="${build.classes}" debug="${compile.debug}" optimize="${compile.optimize}" failonerror="true" includeAntRuntime="false">
- <patternset refid="${doACompile.files}"/>
- <classpath refid="${doACompile.classpath}"/>
- </javac>
- </target>
- <!-- AIS -->
- <target name="compile.ais" depends="compile.toolbox, compile.xmlservices, compile.transforms, compile.uifacilities, compile.appinterfacesettings, compile.appinterfacemodels, compile.appinterfacecomm, compile.hsc, compile.mtalkcomm">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="ais.files"/>
- <param name="doACompile.classpath" value="ais.classpath"/>
- </antcall>
- </target>
- <!-- AppInterface Models -->
- <target name="compile.appinterfacemodels" depends="prepare, compile.xmlservices">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="appinterfacemodels.files"/>
- <param name="doACompile.classpath" value="ais.classpath"/>
- </antcall>
- </target>
- <!-- AppInterface Communications -->
- <target name="compile.appinterfacecomm" depends="prepare">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="appinterfacecomm.files"/>
- <param name="doACompile.classpath" value="ais.classpath"/>
- </antcall>
- </target>
- <!-- MTalk Communication -->
- <target name="compile.mtalkcomm" depends="prepare">
- <antcall target="doACompile">
- <param name="doACompile.files" value="mtalkcomm.files"/>
- </antcall>
- </target>
- <!-- AppInterface Setting -->
- <target name="compile.appinterfacesettings" depends="prepare">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="appinterfacesettings.files"/>
- <param name="doACompile.classpath" value="appinterfacesettings.classpath"/>
- </antcall>
- </target>
- <!-- UI Facilities -->
- <target name="compile.uifacilities" depends="prepare">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="uifacilities.files"/>
- <param name="doACompile.classpath" value="uifacilities.classpath"/>
- </antcall>
- </target>
- <!-- Java Extensions -->
- <target name="compile.javaextensions" depends="prepare">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="javaextensions.files"/>
- <param name="doACompile.classpath" value="javaextensions.classpath"/>
- </antcall>
- </target>
- <!-- XML Services -->
- <target name="compile.xmlservices" depends="compile.javaextensions">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="xmlservices.files"/>
- <param name="doACompile.classpath" value="xmlservices.classpath"/>
- </antcall>
- </target>
- <!-- Transforms -->
- <target name="compile.transforms" depends="compile.javaextensions">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="transforms.files"/>
- <param name="doACompile.classpath" value="transforms.classpath"/>
- </antcall>
- </target>
- <!-- Seagull Toolbox -->
- <target name="compile.toolbox" depends="compile.javaextensions">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="seagulltoolbox.files"/>
- <param name="doACompile.classpath" value="seagulltoolbox.classpath"/>
- </antcall>
- </target>
- <!-- Win32 Interface -->
- <target name="compile.win32interface" depends="prepare">
- <antcall target="doACompile">
- <param name="doACompile.files" value="win32interface.files"/>
- </antcall>
- </target>
- <!-- AppInterface Client -->
- <target name="compile.ais.client" depends="prepare, compile.xmlservices, compile.appinterfacecomm, compile.appinterfacemodels">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="ais.client.files"/>
- <param name="doACompile.classpath" value="ais.client.classpath"/>
- </antcall>
- </target>
- <!-- AppInterface Admin Client -->
- <target name="compile.ais.adminclient" depends="prepare, compile.xmlservices, compile.appinterfacecomm, compile.appinterfacemodels, compile.ais.client">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="ais.adminclient.files"/>
- <param name="doACompile.classpath" value="ais.classpath"/>
- </antcall>
- </target>
- <!-- Proxy Servlet -->
- <target name="compile.proxyservlet" depends="prepare">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="proxyservlet.files"/>
- <param name="doACompile.classpath" value="proxyservlet.classpath"/>
- </antcall>
- </target>
- <!-- Admin Console -->
- <target name="compile.adminconsole" depends="prepare, compile.devtools.framework">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="adminconsole.files"/>
- <param name="doACompile.classpath" value="ais.adminclient.classpath"/>
- </antcall>
- </target>
- <!-- Java Connector Generator -->
- <target name="compile.javaconnectorgenerator" depends="prepare, compile.devtools.framework, compile.appinterfacemodels, compile.javatools">
- <antcall target="doACompile">
- <param name="doACompile.files" value="javaconnectorgenerator.files"/>
- </antcall>
- </target>
- <!-- Security Toolkit -->
- <target name="compile.securitytoolkit" depends="prepare, compile.devtools.framework, compile.appinterfacemodels, compile.javatools">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="securitytoolkit.files"/>
- <param name="doACompile.classpath" value="devtools.classpath"/>
- </antcall>
- </target>
- <!-- Tools Framework -->
- <target name="compile.devtools.framework" depends="prepare, compile.toolbox, compile.xmlservices, compile.uifacilities, compile.appinterfacesettings">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="devtools.framework.files"/>
- <param name="doACompile.classpath" value="devtools.framework.classpath"/>
- </antcall>
- </target>
- <!-- DevTools -->
- <target name="compile.devtools" depends="prepare, compile.devtools.framework, compile.ais.client, compile.appinterfacemodels, compile.javatools">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="devtools.files"/>
- <param name="doACompile.classpath" value="devtools.classpath"/>
- </antcall>
- </target>
- <!-- JavaTools (e.g. invoking the Java compiler) -->
- <target name="compile.javatools" depends="prepare">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="javatools.files"/>
- <param name="doACompile.classpath" value="javatools.classpath"/>
- </antcall>
- </target>
- <!-- Backends -->
- <target name="compile.hcbackend" depends="prepare, compile.ais">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="hcbackend.files"/>
- <param name="doACompile.classpath" value="ais.classpath"/>
- </antcall>
- </target>
- <target name="compile.cobol" depends="prepare, compile.ais">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="cobol.files"/>
- <param name="doACompile.classpath" value="cobol.classpath"/>
- </antcall>
- </target>
- <target name="compile.cics" depends="prepare, compile.ais">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="cics.files"/>
- <param name="doACompile.classpath" value="cics.backend.classpath"/>
- </antcall>
- </target>
- <target name="compile.IMSbackend" depends="prepare, compile.ais">
- <antcall target="doACompileWithClasspath">
- <param name="doACompile.files" value="ims.backend.files"/>
- <param name="doACompile.classpath" value="ims.backend.classpath"/>
- </antcall>
- </target>
- <!-- HSC -->
- <target name="compile.hsc" depends="prepare">
- <javac srcdir="${src.sourcesafemirror.dir}" classpath="${microsoftsecurityclasses.zip}" destdir="${build.classes}" debug="${compile.debug}" includeAntRuntime="false">
- <include name="com/seagullsw/"/>
- </javac>
- </target>
- <!-- JavaDoc doclet -->
- <target name="compile.doclet">
- <javac srcdir="${src.dir}" destdir="${build.classes}" debug="${compile.debug}" includeAntRuntime="true">
- <include name="com/seagullsw/internaldev/tools/apidoclet//"/>
- </javac>
- </target>
- <!-- =================================================================== -->
- <!-- Create jar files -->
- <!-- =================================================================== -->
- <target name="compute-checksum">
- <checksum file="${file}" algorithm="${checksum.algorithm.md5}" property="cs_value"/>
- <echo level="info" message="${checksum.algorithm.md5} -> ${cs_value}"/>
- <mkdir dir="${build.checksum}"/>
- <!-- Create a text file with the checksum value. -->
- <concat destfile="${build.checksum}/${filename}.${checksum.algorithm.md5}.txt">${cs_value}</concat>
- <!-- Create an XML file with the checksum value. -->
- <concat destfile="${build.checksum}/${filename}.${checksum.algorithm.md5}.xml"><?xml version="1.0"?>
-<!-- Build auto-generated -->
-<checksum file="${filename}" algorithm="${checksum.algorithm.md5}">${cs_value}</checksum></concat>
- <xmlvalidate file="${build.checksum}/${filename}.${checksum.algorithm.md5}.xml" lenient="true"/>
- </target>
- <!-- Create all-jars.xml -->
- <target name="create-all-jars.xml">
- <!-- Create an XML file with the jar file names created. -->
- <concat destfile="${all-jars.xml}"><?xml version="1.0"?>
-<!-- Build auto-generated -->
-<jars>
- <jar>${ais-core.jarname}</jar>
- <jar>${ais.client.jarname}</jar>
- <jar>${ais-adminclient.jarname}</jar>
- <jar>${proxyservlet.jarname}</jar>
- <jar>${adminconsole.jarname}</jar>
- <jar>${javaconnectorgenerator.jarname}</jar>
- <jar>${securitytoolkit.jarname}</jar>
- <jar>${ais-tools.jarname}</jar>
- <jar>${ais-5250.jarname}</jar>
- <jar>${ais-3270.jarname}</jar>
- <jar>${ais-cobol.jarname}</jar>
- <jar>${ais-cics.jarname}</jar>
- <jar>${ais-ims.jarname}</jar>
- <jar>${hsc.jarname}</jar>
- <jar>${hscu.jarname}</jar>
-</jars>
- </concat>
- <echo level="info" message="Created ${all-jars.xml}"/>
- <xmlvalidate file="${all-jars.xml}" lenient="true"/>
- </target>
- <!-- Copy checksum files to report dir -->
- <target name="copy-checksums">
- <antcall target="create-all-jars.xml"/>
- <copy todir="${reports.checksum}">
- <fileset dir="${build.checksum}"/>
- </copy>
- </target>
- <target name="jars" depends="jar.ais-core, jar.ais.client, jar.ais.adminclient, jar.proxyservlet, jar.adminconsole, jar.javaconnectorgenerator, jar.securitytoolkit, jar.ais-tools, jar.ais-5250, jar.ais-3270, jar.ais-cobol, jar.ais-cics, jar.ais-ims, jar.hsc" description="Creates the jar files in ${build.lib}">
- <antcall target="copy-checksums"/>
- </target>
- <target name="jar.ais-core" depends="init, compile.ais, createSplash.ais.splashscreens">
- <mkdir dir="${build.lib}"/>
- <jar jarfile="${ais-core.jar}" basedir="${build.classes}">
- <patternset refid="ais.files"/>
- <fileset refid="appinterface.baseplus.files"/>
- <patternset>
- <include name="com/seagullsw/javax/swing/"/>
- <!-- Not sure why this isn't getting included as part of uifacilities.files via appinterface.baseplus.files. -->
- </patternset>
- <fileset refid="xslt.files"/>
- <fileset dir="${java.resource.dir}">
- <include name="com/seagullsw/appinterface/server/**"/>
- <include name="com/seagullsw/appinterface/comm/**"/>
- <exclude name="com/seagullsw/appinterface/server/admin/**"/>
- </fileset>
- <fileset dir="${src.dir}">
- <include name="com/seagullsw/**/jaxb.properties"/>
- <include name="com/seagullsw/**/bgm.ser"/>
- </fileset>
- <manifest>
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="${manifest.key.main-class}" value="com.seagullsw.appinterface.server.AppInterfaceServer"/>
- <attribute name="${manifest.key.class-path}" value="${ais-5250.jarname} ${ais-3270.jarname} ${ais-cobol.jarname} ${ais-cics.jarname} ${ais-ims.jarname} ${xalan.jarname} ${soap.jarname} ${activation.jarname} ${mail.jarname} ${commons-collections.jarname} ${commons-pool.jarname} ${xerces.jarname} ${xml-apis.jarname} ${commons-lang.jarname} ${commons-cli.jarname} ${jaxb.jarnames} ${jakarta-oro.jarname} ${concurrent.jarname} ${commons-httpclient.jarname} ${jms.jarname} ${extension.dir.name}/engine.jar ${extension.dir.name}/resource.zip ${extension.dir.name}/jdom.jar ../${fdef.dirname}/ ../JavaConnectors/Classes/"/>
- <attribute name="${manifest.key.product}" value="${product.name}"/>
- <attribute name="${manifest.key.component}" value="AIS Core"/>
- <attribute name="${manifest.key.version}" value="${version}"/>
- <attribute name="${manifest.key.build}" value="${build.id}"/>
- <attribute name="${manifest.key.build-ts}" value="${BuildTimeStamp}"/>
- </manifest>
- </jar>
- <antcall target="compute-checksum">
- <param name="file" value="${ais-core.jar}"/>
- <param name="filename" value="${ais-core.jarname}"/>
- </antcall>
- </target>
- <target name="jar.ais.client" depends="init, compile.ais.client">
- <mkdir dir="${build.lib}"/>
- <jar jarfile="${ais.client.jar}" basedir="${build.classes}">
- <patternset refid="ais.client.files"/>
- <fileset refid="appinterface.base.files"/>
- <fileset dir="${src.dir}">
- <include name="com/seagullsw/toolbox/config/**/jaxb.properties"/>
- <include name="com/seagullsw/toolbox/config/**/bgm.ser"/>
- </fileset>
- <manifest>
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="${manifest.key.class-path}" value="${xerces.jarname} ${xml-apis.jarname} ${commons-lang.jarname} ${jaxb.jarnames} ${ibm.mq.jarname} ${jms.jarname} ${mail.jarname} ${soap.jarname}"/>
- <attribute name="${manifest.key.product}" value="${product.name}"/>
- <attribute name="${manifest.key.component}" value="Java Client"/>
- <attribute name="${manifest.key.version}" value="${version}"/>
- <attribute name="${manifest.key.build}" value="${build.id}"/>
- <attribute name="${manifest.key.build-ts}" value="${BuildTimeStamp}"/>
- </manifest>
- </jar>
- <antcall target="compute-checksum">
- <param name="file" value="${ais.client.jar}"/>
- <param name="filename" value="${ais.client.jarname}"/>
- </antcall>
- </target>
- <target name="jar.ais.adminclient" depends="init, compile.ais.adminclient">
- <mkdir dir="${build.lib}"/>
- <jar jarfile="${ais-adminclient.jar}" basedir="${build.classes}">
- <patternset refid="ais.adminclient.files"/>
- <manifest>
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="${manifest.key.class-path}" value="${ais.client.jarname} ${xerces.jarname} ${xml-apis.jarname}"/>
- <attribute name="${manifest.key.product}" value="${product.name}"/>
- <attribute name="${manifest.key.component}" value="Java Admin Client"/>
- <attribute name="${manifest.key.version}" value="${version}"/>
- <attribute name="${manifest.key.build}" value="${build.id}"/>
- <attribute name="${manifest.key.build-ts}" value="${BuildTimeStamp}"/>
- </manifest>
- </jar>
- <antcall target="compute-checksum">
- <param name="file" value="${ais-adminclient.jar}"/>
- <param name="filename" value="${ais-adminclient.jarname}"/>
- </antcall>
- </target>
- <target name="jar.proxyservlet" depends="init, compile.proxyservlet">
- <mkdir dir="${build.lib}"/>
- <jar jarfile="${proxyservlet.jar}" basedir="${build.classes}">
- <patternset refid="proxyservlet.files"/>
- <manifest>
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="${manifest.key.class-path}" value="${ais.client.jarname} ${servlet.jarname} ${xerces.jarname} ${xml-apis.jarname}"/>
- <attribute name="${manifest.key.product}" value="${product.name}"/>
- <attribute name="${manifest.key.component}" value="Servlet Proxy"/>
- <attribute name="${manifest.key.version}" value="${version}"/>
- <attribute name="${manifest.key.build}" value="${build.id}"/>
- <attribute name="${manifest.key.build-ts}" value="${BuildTimeStamp}"/>
- </manifest>
- </jar>
- <antcall target="compute-checksum">
- <param name="file" value="${proxyservlet.jar}"/>
- <param name="filename" value="${proxyservlet.jarname}"/>
- </antcall>
- </target>
- <target name="jar.adminconsole" depends="init, compile.adminconsole, createSplash.ais.splashscreens">
- <mkdir dir="${build.lib}"/>
- <!-- Copy "resource" files that go in the jar file. -->
- <copy toDir="${build.classes}" preservelastmodified="true">
- <fileset dir="${java.resource.dir}">
- <include name="com/seagullsw/appinterface/server/admin/client/"/>
- <include name="com/seagullsw/appinterface/server/*.jpg"/>
- </fileset>
- </copy>
- <jar jarfile="${adminconsole.jar}" basedir="${build.classes}">
- <patternset refid="adminconsole.files"/>
- <patternset refid="devtools.framework.files"/>
- <patternset refid="ais.client.files"/>
- <patternset refid="appinterfaceserversettings.files"/>
- <fileset refid="appinterface.baseplus.files"/>
- <include name="com/seagullsw/appinterface/server/*.jpg"/>
- <manifest>
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="${manifest.key.main-class}" value="com.seagullsw.appinterface.server.admin.client.AppInterfaceServerAdminUIClient"/>
- <attribute name="${manifest.key.class-path}" value="${ais-core.jarname} ${xerces.jarname} ${xml-apis.jarname} ${xalan.jarname} ${soap.jarname} ${activation.jarname} ${mail.jarname} ${commons-cli.jarname}"/>
- <attribute name="${manifest.key.product}" value="${product.name}"/>
- <attribute name="${manifest.key.component}" value="Administrative Console"/>
- <attribute name="${manifest.key.version}" value="${version}"/>
- <attribute name="${manifest.key.build}" value="${build.id}"/>
- <attribute name="${manifest.key.build-ts}" value="${BuildTimeStamp}"/>
- </manifest>
- </jar>
- <antcall target="compute-checksum">
- <param name="file" value="${adminconsole.jar}"/>
- <param name="filename" value="${adminconsole.jarname}"/>
- </antcall>
- </target>
- <target name="jar.javaconnectorgenerator" depends="init, compile.javaconnectorgenerator">
- <mkdir dir="${build.lib}"/>
- <!-- Copy "resource" files that go in the jar file. -->
- <copy toDir="${build.classes}" preservelastmodified="true" filtering="true">
- <fileset dir="${java.resource.dir}">
- <include name="com/seagullsw/appinterface/tools/javaconnectorgenerator/"/>
- </fileset>
- </copy>
- <jar jarfile="${javaconnectorgenerator.jar}" basedir="${build.classes}">
- <patternset refid="javaconnectorgenerator.files"/>
- <manifest>
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="${manifest.key.main-class}" value="com.seagullsw.appinterface.tools.javaconnectorgenerator.JavaConnectorGenerator"/>
- <attribute name="${manifest.key.class-path}" value="${ais-tools.jarname} ${xml-apis.jarname}"/>
- <attribute name="${manifest.key.product}" value="${product.name}"/>
- <attribute name="${manifest.key.component}" value="Java Connector Generator"/>
- <attribute name="${manifest.key.version}" value="${version}"/>
- <attribute name="${manifest.key.build}" value="${build.id}"/>
- <attribute name="${manifest.key.build-ts}" value="${BuildTimeStamp}"/>
- </manifest>
- </jar>
- <antcall target="compute-checksum">
- <param name="file" value="${javaconnectorgenerator.jar}"/>
- <param name="filename" value="${javaconnectorgenerator.jarname}"/>
- </antcall>
- </target>
- <target name="jar.securitytoolkit" depends="init, compile.securitytoolkit">
- <mkdir dir="${build.lib}"/>
- <!-- Copy "resource" files that go in the jar file. -->
- <copy toDir="${build.classes}" preservelastmodified="true" filtering="true">
- <fileset dir="${java.resource.dir}">
- <include name="com/seagullsw/appinterface/tools/security/"/>
- </fileset>
- </copy>
- <jar jarfile="${securitytoolkit.jar}" basedir="${build.classes}">
- <patternset refid="securitytoolkit.files"/>
- <manifest>
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="${manifest.key.main-class}" value="com.seagullsw.appinterface.tools.security.SecurityToolkit"/>
- <attribute name="${manifest.key.class-path}" value="${ais-core.jarname} ${ais-tools.jarname} ${xml-apis.jarname} ${commons-lang.jarname}"/>
- <attribute name="${manifest.key.product}" value="${product.name}"/>
- <attribute name="${manifest.key.component}" value="Security Toolkit"/>
- <attribute name="${manifest.key.version}" value="${version}"/>
- <attribute name="${manifest.key.build}" value="${build.id}"/>
- <attribute name="${manifest.key.build-ts}" value="${BuildTimeStamp}"/>
- </manifest>
- </jar>
- <antcall target="compute-checksum">
- <param name="file" value="${securitytoolkit.jar}"/>
- <param name="filename" value="${securitytoolkit.jarname}"/>
- </antcall>
- </target>
- <target name="jar.ais-tools" depends="init, compile.devtools, createSplash.tools.splashscreens, compile.win32interface, compile.javatools">
- <mkdir dir="${build.lib}"/>
- <!-- Copy "resource" files that go in the jar file. -->
- <copy toDir="${build.classes}" preservelastmodified="true">
- <fileset dir="${java.resource.dir}">
- <include name="com/seagullsw/appinterface/**/*.gif"/>
- </fileset>
- </copy>
- <jar jarfile="${ais-tools.jar}" basedir="${build.classes}">
- <patternset refid="devtools.files"/>
- <patternset refid="adminconsole.files"/>
- <fileset refid="appinterface.baseplus.files"/>
- <patternset>
- <include name="com/seagullsw/appinterface/**/*settings*/"/>
- <include name="com/seagullsw/javax/swing/"/>
- <!-- Not sure why this isn't getting included as part of uifacilities.files via appinterface.baseplus.files. -->
- </patternset>
- <include name="com/seagullsw/appinterface/tools/images/*.jpg"/>
- <include name="com/seagullsw/appinterface/**/*.gif"/>
- <patternset refid="javatools.files"/>
- <patternset refid="win32interface.files"/>
- <patternset refid="ais.client.files"/>
- <fileset refid="xslt.files"/>
- <manifest>
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="${manifest.key.main-class}" value="com.seagullsw.appinterface.tools.serverdef.DefinitionTool"/>
- <attribute name="${manifest.key.class-path}" value="${ais-cobol.jarname} ${ais-cics.jarname} ${ais-ims.jarname} ${xerces.jarname} ${xml-apis.jarname} ${xalan.jarname} ${soap.jarname} ${activation.jarname} ${mail.jarname} ${jaxb.jarnames} ${commons-lang.jarname} ${extension.dir.name}/${j2se.tools.jarname} ${ais-tools.jarname}"/>
- <attribute name="${manifest.key.product}" value="${product.name}"/>
- <attribute name="${manifest.key.component}" value="Tools"/>
- <attribute name="${manifest.key.version}" value="${version}"/>
- <attribute name="${manifest.key.build}" value="${build.id}"/>
- <attribute name="${manifest.key.build-ts}" value="${BuildTimeStamp}"/>
- </manifest>
- </jar>
- <antcall target="compute-checksum">
- <param name="file" value="${ais-tools.jar}"/>
- <param name="filename" value="${ais-tools.jarname}"/>
- </antcall>
- </target>
- <target name="jar.ais-5250" depends="init, compile.hcbackend">
- <mkdir dir="${build.lib}"/>
- <jar jarfile="${ais-5250.jar}" basedir="${build.classes}">
- <patternset refid="hcbackend.files"/>
- <exclude name="com/seagullsw/appinterface/tools/"/>
- <manifest>
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="${manifest.key.class-path}" value="${ais-core.jarname} ${hsc.jarname} ${hscu.jarname}"/>
- <attribute name="${manifest.key.product}" value="${product.name}"/>
- <attribute name="${manifest.key.component}" value="5250 Connector"/>
- <attribute name="${manifest.key.version}" value="${version}"/>
- <attribute name="${manifest.key.build}" value="${build.id}"/>
- <attribute name="${manifest.key.build-ts}" value="${BuildTimeStamp}"/>
- </manifest>
- </jar>
- <antcall target="compute-checksum">
- <param name="file" value="${ais-5250.jar}"/>
- <param name="filename" value="${ais-5250.jarname}"/>
- </antcall>
- </target>
- <target name="jar.ais-3270" depends="init, compile.hcbackend">
- <mkdir dir="${build.lib}"/>
- <jar jarfile="${ais-3270.jar}" basedir="${build.classes}">
- <patternset refid="hcbackend.files"/>
- <exclude name="com/seagullsw/appinterface/tools/"/>
- <manifest>
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="${manifest.key.class-path}" value="${ais-core.jarname} ${hsc.jarname} ${hscu.jarname}"/>
- <attribute name="${manifest.key.product}" value="${product.name}"/>
- <attribute name="${manifest.key.component}" value="3270 Connector"/>
- <attribute name="${manifest.key.version}" value="${version}"/>
- <attribute name="${manifest.key.build}" value="${build.id}"/>
- <attribute name="${manifest.key.build-ts}" value="${BuildTimeStamp}"/>
- </manifest>
- </jar>
- <antcall target="compute-checksum">
- <param name="file" value="${ais-3270.jar}"/>
- <param name="filename" value="${ais-3270.jarname}"/>
- </antcall>
- </target>
- <target name="jar.ais-cobol" depends="init, compile.cobol">
- <mkdir dir="${build.lib}"/>
- <jar jarfile="${ais-cobol.jar}" basedir="${build.classes}">
- <patternset refid="cobol.files"/>
- <manifest>
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="${manifest.key.class-path}" value="${ais-core.jarname} ${ais-cics.jarname} ${ais-ims.jarname}"/>
- <attribute name="${manifest.key.product}" value="${product.name}"/>
- <attribute name="${manifest.key.component}" value="Cobol Connector"/>
- <attribute name="${manifest.key.version}" value="${version}"/>
- <attribute name="${manifest.key.build}" value="${build.id}"/>
- <attribute name="${manifest.key.build-ts}" value="${BuildTimeStamp}"/>
- </manifest>
- </jar>
- <antcall target="compute-checksum">
- <param name="file" value="${ais-cobol.jar}"/>
- <param name="filename" value="${ais-cobol.jarname}"/>
- </antcall>
- </target>
- <target name="jar.ais-cics" depends="init, compile.cics">
- <mkdir dir="${build.lib}"/>
- <copy toDir="${build.classes}" preservelastmodified="true">
- <fileset dir="${src.dir}">
- <include name="com/seagullsw/**/jaxb.properties"/>
- <include name="com/seagullsw/**/bgm.ser"/>
- </fileset>
- </copy>
- <jar jarfile="${ais-cics.jar}" basedir="${build.classes}">
- <patternset refid="cics.files"/>
- <manifest>
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="${manifest.key.class-path}" value="${ais-core.jarname} ${ais-cobol.jarname} ${extension.dir.name}/${ctgclient.jarname} ${commons-codec.jarname} ${commons-logging.jarname}"/>
- <attribute name="${manifest.key.product}" value="${product.name}"/>
- <attribute name="${manifest.key.component}" value="CICS Connector"/>
- <attribute name="${manifest.key.version}" value="${version}"/>
- <attribute name="${manifest.key.build}" value="${build.id}"/>
- <attribute name="${manifest.key.build-ts}" value="${BuildTimeStamp}"/>
- </manifest>
- </jar>
- <antcall target="compute-checksum">
- <param name="file" value="${ais-cics.jar}"/>
- <param name="filename" value="${ais-cics.jarname}"/>
- </antcall>
- </target>
- <target name="jar.ais-ims" depends="init, compile.IMSbackend">
- <mkdir dir="${build.lib}"/>
- <jar jarfile="${ais-ims.jar}" basedir="${build.classes}">
- <patternset refid="ims.backend.files"/>
- <manifest>
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="${manifest.key.class-path}" value="${ais-core.jarname} ${ais-cobol.jarname} ${imsico.jarname} ${imsico-connector.jarname} ${jaas.jarname} ${jta.jarname}"/>
- <attribute name="${manifest.key.product}" value="${product.name}"/>
- <attribute name="${manifest.key.component}" value="IMS Connector"/>
- <attribute name="${manifest.key.version}" value="${version}"/>
- <attribute name="${manifest.key.build}" value="${build.id}"/>
- <attribute name="${manifest.key.build-ts}" value="${BuildTimeStamp}"/>
- </manifest>
- </jar>
- <antcall target="compute-checksum">
- <param name="file" value="${ais-ims.jar}"/>
- <param name="filename" value="${ais-ims.jarname}"/>
- </antcall>
- </target>
- <target name="jar.hsc" depends="init, compile.hsc">
- <mkdir dir="${build.lib}"/>
- <jar jarfile="${hscu.jar}" basedir="${build.classes}">
- <patternset refid="hsc.files"/>
- <manifest>
- <attribute name="Built-By" value="${user.name}"/>
- <attribute name="${manifest.key.product}" value="${product.name}"/>
- <attribute name="${manifest.key.component}" value="Host Session Connector"/>
- <attribute name="${manifest.key.version}" value="${version}"/>
- <attribute name="${manifest.key.build}" value="${build.id}"/>
- <attribute name="${manifest.key.build-ts}" value="${BuildTimeStamp}"/>
- </manifest>
- </jar>
- <antcall target="compute-checksum">
- <param name="file" value="${hscu.jar}"/>
- <param name="filename" value="${hscu.jarname}"/>
- </antcall>
- <echo level="info" message="Running RetroGuard..."/>
- <java classname="RetroGuard" fork="yes">
- <arg value="${hscu.jar}"/>
- <arg value="${hsc.jar}"/>
- <arg value="${obfuscate.script}"/>
- <arg value="${obfuscate.log}"/>
- <classpath>
- <pathelement path="${retroguard.jar}"/>
- </classpath>
- </java>
- <antcall target="compute-checksum">
- <param name="file" value="${hsc.jar}"/>
- <param name="filename" value="${hsc.jarname}"/>
- </antcall>
- </target>
- <target name="jar.testbackend" depends="test.compile">
- <jar jarfile="${build.lib}/ais-testbackend.jar" basedir="${test.bin}">
- <include name="com/seagullsw/appinterface/server/backend/aistest/**"/>
- <fileset dir="${src.test.dir}">
- <include name="com/seagullsw/appinterface/server/backend/aistest/**/jaxb.properties"/>
- <include name="com/seagullsw/appinterface/server/backend/aistest/**/bgm.ser"/>
- </fileset>
- </jar>
- </target>
- <!-- =================================================================== -->
- <!-- Prepares the build directory -->
- <!-- =================================================================== -->
- <target name="prepare" depends="init">
- <mkdir dir="${build.dir}"/>
- <mkdir dir="${build.classes}"/>
- </target>
- <!-- =================================================================== -->
- <!-- Cleans -->
- <!-- =================================================================== -->
- <target name="clean" description="Removes all the generated files and directories">
- <delete dir="${build.dir}"/>
- </target>
- <target name="clean.jars">
- <delete dir="${build.lib}"/>
- </target>
- <target name="clean.classes" description="Removes all .class files">
- <delete dir="${build.classes}"/>
- </target>
- <!-- =================================================================== -->
- <!-- Init -->
- <!-- =================================================================== -->
- <target name="init" depends="banner">
- <tstamp>
- <!-- The date/time patterns are as defined in the Java SimpleDateFormat class. -->
- <format property="BuildTimeStamp" pattern="yyyy-MMMMM-dd HH:mm z"/>
- </tstamp>
- <filter token="PRODUCT" value="${product.name}"/>
- <filter token="VERSION" value="${version}"/>
- <filter token="BUILDID" value="${build.id}"/>
- <filter token="BUILDTIMESTAMP" value="${BuildTimeStamp}"/>
- <filter token="COPYRIGHT-1" value="${text.copyright.1}"/>
- <filter token="COPYRIGHT-2" value="${text.copyright.2}"/>
- </target>
- <target name="banner" unless="banner-set">
- <property name="logxsl-prop-sep" value="->"/>
- <echo level="info" message="ant.file ${logxsl-prop-sep} ${ant.file}"/>
- <echo level="info" message="ant.version ${logxsl-prop-sep} ${ant.version}"/>
- <echo level="info" message="java.vm.version ${logxsl-prop-sep} ${ant.java.version}"/>
- <echo level="info" message="java.version ${logxsl-prop-sep} ${java.version}"/>
- <echo level="info" message="os.name ${logxsl-prop-sep} ${os.name}"/>
- <echo level="info" message="Build ID: ${build.id}"/>
- <property name="banner-set" value="true"/>
- </target>
- <!-- =================================================================== -->
- <!-- Splash Screens -->
- <!-- =================================================================== -->
- <property name="internaldev.classes" value="${build.dir}/internaldev"/>
- <property name="splash.src" value="${src.root.dir}/Build/splashscreen"/>
- <property name="splash.dest" value="${build.dir}/splashscreens"/>
- <property name="server.splashscreen.line-1" value="Application Interface Server"/>
- <property name="tools.splashscreen.line-1" value="Transidiom Developer"/>
- <!-- Task compile.splashScreenCreator -->
- <target name="compile.splashScreenCreator">
- <mkdir dir="${internaldev.classes}"/>
- <javac srcdir="${src.test.dir}" destdir="${internaldev.classes}" debug="${compile.debug}">
- <include name="com/seagullsw/internaldev/build/SplashscreenCreator.java"/>
- </javac>
- </target>
- <!--
- Run SplashscreenCreator program which takes a "vanilla" jpg plus
- some text and creates a new "merged" jpg.
- This is used by the createSplash.xxx.splashscreen targets.
- -->
- <target name="createSplash" depends="compile.splashScreenCreator">
- <!-- java task: failonerror works only if fork is true -->
- <java classname="com.seagullsw.internaldev.build.SplashscreenCreator" failonerror="true" fork="true">
- <!-- <sysproperty key="com.seagullsw.debug" value="true"/> -->
- <sysproperty key="com.seagullsw.quiet" value="false"/>
- <sysproperty key="com.seagullsw.x" value="8"/>
- <sysproperty key="com.seagullsw.y" value="196"/>
- <sysproperty key="com.seagullsw.fontsize" value="11"/>
- <sysproperty key="com.seagullsw.sourceScreenFile" value="${createSplash.sourceScreenFile}"/>
- <sysproperty key="com.seagullsw.targetScreenFile" value="${createSplash.targetScreenFile}"/>
- <sysproperty key="com.seagullsw.screenTextFile" value="${createSplash.screenTextFile}"/>
- <classpath>
- <pathelement location="${internaldev.classes}"/>
- </classpath>
- </java>
- </target>
- <!-- Create AIS splashscreens -->
- <target name="createSplash.ais.splashscreens" depends="init">
- <filter token="SERVER.SPLASHSCREEN.LINE-1" value="${server.splashscreen.line-1}"/>
- <!-- Line 2 is in the template and uses the Version, Build and Build date tokens. -->
- <filter token="SERVER.SPLASHSCREEN.LINE-3" value="${text.copyright.1}"/>
- <filter token="SERVER.SPLASHSCREEN.LINE-4" value="${text.copyright.2}"/>
- <mkdir dir="${splash.dest}"/>
- <copy file="${splash.src}/splashscreen-template-server.txt" tofile="${splash.dest}/splashscreen-server.txt" overwrite="true" filtering="true"/>
- <antcall target="createSplash">
- <param name="createSplash.sourceScreenFile" value="${splash.src}/BasicSplashScreen.jpg"/>
- <param name="createSplash.screenTextFile" value="${splash.dest}/splashscreen-server.txt"/>
- <param name="createSplash.targetScreenFile" value="${splash.dest}/ServerSplashScreen.jpg"/>
- </antcall>
- <!-- Copy the splash to the AIS and SAC class path -->
- <copy file="${splash.dest}/ServerSplashScreen.jpg" tofile="${build.classes}/com/seagullsw/appinterface/server/ServerSessionSplashScreen.jpg" overwrite="yes"/>
- </target>
- <!-- Create Tools splashscreens -->
- <target name="createSplash.tools.splashscreens" depends="init">
- <filter token="TOOLS.SPLASHSCREEN.LINE-1" value="${tools.splashscreen.line-1}"/>
- <!-- Line 2 is in the template and uses the Version, Build and Build date tokens. -->
- <filter token="TOOLS.SPLASHSCREEN.LINE-3" value="${text.copyright.1}"/>
- <filter token="TOOLS.SPLASHSCREEN.LINE-4" value="${text.copyright.2}"/>
- <mkdir dir="${splash.dest}"/>
- <copy file="${splash.src}/splashscreen-template-developer.txt" tofile="${splash.dest}/splashscreen-developer.txt" overwrite="true" filtering="true"/>
- <antcall target="createSplash">
- <param name="createSplash.sourceScreenFile" value="${splash.src}/BasicSplashScreen.jpg"/>
- <param name="createSplash.screenTextFile" value="${splash.dest}/splashscreen-developer.txt"/>
- <param name="createSplash.targetScreenFile" value="${splash.dest}/ToolSessionSplashScreen.jpg"/>
- </antcall>
- <!-- Copy the splash to the Tools class path -->
- <copy file="${splash.dest}/ToolSessionSplashScreen.jpg" tofile="${build.classes}/com/seagullsw/appinterface/tools/images/ToolSessionSplashScreen.jpg" overwrite="yes"/>
- </target>
- <!-- =================================================================== -->
- <!-- Javadoc for client API -->
- <!-- =================================================================== -->
- <target name="javadoc_check.ais.client">
- <uptodate property="ais.client.javadoc.notrequired" targetfile="${ais.client.dist.javadoc}/packages.html">
- <srcfiles dir="${src.dir}">
- <patternset refid="ais.client.files"/>
- </srcfiles>
- </uptodate>
- </target>
- <target name="javadoc.ais.client" depends="prepare, javadoc_check.ais.client" unless="ais.client.javadoc.notrequired">
- <delete dir="${ais.client.dist.javadoc}" includeEmptyDirs="true" quiet="true"/>
- <mkdir dir="${ais.client.dist.javadoc}"/>
- <property name="basic-header" value="${Name}™, AIS Client"/>
- <property name="header+version" value="${basic-header}, v${version}"/>
- <property name="win-title" value="${header+version} API Specification"/>
- <property name="doc-title" value="${header+version}<br/>API Specification"/>
- <javadoc packagenames="com.seagullsw.appinterface.client, com.seagullsw.appinterface.client.java, com.seagullsw.appinterface.client.ibmmq, com.seagullsw.appinterface.comm.ibmmq" sourcepath="${src.dir}" destdir="${ais.client.dist.javadoc}" windowtitle="${win-title}" doctitle="${doc-title}" header="${basic-header}" bottom="<font size="-1">${Name} is a trademark or registered trademarks of Seagull Holding NV in the US and other countries.<br/>Copyright © 1993 - 2003 Seagull Business Software Ireland Ltd. All Rights Reserved.</font>" author="false" version="true" use="true">
- <classpath>
- <path refid="ais.classpath"/>
- </classpath>
- <!-- The following group elements do not seem to work. -->
- <group title="Client" packages="com.seagullsw.appinterface.client, com.seagullsw.appinterface.client.java"/>
- <group title="IBM MQ Series Client" packages="com.seagullsw.appinterface.client.ibmmq, com.seagullsw.appinterface.comm.ibmmq"/>
- <link href="${javadoc.j2se.link}"/>
- </javadoc>
- </target>
- <target name="javadoc_check.ais.adminclient">
- <uptodate property="ais.adminclient.javadoc.notrequired" targetfile="${ais.adminclient.dist.javadoc}/packages.html">
- <srcfiles dir="${src.dir}">
- <patternset refid="ais.adminclient.files"/>
- </srcfiles>
- </uptodate>
- </target>
- <target name="javadoc.ais.adminclient" depends="prepare, javadoc_check.ais.adminclient" unless="ais.adminclient.javadoc.notrequired">
- <delete dir="${ais.adminclient.dist.javadoc}" includeEmptyDirs="true" quiet="true"/>
- <mkdir dir="${ais.adminclient.dist.javadoc}"/>
- <property name="basic-header" value="${Name}™, AIS Admin Client"/>
- <property name="header+version" value="${basic-header}, v${version}"/>
- <property name="win-title" value="${header+version} API Specification"/>
- <property name="doc-title" value="${header+version}<br/>API Specification"/>
- <javadoc packagenames="com.seagullsw.appinterface.server.admin" sourcepath="${src.dir}" destdir="${ais.adminclient.dist.javadoc}" windowtitle="${win-title}" doctitle="${doc-title}" header="${basic-header}" bottom="<font size="-1">${Name} is a trademark or registered trademarks of Seagull Holding NV in the US and other countries.<br/>Copyright © 1993 - 2003 Seagull Business Software Ireland Ltd. All Rights Reserved.</font>" author="false" version="true" use="true">
- <classpath>
- <path refid="ais.classpath"/>
- </classpath>
- <!-- The following group elements do not seem to work. -->
- <group title="Client" packages="com.seagullsw.appinterface.server.admin"/>
- <link href="${javadoc.j2se.link}"/>
- </javadoc>
- </target>
- <!-- =================================================================== -->
- <!-- Distribution targets -->
- <!-- =================================================================== -->
- <target name="dist" depends="dist.ais.core, dist.ais.client, dist.aisUNIX, dist.proxyservlet, dist.transidiomcentral, dist.devtools, dist.docs" description="Creates the distribution in ${build.dist}"/>
- <property name="ais.dist" value="${build.dist}/server"/>
- <property name="aisUNIX.dist" value="${build.dist}/server-UNIX"/>
- <property name="ais.client.dist" value="${build.dist}/client/java"/>
- <property name="proxyservlet.dist" value="${build.dist}/server/servlet"/>
- <property name="devtools.dist" value="${build.dist}/tools"/>
- <property name="transidiomcentral.dist" value="${build.dist}/TransidiomCentral"/>
- <!-- copy 3rd party jar files - a dist "subroutine". -->
- <!-- Common files to the AIS and Tools? GaryG 2003-04-03 -->
- <target name="copy3rdPartyJars">
- <copy file="${xerces.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${xml-apis.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${xalan.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${soap.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${activation.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${mail.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${commons-collections.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${commons-lang.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${commons-codec.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${commons-logging.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${commons-httpclient.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${commons-pool.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${commons-cli.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${jakarta-oro.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb1.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb2.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb3.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb4.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb5.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb6.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb7.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${jms.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${concurrent.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaas.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${imsico.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${imsico-connector.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- <copy file="${jta.jar}" todir="${copy3rdPartyJars.dist.lib}" preservelastmodified="true"/>
- </target>
- <!-- Java Client -->
- <property name="ais.client.dist.javadoc" value="${ais.client.dist}/docs/api"/>
- <property name="ais.client.dist.lib" value="${ais.client.dist}/lib"/>
- <property name="ais.client.dist.mq" value="${ais.client.dist}/mq"/>
- <property name="ais.adminclient.dist.javadoc" value="${ais.client.dist}/admin/docs/api"/>
- <property name="ais.adminclient.dist.sfd" value="${ais.client.dist}/admin/sfd"/>
- <!-- dist.ais.client -->
- <target name="dist.ais.client" depends="jar.ais.client, jar.ais.adminclient, javadoc.ais.client, javadoc.ais.adminclient">
- <mkdir dir="${ais.client.dist}"/>
- <mkdir dir="${ais.client.dist.javadoc}"/>
- <mkdir dir="${ais.client.dist.lib}"/>
- <mkdir dir="${ais.client.dist.mq}"/>
- <mkdir dir="${ais.adminclient.dist.javadoc}"/>
- <mkdir dir="${ais.adminclient.dist.sfd}"/>
- <copy file="${ais.client.jar}" todir="${ais.client.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-adminclient.jar}" todir="${ais.client.dist.lib}" preservelastmodified="true"/>
- <copy file="${xerces.jar}" todir="${ais.client.dist.lib}" preservelastmodified="true"/>
- <copy file="${xml-apis.jar}" todir="${ais.client.dist.lib}" preservelastmodified="true"/>
- <copy file="${commons-lang.jar}" todir="${ais.client.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb1.jar}" todir="${ais.client.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb2.jar}" todir="${ais.client.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb3.jar}" todir="${ais.client.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb4.jar}" todir="${ais.client.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb5.jar}" todir="${ais.client.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb6.jar}" todir="${ais.client.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb7.jar}" todir="${ais.client.dist.lib}" preservelastmodified="true"/>
- <copy file="${root.dir}/mq/MQClientConnection.properties" todir="${ais.client.dist.mq}" preservelastmodified="true"/>
- <copy todir="${ais.adminclient.dist.sfd}" preservelastmodified="true">
- <fileset dir="${src.root.dir}/ServerAdminFunctions/InterfaceSchemas"/>
- </copy>
- </target>
- <!-- AIS -->
- <property name="ais.dist.config" value="${ais.dist}/config"/>
- <property name="ais.dist.config.copy" value="${ais.dist}/config-default"/>
- <property name="ais.dist.log" value="${ais.dist.config}/log"/>
- <property name="ais.dist.transform" value="${ais.dist.config}/transform"/>
- <property name="ais.dist.lib" value="${ais.dist}/lib"/>
- <property name="ais.dist.lib.ext" value="${ais.dist.lib}/${extension.dir.name}"/>
- <property name="ais.dist.mq" value="${ais.dist}/mq"/>
- <property name="ais.dist.sys" value="${ais.dist}/system"/>
- <property name="ais.dist.sysdef" value="${ais.dist.sys}/defaults"/>
- <property name="root.serverSettings" value="${root.dir}/AlternativeServerSettings"/>
- <property name="root.toolSettings" value="${root.dir}/AlternativeToolSettings"/>
- <!-- dist.ais.core -->
- <target name="dist.ais.core" depends="init, jar.ais-core, jar.ais-tools, jar.ais-5250, jar.ais-3270, jar.ais-cobol, jar.ais-cics, jar.ais-ims, jar.hsc, jar.adminconsole, javadoc.openbackend">
- <mkdir dir="${ais.dist}"/>
- <mkdir dir="${ais.dist.lib}"/>
- <mkdir dir="${ais.dist.lib.ext}"/>
- <mkdir dir="${ais.dist.sys}"/>
- <mkdir dir="${ais.dist.mq}"/>
- <copy file="${ais-core.jar}" todir="${ais.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-5250.jar}" todir="${ais.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-3270.jar}" todir="${ais.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-cobol.jar}" todir="${ais.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-cics.jar}" todir="${ais.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-ims.jar}" todir="${ais.dist.lib}" preservelastmodified="true"/>
- <copy file="${hsc.jar}" todir="${ais.dist.lib}" preservelastmodified="true"/>
- <copy file="${adminconsole.jar}" todir="${ais.dist.lib}" preservelastmodified="true"/>
- <antcall target="copy3rdPartyJars">
- <param name="copy3rdPartyJars.dist.lib" value="${ais.dist.lib}"/>
- </antcall>
- <!-- For SCT -->
- <copy file="${ais-tools.jar}" todir="${ais.dist.lib}" preservelastmodified="true"/>
- <copy file="${root.dir}/ToolUserSettings.cfg" todir="${ais.dist}" filtering="true"/>
- <copy file="${root.dir}/start-ais.bat" todir="${ais.dist}" preservelastmodified="true"/>
- <copy file="${root.dir}/start-ais-mq.bat" todir="${ais.dist}" preservelastmodified="true"/>
- <copy file="${root.dir}/stop-ais.bat" todir="${ais.dist}" preservelastmodified="true"/>
- <copy file="${root.dir.server}/ServerSettings.cfg" todir="${ais.dist}" preservelastmodified="true"/>
- <copy file="${root.dir}/ServerBackEndSettings.cfg" todir="${ais.dist}" preservelastmodified="true"/>
- <copy file="${root.serverSettings}/ServerDebugSettings.cfg" todir="${ais.dist.sys}" filtering="true"/>
- <copy file="${root.serverSettings}/ServerDeveloperSettings.cfg" todir="${ais.dist.sys}" filtering="true"/>
- <copy file="${root.serverSettings}/ServerInstallationSettings.cfg" todir="${ais.dist.sys}" filtering="true"/>
- <copy file="${root.dir.sys}/ToolDebugSettings.cfg" todir="${ais.dist.sys}" filtering="true"/>
- <copy todir="${ais.dist.sys}/AdminFunctionDefinitions" preservelastmodified="true">
- <fileset dir="${src.root.dir}/ServerAdminFunctions/MappingSchemas"/>
- </copy>
- <copy todir="${ais.dist.transform}" preservelastmodified="true">
- <fileset dir="${root.dir.server-transform}"/>
- </copy>
- <copy todir="${ais.dist.config}/comm" preservelastmodified="true">
- <fileset dir="${root.dir.server-config}/comm"/>
- </copy>
- <copy todir="${ais.dist.config.copy}" preservelastmodified="true">
- <fileset dir="${ais.dist.config}"/>
- </copy>
- <copy file="${root.dir.server-log}/log-category.properties" todir="${ais.dist.log}" preservelastmodified="true"/>
- <copy file="${root.dir.server-log}/log-style.properties" todir="${ais.dist.log}" preservelastmodified="true"/>
- <!-- Tools files -->
- <copy file="${root.toolSettings}/ToolInstallationSettings-All.cfg" tofile="${ais.dist.sys}/ToolInstallationSettings.cfg" filtering="true"/>
- <copy file="${root.toolSettings}/SCTToolInstallationSettings-HC.cfg" todir="${ais.dist.sys}" filtering="true"/>
- <copy file="${root.toolSettings}/SCTToolInstallationSettings-HC3270Only.cfg" todir="${ais.dist.sys}" filtering="true"/>
- <copy file="${root.toolSettings}/SCTToolInstallationSettings-HC5250Only.cfg" todir="${ais.dist.sys}" filtering="true"/>
- <copy file="${root.toolSettings}/SCTToolInstallationSettings-CICSOnly.cfg" todir="${ais.dist.sys}" filtering="true"/>
- <copy file="${root.dir.sysdef}/AppInterfaceTester-DefaultSettings.cfg" todir="${ais.dist.sysdef}" filtering="true"/>
- <copy file="${root.dir.sysdef}/ClientControlled3270ServerSettings-DefaultSettings.cfg" todir="${ais.dist.sysdef}" filtering="true"/>
- <copy file="${root.dir.sysdef}/ClientControlled5250ServerSettings-DefaultSettings.cfg" todir="${ais.dist.sysdef}" filtering="true"/>
- <copy file="${root.dir.sysdef}/DefinitionTool-DefaultSettings.cfg" todir="${ais.dist.sysdef}" filtering="true"/>
- <copy file="${root.dir.sysdef}/SEAGULLProject.dir" todir="${ais.dist.sysdef}"/>
- <copy file="${root.dir.sysdef}/ServerControlled3270ServerSettings-DefaultSettings.cfg" todir="${ais.dist.sysdef}" filtering="true"/>
- <copy file="${root.dir.sysdef}/ServerControlled5250ServerSettings-DefaultSettings.cfg" todir="${ais.dist.sysdef}" filtering="true"/>
- <copy file="${root.dir.sysdef}/ServerOptions-DefaultSettings.cfg" todir="${ais.dist.sysdef}" filtering="true"/>
- <copy file="${root.dir.sysdef}/ServerSettings-Skeleton.cfg" todir="${ais.dist.sysdef}" filtering="true"/>
- <copy file="${root.dir.sysdef}/WorkingSetSettings.cfg" todir="${ais.dist.sysdef}" filtering="true"/>
- <!-- Java Connectors -->
- <mkdir dir="${ais.dist}/JavaConnectors/Classes"/>
- </target>
- <!-- AIS UNIX-specific -->
- <property name="aisUNIX.dist.config" value="${aisUNIX.dist}/config"/>
- <property name="aisUNIX.dist.log" value="${aisUNIX.dist.config}/log"/>
- <property name="aisUNIX.dist.lib" value="${aisUNIX.dist}/lib"/>
- <property name="aisUNIX.dist.mq" value="${aisUNIX.dist}/mq"/>
- <property name="aisUNIX.dist.sys" value="${aisUNIX.dist}/system"/>
- <target name="dist.aisUNIX" depends="init, dist.ais.core, jar.adminconsole">
- <mkdir dir="${aisUNIX.dist}"/>
- <mkdir dir="${aisUNIX.dist.lib}"/>
- <mkdir dir="${aisUNIX.dist.sys}"/>
- <mkdir dir="${aisUNIX.dist.mq}"/>
- <copy file="${ais-core.jar}" todir="${aisUNIX.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-5250.jar}" todir="${aisUNIX.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-3270.jar}" todir="${aisUNIX.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-cobol.jar}" todir="${aisUNIX.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-cics.jar}" todir="${aisUNIX.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-ims.jar}" todir="${aisUNIX.dist.lib}" preservelastmodified="true"/>
- <copy file="${adminconsole.jar}" todir="${aisUNIX.dist.lib}" preservelastmodified="true"/>
- <copy file="${hsc.jar}" todir="${aisUNIX.dist.lib}" preservelastmodified="true"/>
- <antcall target="copy3rdPartyJars">
- <param name="copy3rdPartyJars.dist.lib" value="${aisUNIX.dist.lib}"/>
- </antcall>
- <copy file="${root.dir}/UNIXServerFiles/start-ais.sh" todir="${aisUNIX.dist}" preservelastmodified="true"/>
- <copy file="${root.dir}/UNIXServerFiles/start-ais-mq.sh" todir="${aisUNIX.dist}" preservelastmodified="true"/>
- <copy file="${root.dir}/UNIXServerFiles/stop-ais.sh" todir="${aisUNIX.dist}" preservelastmodified="true"/>
- <copy file="${root.dir.server}/ServerSettings.cfg" todir="${aisUNIX.dist}" preservelastmodified="true"/>
- <copy file="${root.dir}/ServerBackEndSettings.cfg" todir="${aisUNIX.dist}" preservelastmodified="true"/>
- <copy file="${root.serverSettings}/ServerDebugSettings.cfg" todir="${aisUNIX.dist.sys}" filtering="true"/>
- <copy file="${root.dir}/UNIXServerFiles/ServerInstallationSettings.cfg" todir="${aisUNIX.dist.sys}" filtering="true"/>
- <copy todir="${aisUNIX.dist.sys}/AdminFunctionDefinitions" preservelastmodified="true">
- <fileset dir="${src.root.dir}/ServerAdminFunctions/MappingSchemas"/>
- </copy>
- <copy todir="${aisUNIX.dist}/config/transform" preservelastmodified="true">
- <fileset dir="${root.dir}/server/config/transform"/>
- </copy>
- <copy file="${root.dir.server-log}/log-category.properties" todir="${aisUNIX.dist.log}"/>
- <copy file="${root.dir.server-log}/log-style.properties" todir="${aisUNIX.dist.log}"/>
- </target>
- <!-- Proxy Servlet -->
- <property name="proxyservlet.dist.lib" value="${proxyservlet.dist}/lib"/>
- <target name="dist.proxyservlet" depends="jar.proxyservlet, jar.ais.client">
- <copy file="${proxyservlet.jar}" todir="${proxyservlet.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais.client.jar}" todir="${proxyservlet.dist.lib}" preservelastmodified="true"/>
- <copy file="${xerces.jar}" todir="${proxyservlet.dist.lib}" preservelastmodified="true"/>
- <copy file="${xml-apis.jar}" todir="${proxyservlet.dist.lib}" preservelastmodified="true"/>
- <copy file="${root.dir}/ServletConfigFiles/AISProxyServletReadme.txt" todir="${proxyservlet.dist}" preservelastmodified="true"/>
- <copy file="${root.dir}/ServletConfigFiles/web.xml" todir="${proxyservlet.dist}" preservelastmodified="true"/>
- <copy file="${doc.dir}/Transidiom HTTPS Support.doc" todir="${proxyservlet.dist}" preservelastmodified="true"/>
- <copy file="${doc.dir}/Transidiom HTTP Requests Redirection on IIS.doc" todir="${proxyservlet.dist}" preservelastmodified="true"/>
- </target>
- <!-- DevTools -->
- <property name="devtools.dist.config" value="${devtools.dist}/config"/>
- <property name="devtools.dist.log" value="${devtools.dist.config}/log"/>
- <property name="devtools.dist.lib" value="${devtools.dist}/lib"/>
- <property name="devtools.dist.sys" value="${devtools.dist}/system"/>
- <property name="devtools.dist.sysdef" value="${devtools.dist.sys}/defaults"/>
- <target name="dist.devtools" depends="init, jar.ais-core, jar.ais-tools">
- <mkdir dir="${devtools.dist}"/>
- <mkdir dir="${devtools.dist.lib}"/>
- <mkdir dir="${devtools.dist.sys}"/>
- <mkdir dir="${devtools.dist.sysdef}"/>
- <mkdir dir="${devtools.dist.log}"/>
- <copy file="${ais-tools.jar}" todir="${devtools.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-core.jar}" todir="${devtools.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-5250.jar}" todir="${devtools.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-3270.jar}" todir="${devtools.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-cobol.jar}" todir="${devtools.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-cics.jar}" todir="${devtools.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-ims.jar}" todir="${devtools.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais.client.jar}" todir="${devtools.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-adminclient.jar}" todir="${devtools.dist.lib}" preservelastmodified="true"/>
- <antcall target="copy3rdPartyJars">
- <param name="copy3rdPartyJars.dist.lib" value="${devtools.dist.lib}"/>
- </antcall>
- <!-- Root -->
- <copy file="${root.dir}/Direct Publish.bat" todir="${devtools.dist}"/>
- <copy file="${root.dir}/DirectPublish.args" todir="${devtools.dist}"/>
- <copy file="${root.dir}/Interface Definition Tool.bat" todir="${devtools.dist}"/>
- <copy file="${root.dir}/CICS Connector Builder.bat" todir="${devtools.dist}"/>
- <copy file="${root.dir}/IMS Connector Builder.bat" todir="${devtools.dist}"/>
- <copy file="${root.dir}/Interface Function Tester.bat" todir="${devtools.dist}"/>
- <copy file="${root.dir}/ToolUserSettings.cfg" todir="${devtools.dist}" filtering="true"/>
- <copy file="${binary.root.dir}/Java/Win32/Bin/Win32RegistryInterface.dll" todir="${devtools.dist}" preservelastmodified="true"/>
- <!-- system (files are in alpha order here) -->
- <copy file="${root.toolSettings}/DFPToolInstallationSettings-HC.cfg" tofile="${devtools.dist.sys}/DFPToolInstallationSettings.cfg" filtering="true"/>
- <copy file="${root.toolSettings}/SCTToolInstallationSettings-HC.cfg" todir="${devtools.dist.sys}" filtering="true"/>
- <copy file="${root.toolSettings}/SCTToolInstallationSettings-HC3270Only.cfg" todir="${devtools.dist.sys}" filtering="true"/>
- <copy file="${root.toolSettings}/SCTToolInstallationSettings-HC5250Only.cfg" todir="${devtools.dist.sys}" filtering="true"/>
- <copy file="${root.toolSettings}/SCTToolInstallationSettings-CICSOnly.cfg" todir="${devtools.dist.sys}" filtering="true"/>
- <copy file="${root.dir.sys}/ToolDebugSettings.cfg" todir="${devtools.dist.sys}" filtering="true"/>
- <copy file="${root.toolSettings}/ToolInstallationSettings-All.cfg" tofile="${devtools.dist.sys}/ToolInstallationSettings.cfg" filtering="true"/>
- <copy file="${root.toolSettings}/ToolInstallationSettings-DefToolHC.cfg" todir="${devtools.dist.sys}" filtering="true"/>
- <copy file="${root.toolSettings}/ToolInstallationSettings-DefToolHC3270Only.cfg" todir="${devtools.dist.sys}" filtering="true"/>
- <copy file="${root.toolSettings}/ToolInstallationSettings-DefToolHC5250Only.cfg" todir="${devtools.dist.sys}" filtering="true"/>
- <copy file="${root.toolSettings}/ToolInstallationSettings-DefToolCICSOnly.cfg" todir="${devtools.dist.sys}" filtering="true"/>
- <copy file="${root.toolSettings}/ToolInstallationSettings-DefToolIMSOnly.cfg" todir="${devtools.dist.sys}" filtering="true"/>
- <!-- system defaults -->
- <copy file="${root.dir.sysdef}/AppInterfaceTester-DefaultSettings.cfg" todir="${devtools.dist.sysdef}" filtering="true"/>
- <copy file="${root.dir.sysdef}/ClientControlled3270ServerSettings-DefaultSettings.cfg" todir="${devtools.dist.sysdef}" filtering="true"/>
- <copy file="${root.dir.sysdef}/ClientControlled5250ServerSettings-DefaultSettings.cfg" todir="${devtools.dist.sysdef}" filtering="true"/>
- <copy file="${root.dir.sysdef}/DefinitionTool-DefaultSettings.cfg" todir="${devtools.dist.sysdef}" filtering="true"/>
- <copy file="${root.dir.sysdef}/SEAGULLProject.dir" todir="${devtools.dist.sysdef}"/>
- <copy file="${root.dir.sysdef}/ServerControlled3270ServerSettings-DefaultSettings.cfg" todir="${devtools.dist.sysdef}" filtering="true"/>
- <copy file="${root.dir.sysdef}/ServerControlled5250ServerSettings-DefaultSettings.cfg" todir="${devtools.dist.sysdef}" filtering="true"/>
- <copy file="${root.dir.sysdef}/ServerOptions-DefaultSettings.cfg" todir="${devtools.dist.sysdef}" filtering="true"/>
- <copy file="${root.dir.sysdef}/ServerSettings-Skeleton.cfg" todir="${devtools.dist.sysdef}" filtering="true"/>
- <copy file="${root.dir.sysdef}/WorkingSetSettings.cfg" todir="${devtools.dist.sysdef}" filtering="true"/>
- <copy file="${root.dir.tools-log}/log-category.properties" todir="${devtools.dist.log}" preservelastmodified="true"/>
- <copy file="${root.dir.tools-log}/log-style.properties" todir="${devtools.dist.log}" preservelastmodified="true"/>
- </target>
- <!-- AIS Central -->
- <property name="transidiomcentral.dist.lib" value="${transidiomcentral.dist}/lib"/>
- <target name="dist.transidiomcentral" depends="init, jar.ais-core, jar.ais-tools, jar.javaconnectorgenerator, jar.securitytoolkit">
- <mkdir dir="${transidiomcentral.dist}"/>
- <mkdir dir="${transidiomcentral.dist.lib}"/>
- <copy file="${ais-core.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-5250.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-3270.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-cobol.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-cics.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-ims.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais-tools.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${ais.client.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${securitytoolkit.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${javaconnectorgenerator.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${commons-codec.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${commons-lang.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${xerces.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${xalan.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${xml-apis.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb1.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb2.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb3.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb4.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb5.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb6.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- <copy file="${jaxb7.jar}" todir="${transidiomcentral.dist.lib}" preservelastmodified="true"/>
- </target>
- <!-- User Docs -->
- <target name="dist.docs">
- <mkdir dir="${build.dist}/docs"/>
- <copy todir="${build.dist}/docs">
- <fileset dir="${doc.dir}">
- <exclude name="Transidiom HTTP*.doc"/>
- </fileset>
- </copy>
- </target>
- <!-- =================================================================== -->
- <!-- Javadoc for open back-end API -->
- <!-- =================================================================== -->
- <property name="ais.dist.javadoc" value="${ais.dist}/JavaConnectors/Documentation/JavaDoc"/>
- <target name="javadoc.openbackend" depends="compile.doclet">
- <delete dir="${ais.dist.javadoc}" includeEmptyDirs="true" quiet="true"/>
- <mkdir dir="${ais.dist.javadoc}"/>
- <property name="basic-header" value="${Name}™, AIS Java Connector"/>
- <property name="header+version" value="${basic-header}, v${version}"/>
- <property name="win-title" value="${header+version} API Specification"/>
- <property name="doc-title" value="${header+version}<br/>API Specification"/>
- <javadoc sourcepath="${src.dir}" destdir="${ais.dist.javadoc}" windowtitle="${win-title}" doctitle="${doc-title}" header="${basic-header}" bottom="<font size="-1">${Name} is a trademark or registered trademarks of Seagull Holding NV in the US and other countries.<br/>Copyright © 1993 - 2003 Seagull Business Software Ireland Ltd. All Rights Reserved.</font>" author="false" version="true" use="true" doclet="com.seagullsw.internaldev.tools.apidoclet.standard.Standard" docletpath="${build.classes};${java.resource.dir}">
- <!-- I don't understand it, but if I leave off the ${src.dir} below, it doesn't work. -->
- <source file="${src.dir}/com/seagullsw/appinterface/server/backend/BackEnd.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/server/backend/BackEndInfo.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/server/backend/BackEndHandler.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/server/backend/BackEndSettings.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/server/backend/Callback.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/server/backend/ClientSession.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/server/backend/InvocationContext.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/model/AggregateModel.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/model/AppInterfaceRuntimeException.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/model/DataElementModel.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/model/FieldModel.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/model/IllegalElementException.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/model/IllegalPathException.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/model/ModelElement.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/model/SequenceModel.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/model/StructureModel.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/model/data/Aggregate.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/model/data/DataElement.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/model/data/DataElementList.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/model/data/Field.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/model/data/Sequence.java"/>
- <source file="${src.dir}/com/seagullsw/appinterface/model/data/Structure.java"/>
- <classpath>
- <path refid="ais.classpath"/>
- </classpath>
- <link href="http://java.sun.com/products/jdk/1.3.1/docs/api/"/>
- </javadoc>
- </target>
- <!-- VERIFY -->
- <path id="path.AntTasks">
- <pathelement location="${junit.jar}"/>
- <pathelement location="${commons-cli.jar}"/>
- <pathelement location="${commons-httpclient.jar}"/>
- <pathelement location="${build.classes}"/>
- <pathelement location="${internaldev.classes}"/>
- </path>
- <target name="build.AntTasks">
- <mkdir dir="${internaldev.classes}"/>
- <javac srcdir="${src.test.dir}" destdir="${internaldev.classes}" debug="${compile.debug}" classpathref="path.AntTasks">
- <include name="com/seagullsw/internaldev/build/JarFileVerifier.java"/>
- <include name="com/seagullsw/internaldev/build/JarFileVerifierTask.java"/>
- <include name="com/seagullsw/internaldev/build/IsUrlOpen.java"/>
- <include name="com/seagullsw/internaldev/build/IsUrlOpenTask.java"/>
- </javac>
- </target>
- <target name="declare.AntTasks" depends="build.AntTasks">
- <taskdef name="verifyjar" classname="com.seagullsw.internaldev.build.JarFileVerifierTask" classpathref="path.AntTasks"/>
- <taskdef name="isUrlOpen" classname="com.seagullsw.internaldev.build.IsUrlOpenTask" classpathref="path.AntTasks"/>
- </target>
- <target name="prepare.test.ext">
- <mkdir dir="${test.lib}"/>
- <delete dir="${test.lib.ext}"/>
- <mkdir dir="${test.lib.ext}"/>
- </target>
- <target name="verify.ais.jar" depends="declare.AntTasks, prepare.test.ext">
- <mkdir dir="${test.fdef}"/>
- <copy file="${goXMLEngine.jar}" todir="${test.lib.ext}" preservelastmodified="true"/>
- <copy file="${goXMLResource.zip}" todir="${test.lib.ext}" preservelastmodified="true"/>
- <copy file="${jdom.jar}" todir="${test.lib.ext}" preservelastmodified="true"/>
- <copy file="${ibm.mq.jar}" todir="${test.lib.ext}" preservelastmodified="true"/>
- <copy file="${ibm.mq.connector.jar}" todir="${test.lib.ext}" preservelastmodified="true"/>
- <copy file="${ibm.mq.jta.jar}" todir="${test.lib.ext}" preservelastmodified="true"/>
- <verifyjar file="${ais-core.jar}" verbose="false" debug="false">
- <classpath>
- <pathelement location="${ais.dist.lib}"/>
- <pathelement location="${ais.dist.lib.ext}"/>
- <pathelement location="${test.lib}"/>
- </classpath>
- </verifyjar>
- <delete dir="${test.lib.ext}"/>
- <delete dir="${test.fdef}"/>
- </target>
- <target name="verify.client.jar" depends="declare.AntTasks, prepare.test.ext">
- <copy file="${ibm.mq.jar}" todir="${test.lib.ext}" preservelastmodified="true"/>
- <copy file="${jms.jar}" todir="${test.lib.ext}" preservelastmodified="true"/>
- <copy file="${mail.jar}" todir="${test.lib.ext}" preservelastmodified="true"/>
- <copy file="${soap.jar}" todir="${test.lib.ext}" preservelastmodified="true"/>
- <verifyjar file="${ais.client.jar}" verbose="false" debug="false">
- <classpath>
- <pathelement location="${ais.client.dist.lib}"/>
- <pathelement location="${test.lib.ext}"/>
- </classpath>
- </verifyjar>
- <delete dir="${test.lib.ext}"/>
- </target>
- <target name="verify.5250.jar" depends="declare.AntTasks">
- <verifyjar file="${ais-5250.jar}" ignoreUnresolved="true" verbose="false" debug="false">
- <classpath location="${ais.dist.lib}"/>
- </verifyjar>
- </target>
- <target name="verify.3270.jar" depends="declare.AntTasks">
- <verifyjar file="${ais-3270.jar}" ignoreUnresolved="true" verbose="false" debug="false">
- <classpath location="${ais.dist.lib}"/>
- </verifyjar>
- </target>
- <target name="verify.cobol.jar" depends="declare.AntTasks">
- <verifyjar file="${ais-cobol.jar}" verbose="false" debug="false">
- <classpath location="${ais.dist.lib}"/>
- </verifyjar>
- </target>
- <target name="verify.cics.jar" depends="declare.AntTasks, prepare.test.ext">
- <copy file="${ctgclient.jar}" todir="${test.lib.ext}" preservelastmodified="true"/>
- <verifyjar file="${ais-cics.jar}" verbose="false" debug="false">
- <classpath location="${ais.dist.lib}"/>
- <classpath location="${test.lib}"/>
- </verifyjar>
- <delete dir="${test.lib.ext}"/>
- </target>
- <target name="verify.ims.jar" depends="declare.AntTasks">
- <verifyjar file="${ais-ims.jar}" verbose="false" debug="false">
- <classpath location="${ais.dist.lib}"/>
- </verifyjar>
- </target>
- <target name="verify.adminclient.jar" depends="declare.AntTasks">
- <verifyjar file="${ais-adminclient.jar}" verbose="false" debug="false">
- <classpath location="${devtools.dist.lib}"/>
- </verifyjar>
- </target>
- <target name="verify.proxyservlet.jar" depends="declare.AntTasks">
- <verifyjar file="${proxyservlet.jar}" verbose="false" debug="false">
- <classpath>
- <pathelement location="${proxyservlet.dist.lib}"/>
- <pathelement location="${servlet.dir}"/>
- </classpath>
- </verifyjar>
- </target>
- <target name="verify.adminconsole.jar" depends="declare.AntTasks">
- <verifyjar file="${adminconsole.jar}" verbose="false" debug="false">
- <classpath location="${ais.dist.lib}"/>
- </verifyjar>
- </target>
- <target name="verify.javaconnectorgenerator.jar" depends="declare.AntTasks">
- <verifyjar file="${javaconnectorgenerator.jar}" verbose="false" debug="false">
- <classpath location="${devtools.dist.lib}"/>
- </verifyjar>
- </target>
- <target name="verify.securitytoolkit.jar" depends="declare.AntTasks">
- <verifyjar file="${securitytoolkit.jar}" verbose="false" debug="false">
- <classpath location="${devtools.dist.lib}"/>
- </verifyjar>
- </target>
- <target name="verify.tools.jar" depends="declare.AntTasks, prepare.test.ext">
- <copy file="${j2se.tools.jar}" todir="${test.lib.ext}" preservelastmodified="true"/>
- <verifyjar file="${ais-tools.jar}" verbose="false" debug="false">
- <classpath location="${devtools.dist.lib}"/>
- <classpath location="${test.lib}"/>
- </verifyjar>
- <delete dir="${test.lib.ext}"/>
- </target>
- <target name="verify.gwhsc.jar" depends="declare.AntTasks">
- <verifyjar file="${hsc.jar}" verbose="false" debug="false"/>
- </target>
- <target name="verify.gwhscu.jar" depends="declare.AntTasks">
- <verifyjar file="${hscu.jar}" verbose="false" debug="false"/>
- </target>
- <target name="verify.xml" depends="banner">
- <!-- Only check for well-formed XML here. -->
- <xmlvalidate lenient="yes" warn="yes">
- <fileset dir="${build.dist}" includes="**/*.xml"/>
- <fileset dir="${build.dist}" includes="**/*.cfg"/>
- <fileset dir="${build.dist}" includes="**/*.sfd"/>
- <fileset dir="${build.dist}" includes="**/*.sjcd"/>
- <fileset dir="${build.dist}" includes="**/*.sfmd"/>
- <fileset dir="${build.dist}" includes="**/*.xsd"/>
- <fileset dir="${build.dist}" includes="**/*.xsl"/>
- </xmlvalidate>
- </target>
- <target name="verify" description="Verifies the build by performing a load tests on jar files (does not trigger the jar dependencies.)" depends="banner, verify.ais.jar, verify.client.jar, verify.5250.jar, verify.3270.jar, verify.cobol.jar, verify.cics.jar, verify.ims.jar, verify.adminclient.jar, verify.proxyservlet.jar, verify.adminconsole.jar, verify.javaconnectorgenerator.jar, verify.securitytoolkit.jar, verify.tools.jar, verify.gwhsc.jar, verify.gwhscu.jar, verify.xml"/>
- <!-- End VERIFY targets -->
- <!-- TEST TARGETS -->
- <target name="junit_check">
- <available classname="junit.framework.Test" property="junit.present"/>
- <fail message="JUnit cannot be found." unless="junit.present"/>
- </target>
- <property name="test" value="${build.dir}/test"/>
- <property name="test.bin" value="${test}/bin"/>
- <property name="test.resources" value="${test.dir}/resources"/>
- <property name="test.fdef" value="${test}/${fdef.dirname}"/>
- <property name="test.lib" value="${test}/lib"/>
- <property name="test.lib.ext" value="${test.lib}/ext"/>
- <property name="reports.dir" value="${build.dir}/reports"/>
- <property name="reports.checksum" value="${reports.dir}/checksum"/>
- <property name="junit.reports.srcdir" location="reports"/>
- <property name="junit.reports" location="${reports.dir}/junit"/>
- <property name="junit.formatter" value="xml"/>
- <property name="junit.fork" value="true"/>
- <property name="junit.printsummary" value="true"/>
- <property name="junit.includeantruntime" value="false"/>
- <property name="junit.dir" value="../.."/>
- <property name="junit.reports.xml" location="${junit.reports}/${junit.formatter}"/>
- <property name="junit.report.ext" value="-junit.xml"/>
- <target name="test.compile" description="Compiles the unit tests without triggering any dependencies.">
- <mkdir dir="${test.bin}"/>
- <javac destdir="${test.bin}" debug="${compile.debug}" includeAntRuntime="false">
- <src path="${src.test.dir}"/>
- <src path="${src.dir}/com/seagullsw/internaldev/appinterface/model"/>
- <!-- Testing framework -->
- <classpath location="${junit.jar}"/>
- <classpath location="${mtjunit.jar}"/>
- <classpath location="${xmlsec.jar}"/>
- <!-- Jars to test, which the test cases refer to. -->
- <classpath location="${ais-core.jar}"/>
- <classpath location="${proxyservlet.jar}"/>
- <classpath location="${ais.client.jar}"/>
- <classpath location="${javaconnectorgenerator.jar}"/>
- <classpath location="${securitytoolkit.jar}"/>
- <classpath location="${ais-tools.jar}"/>
- <classpath location="${ais-5250.jar}"/>
- <classpath location="${ais-3270.jar}"/>
- <classpath location="${ais-cobol.jar}"/>
- <classpath location="${ais-cics.jar}"/>
- <classpath location="${ais-ims.jar}"/>
- <classpath location="${ais-adminclient.jar}"/>
- <classpath location="${hsc.jar}"/>
- <!-- dependencies -->
- <classpath location="${ant.jar}"/>
- <classpath location="${commons-cli.jar}"/>
- <classpath location="${commons-httpclient.jar}"/>
- <classpath refid="ais.classpath"/>
- <classpath refid="proxyservlet.classpath"/>
- <classpath refid="cobol.classpath"/>
- <classpath refid="cics.backend.classpath"/>
- <classpath refid="ims.backend.classpath"/>
- <classpath refid="transforms.classpath"/>
- <classpath refid="jsse.classpath"/>
- </javac>
- </target>
- <target name="test.mkdir" depends="init">
- <mkdir dir="${build.dir}"/>
- <mkdir dir="${test}"/>
- <mkdir dir="${test.bin}"/>
- </target>
- <target name="echo.xalan.version">
- <echo level="info" message="Testing with ${TransformerFactory}"/>
- <java classname="org.apache.xalan.Version"/>
- </target>
- <target name="report.init" depends="init, test.compile">
- <mkdir dir="${junit.reports.xml}"/>
- <echo level="info" message="Reporting to ${junit.reports.xml}"/>
- </target>
- <path id="junit.classpath">
- <pathelement location="${ant.home}/lib/ant.jar"/>
- <pathelement location="${ant.home}/lib/optional.jar"/>
- <pathelement location="${ant.home}/lib/junit.jar"/>
- </path>
- <!-- Unit Tests: from low-level to high-level -->
- <!-- Unit Tests: javax.lang -->
- <target name="junit.javax.lang" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <pathelement location="${ais-tools.jar}"/>
- <pathelement location="${j2se.tools.jar}"/>
- <pathelement location="${commons-lang.jar}"/>
- <pathelement location="${test.bin}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.unittest.javax.lang.AllTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Unit Tests: javax.io -->
- <target name="junit.javax.io" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <pathelement location="${commons-lang.jar}"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.javax.io.AllTests" todir="${junit.reports.xml}"/>
- <test name="com.seagullsw.unittest.javax.io.AllTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Unit Tests: javax.util -->
- <target name="junit.javax.util" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <pathelement location="${test.bin}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.unittest.javax.util.AllTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Unit Tests: Toolbox XML -->
- <target name="junit.toolbox.xml" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement path="${sun.boot.class.path}"/>
- <pathelement location="${ais-core.jar}"/>
- <path refid="xml.classpath.rt"/>
- <pathelement location="${commons-lang.jar}"/>
- <pathelement location="${xmlsec.jar}"/>
- <pathelement location="${jce.jar}"/>
- <pathelement location="${log4j.jar}"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.unittest.toolbox.xml.StringProxyTestSuite" todir="${junit.reports.xml}"/>
- <test name="com.seagullsw.unittest.toolbox.xml.DocumentProxyTestSuite" todir="${junit.reports.xml}"/>
- <test name="com.seagullsw.unittest.toolbox.xml.ReadDocumentWithEncodingTestSuite" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Unit Tests: Toolbox config -->
- <target name="junit.toolbox.config" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <pathelement path="${sun.boot.class.path}"/>
- <pathelement location="${ais-core.jar}"/>
- <pathelement location="${commons-lang.jar}"/>
- <pathelement location="${commons-cli.jar}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.toolbox.config.ConfigurationDirectoryTestCase" todir="${junit.reports.xml}"/>
- <test name="com.seagullsw.toolbox.config.ConfigValidatorTest" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Unit Tests: Toolbox logging -->
- <target name="junit.toolbox.log" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${test.bin}"/>
- <pathelement location="${ais-core.jar}"/>
- <pathelement location="${commons-lang.jar}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.toolbox.log.LogUnitTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Unit Tests: config/log -->
- <target name="junit.server.config.log" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <path refid="ais.classpath"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.appinterface.server.config.bind.log.AllTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Unit Tests: config/bind/threadpool -->
- <target name="junit.server.config.threadpool" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <path refid="ais.classpath"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.appinterface.server.config.bind.threadpool.AllTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Unit Tests: config/bind/transform -->
- <target name="junit.server.config.transform" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <path refid="ais.classpath"/>
- <path refid="transforms.classpath"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.appinterface.server.config.bind.transform.AllTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Unit Tests: config/bind/core -->
- <target name="junit.server.config.core" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <path refid="ais.classpath"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.appinterface.server.config.bind.core.AllTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Unit Tests: config/bind/management -->
- <target name="junit.server.config.management" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <path refid="ais.classpath"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.appinterface.server.config.bind.management.JaxbUnmarshalTestCase" todir="${junit.reports.xml}"/>
- <test name="com.seagullsw.appinterface.server.config.bind.management.ConfigurationDirectoryUnmarshalTestCase" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Unit Tests: Chameleon -->
- <target name="junit.ais-core.transforms" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement path="${sun.boot.class.path}"/>
- <pathelement location="${ais-core.jar}"/>
- <path refid="transforms.classpath"/>
- <pathelement location="${xmlsec.jar}"/>
- <pathelement location="${jce.jar}"/>
- <pathelement location="${log4j.jar}"/>
- <pathelement location="${goXMLResource.zip}"/>
- <pathelement location="${goXMLconfig.dir}"/>
- <pathelement location="${jdom.jar}"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.unittest.appinterface.transforms.ApacheXPathNamespaceTestSuite" todir="${junit.reports.xml}"/>
- <test name="com.seagullsw.unittest.appinterface.transforms.SimpleAwkTestSuite" todir="${junit.reports.xml}"/>
- <test name="com.seagullsw.unittest.appinterface.transforms.TransformationManagerBindingTestSuite" todir="${junit.reports.xml}"/>
- <test name="com.seagullsw.unittest.appinterface.transforms.TransformationManagerTestSuite" todir="${junit.reports.xml}"/>
- <test name="com.seagullsw.unittest.appinterface.transforms.GoXMLTransformationManagerTestSuite" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Unit Tests: com.seagullsw.appinterface.server.security.auth -->
- <target name="junit.security.auth" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <path refid="ais.classpath"/>
- <path refid="jce.classpath.rt"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.appinterface.server.security.auth.AllTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Unit Tests: com.seagullsw.appinterface.server.crypto -->
- <target name="junit.crypto" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <path refid="ais.classpath"/>
- <path refid="jce.classpath.rt"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.appinterface.server.crypto.AllTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Unit Tests: com.seagullsw.toolbox.net -->
- <target name="junit.toolbox.net" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <pathelement location="${commons-codec.jar}"/>
- <pathelement location="${commons-httpclient.jar}"/>
- <pathelement location="${commons-logging.jar}"/>
- <path refid="jce.classpath.rt"/>
- <path refid="jsse.classpath"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.toolbox.net.AllTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Unit Tests: com.seagullsw.unittest.appinterface.model -->
- <target name="junit.model" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <path refid="ais.classpath"/>
- <path refid="transforms.classpath"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.unittest.appinterface.model.AllTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <target name="junit.server" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <path refid="ais.classpath"/>
- <path refid="ims.backend.classpath"/>
- <path refid="cics.backend.classpath"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.appinterface.server.LoadFunctionsTest" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Unit Tests: com.seagullsw.unittest.appinterface.server.backend.hostconnector2 -->
- <target name="junit.hostconnector2" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <path refid="ais.classpath"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${ais-5250.jar}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.unittest.appinterface.server.backend.hostconnector2.AllTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <target name="junit.backend.hsc" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <!-- The timeout is expressed in milliseconds. -->
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <path refid="ais.classpath"/>
- <path refid="jce.classpath.rt"/>
- <pathelement location="${ais-5250.jar}"/>
- <pathelement location="${ais-3270.jar}"/>
- <pathelement location="${commons-httpclient.jar}"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.appinterface.server.config.bind.connectors.hsc.AllTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Unit Tests: IMS back-end -->
- <target name="junit.backend.ims" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <!-- The timeout is expressed in milliseconds. -->
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <path refid="ais.classpath"/>
- <path refid="ims.backend.classpath"/>
- <path refid="jce.classpath.rt"/>
- <pathelement location="${ais-ims.jar}"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.appinterface.server.config.bind.connectors.ims.AllTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <target name="junit.backend.ims.live" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <!-- The timeout is expressed in milliseconds. -->
- <junit printsummary="${junit.printsummary}" fork="true" timeout="45000" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <path refid="ais.classpath"/>
- <path refid="ims.backend.classpath"/>
- <path refid="jce.classpath.rt"/>
- <pathelement location="${ais-ims.jar}"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.appinterface.server.backend.ims.AllLiveImsIcoTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Unit Tests: CICS back-end -->
- <target name="junit.backend.cics" depends="junit.backend.cics.common, junit.backend.cics.ctg.live, junit.backend.cics.hb, junit.backend.cics.hb.live"/>
- <target name="junit.backend.cics.common" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <path refid="ais.classpath"/>
- <path refid="jce.classpath.rt"/>
- <pathelement location="${ais-cics.jar}"/>
- <pathelement location="${ctgclient.jar}"/>
- <pathelement location="${commons-httpclient.jar}"/>
- <pathelement location="${commons-logging.jar}"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.appinterface.server.config.bind.connectors.cics.AllTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <target name="junit.backend.cics.ctg.live" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <!-- The timeout is expressed in milliseconds. -->
- <junit printsummary="${junit.printsummary}" fork="true" timeout="600000" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <path refid="ais.classpath"/>
- <pathelement location="${ais-cics.jar}"/>
- <pathelement location="${ctgclient.jar}"/>
- <pathelement location="${commons-httpclient.jar}"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.appinterface.server.backend.cics.AllLiveIbmCtgTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <target name="junit.backend.cics.hb" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="${junit.fork}" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <path refid="ais.classpath"/>
- <pathelement location="${ais-cics.jar}"/>
- <pathelement location="${commons-httpclient.jar}"/>
- <pathelement location="${commons-logging.jar}"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.appinterface.server.backend.cics.HostBridgeByteBufferStrategyTest" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <target name="junit.backend.cics.hb.live" depends="report.init">
- <mkdir dir="${junit.reports.xml}"/>
- <junit printsummary="${junit.printsummary}" fork="true" timeout="600000" dir="${junit.dir}" includeantruntime="${junit.includeantruntime}">
- <formatter type="${junit.formatter}" extension="${junit.report.ext}"/>
- <classpath>
- <pathelement location="${ais-core.jar}"/>
- <path refid="ais.classpath"/>
- <pathelement location="${ais-cics.jar}"/>
- <pathelement location="${commons-httpclient.jar}"/>
- <pathelement location="${commons-logging.jar}"/>
- <pathelement location="${test.bin}"/>
- <pathelement location="${test.resources}"/>
- <path refid="junit.classpath"/>
- </classpath>
- <test name="com.seagullsw.appinterface.server.backend.cics.AllLiveHostBridgeTests" todir="${junit.reports.xml}"/>
- </junit>
- </target>
- <!-- Clean reports -->
- <target name="junit.report.clean">
- <delete dir="${junit.reports}"/>
- </target>
- <!-- Create the unit tests report -->
- <target name="junit.report" depends="init">
- <mkdir dir="${junit.reports}"/>
- <property name="junit.reports.frames" location="${junit.reports}/frames"/>
- <property name="junit.reports.noframes" location="${junit.reports}/noframes"/>
- <mkdir dir="${junit.reports.xml}"/>
- <mkdir dir="${junit.reports.frames}"/>
- <mkdir dir="${junit.reports.noframes}"/>
- <echo level="info" message="Compiling all reports to ${junit.reports}..."/>
- <junitreport todir="${junit.reports.xml}">
- <fileset dir="${junit.reports.xml}">
- <include name="**/*${junit.report.ext}"/>
- </fileset>
- <report format="noframes" todir="${junit.reports.noframes}"/>
- <report format="frames" todir="${junit.reports.frames}"/>
- </junitreport>
- <echo level="info" message="The XML report is in: ${junit.reports.xml}"/>
- <echo level="info" message="The HTML report (with frames) is in: ${junit.reports.frames}"/>
- <echo level="info" message="The HTML report (no frames) is in: ${junit.reports.noframes}"/>
- <!-- Rename file to index.html -->
- <move file="${junit.reports.noframes}/junit-noframes.html" tofile="${junit.reports.noframes}/index.html"/>
- <!-- Copy test reports home page -->
- <copy file="${junit.reports.srcdir}/index.html" todir="${reports.dir}" overwrite="true" filtering="true"/>
- <copy todir="${reports.dir}/images" overwrite="true">
- <fileset dir="${junit.reports.srcdir}/images"/>
- </copy>
- <antcall target="report.checksums"/>
- </target>
- <target name="report.checksums">
- <antcall target="copy-checksums"/>
- <property name="temp.index" value="${reports.dir}/index-temp.html"/>
- <xslt in="${reports.dir}/index.html" out="${temp.index}" force="true" style="${junit.reports.srcdir}/apply-data.xslt">
- <param name="reportDir" expression="${reports.dir}"/>
- </xslt>
- <delete file="${reports.dir}/index.html"/>
- <move file="${temp.index}" tofile="${reports.dir}/index.html"/>
- </target>
- <target name="junit.javax" depends="junit.javax.io, junit.javax.util, junit.javax.lang"/>
- <target name="junit.server.config" depends="junit.server.config.log, junit.server.config.threadpool, junit.server.config.transform, junit.server.config.core, junit.server.config.management"/>
- <target name="junit.toolbox" depends="junit.toolbox.config, junit.toolbox.xml, junit.toolbox.net, junit.toolbox.log"/>
- <target name="junit.ais-core" depends="junit.javax, junit.toolbox, junit.server.config, junit.ais-core.transforms, junit.security.auth, junit.crypto, junit.model, junit.server"/>
- <target name="junit.backend" depends="junit.backend.hsc, junit.backend.ims, junit.backend.ims.live, junit.backend.cics, junit.hostconnector2"/>
- <target name="test" description="Runs the tests." depends="init, test.compile, junit.report.clean, junit.ais-core, junit.backend, junit.report"/>
- <!-- Build and Zip -->
- <target name="zip" depends="dist" description="Creates the final ${zip-file} (does it all)">
- <property name="zip-file" location="${build.dir}/${zipFileBaseName}-build${build.id}.zip"/>
- <delete file="${zip-file}" quiet="true"/>
- <zip zipfile="${zip-file}" basedir="${build.dist}"/>
- </target>
- <target name="nightly-build" depends="init, clean, dist, verify, test" description="Creates a nightly build (does it all)">
- </target>
-</project>
\ No newline at end of file
diff --git a/update/org.eclipse.update.examples/.classpath b/update/org.eclipse.update.examples/.classpath
deleted file mode 100644
index b48fe2a..0000000
--- a/update/org.eclipse.update.examples/.classpath
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src/"/>
- <classpathentry kind="src" path="/org.eclipse.core.runtime"/>
- <classpathentry kind="src" path="/org.apache.xerces"/>
- <classpathentry kind="src" path="/org.eclipse.core.boot"/>
- <classpathentry kind="src" path="/org.eclipse.update.core"/>
- <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/update/org.eclipse.update.examples/.cvsignore b/update/org.eclipse.update.examples/.cvsignore
deleted file mode 100644
index c5e82d7..0000000
--- a/update/org.eclipse.update.examples/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-bin
\ No newline at end of file
diff --git a/update/org.eclipse.update.examples/.project b/update/org.eclipse.update.examples/.project
deleted file mode 100644
index 39cb54a..0000000
--- a/update/org.eclipse.update.examples/.project
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.update.examples</name>
- <comment></comment>
- <projects>
- <project>org.apache.xerces</project>
- <project>org.eclipse.core.boot</project>
- <project>org.eclipse.core.runtime</project>
- <project>org.eclipse.update.core</project>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ui.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ui.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.ui.PluginNature</nature>
- <nature>org.eclipse.team.cvs.core.cvsnature</nature>
- </natures>
-</projectDescription>
diff --git a/update/org.eclipse.update.examples/Scrapbook2.jpage b/update/org.eclipse.update.examples/Scrapbook2.jpage
deleted file mode 100644
index b5da99a..0000000
--- a/update/org.eclipse.update.examples/Scrapbook2.jpage
+++ /dev/null
@@ -1,111 +0,0 @@
-SiteManager.getSite(URL)throws CoreException
- String type = getTypeForprotocol(URL.getprotocol);
- try {
- if (type != null){
- attemptCreationSite(type,URL);
- } else {
- attemptCreationSite("http",URL);
- }
- } catch (CoreException e){
- throw new CoreException("Cannot create site",e.getMessage());
- }
-
-SiteManager.attemptCreationSite(type,URL)throws CoreException
- try {
- createSite(type,URL);
- } catch (InvalidTypeException e){
- try {
- createSite(e.getRealType(),URL);
- } catch (InvalidSiteExeption e){
- throw new CoreException("Wrong site type");
- }
- }
-
-SiteManager.createSite(type,URL) throws CoreExeption, InvalidSiteTypeException
-
-
-try {
-
- factory.createSite(url, forceCreation);
-
-} catch (IOException e) {
- // if the URL is pointing to either a file
-// or a directory, without reference
-if (url.getRef() != null) {
- // 4 nothing we can do
- throw newCoreException("Error accessing url:"+url.toExternalForm()+"\r\n"+e.getMessage(),e);
-} else if (url.getFile().endsWith("/")) {
- // 1 try to add site.xml
- try {
- url = new URL(url,Site.SITE_XML);
- } catch (MalformedURLException e1){
- throw newCoreException("Cannot create URL:"+url.toExternalForm()+"+"+Site.SITE_XML,e1);
- }
- try {
- site = factory.createSite(url, forceCreation);
- } catch (ParsingException e1){
- throw newCoreException("Error parsing URL:"+url.toExternalForm()+"\r\n"+e1.getMessage(),e1);
- } catch (IOException e1){
- throw newCoreException("Error accessing url:"+url.toExternalForm()+"\r\n"+e1.getMessage(),e1);
- }
-} else if (url.getFile().endsWith(Site.SITE_XML)) {
- // 3 nothing we can do
- throw newCoreException("Error accessing url:"+url.toExternalForm()+"\r\n"+e.getMessage(),e);
-} else {
- // 2 try to add /site.xml
- try {
- url = new URL(url.getProtocol(),url.getHost(), url.getPort(), url.getFile()+"/"+Site.SITE_XML);
- } catch (MalformedURLException e1){
- throw newCoreException("Cannot create URL:"+url.toExternalForm()+"+"+Site.SITE_XML,e1);
- }
-
- try {
- site = factory.createSite(url, forceCreation);
- } catch (ParsingException e1){
- throw newCoreException("Error parsing URL:"+url.toExternalForm()+"\r\n"+e1.getMessage()+"\r\nPrevious Input/Output Error:"+e.getMessage(),e1);
- } catch (IOException e1){
- throw newCoreException("Error accessing url:"+url.toExternalForm()+"\r\n"+e1.getMessage()+"\r\nPrevious Input/Output Error:"+e.getMessage(),e1);
- }
- }
-
- } catch (ParsingException e) {
-
- // if the URL is pointing to either a file
-// or a directory, without reference
-if (url.getRef() != null) {
- // 4 nothing we can do
- throw newCoreException("Error parsing URL:"+url.toExternalForm()+"\r\n"+e.getMessage(),e);
-} else if (url.getFile().endsWith("/")) {
- // 1 try to add site.xml
- try {
- url = new URL(url,Site.SITE_XML);
- } catch (MalformedURLException e1){
- throw newCoreException("Cannot create URL:"+url.toExternalForm()+"+"+Site.SITE_XML,e1);
- }
- try {
- site = factory.createSite(url, forceCreation);
- } catch (ParsingException e1){
- throw newCoreException("Error parsing URL:"+url.toExternalForm()+"\r\n"+e1.getMessage(),e1);
- } catch (IOException e1){
- throw newCoreException("Error accessing url:"+url.toExternalForm()+"\r\n"+e1.getMessage(),e1);
- }
-
- } else if (url.getFile().endsWith(Site.SITE_XML)) {
- // 3 nothing we can do
- throw newCoreException("Error parsing URL:"+url.toExternalForm()+"\r\n"+e.getMessage(),e);
-} else {
- // 2 try to add /site.xml
-
- try {
- url = new URL(url.getProtocol(),url.getHost(), url.getPort(), url.getFile()+"/"+Site.SITE_XML);
- } catch (MalformedURLException e1){
- throw newCoreException("Cannot create URL:"+url.toExternalForm()+"+"+Site.SITE_XML,e1);
- }
- try {
- site = factory.createSite(url, forceCreation);
- } catch (ParsingException e1){
- throw newCoreException("Error parsing URL:"+url.toExternalForm()+"\r\n"+e1.getMessage()+"\r\nPrevious Parsing error:"+e.getMessage(),e1);
- } catch (IOException e1){
- throw newCoreException("Error accessing url:"+url.toExternalForm()+"\r\n"+e1.getMessage()+"\r\nPrevious Parsing error:"+e.getMessage(),e1);
-
-
diff --git a/update/org.eclipse.update.examples/about.html b/update/org.eclipse.update.examples/about.html
deleted file mode 100644
index 768324e..0000000
--- a/update/org.eclipse.update.examples/about.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<html>
-<head>
-<title>About</title>
-<style type="text/css">
-p, table, td, th { font-family: arial, helvetica, geneva; font-size: 10pt}
-pre { font-family: "Courier New", Courier, mono; font-size: 10pt}
-h2 { font-family: arial, helvetica, geneva; font-size: 18pt; font-weight: bold ; line-height: 14px}
-code { font-family: "Courier New", Courier, mono; font-size: 10pt}
-sup { font-family: arial,helvetica,geneva; font-size: 10px}
-h3 { font-family: arial, helvetica, geneva; font-size: 14pt; font-weight: bold}
-li { font-family: arial, helvetica, geneva; font-size: 10pt}
-h1 { font-family: arial, helvetica, geneva; font-size: 28px; font-weight: bold}
-body { font-family: arial, helvetica, geneva; font-size: 10pt; clip: rect( ); margin-top: 5mm; margin-left: 3mm}
-</style>
-</head>
-<body lang="EN-US" link="blue" vlink="purple">
-<table border="0" cellspacing="5" cellpadding="2" width="100%" >
- <tr>
- <td align="LEFT" valign="TOP" colspan="2" bgcolor="#0080C0"><b><font color="#FFFFFF">About This Content</font></b></td>
- </tr>
- <tr>
- <td>
-<p>11th December, 2001</p>
-<h3>License</h3>
-<p>Eclipse.org makes available all content in this plug-in "Content". Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
-<a href="http://www.eclipse.org/legal/cpl-v05.html">Common Public License Version 0.5</a> "CPL". For purposes of the CPL, "Program" will mean the Content.</p>
-
-<h3>Contributions</h3>
-
-<p>If this Content is licensed to you under the terms and conditions of the CPL, any Contributions, as defined in the CPL, uploaded, submitted, or otherwise
-made available to Eclipse.org, members of Eclipse.org and/or the host of Eclipse.org web site, by you that relate to such
-Content are provided under the terms and conditions of the CPL and can be made available to others under the terms of the CPL.</p>
-
-<p>If this Content is licensed to you under license terms and conditions other than the CPL "Other License", any modifications, enhancements and/or
-other code and/or documentation "Modifications" uploaded, submitted, or otherwise made available to Eclipse.org, members of Eclipse.org and/or the
-host of Eclipse.org, by you that relate to such Content are provided under terms and conditions of the Other License and can be made available
-to others under the terms of the Other License. In addition, with regard to Modifications for which you are the copyright holder, you are also
-providing the Modifications under the terms and conditions of the CPL and such Modifications can be made available to others under the terms of
-the CPL.</p>
-</td></tr></table>
-</body>
-</html>
\ No newline at end of file
diff --git a/update/org.eclipse.update.examples/build.properties b/update/org.eclipse.update.examples/build.properties
deleted file mode 100644
index fda21a6..0000000
--- a/update/org.eclipse.update.examples/build.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-source.updateexamplescore.jar = src/
-src.includes=about.html
-bin.includes=plugin.xml,plugin.properties,*.jar,about.html
diff --git a/update/org.eclipse.update.examples/plugin.properties b/update/org.eclipse.update.examples/plugin.properties
deleted file mode 100644
index 9a31f8c..0000000
--- a/update/org.eclipse.update.examples/plugin.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-
-name = Install/Update BuildZip Example
-provider-name = Eclipse.org
\ No newline at end of file
diff --git a/update/org.eclipse.update.examples/plugin.xml b/update/org.eclipse.update.examples/plugin.xml
deleted file mode 100644
index e8b4092..0000000
--- a/update/org.eclipse.update.examples/plugin.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin
- id="org.eclipse.update.examples"
- name="%name"
- version="2.0.0"
- provider-name="%provider-name">
-
- <runtime>
- <library name="updateexamples.jar">
- <export name="*"/>
- </library>
- </runtime>
- <requires>
- <import plugin="org.eclipse.core.runtime"/>
- <import plugin="org.apache.xerces"/>
- <import plugin="org.eclipse.core.boot"/>
- <import plugin="org.eclipse.update.core"/>
- </requires>
-
-
- <extension
- id="zip"
- point="org.eclipse.update.core.featureTypes">
- <feature-factory
- class="org.eclipse.update.examples.buildzip.BuildZipFeatureFactory">
- </feature-factory>
- </extension>
- <extension
- id="site.zip"
- point="org.eclipse.update.core.siteTypes">
- <site-factory
- class="org.eclipse.update.examples.buildzip.BuildZipSiteFactory">
- </site-factory>
- </extension>
- <extension
- id="site.freeform"
- point="org.eclipse.update.core.siteTypes">
- <site-factory
- class="org.eclipse.update.examples.freeform.FreeFormSiteFactory">
- </site-factory>
- </extension>
-
-</plugin>
diff --git a/update/org.eclipse.update.examples/site/features/com.reddot.reddot_1.0.0.jar b/update/org.eclipse.update.examples/site/features/com.reddot.reddot_1.0.0.jar
deleted file mode 100644
index 06507a7..0000000
--- a/update/org.eclipse.update.examples/site/features/com.reddot.reddot_1.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.examples/site/features/com.reddot.reddot_2.0.0.jar b/update/org.eclipse.update.examples/site/features/com.reddot.reddot_2.0.0.jar
deleted file mode 100644
index 7236815..0000000
--- a/update/org.eclipse.update.examples/site/features/com.reddot.reddot_2.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.examples/site/info/images/redDot.jpg b/update/org.eclipse.update.examples/site/info/images/redDot.jpg
deleted file mode 100644
index f0fb5c3..0000000
--- a/update/org.eclipse.update.examples/site/info/images/redDot.jpg
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.examples/site/info/siteInfo.html b/update/org.eclipse.update.examples/site/info/siteInfo.html
deleted file mode 100644
index ceca97d..0000000
--- a/update/org.eclipse.update.examples/site/info/siteInfo.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<!-- saved from url=(0040)http://dejan/testSite/info/siteInfo.html -->
-<HTML><HEAD>
-<META http-equiv=Content-Type content="text/html; charset=windows-1252">
-<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
-<BODY>
-<H1 align=left><IMG height=55 src="images/redDot.jpg" width=56
-align=center border=0> <FONT color=#c0c0c0>Follow the Red Dot </FONT></H1>
-<P>Welcome to the <B><FONT color=#800000>Red Dot</FONT> </B>update site. Use
-your Eclipse <B>Update Sites</B> view to locate the feature version you want to
-install or update to.</P>
-<H2>About Red Dot Feature</H2>
-<P>Our revolutionary Red Dot Eclipse feature changed all preconceptions about
-what Eclipse features can and cannot do. Using our strikingly simple concept of
-adding buttons to the Eclipse tool bar, we allow you to open dialogs that show
-you the version of the Red Dot feature. The beauty of the concept stems from its
-simplicity, ease of use, high performance and small footprint. Never before was
-it so easy to press a button on the tool bar to get some text shown in the
-dialog.</P>
-<H2>News</H2>
-<UL>
- <LI><B>November 2001</B> - version 2.0.0 of the Red Dot feature is available
- for download. This version brings improvements across the board, further
- strengthening an already established Eclipse feature classic. Improvements
- will be visible the moment you update your feature - our famous red dot tool
- bar button is now <B>25% more red</B>, making it even easier to spot among
- other buttons.
- <LI><B>October 2001</B> - version 1.0.0 of the Red Dot feature is available
- for download. Select it in the 'Sites' view of the Update Manager and press
- 'Install' button. </LI></UL>
-<HR>
-<I>Copyright 2001 Red Dot Corporation Ltd. All rights reserved.</I>
-</BODY></HTML>
diff --git a/update/org.eclipse.update.examples/site/plugins/com.reddot.reddot_1.0.0.jar b/update/org.eclipse.update.examples/site/plugins/com.reddot.reddot_1.0.0.jar
deleted file mode 100644
index c88b793..0000000
--- a/update/org.eclipse.update.examples/site/plugins/com.reddot.reddot_1.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.examples/site/plugins/com.reddot.reddot_2.0.0.jar b/update/org.eclipse.update.examples/site/plugins/com.reddot.reddot_2.0.0.jar
deleted file mode 100644
index da31ad3..0000000
--- a/update/org.eclipse.update.examples/site/plugins/com.reddot.reddot_2.0.0.jar
+++ /dev/null
Binary files differ
diff --git a/update/org.eclipse.update.examples/site/site.xml b/update/org.eclipse.update.examples/site/site.xml
deleted file mode 100644
index b091324..0000000
--- a/update/org.eclipse.update.examples/site/site.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<site>
- <description url="info/siteInfo.html"/>
-
- <feature url="features/com.reddot.reddot_1.0.0.jar">
- <category name="reddot"/>
- </feature>
-
- <feature url="features/com.reddot.reddot_2.0.0.jar">
- <category name="reddot"/>
- </feature>
-
- <category-def label="Red Dot Versions" name="reddot">
- <description url="info/RedDotVersions.html">
- This category contains all of the currently available versions of Red Dot feature.
- </description>
- </category-def>
-
-</site>
\ No newline at end of file
diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipConverter.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipConverter.java
deleted file mode 100644
index e81ec2a..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipConverter.java
+++ /dev/null
@@ -1,157 +0,0 @@
-package org.eclipse.update.examples.buildzip;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2002.
- * All Rights Reserved.
- */
-
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.StringBufferInputStream;
-import java.net.URL;
-import java.util.Properties;
-import java.util.jar.JarEntry;
-import java.util.jar.JarOutputStream;
-
-import org.eclipse.update.core.*;
-import org.eclipse.update.core.ContentReference;
-import org.eclipse.update.core.IFeature;
-import org.eclipse.update.core.IFeatureContentProvider;
-import org.eclipse.update.core.IPluginEntry;
-import org.eclipse.update.core.JarContentReference;
-import org.eclipse.update.core.model.InstallAbortedException;
-
-/**
- * Converts eclipse build .zip files into packaged feature
- */
-public class BuildZipConverter {
-
- public static void main(String[] args) {
- if (args.length <=0) {
- System.out.println("Usage: BuildZipConverter <path to the zip file>.\r\nExample: BuildZipConverter d:/download/integration-eclipse-SDK-20020109-win32.zip");
- return;
- }
- try {
- URL buildzip = new URL(("file:"+args[0]).replace(File.separatorChar, '/'));
- BuildZipFeatureFactory factory = new BuildZipFeatureFactory();
- IFeature feature = factory.createFeature(buildzip, null);
- IFeatureContentProvider provider = feature.getFeatureContentProvider();
-
- ContentReference[] refs = provider.getFeatureEntryContentReferences(null);
-
- File site = new File((args[0]+".packaged/").replace('/',File.separatorChar));
- site.mkdirs();
- File featuresDir = new File(site,"features");
- featuresDir.mkdirs();
- File pluginsDir = new File(site, "plugins");
- pluginsDir.mkdirs();
-
- File jarFile = new File(featuresDir,feature.getVersionedIdentifier()+".jar");
- System.out.println("writing feature archive: "+feature.getVersionedIdentifier()+".jar");
- writeJar(jarFile, refs, feature, null, null);
- JarContentReference jar = new JarContentReference("build.zip",buildzip);
- Properties manifest = getBuildManifest(jar);
-
- IPluginEntry[] plugins = feature.getPluginEntries();
- for (int i=0; i<plugins.length; i++) {
- refs = provider.getPluginEntryContentReferences(plugins[i], null);
- jarFile = new File(pluginsDir,plugins[i].getVersionedIdentifier()+".jar");
- System.out.println("writing plugin archive: "+plugins[i].getVersionedIdentifier()+".jar");
- writeJar(jarFile, refs, feature, plugins[i].getVersionedIdentifier().getIdentifier(), manifest);
- }
-
- writeSiteManifest(site, feature);
- } catch(Exception e) {
- e.printStackTrace();
- }
- }
-
- public static void writeJar(File jarFile,ContentReference[] refs, IFeature feature, String pluginId, Properties manifest) {
-
- JarOutputStream jos = null;
- FileOutputStream os = null;
- InputStream is = null;
-
- try {
- os = new FileOutputStream(jarFile);
- jos = new JarOutputStream(os);
- JarEntry entry = null;
- String buf = null;
- StringBufferInputStream sbis = null;
-
- // write jar manifest (first entry in output stream)
- buf = "Manifest-Version: 1.0\nCreated-By: 2.0.0 (www.eclipse.org Feature Packager)\n";
- sbis = new StringBufferInputStream(buf);
- entry = new JarEntry("META-INF/MANIFEST.MF");
- jos.putNextEntry(entry);
- Utilities.copy(sbis,jos,null);
- sbis.close();
-
- // jar up the references
- for (int i=0; i<refs.length; i++) {
- String id = refs[i].getIdentifier();
- entry = new JarEntry(id);
- jos.putNextEntry(entry);
- is = refs[i].getInputStream();
- Utilities.copy(is,jos,null);
- is.close(); is = null;
- }
-
- // for plugin jars, write build manifest
- if (pluginId != null && manifest != null) {
- String key = "plugin@"+pluginId;
- String value = manifest.getProperty(key);
- if (value != null) {
- if (value.equals("HEAD")) {
- value += "-" + feature.getVersionedIdentifier().getVersion().getMajorComponent();
- }
- buf = key + "=" + value;
- sbis = new StringBufferInputStream(buf);
- entry = new JarEntry("buildmanifest.properties");
- jos.putNextEntry(entry);
- Utilities.copy(sbis,jos,null);
- sbis.close();
- }
- }
-
- // close jar
- jos.close(); jos = null; os = null;
- } catch(Exception e) {
- e.printStackTrace();
- } finally {
- if (is != null)
- try {is.close();} catch(IOException e) {}
-
- if (jos != null)
- try {jos.close();} catch(IOException e) {}
- else if (os != null)
- try {os.close();} catch(IOException e) {}
- }
- }
-
- public static void writeSiteManifest(File site, IFeature feature) throws IOException, InstallAbortedException {
- File manifest = new File(site, "site.xml");
- FileOutputStream os = new FileOutputStream(manifest);
- String siteXML = "<site>\n <feature url=\"features/"+feature.getVersionedIdentifier().toString()+".jar\"/>\n</site>";
- StringBufferInputStream sbis = new StringBufferInputStream(siteXML);
- Utilities.copy(sbis,os,null);
- os.close();
- sbis.close();
- }
-
- public static Properties getBuildManifest(JarContentReference jar) throws IOException {
- ContentReference manifestEntry = jar.peek("eclipse/buildmanifest.properties",null/*ContentSelector*/, null/*ProgressMonitor*/);
- InputStream is = null;
- Properties props = null;
- try {
- props = new Properties();
- is = manifestEntry.getInputStream();
- props.load(is);
- } finally {
- if (is != null) try{ is.close(); } catch(IOException e) {}
- }
- return props;
- }
-}
diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureContentProvider.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureContentProvider.java
deleted file mode 100644
index a0f1c0e..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureContentProvider.java
+++ /dev/null
@@ -1,256 +0,0 @@
-package org.eclipse.update.examples.buildzip;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2002.
- * All Rights Reserved.
- */
-
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.net.URL;
-import java.util.jar.JarEntry;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.update.core.*;
-import org.eclipse.update.core.ContentReference;
-import org.eclipse.update.core.FeatureContentProvider;
-import org.eclipse.update.core.IFeatureContentProvider;
-import org.eclipse.update.core.INonPluginEntry;
-import org.eclipse.update.core.IPluginEntry;
-import org.eclipse.update.core.IVerifier;
-import org.eclipse.update.core.InstallMonitor;
-import org.eclipse.update.core.JarContentReference;
-import org.eclipse.update.core.JarContentReference.ContentSelector;
-import org.eclipse.update.core.model.FeatureModel;
-import org.eclipse.update.core.model.InstallAbortedException;
-
-/**
- * An example feature content provider. It handles features packaged as
- * build zip's using the format used for integration and stable builds
- * posted on the downloads pages at www.eclipse.org
- * </p>
- * @since 2.0
- */
-
-public class BuildZipFeatureContentProvider extends FeatureContentProvider implements IFeatureContentProvider {
-
- private JarContentReference baseReference;
- private ContentReference generatedFeatureManifest;
- private ContentReference[] featureEntryContentReferences;
- private IPluginEntry currentPluginEntry;
- private INonPluginEntry currentNonPluginEntry;
-
- public BuildZipFeatureContentProvider(URL base) {
- super(base);
- this.baseReference = new JarContentReference("build.zip",base);
- }
-
- /*
- * @see IFeatureContentProvider#getFeatureManifest()
- */
- public ContentReference getFeatureManifestReference(InstallMonitor monitor) throws CoreException {
- if (generatedFeatureManifest == null) {
- throw newCoreException("Feature manifest is not available",null);
- }
- else
- return generatedFeatureManifest;
- }
-
- /*
- * @see IFeatureContentProvider#getArchiveReferences()
- */
- public ContentReference[] getArchiveReferences(InstallMonitor monitor) {
- // the feature and all its plugins files are packaged in a single archive
- return new ContentReference[] { baseReference };
- }
-
- /*
- * @see IFeatureContentProvider#getFeatureEntryArchiveReferences()
- */
- public ContentReference[] getFeatureEntryArchiveReferences(InstallMonitor monitor) {
- // the feature and all its plugins files are packaged in a single archive
- return new ContentReference[] { baseReference };
- }
-
- /*
- * @see IFeatureContentProvider#getPluginEntryArchiveReferences(IPluginEntry)
- */
- public ContentReference[] getPluginEntryArchiveReferences(IPluginEntry pluginEntry, InstallMonitor monitor) {
- // the feature and all its plugins files are packaged in a single archive
- return new ContentReference[] { baseReference };
- }
-
- /*
- * @see IFeatureContentProvider#getNonPluginEntryArchiveReferences(INonPluginEntry)
- */
- public ContentReference[] getNonPluginEntryArchiveReferences(INonPluginEntry nonPluginEntry, InstallMonitor monitor)
- throws CoreException {
- try {
- return peekNonPluginEntryContent(nonPluginEntry,monitor);
- } catch(IOException e) {
- throw newCoreException("Unable to return content for non plugin entry "+nonPluginEntry.getIdentifier(),e);
- }
- }
-
- /*
- * @see IFeatureContentProvider#getFeatureEntryContentReferences()
- */
- public ContentReference[] getFeatureEntryContentReferences(InstallMonitor monitor) {
- if (featureEntryContentReferences == null)
- return new ContentReference[0];
- else
- return featureEntryContentReferences;
- }
-
- /*
- * @see IFeatureContentProvider#getPluginEntryContentReferences(IPluginEntry)
- */
- public ContentReference[] getPluginEntryContentReferences(IPluginEntry pluginEntry, InstallMonitor monitor)
- throws CoreException {
- try {
- return peekPluginEntryContent(pluginEntry, monitor);
- } catch(IOException e) {
- throw newCoreException("Unable to return content for plugin entry "+pluginEntry.getVersionedIdentifier(),e);
- }
- }
-
- public URL getFeatureBaseURL() throws IOException {
- return getWorkingDirectory().toURL();
-
- }
-
- ContentReference getFeatureBuildManifest() throws Exception {
- return baseReference.peek("eclipse/buildmanifest.properties",null/*ContentSelector*/, null/*ProgressMonitor*/);
- }
-
- ContentReference getPluginManifest(String pluginId, boolean isFragment) throws Exception {
- String manifestName = "eclipse/plugins/" + pluginId + "/" + (isFragment ? "fragment.xml" : "plugin.xml");
- return baseReference.peek(manifestName, null/*ContentSelector*/, null/*ProgressMonitor*/);
- }
-
- void unpackFeatureEntryContent(FeatureModel feature, InstallMonitor monitor) throws IOException, InstallAbortedException {
-
- // define selector for feature entry files
- ContentSelector selector = new ContentSelector() {
- public boolean include(JarEntry jarEntry) {
- if (jarEntry.isDirectory())
- return false;
- String entry = jarEntry.getName();
- if (entry.startsWith("eclipse/readme/"))
- return true;
- else if (entry.startsWith("eclipse/splash/"))
- return true;
- else if (entry.startsWith("eclipse/") && entry.indexOf("/",8)==-1 && entry.endsWith(".html"))
- return true;
- else
- return false;
- }
- public String defineIdentifier(JarEntry jarEntry) {
- String entry = jarEntry.getName();
- if (entry.startsWith("eclipse/"))
- return entry.substring(8);
- else
- return entry;
- }
- };
-
- // unpack feature entry files
- File tmpDir = getWorkingDirectory();
- ContentReference[] refs = baseReference.unpack(tmpDir, selector, monitor);
-
- // write out feature manifest (feature.xml);
- File manifest = Utilities.createLocalFile(tmpDir,"feature.xml");
- ContentReference manifestReference = new ContentReference("feature.xml", manifest);
- DefaultModelWriter w = new DefaultModelWriter(feature);
- FileOutputStream os = null;
- try {
- os = new FileOutputStream(manifest);
- w.writeFeatureManifest(os);
- } finally {
- if (os != null) try { os.close(); } catch(IOException e) {}
- }
- this.generatedFeatureManifest = manifestReference;
-
- // save references (newly-written feature.xml plus rest of selected feature files)
- ContentReference[] allRefs = new ContentReference[refs.length+1];
- allRefs[0] = manifestReference;
- System.arraycopy(refs,0,allRefs,1,refs.length);
- featureEntryContentReferences = allRefs;
- }
-
- ContentReference[] peekPluginEntryContent(IPluginEntry plugin, InstallMonitor monitor) throws IOException {
-
- // define selector for plugin entry files
- ContentSelector selector = new ContentSelector() {
- public boolean include(JarEntry jarEntry) {
- if (jarEntry.isDirectory())
- return false;
- String entry = jarEntry.getName();
- String id = currentPluginEntry.getVersionedIdentifier().getIdentifier();
- if (id==null)
- return false;
- else if (entry.startsWith("eclipse/plugins/"+id+"/"))
- return true;
- else
- return false;
- }
- public String defineIdentifier(JarEntry jarEntry) {
- String entry = jarEntry.getName();
- int ix = entry.indexOf("/",16);
- if (ix != -1) {
- return entry.substring(ix+1);
- } else {
- return entry;
- }
- }
- };
-
- // unpack plugin entry files
- currentPluginEntry = plugin;
- return baseReference.peek(selector, monitor);
- }
-
- ContentReference[] peekNonPluginEntryContent(INonPluginEntry data, InstallMonitor monitor) throws IOException {
-
- // define selector for non plugin entry files
- ContentSelector selector = new ContentSelector() {
- public boolean include(JarEntry jarEntry) {
- if (jarEntry.isDirectory())
- return false;
- String entry = jarEntry.getName();
- String id = currentNonPluginEntry.getIdentifier();
- if (!id.equals("root"))
- return false;
- else if (!entry.startsWith("eclipse/plugins/"))
- return true;
- else
- return false;
- }
- public String defineIdentifier(JarEntry jarEntry) {
- String entry = jarEntry.getName();
- if (entry.startsWith("eclipse/"))
- return entry.substring(8);
- else
- return entry;
- }
- };
-
- // unpack non plugin entry files
- currentNonPluginEntry = data;
- return baseReference.peek(selector, monitor);
- }
-
- private CoreException newCoreException(String s, Throwable e) throws CoreException {
- return new CoreException(new Status(IStatus.ERROR,"org.eclipse.update.examples",0,s,e));
- }
- /*
- * @see IFeatureContentProvider#getVerifier()
- */
- public IVerifier getVerifier() throws CoreException {
- return null;
- }
-
-}
diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureFactory.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureFactory.java
deleted file mode 100644
index d6150b7..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-package org.eclipse.update.examples.buildzip;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2002.
- * All Rights Reserved.
- */
-
-import java.net.URL;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.update.core.BaseFeatureFactory;
-import org.eclipse.update.core.Feature;
-import org.eclipse.update.core.IFeature;
-import org.eclipse.update.core.IFeatureFactory;
-import org.eclipse.update.core.ISite;
-import org.eclipse.update.core.model.FeatureModel;
-
-/**
- * An example feature factory based on the packaging
- * format used for integration and stable builds
- * posted on the downloads pages at www.eclipse.org
- * </p>
- * @since 2.0
- */
-
-public class BuildZipFeatureFactory
- extends BaseFeatureFactory
- implements IFeatureFactory {
-
- /*
- * @see IFeatureFactory#createFeature(URL, ISite, IProgressMonitor)
- */
- public IFeature createFeature(URL url, ISite site, IProgressMonitor monitor) throws CoreException {
- try {
- // create content provider for feature
- BuildZipFeatureContentProvider cp = new BuildZipFeatureContentProvider(url);
- Feature feature = null;
-
- // parse the feature
- feature = (Feature) parseFeature(cp);
-
- // initialize feature
- feature.setFeatureContentProvider(cp);
- feature.setSite(site);
- feature.resolve(cp.getFeatureBaseURL(), null);
- feature.markReadOnly();
- return feature;
- } catch (Exception e) {
- throw new CoreException(new Status(IStatus.ERROR,"org.eclipse.update.examples.buildzip",0,"Unable to create feature",e));
- }
- }
-
- /*
- * parse the build zip to reconstruct a feature model
- */
- public FeatureModel parseFeature(BuildZipFeatureContentProvider cp) throws Exception {
- return (new BuildZipFeatureParser(this)).parse(cp);
- }
-
-}
diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureParser.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureParser.java
deleted file mode 100644
index 6748ded..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipFeatureParser.java
+++ /dev/null
@@ -1,203 +0,0 @@
-package org.eclipse.update.examples.buildzip;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2002.
- * All Rights Reserved.
- */
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.URLDecoder;
-import java.util.Enumeration;
-import java.util.Properties;
-import java.util.StringTokenizer;
-
-import org.eclipse.core.runtime.PluginVersionIdentifier;
-import org.eclipse.update.core.ContentReference;
-import org.eclipse.update.core.model.FeatureModel;
-import org.eclipse.update.core.model.PluginEntryModel;
-import org.eclipse.update.core.model.URLEntryModel;
-
-/**
- * An example feature parser. It handles features packaged as
- * build zip's using the format used for integration and stable builds
- * posted on the downloads pages at www.eclipse.org
- * </p>
- * @since 2.0
- */
-
-public class BuildZipFeatureParser {
-
- private BuildZipFeatureFactory factory;
- private BuildZipPluginParser pluginParser;
-
- public BuildZipFeatureParser(BuildZipFeatureFactory factory) {
- this.factory = factory;
- }
-
- public FeatureModel parse(BuildZipFeatureContentProvider cp) throws Exception {
- return parseFeature(cp);
- }
-
- private FeatureModel parseFeature(BuildZipFeatureContentProvider cp) throws Exception {
-
- // get reference to the build manifest
- ContentReference manifestRef = cp.getFeatureBuildManifest();
- InputStream is = manifestRef.getInputStream();
-
- // load buildmanifest.properties
- Properties manifest = new Properties();
- try {
- manifest.load(is);
- } finally {
- if (is!=null) try { is.close(); } catch(IOException e) {}
- }
-
- // populate feature model
- FeatureModel feature = factory.createFeatureModel();
- parseFeatureEntry(cp, feature, manifest);
-
- // parse plugin entries
- parsePluginEntries(cp, feature, manifest);
-
- // parse non-plugin entries
- parseNonPluginEntries(cp, feature, manifest);
-
- // unpack feature entry content
- cp.unpackFeatureEntryContent(feature, null/*IProgressMonitor*/);
-
- return feature;
- }
-
- private void parseFeatureEntry(BuildZipFeatureContentProvider cp, FeatureModel feature, Properties manifest) throws Exception {
-
- // parse out build zip file name. It is assumed to be in the
- // form <package identifier>-<build date>-<target platform>.zip,
- // where
- // <package identifier> is hyphen (-) separaterd token list
- // <build date> is single all-numeric token
- // <target platform> is hyphen (-) separaterd token list
-
- String pkgId = "";
- String target = "";
- String build = "";
- String state = "ID";
- boolean firstToken = true;
- String zipName = URLDecoder.decode(cp.getURL().getFile());
- int ix = zipName.lastIndexOf("/");
- if (ix != -1)
- zipName = zipName.substring(ix+1);
- if (zipName.endsWith(".zip")) {
- zipName = zipName.substring(0,zipName.length()-4);
- }
- StringTokenizer tokenizer = new StringTokenizer(zipName,"-",false);
- String token;
- while(tokenizer.hasMoreTokens()) {
- token = tokenizer.nextToken();
- try {
- Long.parseLong(token);
- state = "TARGET";
- target = "";
- firstToken = true;
- build = token+".0.0";
- } catch (NumberFormatException e) {
- if (state.equals("ID")) {
- pkgId += (firstToken ? "" : " ") + token;
- } else {
- target += (firstToken ? "" : " ") + token;
- }
- firstToken = false;
- }
- }
-
- // generate base feature attributes
- feature.setFeatureIdentifier(pkgId.replace(' ','.'));
- feature.setFeatureVersion(build);
- feature.setLabel(pkgId.substring(0,1).toUpperCase() + pkgId.substring(1) + " for " + target);
- feature.setProvider("www.eclipse.org");
- feature.setImageURLString("splash/splash_full.bmp");
- feature.setOS(target.replace(' ','-'));
-
- // add description
- URLEntryModel description = factory.createURLEntryModel();
- description.setURLString("readme/readme.html");
- description.setAnnotation("x");
- feature.setDescriptionModel(description);
-
- // add license
- URLEntryModel license = factory.createURLEntryModel();
- license.setURLString("about.html");
- license.setAnnotation("You must view the full license by following the \"License\" link in the feature preview.\nSelecting \"Accept\" indicates that you have viewed and accepted the feature license.");
- feature.setLicenseModel(license);
-
- // add copyright
- URLEntryModel copyright = factory.createURLEntryModel();
- copyright.setURLString("notice.html");
- copyright.setAnnotation("x");
- feature.setCopyrightModel(copyright);
- }
-
- private void parsePluginEntries(BuildZipFeatureContentProvider cp, FeatureModel feature, Properties manifest) throws Exception {
-
- Enumeration entries = manifest.keys();
- String plugin;
- String pluginId;
- String pluginVersion;
- String pluginBuildVersion;
- PluginEntryModel pluginEntry;
- while(entries.hasMoreElements()) {
- plugin = (String) entries.nextElement();
- if (plugin.startsWith("plugin@")) {
- pluginId = plugin.substring(7);
- pluginBuildVersion = manifest.getProperty(plugin);
- if (pluginBuildVersion.equals("HEAD")) {
- String featureVersion = feature.getFeatureVersion();
- int ix = featureVersion.indexOf(".");
- String featureMajor = ix==-1 ? featureVersion : featureVersion.substring(0,ix);
- pluginBuildVersion += "-" + featureMajor;
- }
- pluginEntry = factory.createPluginEntryModel();
- pluginVersion = parsePluginVersionInManifest(cp, pluginId, pluginEntry);
- if (pluginVersion != null) {
- pluginEntry.setPluginIdentifier(pluginId);
- pluginEntry.setPluginVersion((new PluginVersionIdentifier(pluginVersion)).toString()+"."+pluginBuildVersion);
- feature.addPluginEntryModel(pluginEntry);
- }
- }
- }
- }
-
- private void parseNonPluginEntries(BuildZipFeatureContentProvider cp, FeatureModel feature, Properties manifest) throws Exception {
- // NonPluginEntryModel nonPluginEntry = factory.createNonPluginEntryModel();
- // nonPluginEntry.setIdentifier("root");
- // feature.addNonPluginEntryModel(nonPluginEntry);
- }
-
- private String parsePluginVersionInManifest(BuildZipFeatureContentProvider cp, String pluginId, PluginEntryModel pluginEntry) {
-
- if (pluginParser == null)
- pluginParser = new BuildZipPluginParser();
-
- InputStream is = null;
- ContentReference pluginManifest;
- try {
- // try plugin.xml
- pluginManifest = cp.getPluginManifest(pluginId, false);
- is = pluginManifest.getInputStream();
- return pluginParser.parse(is);
- } catch (Exception e) {
- try {
- // retry with feature.xml
- pluginManifest = cp.getPluginManifest(pluginId, true);
- is = pluginManifest.getInputStream();
- String result = pluginParser.parse(is);
- pluginEntry.isFragment(true);
- return result;
- } catch (Exception e2) {
- return null;
- }
- } finally {
- if (is != null) try { is.close(); } catch (IOException e) {}
- }
- }
-}
diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipPluginParser.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipPluginParser.java
deleted file mode 100644
index 90e1d1f..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipPluginParser.java
+++ /dev/null
@@ -1,85 +0,0 @@
-package org.eclipse.update.examples.buildzip;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2002.
- * All Rights Reserved.
- */
-
-import java.io.IOException;
-import java.io.InputStream;
-
-import org.apache.xerces.parsers.SAXParser;
-import org.xml.sax.Attributes;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-import org.xml.sax.helpers.DefaultHandler;
-
-/**
- * Parse default feature.xml
- */
-
-public class BuildZipPluginParser extends DefaultHandler {
-
- private SAXParser parser;
- private String version;
-
- private static final String PLUGIN = "plugin";
- private static final String FRAGMENT = "fragment";
- private static final String ID = "id";
- private static final String VERSION = "version";
-
- private class ParseCompleteException extends SAXException {
- public ParseCompleteException(String arg0) {
- super(arg0);
- }
- }
-
- /**
- * Constructor for DefaultFeatureParser
- */
- public BuildZipPluginParser() {
- super();
- this.parser = new SAXParser();
- this.parser.setContentHandler(this);
- }
-
- /**
- * @since 2.0
- */
- public synchronized String parse(InputStream in) throws SAXException, IOException {
- try {
- version = null;
- parser.parse(new InputSource(in));
- } catch(ParseCompleteException e) {
- }
- return version;
- }
-
- /**
- * @see DefaultHandler#startElement(String, String, String, Attributes)
- */
- public void startElement(String uri, String localName,String qName, Attributes attributes) throws SAXException {
-
- String tag = localName.trim();
-
- if (tag.equalsIgnoreCase(PLUGIN)) {
- processPlugin(attributes);
- return;
- }
-
- if (tag.equalsIgnoreCase(FRAGMENT)) {
- processPlugin(attributes);
- return;
- }
- }
-
- /**
- * process plugin entry info
- */
- private void processPlugin(Attributes attributes) throws ParseCompleteException {
- version = attributes.getValue("version");
- throw new ParseCompleteException("");
- }
-}
-
-
diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipSiteContentProvider.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipSiteContentProvider.java
deleted file mode 100644
index 05ec032..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipSiteContentProvider.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package org.eclipse.update.examples.buildzip;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2002.
- * All Rights Reserved.
- */
-
-import java.net.URL;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.update.core.SiteContentProvider;
-
-public class BuildZipSiteContentProvider extends SiteContentProvider {
-
- /**
- * Constructor for SiteContentProvider.
- */
- public BuildZipSiteContentProvider(URL url) {
- super(url);
- }
-
- /*
- * @see ISiteContentProvider#getArchiveReference(String)
- */
- public URL getArchiveReference(String id) throws CoreException {
- // build zip features do not have associated archives
- // the zip file also contains the archives files
- return null;
- }
-
-}
diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipSiteFactory.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipSiteFactory.java
deleted file mode 100644
index df9196b..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/BuildZipSiteFactory.java
+++ /dev/null
@@ -1,85 +0,0 @@
-package org.eclipse.update.examples.buildzip;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2002.
- * All Rights Reserved.
- */
-
-import java.io.File;
-import java.io.FileFilter;
-import java.io.IOException;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.net.URLDecoder;
-import java.util.zip.ZipEntry;
-import java.util.zip.ZipFile;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.update.core.*;
-import org.eclipse.update.core.BaseSiteFactory;
-import org.eclipse.update.core.ISite;
-import org.eclipse.update.core.Site;
-import org.eclipse.update.core.model.InvalidSiteTypeException;
-import org.eclipse.update.core.model.CategoryModel;
-
-public class BuildZipSiteFactory extends BaseSiteFactory {
-
- /*
- * @see ISiteFactory#createSite(URL)
- */
- public ISite createSite(URL url) throws CoreException,InvalidSiteTypeException {
-
- Site site = null;
-
- // create site and add category
- site = (Site) createSiteMapModel();
- CategoryModel category = createSiteCategoryModel();
- category.setName("eclipse-builds");
- category.setLabel("Eclipse Builds");
- site.addCategoryModel(category);
-
- // set content provider
- BuildZipSiteContentProvider contentProvider = new BuildZipSiteContentProvider(url);
- site.setSiteContentProvider(contentProvider);
-
- // get all matching zip files on the site
- FileFilter filter = new FileFilter() {
- public boolean accept(File file) {
- if (file.getName().endsWith(".zip")) {
- try {
- ZipFile zip = new ZipFile(file);
- ZipEntry entry = zip.getEntry("eclipse/buildmanifest.properties");
- if (entry == null)
- return false;
- else
- return true;
- } catch (IOException e) {
- return false;
- }
- } else
- return false;
- }
- };
- File file = new File(URLDecoder.decode(url.getFile()));
- File[] zips = file.listFiles(filter);
-
- // create a reference for each matching zip
- SiteFeatureReferenceModel ref = null;
- for (int i = 0; zips != null && i < zips.length; i++) {
- ref = createFeatureReferenceModel();
- ref.setType("org.eclipse.update.examples.zip");
- ref.setSiteModel(site);
- ref.setURLString("file:" + zips[i].getAbsolutePath());
- ref.setCategoryNames(new String[] { "eclipse-builds" });
- site.addFeatureReferenceModel(ref);
- }
- try {
- site.resolve(url, null); // resolve any URLs relative to the site
- } catch (MalformedURLException e){
- throw Utilities.newCoreException("",e);
- }
-
- return site;
- }
-
-}
\ No newline at end of file
diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/DefaultModelWriter.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/DefaultModelWriter.java
deleted file mode 100644
index 9ca8bc4..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/DefaultModelWriter.java
+++ /dev/null
@@ -1,228 +0,0 @@
-package org.eclipse.update.examples.buildzip;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2002.
- * All Rights Reserved.
- */
-
-import java.io.OutputStream;
-import java.io.PrintWriter;
-
-import org.eclipse.update.core.model.*;
-
-/**
- * Write standard feature manifest (feature.xml) from model.
- * </p>
- * @since 2.0
- */
-
-public class DefaultModelWriter {
-
- private FeatureModel feature;
-
- /**
- * @since 2.0
- */
- public DefaultModelWriter(FeatureModel feature) {
- this.feature = feature;
- }
-
- /**
- * @since 2.0
- */
- public void writeFeatureManifest(OutputStream os) {
- PrintWriter w = new PrintWriter(os);
- writeFeature(w,0,feature);
- w.flush();
- }
-
- private void writeFeature(PrintWriter w, int level, FeatureModel feature) {
- if (feature == null) return;
-
- String in = getIndent(level);
- w.println(in+"<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
-
- w.println(in+"<feature");
- if (feature.getFeatureIdentifier()!=null)
- w.println(in+" "+"id=\""+feature.getFeatureIdentifier()+"\"");
- if (feature.getFeatureVersion()!=null)
- w.println(in+" "+"version=\""+feature.getFeatureVersion()+"\"");
- if (feature.getLabelNonLocalized()!=null)
- w.println(in+" "+"label=\""+feature.getLabelNonLocalized()+"\"");
- if (feature.getProviderNonLocalized()!=null)
- w.println(in+" "+"provider-name=\""+feature.getProviderNonLocalized()+"\"");
- if (feature.getImageURLString()!=null)
- w.println(in+" "+"image=\""+feature.getImageURLString()+"\"");
- if (feature.getOS()!=null)
- w.println(in+" "+"os=\""+feature.getOS()+"\"");
- if (feature.getWS()!=null)
- w.println(in+" "+"ws=\""+feature.getWS()+"\"");
- if (feature.getNL()!=null)
- w.println(in+" "+"nl=\""+feature.getNL()+"\"");
- if (feature.getApplication()!=null)
- w.println(in+" "+"application=\""+feature.getApplication()+"\"");
- w.println(in+" "+">");
-
- writeDescription(w, level+1, feature.getDescriptionModel());
- writeCopyright(w, level+1, feature.getCopyrightModel());
- writeLicense(w, level+1, feature.getLicenseModel());
- writeURLs(w, level+1, feature);
- writePrereqs(w, level+1, feature);
- writePluginEntries(w, level+1, feature);
- writeNonPluginEntries(w, level+1, feature);
-
- w.println("");
- w.println(in+"</feature>");
- }
-
- private void writeDescription(PrintWriter w, int level, URLEntryModel ue) {
- writeDescriptionEntry(w,level, ue, "description");
- }
-
- private void writeCopyright(PrintWriter w, int level, URLEntryModel ue) {
- writeDescriptionEntry(w,level, ue, "copyright");
- }
-
- private void writeLicense(PrintWriter w, int level, URLEntryModel ue) {
- writeDescriptionEntry(w,level, ue, "license");
- }
-
- private void writeDescriptionEntry(PrintWriter w, int level, URLEntryModel ue, String tag) {
- if (ue == null) return;
- String url = ue.getURLString();
- String txt = ue.getAnnotationNonLocalized();
- if (url==null && txt==null) return;
-
- String in = getIndent(level);
- w.println("");
- if (url==null)
- w.println(in+"<"+tag+">");
- else {
- w.print(in+"<"+tag+" url=\""+ue.getURLString()+"\"");
- if (txt==null)
- w.println("/>");
- else
- w.println(">");
- }
- if (txt!=null) {
- w.println(in + txt);
- w.println(in+"</"+tag+">");
- }
- }
-
- private void writeURLs(PrintWriter w, int level, FeatureModel feature) {
- URLEntryModel update = feature.getUpdateSiteEntryModel();
- URLEntryModel[] discovery = feature.getDiscoverySiteEntryModels();
- if (update == null && (discovery == null || discovery.length==0)) return;
-
- String in = getIndent(level);
- String in2 = getIndent(level+1);
- w.println("");
- w.println(in+"<url>");
-
- if (update != null) {
- w.println(in2+"<update");
- if (update.getURLString()!=null)
- w.println(in2+" "+"url=\""+update.getURLString()+"\"");
- if (update.getAnnotationNonLocalized()!=null)
- w.println(in2+" "+"label=\""+update.getAnnotationNonLocalized()+"\"");
- w.println(in2+" "+"/>");
- }
-
- for (int i=0; discovery!=null && i<discovery.length; i++) {
- w.println(in2+"<discovery");
- if (discovery[i].getURLString()!=null)
- w.println(in2+" "+"url=\""+discovery[i].getURLString()+"\"");
- if (discovery[i].getAnnotationNonLocalized()!=null)
- w.println(in2+" "+"label=\""+discovery[i].getAnnotationNonLocalized()+"\"");
- w.println(in2+" "+"/>");
- }
-
- w.println(in+"</url>");
- }
-
- private void writePrereqs(PrintWriter w, int level, FeatureModel feature) {
- ImportModel[] imp = feature.getImportModels();
- if (imp == null || imp.length == 0) return;
-
- String in = getIndent(level);
- String in2 = getIndent(level+1);
- w.println("");
- w.println(in+"<requires>");
-
- for (int i=0; imp!=null && i<imp.length; i++) {
- w.println(in2+"<import");
- if (imp[i].getIdentifier()!=null)
- w.println(in2+" "+"plugin=\""+imp[i].getIdentifier()+"\"");
- if (imp[i].getVersion()!=null)
- w.println(in2+" "+"version=\""+imp[i].getVersion()+"\"");
- if (imp[i].getMatchingRuleName()!=null)
- w.println(in2+" "+"match=\""+imp[i].getMatchingRuleName()+"\"");
- w.println(in2+" "+"/>");
- }
-
- w.println(in+"</requires>");
- }
-
- private void writePluginEntries(PrintWriter w, int level, FeatureModel feature) {
- PluginEntryModel[] plugin = feature.getPluginEntryModels();
- if (plugin == null || plugin.length == 0) return;
-
- String in = getIndent(level);
- w.println("");
-
- for (int i=0; i<plugin.length; i++) {
- w.println(in+"<plugin");
- if (plugin[i].getPluginIdentifier()!=null)
- w.println(in+" "+"id=\""+plugin[i].getPluginIdentifier()+"\"");
- if (plugin[i].getPluginVersion()!=null)
- w.println(in+" "+"version=\""+plugin[i].getPluginVersion()+"\"");
- if (plugin[i].isFragment())
- w.println(in+" "+"fragment=\""+plugin[i].isFragment()+"\"");
- if (plugin[i].getOS()!=null)
- w.println(in+" "+"os=\""+plugin[i].getOS()+"\"");
- if (plugin[i].getWS()!=null)
- w.println(in+" "+"ws=\""+plugin[i].getWS()+"\"");
- if (plugin[i].getNL()!=null)
- w.println(in+" "+"nl=\""+plugin[i].getNL()+"\"");
- if (plugin[i].getDownloadSize()!=ContentEntryModel.UNKNOWN_SIZE)
- w.println(in+" "+"download-size=\""+plugin[i].getDownloadSize()+"\"");
- if (plugin[i].getInstallSize()!=ContentEntryModel.UNKNOWN_SIZE)
- w.println(in+" "+"install-size=\""+plugin[i].getInstallSize()+"\"");
- w.println(in+" "+"/>");
- }
- }
-
- private void writeNonPluginEntries(PrintWriter w, int level, FeatureModel feature) {
- NonPluginEntryModel[] data = feature.getNonPluginEntryModels();
- if (data == null || data.length == 0) return;
-
- String in = getIndent(level);
- w.println("");
-
- for (int i=0; i<data.length; i++) {
- w.println(in+"<data");
- if (data[i].getIdentifier()!=null)
- w.println(in+" "+"id=\""+data[i].getIdentifier()+"\"");
- if (data[i].getOS()!=null)
- w.println(in+" "+"os=\""+data[i].getOS()+"\"");
- if (data[i].getWS()!=null)
- w.println(in+" "+"ws=\""+data[i].getWS()+"\"");
- if (data[i].getNL()!=null)
- w.println(in+" "+"nl=\""+data[i].getNL()+"\"");
- if (data[i].getDownloadSize()!=ContentEntryModel.UNKNOWN_SIZE)
- w.println(in+" "+"download-size=\""+data[i].getDownloadSize()+"\"");
- if (data[i].getInstallSize()!=ContentEntryModel.UNKNOWN_SIZE)
- w.println(in+" "+"install-size=\""+data[i].getInstallSize()+"\"");
- w.println(in+" "+"/>");
- }
- }
-
-
- private String getIndent(int level) {
- String indent = "";
- for (int i=0; i<level; i++)
- indent += " ";
- return indent;
- }
-}
diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/Test.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/Test.java
deleted file mode 100644
index 1e189df..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/Test.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package org.eclipse.update.examples.buildzip;
-
-/*
- * (c) Copyright IBM Corp. 2000, 2002.
- * All Rights Reserved.
- */
-
-import java.net.URL;
-
-import org.eclipse.update.core.*;
-
-/**
- * unit test harness
- */
-
-public class Test {
-
- public static void main(String[] args) {
-
- try {
- URL url = new URL("file:d:/downloads/eclipse 2.0/integration-eclipse-SDK-20020109-win32.zip");
- BuildZipFeatureFactory factory = new BuildZipFeatureFactory();
- Feature feature = (Feature) factory.createFeature(url,null/*ISite*/);
- DefaultModelWriter w = new DefaultModelWriter(feature);
- w.writeFeatureManifest(System.out);
-
- System.out.println("");
- System.out.println("Feature entry references");
- ContentReference[] refs = feature.getFeatureContentProvider().getFeatureEntryContentReferences(null);
- for (int i=0; i< refs.length; i++) {
- System.out.println(" "+refs[i].getIdentifier());
- }
-
- System.out.println("");
- System.out.println("Plug-in entry references");
- IPluginEntry[] entry = feature.getPluginEntries();
- refs = feature.getFeatureContentProvider().getPluginEntryContentReferences(entry[0], null);
- for (int i=0; i< refs.length; i++) {
- System.out.println(" "+refs[i].getIdentifier());
- }
-
- System.out.println("");
- System.out.println("Non-plug-in entry references");
- INonPluginEntry[] data = feature.getNonPluginEntries();
- refs = feature.getFeatureContentProvider().getNonPluginEntryArchiveReferences(data[0], null);
- for (int i=0; i< refs.length; i++) {
- System.out.println(" "+refs[i].getIdentifier());
- }
-
- System.out.println("Done ...");
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-}
diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/java.page.jpage b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/java.page.jpage
deleted file mode 100644
index 6cb24bd..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/buildzip/java.page.jpage
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-java.util.Properties p = System.getProperties();
-java.util.Enumeration keys = p.keys();
-while (keys.hasMoreElements()) {
- String key = (String)keys.nextElement();
- System.out.println(key + " = " + (String)p.get(key));
-}
-
-
-
-
-
-String fileName = "d:\\downloads\\eclipse 2.0\\integration-eclipse-SDK-20020109-win32.zip";
-java.io.File archiveFile = new java.io.File(fileName);
-java.util.jar.JarFile jarArchive = new java.util.jar.JarFile(archiveFile);
-java.util.jar.JarEntry entry;
-java.util.Enumeration entries = jarArchive.entries();
-while(entries.hasMoreElements()) {
- entry = (java.util.jar.JarEntry) entries.nextElement();
- System.out.println(entry.getName());
-}
-
-
-String a = "223";
-String b = "123";
-a.compareTo(b);
-
-
-org.eclipse.update.core.Version v1 =
- new org.eclipse.update.core.Version(1,2,3,"build 127J");
-org.eclipse.update.core.Version v2 =
- new org.eclipse.update.core.Version(1,2,3,"build 127J");
-v1.compare(v2);
-
-
-java.io.File f = new java.io.File("d:\\downloads\\eclipse 2.0\\x\\");
-f.isDirectory();
-
-
-String s = "hello";
-Object a = java.lang.reflect.Array.newInstance(s.getClass(),0);
-System.out.println(a.getClass().getName());
-
-
diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/freeform/FreeFormSiteContentProvider.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/freeform/FreeFormSiteContentProvider.java
deleted file mode 100644
index 2cbeab4..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/freeform/FreeFormSiteContentProvider.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.eclipse.update.examples.freeform;
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.update.core.SiteContentProvider;
-
-public class FreeFormSiteContentProvider extends SiteContentProvider {
-
- /**
- * Constructor for SiteContentProvider.
- */
- public FreeFormSiteContentProvider(URL url) {
- super(url);
- }
-
- /*
- * @see ISiteContentProvider#getArchiveReference(String)
- */
- public URL getArchiveReference(String id) throws CoreException {
- try {
- return new URL(getURL(),id);
- } catch(MalformedURLException e) {
- throw newCoreException("Unable to return archive URL",e);
- }
- }
-
- private CoreException newCoreException(String s, Throwable e) throws CoreException {
- return new CoreException(new Status(IStatus.ERROR,"org.eclipse.update.examples",0,s,e));
- }
-
-}
diff --git a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/freeform/FreeFormSiteFactory.java b/update/org.eclipse.update.examples/src/org/eclipse/update/examples/freeform/FreeFormSiteFactory.java
deleted file mode 100644
index cb3c7fc..0000000
--- a/update/org.eclipse.update.examples/src/org/eclipse/update/examples/freeform/FreeFormSiteFactory.java
+++ /dev/null
@@ -1,69 +0,0 @@
-package org.eclipse.update.examples.freeform;
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.update.core.*;
-import org.eclipse.update.core.BaseSiteFactory;
-import org.eclipse.update.core.ISite;
-import org.eclipse.update.core.Site;
-import org.eclipse.update.core.model.InvalidSiteTypeException;
-import org.eclipse.update.core.model.URLEntryModel;
-
-public class FreeFormSiteFactory extends BaseSiteFactory {
-
- /*
- * @see ISiteFactory#createSite(URL)
- */
- public ISite createSite(URL url)
- throws CoreException, InvalidSiteTypeException {
-
- // Create site
- Site site = null;
- InputStream is = null;
- try {
- is = url.openStream();
- site = (Site) parseSite(is);
-
- URLEntryModel realSiteRef = site.getDescriptionModel();
- if (realSiteRef == null)
- throw Utilities.newCoreException(
- "Unable to obtain update site reference",
- null);
- String siteURLString = realSiteRef.getURLString();
- if (siteURLString == null)
- throw Utilities.newCoreException(
- "Unable to obtain update site reference",
- null);
- URL siteURL = new URL(siteURLString);
- FreeFormSiteContentProvider contentProvider =
- new FreeFormSiteContentProvider(siteURL);
- site.setSiteContentProvider(contentProvider);
- site.resolve(siteURL, null); // resolve any URLs relative to the site
-
- } catch (MalformedURLException e){
- throw Utilities.newCoreException("Unable to create URL",e);
- } catch (IOException e){
- throw Utilities.newCoreException("Unable to access URL",e);
- } finally {
- if (is != null)
- try {
- is.close();
- } catch (IOException e) {
- }
- }
-
- return site;
- }
-
- /*
- * @see SiteModelFactory#canParseSiteType(String)
- */
- public boolean canParseSiteType(String type) {
- return type != null
- && type.equals("org.eclipse.update.examples.site.freeform");
- }
-
-}
\ No newline at end of file
diff --git a/update/org.eclipse.update.ui.forms/.project b/update/org.eclipse.update.ui.forms/.project
deleted file mode 100644
index 8540f9e..0000000
--- a/update/org.eclipse.update.ui.forms/.project
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.update.ui.forms</name>
- <comment></comment>
- <projects>
- <project>org.eclipse.core.boot</project>
- <project>org.eclipse.core.runtime.compatibility</project>
- <project>org.eclipse.ui</project>
- <project>org.eclipse.ui.ide</project>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.PluginNature</nature>
- </natures>
-</projectDescription>
diff --git a/update/org.eclipse.update.ui.win32/.project b/update/org.eclipse.update.ui.win32/.project
deleted file mode 100644
index eb41f90..0000000
--- a/update/org.eclipse.update.ui.win32/.project
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.update.ui.win32</name>
- <comment></comment>
- <projects>
- <project>org.eclipse.core.boot</project>
- <project>org.eclipse.core.resources</project>
- <project>org.eclipse.core.runtime</project>
- <project>org.eclipse.help</project>
- <project>org.eclipse.ui</project>
- <project>org.eclipse.update.ui.forms</project>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.PluginNature</nature>
- </natures>
-</projectDescription>
diff --git a/update/org.eclipse.update/.project b/update/org.eclipse.update/.project
deleted file mode 100644
index 7560f76..0000000
--- a/update/org.eclipse.update/.project
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.update</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- </buildSpec>
- <natures>
- </natures>
-</projectDescription>