Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

This commit was manufactured by cvs2svn to create tag 'v20050413'.

  • Loading branch information...
commit 0a451968a20dc281d47e6fb78c94fb3ba304ed21 1 parent c840824
ndai authored

Showing 84 changed files with 0 additions and 15,016 deletions. Show diff stats Hide diff stats

  1. +0 7 plugins/org.eclipse.jst.server.generic.core/.classpath
  2. +0 6 plugins/org.eclipse.jst.server.generic.core/.cvsignore
  3. +0 28 plugins/org.eclipse.jst.server.generic.core/.project
  4. +0 12 plugins/org.eclipse.jst.server.generic.core/build.properties
  5. +0 12 plugins/org.eclipse.jst.server.generic.core/plugin.properties
  6. +0 70 plugins/org.eclipse.jst.server.generic.core/plugin.xml
  7. +0 109 plugins/org.eclipse.jst.server.generic.core/schema/genericpublisher.exsd
  8. +0 114 plugins/org.eclipse.jst.server.generic.core/schema/serverdefinition.exsd
  9. +0 230 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/AntPublisher.java
  10. +0 129 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/CorePlugin.java
  11. +0 56 .../org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericPublisher.java
  12. +0 310 ...ins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServer.java
  13. +0 425 ...clipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerBehaviour.java
  14. +0 64 ...pse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerCoreMessages.java
  15. +0 7 ...t.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerCoreMessages.properties
  16. +0 129 ...generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerLaunchConfigurationDelegate.java
  17. +0 130 ...r.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerLaunchableAdapterDelegate.java
  18. +0 129 ....eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerRuntime.java
  19. +0 78 ...server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerRuntimeTargetHandler.java
  20. +0 83 ....generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerSourcePathComputerDelegate.java
  21. +0 35 ...ns/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/PublishManager.java
  22. +0 69 ...e.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/ServerTypeDefinitionManager.java
  23. +0 85 ...ipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/ServerTypeDefinitionUtil.java
  24. +0 73 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/Trace.java
  25. +0 45 ...lipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/util/ExtensionPointUtil.java
  26. +0 35 ...ins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/util/FileUtil.java
  27. +0 188 ...er.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/ArchiveTypeImpl.java
  28. +0 358 ...rver.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/ClasspathImpl.java
  29. +0 301 ...generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/JndiConnectionImpl.java
  30. +0 216 ...r.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/JndiPropertyImpl.java
  31. +0 404 ...ic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/LaunchConfigurationImpl.java
  32. +0 296 ....server.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/ModuleImpl.java
  33. +0 296 ...st.server.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/PortImpl.java
  34. +0 188 ...server.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/ProjectImpl.java
  35. +0 404 ...erver.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/PropertyImpl.java
  36. +0 216 ....generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/PublisherDataImpl.java
  37. +0 268 ...rver.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/PublisherImpl.java
  38. +0 966 ....generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/ServerRuntimeImpl.java
  39. +0 222 ...eric.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/ServerTypeFactoryImpl.java
  40. +0 1,429 ...eric.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/ServerTypePackageImpl.java
  41. +0 333 ...c.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/util/ServerTypeAdapterFactory.java
  42. +0 89 ...e/src/org/eclipse/jst/server/generic/internal/servertype/definition/util/ServerTypeResourceFactoryImpl.java
  43. +0 58 ...ric.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/util/ServerTypeResourceImpl.java
  44. +0 387 ...r.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/util/ServerTypeSwitch.java
  45. +0 174 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/xml/Resolver.java
  46. +0 179 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/xml/XMLUtils.java
  47. +0 84 ...g.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/ArchiveType.java
  48. +0 175 ...org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/Classpath.java
  49. +0 122 ...clipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/JndiConnection.java
  50. +0 83 ....eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/JndiProperty.java
  51. +0 193 ...e.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/LaunchConfiguration.java
  52. +0 137 ...ns/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/Module.java
  53. +0 137 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/Port.java
  54. +0 81 ...s/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/Project.java
  55. +0 196 .../org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/Property.java
  56. +0 120 ...org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/Publisher.java
  57. +0 83 ...eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/PublisherData.java
  58. +0 477 ...eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/ServerRuntime.java
  59. +0 171 ...pse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/ServerTypeFactory.java
  60. +0 1,424 ...pse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/ServerTypePackage.java
  61. +0 127 plugins/org.eclipse.jst.server.generic.core/xsd/ServerTypeDefinitionSchema.xsd
  62. +0 437 plugins/org.eclipse.jst.server.generic.core/xsd/org.eclipse.jst.server.generic.servertype.ecore
  63. +0 87 plugins/org.eclipse.jst.server.generic.core/xsd/servertype.genmodel
  64. +0 132 plugins/org.eclipse.jst.server.generic.core/xsd/servertype.xsd2ecore
  65. +0 5 plugins/org.eclipse.jst.server.generic.modules/.cvsignore
  66. +0 28 plugins/org.eclipse.jst.server.generic.modules/.project
  67. +0 7 plugins/org.eclipse.jst.server.generic.ui/.classpath
  68. +0 5 plugins/org.eclipse.jst.server.generic.ui/.cvsignore
  69. +0 28 plugins/org.eclipse.jst.server.generic.ui/.project
  70. +0 10 plugins/org.eclipse.jst.server.generic.ui/build.properties
  71. BIN  plugins/org.eclipse.jst.server.generic.ui/icons/obj16/lomboz.gif
  72. BIN  plugins/org.eclipse.jst.server.generic.ui/icons/wizban/logo.gif
  73. +0 4 plugins/org.eclipse.jst.server.generic.ui/plugin.properties
  74. +0 62 plugins/org.eclipse.jst.server.generic.ui/plugin.xml
  75. +0 66 ...st.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/GenericLaunchConfigurationTabGroup.java
  76. +0 57 ...se.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/GenericServerEditorPartFactory.java
  77. +0 56 ...jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/GenericServerEditorSectionFactory.java
  78. +0 234 ...st.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/GenericServerRuntimeWizardFragment.java
  79. +0 63 ...g.eclipse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/GenericServerUIMessages.java
  80. +0 7 ...pse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/GenericServerUIMessages.properties
  81. +0 160 ...lipse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/GenericServerWizardFragment.java
  82. +0 114 plugins/org.eclipse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/GenericUiPlugin.java
  83. +0 73 ...rver.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/ServerDefinitionTypeAwareWizardFragment.java
  84. +0 329 ...eclipse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/ServerTypeDefinitionGroup.java
7 plugins/org.eclipse.jst.server.generic.core/.classpath
... ... @@ -1,7 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<classpath>
3   - <classpathentry kind="src" path="src"/>
4   - <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5   - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
6   - <classpathentry kind="output" path="bin"/>
7   -</classpath>
6 plugins/org.eclipse.jst.server.generic.core/.cvsignore
... ... @@ -1,6 +0,0 @@
1   -bin
2   -build.xml
3   -genericserver.jar
4   -org.eclipse.jst.server.generic.core_1.0.0.jar
5   -temp.folder
6   -*.settings
28 plugins/org.eclipse.jst.server.generic.core/.project
... ... @@ -1,28 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<projectDescription>
3   - <name>org.eclipse.jst.server.generic.core</name>
4   - <comment></comment>
5   - <projects>
6   - </projects>
7   - <buildSpec>
8   - <buildCommand>
9   - <name>org.eclipse.jdt.core.javabuilder</name>
10   - <arguments>
11   - </arguments>
12   - </buildCommand>
13   - <buildCommand>
14   - <name>org.eclipse.pde.ManifestBuilder</name>
15   - <arguments>
16   - </arguments>
17   - </buildCommand>
18   - <buildCommand>
19   - <name>org.eclipse.pde.SchemaBuilder</name>
20   - <arguments>
21   - </arguments>
22   - </buildCommand>
23   - </buildSpec>
24   - <natures>
25   - <nature>org.eclipse.pde.PluginNature</nature>
26   - <nature>org.eclipse.jdt.core.javanature</nature>
27   - </natures>
28   -</projectDescription>
12 plugins/org.eclipse.jst.server.generic.core/build.properties
... ... @@ -1,12 +0,0 @@
1   -source.genericserver.jar = src/
2   -output.genericserver.jar = bin/
3   -bin.includes = plugin.xml,\
4   - genericserver.jar,\
5   - servers/,\
6   - plugin.properties,\
7   - xsd/ServerTypeDefinitionSchema.xsd
8   -src.includes = servers/,\
9   - src/,\
10   - plugin.xml,\
11   - plugin.properties,\
12   - xsd/
12 plugins/org.eclipse.jst.server.generic.core/plugin.properties
... ... @@ -1,12 +0,0 @@
1   -pluginName= Generic Server Plugin
2   -providerName=Eteration.com
3   -pluginDescription=Provides generic server tooling with easy to develop meta data configuration files
4   -
5   -runtimeTypeName=Generic Server Runtime
6   -runtimeTypeDescription=This is the Lomboz type runtime support
7   -
8   -serverTypeName=Generic server support
9   -serverTypeDescription=Lomboz type generic server
10   -launchConfigurationTypeName=Generic server launch configuration type
11   -# ====================================================================
12   -
70 plugins/org.eclipse.jst.server.generic.core/plugin.xml
... ... @@ -1,70 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<?eclipse version="3.0"?>
3   -<plugin
4   - id="org.eclipse.jst.server.generic.core"
5   - name="%pluginName"
6   - version="1.0.0"
7   - provider-name="%providerName"
8   - class="org.eclipse.jst.server.generic.core.internal.CorePlugin"
9   - description="%pluginDescription">
10   -
11   - <runtime>
12   - <library name="genericserver.jar">
13   - <export name="*"/>
14   - </library>
15   - </runtime>
16   -
17   - <requires>
18   - <import plugin="org.eclipse.ui"/>
19   - <import plugin="org.eclipse.core.runtime"/>
20   - <import plugin="org.eclipse.core.resources"/>
21   - <import plugin="org.eclipse.debug.core"/>
22   - <import plugin="org.eclipse.jdt.core"/>
23   - <import plugin="org.eclipse.jdt.launching"/>
24   - <import plugin="org.eclipse.wst.server.core"/>
25   - <import plugin="org.eclipse.jst.server.core"/>
26   - <import plugin="org.eclipse.debug.ui"/>
27   - <import plugin="org.eclipse.ant.core"/>
28   - <import plugin="org.eclipse.ant.ui"/>
29   - <import plugin="org.eclipse.emf.common" export="true"/>
30   - <import plugin="org.eclipse.emf.ecore"/>
31   - <import plugin="org.eclipse.emf.ecore.xmi"/>
32   - </requires>
33   -
34   - <extension-point id="serverdefinition" name="Server definition" schema="schema/serverdefinition.exsd"/>
35   - <extension-point id="genericpublisher" name="Generic Publisher" schema="schema/genericpublisher.exsd"/>
36   -
37   - <extension point="org.eclipse.wst.server.core.runtimeTargetHandlers">
38   - <runtimeTargetHandler
39   - id="org.eclipse.jst.server.generic.runtimeTarget"
40   - runtimeTypeIds="org.eclipse.jst.server.generic.runtime.*"
41   - class="org.eclipse.jst.server.generic.core.internal.GenericServerRuntimeTargetHandler"/>
42   - </extension>
43   -
44   - <extension point="org.eclipse.debug.core.launchConfigurationTypes">
45   - <launchConfigurationType
46   - id="org.eclipse.jst.server.generic.core.launchConfigurationType"
47   - name="%launchConfigurationTypeName"
48   - delegate="org.eclipse.jst.server.generic.core.internal.GenericServerLaunchConfigurationDelegate"
49   - modes="run, debug"
50   - sourceLocatorId="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector"
51   - sourcePathComputerId="org.eclipse.jst.server.generic.core.sourcePathComputer"/>
52   - </extension>
53   -
54   - <extension point="org.eclipse.debug.core.sourcePathComputers">
55   - <sourcePathComputer
56   - id="org.eclipse.jst.server.generic.core.sourcePathComputer"
57   - class="org.eclipse.jst.server.generic.core.internal.GenericServerSourcePathComputerDelegate"/>
58   - </extension>
59   -
60   - <extension point="org.eclipse.wst.server.core.launchableAdapters">
61   - <launchableAdapter
62   - class="org.eclipse.jst.server.generic.core.internal.GenericServerLaunchableAdapterDelegate"
63   - id="org.eclipse.jst.server.generic.web"/>
64   - </extension>
65   - <extension point="org.eclipse.jst.server.generic.core.genericpublisher">
66   - <genericpublisher
67   - class="org.eclipse.jst.server.generic.core.internal.AntPublisher"
68   - id="org.eclipse.jst.server.generic.antpublisher"/>
69   - </extension>
70   -</plugin>
109 plugins/org.eclipse.jst.server.generic.core/schema/genericpublisher.exsd
... ... @@ -1,109 +0,0 @@
1   -<?xml version='1.0' encoding='UTF-8'?>
2   -<!-- Schema file written by PDE -->
3   -<schema targetNamespace="org.eclipse.jst.server.generic.core">
4   -<annotation>
5   - <appInfo>
6   - <meta.schema plugin="org.eclipse.jst.server.generic.core" id="genericpublisher" name="Generic Publisher"/>
7   - </appInfo>
8   - <documentation>
9   - [Enter description of this extension point.]
10   - </documentation>
11   - </annotation>
12   -
13   - <element name="extension">
14   - <complexType>
15   - <sequence>
16   - <element ref="genericpublisher"/>
17   - </sequence>
18   - <attribute name="point" type="string" use="required">
19   - <annotation>
20   - <documentation>
21   -
22   - </documentation>
23   - </annotation>
24   - </attribute>
25   - <attribute name="id" type="string">
26   - <annotation>
27   - <documentation>
28   -
29   - </documentation>
30   - </annotation>
31   - </attribute>
32   - <attribute name="name" type="string">
33   - <annotation>
34   - <documentation>
35   -
36   - </documentation>
37   - <appInfo>
38   - <meta.attribute translatable="true"/>
39   - </appInfo>
40   - </annotation>
41   - </attribute>
42   - </complexType>
43   - </element>
44   -
45   - <element name="genericpublisher">
46   - <complexType>
47   - <attribute name="id" type="string">
48   - <annotation>
49   - <documentation>
50   -
51   - </documentation>
52   - </annotation>
53   - </attribute>
54   - <attribute name="class" type="string">
55   - <annotation>
56   - <documentation>
57   -
58   - </documentation>
59   - </annotation>
60   - </attribute>
61   - </complexType>
62   - </element>
63   -
64   - <annotation>
65   - <appInfo>
66   - <meta.section type="since"/>
67   - </appInfo>
68   - <documentation>
69   - [Enter the first release in which this extension point appears.]
70   - </documentation>
71   - </annotation>
72   -
73   - <annotation>
74   - <appInfo>
75   - <meta.section type="examples"/>
76   - </appInfo>
77   - <documentation>
78   - [Enter extension point usage example here.]
79   - </documentation>
80   - </annotation>
81   -
82   - <annotation>
83   - <appInfo>
84   - <meta.section type="apiInfo"/>
85   - </appInfo>
86   - <documentation>
87   - [Enter API information here.]
88   - </documentation>
89   - </annotation>
90   -
91   - <annotation>
92   - <appInfo>
93   - <meta.section type="implementation"/>
94   - </appInfo>
95   - <documentation>
96   - [Enter information about supplied implementation of this extension point.]
97   - </documentation>
98   - </annotation>
99   -
100   - <annotation>
101   - <appInfo>
102   - <meta.section type="copyright"/>
103   - </appInfo>
104   - <documentation>
105   -
106   - </documentation>
107   - </annotation>
108   -
109   -</schema>
114 plugins/org.eclipse.jst.server.generic.core/schema/serverdefinition.exsd
... ... @@ -1,114 +0,0 @@
1   -<?xml version='1.0' encoding='UTF-8'?>
2   -<!-- Schema file written by PDE -->
3   -<schema targetNamespace="org.eclipse.jst.server.generic.core">
4   -<annotation>
5   - <appInfo>
6   - <meta.schema plugin="org.eclipse.jst.server.generic.core" id="serverdefinition" name="Server Definition"/>
7   - </appInfo>
8   - <documentation>
9   - This extension point defines a new generic server plugin
10   - </documentation>
11   - </annotation>
12   -
13   - <element name="extension">
14   - <complexType>
15   - <sequence>
16   - <element ref="serverdefinition" minOccurs="1" maxOccurs="unbounded"/>
17   - </sequence>
18   - <attribute name="point" type="string" use="required">
19   - <annotation>
20   - <documentation>
21   -
22   - </documentation>
23   - </annotation>
24   - </attribute>
25   - <attribute name="id" type="string">
26   - <annotation>
27   - <documentation>
28   -
29   - </documentation>
30   - </annotation>
31   - </attribute>
32   - <attribute name="name" type="string">
33   - <annotation>
34   - <documentation>
35   -
36   - </documentation>
37   - <appInfo>
38   - <meta.attribute translatable="true"/>
39   - </appInfo>
40   - </annotation>
41   - </attribute>
42   - </complexType>
43   - </element>
44   -
45   - <element name="serverdefinition">
46   - <complexType>
47   - <sequence>
48   - </sequence>
49   - <attribute name="id" type="string" use="required">
50   - <annotation>
51   - <documentation>
52   - server id
53   - </documentation>
54   - </annotation>
55   - </attribute>
56   - <attribute name="definitionfile" type="string" use="required">
57   - <annotation>
58   - <documentation>
59   - location of the generic server definition file
60   - </documentation>
61   - <appInfo>
62   - <meta.attribute kind="resource"/>
63   - </appInfo>
64   - </annotation>
65   - </attribute>
66   - </complexType>
67   - </element>
68   -
69   - <annotation>
70   - <appInfo>
71   - <meta.section type="since"/>
72   - </appInfo>
73   - <documentation>
74   - 1.0
75   - </documentation>
76   - </annotation>
77   -
78   - <annotation>
79   - <appInfo>
80   - <meta.section type="examples"/>
81   - </appInfo>
82   - <documentation>
83   - [Enter extension point usage example here.]
84   - </documentation>
85   - </annotation>
86   -
87   - <annotation>
88   - <appInfo>
89   - <meta.section type="apiInfo"/>
90   - </appInfo>
91   - <documentation>
92   - [Enter API information here.]
93   - </documentation>
94   - </annotation>
95   -
96   - <annotation>
97   - <appInfo>
98   - <meta.section type="implementation"/>
99   - </appInfo>
100   - <documentation>
101   - [Enter information about supplied implementation of this extension point.]
102   - </documentation>
103   - </annotation>
104   -
105   - <annotation>
106   - <appInfo>
107   - <meta.section type="copyright"/>
108   - </appInfo>
109   - <documentation>
110   -
111   - </documentation>
112   - </annotation>
113   -
114   -</schema>
230 ...s/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/AntPublisher.java
... ... @@ -1,230 +0,0 @@
1   -/*******************************************************************************
2   - * Copyright (c) 2004 Eteration Bilisim A.S.
3   - * All rights reserved. � This program and the accompanying materials
4   - * are made available under the terms of the Common Public License v1.0
5   - * which accompanies this distribution, and is available at
6   - * http://www.eclipse.org/legal/cpl-v10.html
7   - *
8   - * Contributors:
9   - * Naci M. Dai - initial API and implementation
10   - *
11   - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
12   - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
13   - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
14   - * DISCLAIMED. IN NO EVENT SHALL ETERATION A.S. OR
15   - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
16   - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
17   - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
18   - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
19   - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
20   - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
21   - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22   - * SUCH DAMAGE.
23   - * ====================================================================
24   - *
25   - * This software consists of voluntary contributions made by many
26   - * individuals on behalf of the Eteration Bilisim A.S. For more
27   - * information on eteration, please see
28   - * <http://www.eteration.com/>.
29   - ***************************************************************************/
30   -package org.eclipse.jst.server.generic.core.internal;
31   -
32   -import java.io.File;
33   -import java.util.ArrayList;
34   -import java.util.HashMap;
35   -import java.util.Iterator;
36   -import java.util.Map;
37   -import org.eclipse.ant.core.AntRunner;
38   -import org.eclipse.core.runtime.CoreException;
39   -import org.eclipse.core.runtime.IProgressMonitor;
40   -import org.eclipse.core.runtime.IStatus;
41   -import org.eclipse.core.runtime.Platform;
42   -import org.eclipse.core.runtime.Status;
43   -import org.eclipse.jst.server.generic.internal.core.util.FileUtil;
44   -import org.eclipse.jst.server.generic.servertype.definition.Module;
45   -import org.eclipse.jst.server.generic.servertype.definition.PublisherData;
46   -import org.eclipse.jst.server.core.IEJBModule;
47   -import org.eclipse.jst.server.core.IWebModule;
48   -import org.eclipse.wst.server.core.IModuleArtifact;
49   -import org.osgi.framework.Bundle;
50   -/**
51   - * Ant based publisher.
52   - * All the properties defined in the server definition file are
53   - * passed into the ANT build file as properties.
54   - * In addition to the properties defined in the server definition
55   - * <I>module.dir</I>, <I>module.name,</I> and <I>server.publish.dir</I> are computed and passed to the
56   - * definition file.
57   - * <ul>
58   - * <li>module.dir: includes the root of the module project file</li>
59   - * <li>module.name: the name of the module</li>
60   - * <li>server.publish.dir: the directory to put the deployment units</li>
61   - * </ul>
62   - *
63   - * @author Gorkem Ercan
64   - */
65   -
66   -public class AntPublisher extends GenericPublisher{
67   -
68   - private static final String MODULE_PUBLISH_TARGET_PREFIX = "target.publish.";
69   - private static final String MODULE_UNPUBLISH_TARGET_PREFIX = "target.unpublish.";
70   - public static final String PUBLISHER_ID="org.eclipse.jst.server.generic.antpublisher";
71   - private static final String DATA_NAME_BUILD_FILE="build.file";
72   -
73   - /* (non-Javadoc)
74   - * @see org.eclipse.wtp.server.core.model.IPublisher#publish(org.eclipse.wtp.server.core.resources.IModuleResource[], org.eclipse.core.runtime.IProgressMonitor)
75   - */
76   - public IStatus[] publish(IModuleArtifact[] resource,
77   - IProgressMonitor monitor){
78   -
79   - File file = computeBuildFile();
80   - try{
81   - runAnt(file.toString(),getPublishTargetsForModule(),getPublishProperties(),monitor);
82   - }
83   - catch(CoreException e){
84   - IStatus s = new Status(IStatus.ERROR,CorePlugin.PLUGIN_ID,0,"Publish failed using Ant publisher",e);
85   - CorePlugin.getDefault().getLog().log(s);
86   - return new IStatus[] {s};
87   - }
88   - return null;
89   - }
90   -
91   -
92   - /**
93   - * @return
94   - */
95   - private File computeBuildFile() {
96   - Bundle bundle = Platform.getBundle(getServerRuntime().getConfigurationElementNamespace());
97   - File file = FileUtil.resolveFileFrom(bundle,getBuildFile());
98   - return file;
99   - }
100   -
101   -
102   - /**
103   - * @return
104   - */
105   - private String[] getPublishTargetsForModule() {
106   - String dataname = MODULE_PUBLISH_TARGET_PREFIX+getModuleTypeId();
107   - return doGetTargets(dataname);
108   - }
109   -
110   -
111   - /**
112   - * @param dataname
113   - * @return
114   - */
115   - private String[] doGetTargets(String dataname) {
116   - ArrayList list = new ArrayList();
117   - Iterator iterator = getServerRuntime().getPublisher(PUBLISHER_ID).getPublisherdata().iterator();
118   - while(iterator.hasNext()){
119   - PublisherData data = (PublisherData)iterator.next();
120   - if(dataname.equals(data.getDataname())) {
121   - list.add(data.getDatavalue());
122   - }
123   - }
124   - return (String[])list.toArray(new String[list.size()]);
125   - }
126   -
127   - /**
128   - * @return
129   - */
130   - private String[] getUnpublishTargetsForModule() {
131   -
132   - return doGetTargets(MODULE_UNPUBLISH_TARGET_PREFIX+getModuleTypeId());
133   - }
134   -
135   -
136   - private String getModuleTypeId()
137   - {
138   - return getModule()[0].getModuleType().getId();
139   - }
140   -
141   - private String getBuildFile()
142   - {
143   - Iterator iterator = getServerRuntime().getPublisher(PUBLISHER_ID).getPublisherdata().iterator();
144   - while(iterator.hasNext())
145   - {
146   - PublisherData data = (PublisherData)iterator.next();
147   - if(DATA_NAME_BUILD_FILE.equals(data.getDataname()))
148   - return getServerRuntime().getResolver().resolveProperties(data.getDatavalue());
149   - }
150   - return null;
151   - }
152   - private Map getPublishProperties()
153   - {
154   - Map props = new HashMap();
155   -
156   - // pass all properties to build file.
157   - Map properties = getServerRuntime().getResolver().getPropertyValues();
158   - Iterator propertyIterator = properties.keySet().iterator();
159   - while(propertyIterator.hasNext())
160   - {
161   - String property = (String)propertyIterator.next();
162   - props.put(property,properties.get(property));
163   - }
164   -
165   - Module module = getServerRuntime().getModule(getModuleTypeId());
166   - String modDir = module.getPublishDir();
167   - modDir = getServerRuntime().getResolver().resolveProperties(modDir);
168   -
169   - IWebModule webModule = (IWebModule)getModule()[0].getAdapter(IWebModule.class);
170   - IEJBModule ejbModule = (IEJBModule)getModule()[0].getAdapter(IEJBModule.class);
171   - String moduleName="unknownmodule";
172   - String moduleDir="";
173   - if(webModule!=null){
174   - moduleName = this.guessModuleName(webModule);
175   - moduleDir = webModule.getLocation().toString();
176   - }
177   - if(ejbModule!=null){
178   - moduleName = getModule()[0].getName();
179   - moduleDir= ejbModule.getLocation().toString();
180   - }
181   - props.put("module.name",moduleName);
182   - props.put("module.dir",moduleDir);
183   - props.put("server.publish.dir",modDir);
184   - return props;
185   - }
186   - /**
187   - * @param module2
188   - * @param webModule
189   - * @return
190   - */
191   - private String guessModuleName(IWebModule webModule) {
192   - String moduleName = getModule()[0].getName();
193   - //Default to project name but not a good guess
194   - //may have blanks etc.
195   -
196   - // A better choice is to use the context root
197   - // For wars most appservers use the module name
198   - // as the context root
199   - String contextRoot = webModule.getContextRoot();
200   - if(contextRoot.charAt(0) == '/')
201   - moduleName = contextRoot.substring(1);
202   - return moduleName;
203   - }
204   - private void runAnt(String buildFile,String[] targets,Map properties ,IProgressMonitor monitor)throws CoreException
205   - {
206   - AntRunner runner = new AntRunner();
207   - runner.setBuildFileLocation(buildFile);
208   - runner.setExecutionTargets(targets);
209   - runner.addUserProperties(properties);
210   - runner.run(monitor);
211   - }
212   -
213   - /* (non-Javadoc)
214   - * @see org.eclipse.jst.server.generic.internal.core.GenericPublisher#unpublish(org.eclipse.wst.server.core.IModule, org.eclipse.core.runtime.IProgressMonitor)
215   - */
216   - public IStatus[] unpublish(IProgressMonitor monitor) {
217   - File file = computeBuildFile();
218   - try {
219   - runAnt(file.toString(),getUnpublishTargetsForModule(),getPublishProperties(),monitor);
220   - } catch (CoreException e) {
221   - IStatus s = new Status(IStatus.ERROR,CorePlugin.PLUGIN_ID,0,"Remove module failed using Ant publisher",e);
222   - return new IStatus[] {s};
223   -
224   - }
225   - return null;
226   - }
227   -
228   -
229   -
230   -}
129 ...ins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/CorePlugin.java
... ... @@ -1,129 +0,0 @@
1   -/*******************************************************************************
2   - * Copyright (c) 2004 Eteration Bilisim A.S.
3   - * All rights reserved. � This program and the accompanying materials
4   - * are made available under the terms of the Common Public License v1.0
5   - * which accompanies this distribution, and is available at
6   - * http://www.eclipse.org/legal/cpl-v10.html
7   - *
8   - * Contributors:
9   - * Gorkem Ercan - initial API and implementation
10   - * Naci M. Dai
11   - *
12   - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
13   - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
14   - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15   - * DISCLAIMED. IN NO EVENT SHALL ETERATION A.S. OR
16   - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
17   - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
18   - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
19   - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
20   - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
21   - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
22   - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23   - * SUCH DAMAGE.
24   - * ====================================================================
25   - *
26   - * This software consists of voluntary contributions made by many
27   - * individuals on behalf of the Eteration Bilisim A.S. For more
28   - * information on eteration, please see
29   - * <http://www.eteration.com/>.
30   - ***************************************************************************/
31   -package org.eclipse.jst.server.generic.core.internal;
32   -
33   -
34   -import org.eclipse.core.runtime.Platform;
35   -import org.eclipse.ui.plugin.*;
36   -import org.osgi.framework.BundleContext;
37   -import java.io.IOException;
38   -import java.net.URL;
39   -import java.util.*;
40   -
41   -/**
42   - * The main plugin class to be used in the desktop.
43   - *
44   - * @author Gorkem Ercan
45   - */
46   -public class CorePlugin extends AbstractUIPlugin {
47   -
48   - public static final String PLUGIN_ID = "org.eclipse.jst.server.generic.core";
49   -
50   - //The shared instance.
51   - private static CorePlugin plugin;
52   - //Resource bundle.
53   - private ResourceBundle resourceBundle;
54   - private ServerTypeDefinitionManager fServerTypeDefinitionManager;
55   - /**
56   - * The constructor.
57   - */
58   - public CorePlugin() {
59   - super();
60   - plugin = this;
61   - try {
62   - resourceBundle = ResourceBundle.getBundle("org.eclipse.jst.server.generic.core.CorePluginResources");
63   - } catch (MissingResourceException x) {
64   - resourceBundle = null;
65   - }
66   - }
67   -
68   - /**
69   - * This method is called upon plug-in activation
70   - */
71   - public void start(BundleContext context) throws Exception {
72   - super.start(context);
73   - }
74   -
75   - /**
76   - * This method is called when the plug-in is stopped
77   - */
78   - public void stop(BundleContext context) throws Exception {
79   - super.stop(context);
80   - }
81   -
82   - /**
83   - * Returns the shared instance.
84   - */
85   - public static CorePlugin getDefault() {
86   - return plugin;
87   - }
88   -
89   - /**
90   - * Returns the string from the plugin's resource bundle,
91   - * or 'key' if not found.
92   - */
93   - public static String getResourceString(String key) {
94   - ResourceBundle bundle = CorePlugin.getDefault().getResourceBundle();
95   - try {
96   - return (bundle != null) ? bundle.getString(key) : key;
97   - } catch (MissingResourceException e) {
98   - return key;
99   - }
100   - }
101   -
102   - /**
103   - * Returns the plugin's resource bundle,
104   - */
105   - public ResourceBundle getResourceBundle() {
106   - return resourceBundle;
107   - }
108   - /**
109   - *
110   - * @return
111   - */
112   - public ServerTypeDefinitionManager getServerTypeDefinitionManager()
113   - {
114   - if(fServerTypeDefinitionManager==null)
115   - fServerTypeDefinitionManager = new ServerTypeDefinitionManager(getInstallUrl());
116   - return fServerTypeDefinitionManager;
117   - }
118   -
119   - private URL getInstallUrl()
120   - {
121   - try {
122   - return Platform.resolve(this.getBundle().getEntry("/"));
123   - } catch (IOException e) {
124   - return null;
125   - }
126   - }
127   -
128   -
129   -}
56 ...g.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericPublisher.java
... ... @@ -1,56 +0,0 @@
1   -package org.eclipse.jst.server.generic.core.internal;
2   -
3   -import org.eclipse.core.runtime.IProgressMonitor;
4   -import org.eclipse.core.runtime.IStatus;
5   -import org.eclipse.jst.server.generic.servertype.definition.ServerRuntime;
6   -import org.eclipse.wst.server.core.IModule;
7   -import org.eclipse.wst.server.core.IModuleArtifact;
8   -
9   -/**
10   - * The abstract publisher. This is intended to be subclassed by
11   - * clients implementing the genericpublisher extension point.
12   - *
13   - * @author Gorkem Ercan
14   - */
15   -public abstract class GenericPublisher
16   -{
17   -
18   - private IModule[] fModule;
19   - private ServerRuntime fServerRuntime;
20   -
21   - protected void initialize(IModule[] module, ServerRuntime serverDefinition)
22   - {
23   - fModule = module;
24   - fServerRuntime = serverDefinition;
25   - }
26   - /**
27   - * Called by the generic server implementation when a module is
28   - * removed form the server instance.
29   - * Subclasses may extend this method to perform their own module removal
30   - *
31   - * @param module
32   - * @param monitor
33   - * @return
34   - */
35   - public abstract IStatus[] unpublish(IProgressMonitor monitor);
36   -
37   - /**
38   - * Called by the generic server implementation when a publish module
39   - * event occurs.
40   - * Subclasses may extend this method to perform their own publishing
41   - *
42   - * @param resource
43   - * @param monitor
44   - * @return
45   - */
46   - public abstract IStatus[] publish(IModuleArtifact[] resource,
47   - IProgressMonitor monitor);
48   -
49   - public IModule[] getModule() {
50   - return fModule;
51   - }
52   -
53   - public ServerRuntime getServerRuntime() {
54   - return fServerRuntime;
55   - }
56   -}
310 .../org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServer.java
... ... @@ -1,310 +0,0 @@
1   -/*******************************************************************************
2   - * Copyright (c) 2004 Eteration Bilisim A.S.
3   - * All rights reserved. � This program and the accompanying materials
4   - * are made available under the terms of the Common Public License v1.0
5   - * which accompanies this distribution, and is available at
6   - * http://www.eclipse.org/legal/cpl-v10.html
7   - *
8   - * Contributors:
9   - * Gorkem Ercan - initial API and implementation
10   - * Naci M. Dai
11   - *
12   - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
13   - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
14   - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15   - * DISCLAIMED. IN NO EVENT SHALL ETERATION A.S. OR
16   - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
17   - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
18   - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
19   - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
20   - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
21   - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
22   - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23   - * SUCH DAMAGE.
24   - * ====================================================================
25   - *
26   - * This software consists of voluntary contributions made by many
27   - * individuals on behalf of the Eteration Bilisim A.S. For more
28   - * information on eteration, please see
29   - * <http://www.eteration.com/>.
30   - ***************************************************************************/
31   -package org.eclipse.jst.server.generic.core.internal;
32   -
33   -import java.net.URL;
34   -import java.util.ArrayList;
35   -import java.util.HashMap;
36   -import java.util.Iterator;
37   -import java.util.List;
38   -import java.util.Map;
39   -import org.eclipse.core.resources.IProject;
40   -import org.eclipse.core.resources.ResourcesPlugin;
41   -import org.eclipse.core.runtime.CoreException;
42   -import org.eclipse.core.runtime.IProgressMonitor;
43   -import org.eclipse.core.runtime.IStatus;
44   -import org.eclipse.core.runtime.Status;
45   -import org.eclipse.jst.server.generic.servertype.definition.Module;
46   -import org.eclipse.jst.server.generic.servertype.definition.Port;
47   -import org.eclipse.jst.server.generic.servertype.definition.ServerRuntime;
48   -import org.eclipse.jst.server.core.IEJBModule;
49   -import org.eclipse.jst.server.core.IEnterpriseApplication;
50   -import org.eclipse.jst.server.core.IWebModule;
51   -import org.eclipse.wst.server.core.IModule;
52   -import org.eclipse.wst.server.core.ServerUtil;
53   -import org.eclipse.wst.server.core.internal.ServerMonitorManager;
54   -import org.eclipse.wst.server.core.model.IURLProvider;
55   -import org.eclipse.wst.server.core.model.RuntimeDelegate;
56   -import org.eclipse.wst.server.core.model.ServerDelegate;
57   -import org.eclipse.wst.server.core.ServerPort;
58   -
59   -/**
60   - * Generic XML based server implementation.
61   - *
62   - * @author Gorkem Ercan
63   - */
64   -public class GenericServer extends ServerDelegate implements IURLProvider {
65   -
66   - private static final String ATTR_GENERIC_SERVER_MODULES = "Generic_Server_Modules_List";
67   - private ServerRuntime fServerDefinition;
68   -
69   - /*
70   - * (non-Javadoc)
71   - *
72   - * @see org.eclipse.wst.server.core.model.IServerDelegate#publishStart(org.eclipse.core.runtime.IProgressMonitor)
73   - */
74   - public IStatus publishStart(IProgressMonitor monitor) {
75   - if(getModules().length<1)
76   - return new Status(IStatus.CANCEL,CorePlugin.PLUGIN_ID,0,GenericServerCoreMessages.getString("cancelNoPublish"),null);
77   - return new Status(IStatus.OK, CorePlugin.PLUGIN_ID, 0, "PublishingStarted", null);
78   - }
79   -
80   -
81   - public IStatus canModifyModules(IModule[] add, IModule[] remove) {
82   - Iterator iterator = getServerDefinition().getModule().iterator();
83   -
84   - while(iterator.hasNext()) {
85   - Module module = (Module)iterator.next();
86   - for (int i = 0; i < add.length; i++) {
87   - if(add[i].getModuleType().getId().equals(module.getType()))
88   - return new Status(IStatus.OK, CorePlugin.PLUGIN_ID, 0, "CanModifyModules", null);
89   - }
90   - }
91   - return new Status(IStatus.ERROR, CorePlugin.PLUGIN_ID, 0, GenericServerCoreMessages.getString("moduleNotCompatible"), null);
92   - }
93   -
94   - private String createModuleId(IModule module)
95   - {
96   - return module.getProject().getName()+":"+module.getId();
97   - }
98   - /* (non-Javadoc)
99   - * @see org.eclipse.wst.server.core.model.ServerDelegate#modifyModules(org.eclipse.wst.server.core.IModule[], org.eclipse.wst.server.core.IModule[], org.eclipse.core.runtime.IProgressMonitor)
100   - */
101   - public void modifyModules(IModule[] add, IModule[] remove, IProgressMonitor monitor) throws CoreException {
102   -
103   - List modules = this.getAttribute(ATTR_GENERIC_SERVER_MODULES,(List)null);
104   -
105   - if(add!=null&& add.length>0)
106   - {
107   - if(modules==null) {
108   - modules=new ArrayList(add.length);
109   - }
110   - for (int i = 0; i < add.length; i++) {
111   - String modlId = createModuleId(add[i]);