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 'v20051101_1400'.

  • Loading branch information...
commit aea31598d64f4983680e861c5610596ca2b54bea 1 parent ef77650
ndai authored

Showing 856 changed files with 0 additions and 28,537 deletions. Show diff stats Hide diff stats

  1. +0 7 plugins/org.eclipse.jst.server.core/.classpath
  2. +0 6 plugins/org.eclipse.jst.server.core/.cvsignore
  3. +0 4 plugins/org.eclipse.jst.server.core/.options
  4. +0 28 plugins/org.eclipse.jst.server.core/.project
  5. +0 20 plugins/org.eclipse.jst.server.core/META-INF/MANIFEST.MF
  6. +0 22 plugins/org.eclipse.jst.server.core/about.html
  7. +0 21 plugins/org.eclipse.jst.server.core/build.properties
  8. +0 36 plugins/org.eclipse.jst.server.core/component.xml
  9. +0 25 plugins/org.eclipse.jst.server.core/plugin.properties
  10. +0 119 plugins/org.eclipse.jst.server.core/plugin.xml
  11. +0 519 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/ClasspathRuntimeTargetHandler.java
  12. +0 83 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/EJBBean.java
  13. +0 71 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/FacetUtil.java
  14. +0 24 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/IApplicationClientModule.java
  15. +0 31 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/IConnectorModule.java
  16. +0 24 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/IEJBModule.java
  17. +0 49 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/IEnterpriseApplication.java
  18. +0 25 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/IJ2EEModule.java
  19. +0 31 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/IJavaRuntime.java
  20. +0 47 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/IWebModule.java
  21. +0 56 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/JndiLaunchable.java
  22. +0 55 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/JndiObject.java
  23. +0 392 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/PublishUtil.java
  24. +0 74 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/Servlet.java
  25. +0 120 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/GenericRuntime.java
  26. +0 64 ...org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/GenericRuntimeTargetHandler.java
  27. +0 41 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/GenericRuntimeUtil.java
  28. +0 19 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/IGenericRuntime.java
  29. +0 25 .../org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/IGenericRuntimeWorkingCopy.java
  30. +0 194 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/IMemento.java
  31. +0 36 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/J2EELaunchableClient.java
  32. +0 130 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/J2EEUtil.java
  33. +0 60 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/JavaServerPlugin.java
  34. +0 56 ...ins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/LaunchConfigurationUtil.java
  35. +0 29 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/Messages.java
  36. +0 19 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/Messages.properties
  37. +0 69 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/ProgressUtil.java
  38. +0 120 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/RuntimeBridge.java
  39. +0 89 ...s/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/RuntimeClasspathContainer.java
  40. +0 97 ...se.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/RuntimeClasspathContainerInitializer.java
  41. +0 71 ...ns/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/RuntimeClasspathProvider.java
  42. +0 68 ...rg.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/StandardJreClasspathProvider.java
  43. +0 65 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/Trace.java
  44. +0 388 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/XMLMemento.java
  45. +0 45 ...ins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/cactus/CactusLaunchable.java
  46. +0 45 ....jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/cactus/CactusLaunchableAdapterDelegate.java
  47. +0 147 ....server.core/sjavacore/org/eclipse/jst/server/core/internal/cactus/CactusModuleArtifactAdapterDelegate.java
  48. +0 95 ...se.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/cactus/ServletTestCasePropertyTester.java
  49. +0 52 .../org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/internal/cactus/WebTestableResource.java
  50. +0 66 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/package.html
  51. +0 40 plugins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/package.xml
  52. +0 7 plugins/org.eclipse.jst.server.generic.core/.classpath
  53. +0 6 plugins/org.eclipse.jst.server.generic.core/.cvsignore
  54. +0 4 plugins/org.eclipse.jst.server.generic.core/.options
  55. +0 28 plugins/org.eclipse.jst.server.generic.core/.project
  56. +0 33 plugins/org.eclipse.jst.server.generic.core/META-INF/MANIFEST.MF
  57. +0 22 plugins/org.eclipse.jst.server.generic.core/about.html
  58. +0 13 plugins/org.eclipse.jst.server.generic.core/build.properties
  59. +0 10 plugins/org.eclipse.jst.server.generic.core/plugin.properties
  60. +0 43 plugins/org.eclipse.jst.server.generic.core/plugin.xml
  61. +0 109 plugins/org.eclipse.jst.server.generic.core/schema/genericpublisher.exsd
  62. +0 114 plugins/org.eclipse.jst.server.generic.core/schema/serverdefinition.exsd
  63. +0 102 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/CorePlugin.java
  64. +0 196 ...rver.generic.core/src/org/eclipse/jst/server/generic/core/internal/ExternalLaunchConfigurationDelegate.java
  65. +0 267 ...lipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/ExternalServerBehaviour.java
  66. +0 61 .../org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericPublisher.java
  67. +0 323 ...ins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServer.java
  68. +0 504 ...clipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerBehaviour.java
  69. +0 36 ...pse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerCoreMessages.java
  70. +0 18 ...t.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerCoreMessages.properties
  71. +0 133 ...generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerLaunchConfigurationDelegate.java
  72. +0 129 ...r.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerLaunchableAdapterDelegate.java
  73. +0 188 ....eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerRuntime.java
  74. +0 80 ...server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerRuntimeTargetHandler.java
  75. +0 109 ....generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerSourcePathComputerDelegate.java
  76. +0 142 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/PingThread.java
  77. +0 35 ...ns/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/PublishManager.java
  78. +0 78 ...e.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/ServerTypeDefinitionManager.java
  79. +0 109 ...ipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/ServerTypeDefinitionUtil.java
  80. +0 73 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/Trace.java
  81. +0 390 ...lipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/publishers/AntPublisher.java
  82. +0 127 ...pse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/publishers/ModulePackager.java
  83. +0 45 ...lipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/util/ExtensionPointUtil.java
  84. +0 89 ...ins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/util/FileUtil.java
  85. +0 1,590 ...erver.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/ServerTypePackage.java
  86. +0 191 ...er.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/ArchiveTypeImpl.java
  87. +0 217 ...r.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/ArgumentPairImpl.java
  88. +0 273 ...rver.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/ClasspathImpl.java
  89. +0 218 ...erver.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/ExternalImpl.java
  90. +0 304 ...generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/JndiConnectionImpl.java
  91. +0 660 ...ic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/LaunchConfigurationImpl.java
  92. +0 299 ....server.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/ModuleImpl.java
  93. +0 299 ...st.server.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/PortImpl.java
  94. +0 191 ...server.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/ProjectImpl.java
  95. +0 417 ...erver.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/PropertyImpl.java
  96. +0 219 ....generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/PublisherDataImpl.java
  97. +0 271 ...rver.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/PublisherImpl.java
  98. +0 969 ....generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/ServerRuntimeImpl.java
  99. +0 234 ...eric.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/ServerTypeFactoryImpl.java
  100. +0 1,608 ...eric.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/impl/ServerTypePackageImpl.java
  101. +0 351 ...c.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/util/ServerTypeAdapterFactory.java
  102. +0 76 ...e/src/org/eclipse/jst/server/generic/internal/servertype/definition/util/ServerTypeResourceFactoryImpl.java
  103. +0 58 ...ric.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/util/ServerTypeResourceImpl.java
  104. +0 409 ...r.generic.core/src/org/eclipse/jst/server/generic/internal/servertype/definition/util/ServerTypeSwitch.java
  105. +0 176 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/xml/Resolver.java
  106. +0 157 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/xml/XMLUtils.java
  107. +0 93 ...g.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/ArchiveType.java
  108. +0 83 ....eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/ArgumentPair.java
  109. +0 156 ...org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/Classpath.java
  110. +0 83 .../org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/External.java
  111. +0 133 ...clipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/JndiConnection.java
  112. +0 321 ...e.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/LaunchConfiguration.java
  113. +0 139 ...ns/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/Module.java
  114. +0 139 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/Port.java
  115. +0 91 ...s/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/Project.java
  116. +0 195 .../org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/Property.java
  117. +0 131 ...org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/Publisher.java
  118. +0 89 ...eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/PublisherData.java
  119. +0 463 ...eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/ServerRuntime.java
  120. +0 181 ...pse.jst.server.generic.core/src/org/eclipse/jst/server/generic/servertype/definition/ServerTypeFactory.java
  121. +0 153 plugins/org.eclipse.jst.server.generic.core/xsd/ServerTypeDefinitionSchema.xsd
  122. +0 501 plugins/org.eclipse.jst.server.generic.core/xsd/org.eclipse.jst.server.generic.servertype.ecore
  123. +0 97 plugins/org.eclipse.jst.server.generic.core/xsd/servertype.genmodel
  124. +0 132 plugins/org.eclipse.jst.server.generic.core/xsd/servertype.xsd2ecore
  125. +0 5 plugins/org.eclipse.jst.server.generic.modules/.cvsignore
  126. +0 28 plugins/org.eclipse.jst.server.generic.modules/.project
  127. +0 7 plugins/org.eclipse.jst.server.generic.ui/.classpath
  128. +0 5 plugins/org.eclipse.jst.server.generic.ui/.cvsignore
  129. +0 28 plugins/org.eclipse.jst.server.generic.ui/.project
  130. +0 19 plugins/org.eclipse.jst.server.generic.ui/META-INF/MANIFEST.MF
  131. +0 22 plugins/org.eclipse.jst.server.generic.ui/about.html
  132. +0 9 plugins/org.eclipse.jst.server.generic.ui/build.properties
  133. BIN  plugins/org.eclipse.jst.server.generic.ui/icons/obj16/server.gif
  134. BIN  plugins/org.eclipse.jst.server.generic.ui/icons/wizban/new_server_wiz.gif
  135. +0 4 plugins/org.eclipse.jst.server.generic.ui/plugin.properties
  136. +0 30 plugins/org.eclipse.jst.server.generic.ui/plugin.xml
  137. +0 94 ...st.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/GenericLaunchConfigurationTabGroup.java
  138. +0 25 ...rg.eclipse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/GenericServerComposite.java
  139. +0 22 ...e.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/GenericServerCompositeDecorator.java
  140. +0 171 ...st.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/GenericServerRuntimeWizardFragment.java
  141. +0 29 ...g.eclipse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/GenericServerUIMessages.java
  142. +0 11 ...pse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/GenericServerUIMessages.properties
  143. +0 163 ...lipse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/GenericServerWizardFragment.java
  144. +0 114 plugins/org.eclipse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/GenericUiPlugin.java
  145. +0 131 ...ns/org.eclipse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/JRESelectDecorator.java
  146. +0 89 plugins/org.eclipse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/SWTUtil.java
  147. +0 74 ...rver.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/ServerDefinitionTypeAwareWizardFragment.java
  148. +0 295 ...pse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/ServerTypeDefinitionDecorator.java
  149. +0 44 ....server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/ServerTypeDefinitionRuntimeDecorator.java
  150. +0 70 ...t.server.generic.ui/src/org/eclipse/jst/server/generic/ui/internal/ServerTypeDefinitionServerDecorator.java
  151. +0 7 plugins/org.eclipse.jst.server.pde/.classpath
  152. +0 2  plugins/org.eclipse.jst.server.pde/.cvsignore
  153. +0 28 plugins/org.eclipse.jst.server.pde/.project
  154. +0 13 plugins/org.eclipse.jst.server.pde/META-INF/MANIFEST.MF
  155. +0 22 plugins/org.eclipse.jst.server.pde/about.html
  156. +0 10 plugins/org.eclipse.jst.server.pde/build.properties
  157. +0 266 plugins/org.eclipse.jst.server.pde/build.xml
  158. BIN  plugins/org.eclipse.jst.server.pde/icons/obj16/wiz_new_server_plugin.gif
  159. +0 15 plugins/org.eclipse.jst.server.pde/plugin.properties
  160. +0 22 plugins/org.eclipse.jst.server.pde/plugin.xml
  161. +0 54 plugins/org.eclipse.jst.server.pde/src/org/eclipse/jst/server/generic/pde/ServerPdePlugin.java
  162. +0 22 ...rg.eclipse.jst.server.pde/src/org/eclipse/jst/server/generic/pde/internal/GenericServerPluginNewWizard.java
  163. +0 276 plugins/org.eclipse.jst.server.pde/src/org/eclipse/jst/server/generic/pde/internal/GenericServerTemplate.java
  164. +0 35 plugins/org.eclipse.jst.server.pde/src/org/eclipse/jst/server/generic/pde/internal/Messages.java
  165. +0 10 plugins/org.eclipse.jst.server.pde/src/org/eclipse/jst/server/generic/pde/internal/messages.properties
  166. +0 41 plugins/org.eclipse.jst.server.pde/templates_3.0/genericserver/buildfiles/$server_name$.xml
  167. BIN  plugins/org.eclipse.jst.server.pde/templates_3.0/genericserver/icons/server.gif
  168. +0 142 plugins/org.eclipse.jst.server.pde/templates_3.0/genericserver/servers/$server_name$.serverdef
  169. +0 7 plugins/org.eclipse.jst.server.tomcat.core/.classpath
  170. +0 6 plugins/org.eclipse.jst.server.tomcat.core/.cvsignore
  171. +0 4 plugins/org.eclipse.jst.server.tomcat.core/.options
  172. +0 28 plugins/org.eclipse.jst.server.tomcat.core/.project
  173. +0 22 plugins/org.eclipse.jst.server.tomcat.core/META-INF/MANIFEST.MF
  174. +0 22 plugins/org.eclipse.jst.server.tomcat.core/about.html
  175. +0 22 plugins/org.eclipse.jst.server.tomcat.core/build.properties
  176. +0 54 plugins/org.eclipse.jst.server.tomcat.core/plugin.properties
  177. +0 301 plugins/org.eclipse.jst.server.tomcat.core/plugin.xml
  178. +0 30 ...rg.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/ClassDetector.java
  179. +0 56 ...t.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/ContextPublishTaskDelegate.java
  180. +0 248 ...ins/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/FileUtil.java
  181. +0 29 ...org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/IMimeMapping.java
  182. +0 38 ...pse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/ITomcatConfiguration.java
  183. +0 69 ...ver.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/ITomcatConfigurationWorkingCopy.java
  184. +0 35 ...g.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/ITomcatRuntime.java
  185. +0 25 ...st.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/ITomcatRuntimeWorkingCopy.java
  186. +0 26 ...rg.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/ITomcatServer.java
  187. +0 46 ...e.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/ITomcatServerBehaviour.java
  188. +0 22 ...jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/ITomcatServerWorkingCopy.java
  189. +0 60 ...se.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/ITomcatVersionHandler.java
  190. +0 43 ...eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/ITomcatWebModule.java
  191. +0 93 ...ins/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/Messages.java
  192. +0 100 ...g.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/Messages.properties
  193. +0 47 .../org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/MimeMapping.java
  194. +0 125 ...s/org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/PingThread.java
  195. +0 69 ...org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/ProgressUtil.java
  196. +0 106 ...clipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/PublishOperation2.java
  197. +0 39 .../org.eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/PublishTask.java
  198. +0 575 ...se.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/Tomcat32Configuration.java
  199. +0 109 ....eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/Tomcat32Handler.java
  200. +0 581 ...se.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/Tomcat40Configuration.java
  201. +0 121 ....eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/Tomcat40Handler.java
  202. +0 705 ...se.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/Tomcat41Configuration.java
  203. +0 119 ....eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/Tomcat41Handler.java
  204. +0 782 ...se.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/Tomcat50Configuration.java
  205. +0 119 ....eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/Tomcat50Handler.java
  206. +0 682 ...se.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/Tomcat55Configuration.java
  207. +0 43 ....eclipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/Tomcat55Handler.java
  208. +0 317 ...ipse.jst.server.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/TomcatConfiguration.java
  209. +0 81 ...r.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/TomcatLaunchConfigurationDelegate.java
  210. +0 68 ...ver.tomcat.core/tomcatcore/org/eclipse/jst/server/tomcat/core/internal/TomcatLaunchableAdapterDelegate.java
Sorry, we could not display the entire diff because too many files (856) changed.
7 plugins/org.eclipse.jst.server.core/.classpath
... ... @@ -1,7 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<classpath>
3   - <classpathentry kind="src" path="sjavacore/"/>
4   - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5   - <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
6   - <classpathentry kind="output" path="bin"/>
7   -</classpath>
6 plugins/org.eclipse.jst.server.core/.cvsignore
... ... @@ -1,6 +0,0 @@
1   -bin
2   -build.xml
3   -org.eclipse.jst.server.core_3.0.0.jar
4   -sjavacore.jar
5   -temp.folder
6   -@dot
4 plugins/org.eclipse.jst.server.core/.options
... ... @@ -1,4 +0,0 @@
1   -# Debugging options for the org.eclipse.jst.server.core plugin
2   -
3   -# Turn on general debugging
4   -org.eclipse.jst.server.core/debug=true
28 plugins/org.eclipse.jst.server.core/.project
... ... @@ -1,28 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<projectDescription>
3   - <name>org.eclipse.jst.server.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.jdt.core.javanature</nature>
26   - <nature>org.eclipse.pde.PluginNature</nature>
27   - </natures>
28   -</projectDescription>
20 plugins/org.eclipse.jst.server.core/META-INF/MANIFEST.MF
... ... @@ -1,20 +0,0 @@
1   -Manifest-Version: 1.0
2   -Bundle-ManifestVersion: 2
3   -Bundle-Name: %pluginName
4   -Bundle-SymbolicName: org.eclipse.jst.server.core; singleton:=true
5   -Bundle-Version: 0.7.0
6   -Bundle-Activator: org.eclipse.jst.server.core.internal.JavaServerPlugin
7   -Bundle-Vendor: %providerName
8   -Bundle-Localization: plugin
9   -Export-Package: org.eclipse.jst.server.core,
10   - org.eclipse.jst.server.core.internal;x-friends:="org.eclipse.jst.server.ui",
11   - org.eclipse.jst.server.core.internal.cactus;x-friends:="org.eclipse.jst.server.ui"
12   -Require-Bundle: org.eclipse.core.runtime,
13   - org.eclipse.core.resources,
14   - org.eclipse.core.expressions,
15   - org.eclipse.debug.core,
16   - org.eclipse.jdt.core,
17   - org.eclipse.jdt.launching,
18   - org.eclipse.wst.server.core,
19   - org.eclipse.wst.common.project.facet.core
20   -Eclipse-AutoStart: true
22 plugins/org.eclipse.jst.server.core/about.html
... ... @@ -1,22 +0,0 @@
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
2   -<html>
3   -<head>
4   -<title>About</title>
5   -<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
6   -</head>
7   -<body lang="EN-US">
8   -<h2>About This Content</h2>
9   -
10   -<p>February 24, 2005</p>
11   -<h3>License</h3>
12   -
13   -<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
14   -Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
15   -For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
16   -
17   -<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
18   -apply to your use of any object code in the Content. Check the Redistributor's license that was provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
19   -indicated below, the terms and conditions of the EPL still apply to any source code in the Content.</p>
20   -
21   -</body>
22   -</html>
21 plugins/org.eclipse.jst.server.core/build.properties
... ... @@ -1,21 +0,0 @@
1   -###############################################################################
2   -# Copyright (c) 2004 IBM Corporation and others.
3   -# All rights reserved. This program and the accompanying materials
4   -# are made available under the terms of the Eclipse Public License v1.0
5   -# which accompanies this distribution, and is available at
6   -# http://www.eclipse.org/legal/epl-v10.html
7   -#
8   -# Contributors:
9   -# IBM Corporation - initial API and implementation
10   -###############################################################################
11   -bin.includes = plugin.xml,\
12   - plugin.properties,\
13   - .,\
14   - META-INF/,\
15   - about.html
16   -bin.excludes = bin/**,\
17   - @dot/**,\
18   - temp.folder/**
19   -src.includes = schema/,\
20   - component.xml
21   -source.. = sjavacore/
36 plugins/org.eclipse.jst.server.core/component.xml
... ... @@ -1,36 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<component xmlns="http://eclipse.org/wtp/releng/tools/component-model" name="org.eclipse.jst.server">
3   -<component-depends unrestricted="true"/>
4   - <plugin id="org.eclipse.jst.server.core" fragment="false"/>
5   - <package name="org.eclipse.jst.server.core">
6   -<!-- <type name="IConnectorModule"/>
7   - <type name="IEJBModule"/>
8   - <type name="IJ2EEModule"/>
9   - <type name="Servlet"/>
10   - <type name="IWebModule"/>
11   - <type name="IEnterpriseApplication"/>
12   - <type name="JndiObject"/>
13   - <type name="ClasspathRuntimeTargetHandler"/>
14   - <type name="IApplicationClientModule"/>
15   - <type name="EJBBean"/>
16   - <type name="JndiLaunchable"/>
17   - <type name="PublishUtil"/>
18   - <type name="IJavaRuntime"/> -->
19   - </package>
20   -
21   - <plugin id="org.eclipse.jst.server.ui" fragment="false"/>
22   -
23   - <plugin id="org.eclipse.jst.server.generic.core" fragment="false"/>
24   -
25   - <plugin id="org.eclipse.jst.server.generic.serverdefinitions" fragment="false"/>
26   -
27   - <plugin id="org.eclipse.jst.server.generic.ui" fragment="false"/>
28   -
29   - <plugin id="org.eclipse.jst.server.tomcat.core" fragment="false"/>
30   -
31   - <plugin id="org.eclipse.jst.server.tomcat.ui" fragment="false"/>
32   -
33   - <plugin id="org.eclipse.jst.server.geronimo.core" fragment="false"/>
34   -
35   - <plugin id="org.eclipse.jst.server.geronimo.ui" fragment="false"/>
36   -</component>
25 plugins/org.eclipse.jst.server.core/plugin.properties
... ... @@ -1,25 +0,0 @@
1   -###############################################################################
2   -# Copyright (c) 2004, 2005 IBM Corporation and others.
3   -# All rights reserved. This program and the accompanying materials
4   -# are made available under the terms of the Eclipse Public License v1.0
5   -# which accompanies this distribution, and is available at
6   -# http://www.eclipse.org/legal/epl-v10.html
7   -#
8   -# Contributors:
9   -# IBM Corporation - initial API and implementation
10   -###############################################################################
11   -pluginName=Java Server Support
12   -providerName=Eclipse.org
13   -
14   -runtimeTypeName=J2EE Runtime Library
15   -runtimeTypeDescription=A runtime that represents a set of J2EE runtime libraries.
16   -
17   -moduleTypeJ2EEWebName=J2EE Web module
18   -moduleTypeJ2EEEJBName=J2EE EJB module
19   -moduleTypeJ2EERARName=J2EE Connector module
20   -moduleTypeJ2EEClientName=J2EE Application Client module
21   -moduleTypeJ2EEEARName=J2EE Enterprise application
22   -moduleTypeJ2EEUtilityName=J2EE utility jar
23   -
24   -launchableJndi=JNDI Object
25   -launchableJndiDescription=Silently start an object locatable by JNDI.
119 plugins/org.eclipse.jst.server.core/plugin.xml
... ... @@ -1,119 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<?eclipse version="3.0"?>
3   -
4   -<plugin>
5   - <extension point="org.eclipse.jdt.core.classpathContainerInitializer">
6   - <classpathContainerInitializer
7   - id="org.eclipse.jst.server.core.container"
8   - class="org.eclipse.jst.server.core.internal.RuntimeClasspathContainerInitializer"/>
9   - </extension>
10   -
11   - <extension point="org.eclipse.wst.server.core.moduleTypes">
12   - <moduleType
13   - id="jst.web"
14   - name="%moduleTypeJ2EEWebName"/>
15   - <moduleType
16   - id="jst.ejb"
17   - name="%moduleTypeJ2EEEJBName"/>
18   - <moduleType
19   - id="jst.appClient"
20   - name="%moduleTypeJ2EEClientName"/>
21   - <moduleType
22   - id="jst.connector"
23   - name="%moduleTypeJ2EERARName"/>
24   - <moduleType
25   - id="jst.ear"
26   - name="%moduleTypeJ2EEEARName"/>
27   - <moduleType
28   - id="jst.utility"
29   - name="%moduleTypeJ2EEUtilityName"/>
30   - </extension>
31   -
32   - <extension point="org.eclipse.wst.server.core.runtimeTypes">
33   - <runtimeType
34   - id="org.eclipse.jst.server.core.runtimeType"
35   - name="%runtimeTypeName"
36   - description="%runtimeTypeDescription"
37   - class="org.eclipse.jst.server.core.internal.GenericRuntime">
38   - <moduleType
39   - types="jst.*"
40   - versions="*"/>
41   - </runtimeType>
42   - </extension>
43   -
44   - <extension point="org.eclipse.wst.server.core.runtimeTargetHandlers">
45   - <runtimeTargetHandler
46   - id="org.eclipse.jst.server.core.runtimeTarget"
47   - runtimeTypeIds="org.eclipse.jst.server.core.runtimeType"
48   - class="org.eclipse.jst.server.core.internal.GenericRuntimeTargetHandler"/>
49   - </extension>
50   -
51   - <extension point="org.eclipse.core.expressions.propertyTesters">
52   - <propertyTester
53   - namespace="org.eclipse.jst.cactus.expressions"
54   - type="org.eclipse.core.runtime.IAdaptable"
55   - class="org.eclipse.jst.server.core.internal.cactus.ServletTestCasePropertyTester"
56   - properties="isServletTestCase"
57   - id="org.eclipse.jst.server.cactus.expression"/>
58   - </extension>
59   -
60   - <extension point="org.eclipse.wst.server.core.moduleArtifactAdapters">
61   - <moduleArtifactAdapter
62   - id="org.eclipse.jst.server.cactus.moduleArtifactAdapter"
63   - class="org.eclipse.jst.server.core.internal.cactus.CactusModuleArtifactAdapterDelegate"
64   - priority="10">
65   - <enablement>
66   - <or>
67   - <instanceof value="org.eclipse.jdt.core.IMethod"/>
68   - <instanceof value="org.eclipse.jdt.core.ICompilationUnit"/>
69   - <instanceof value="org.eclipse.jdt.core.IType"/>
70   - </or>
71   - </enablement>
72   - </moduleArtifactAdapter>
73   - </extension>
74   -
75   - <extension point="org.eclipse.wst.server.core.launchableAdapters">
76   - <launchableAdapter
77   - id="org.eclipse.jst.server.cactus.launchableAdapter"
78   - class="org.eclipse.jst.server.core.internal.cactus.CactusLaunchableAdapterDelegate"/>
79   - </extension>
80   -
81   - <extension point="org.eclipse.wst.server.core.clients">
82   - <client
83   - id="org.eclipse.jst.server.jndi"
84   - name="%launchableJndi"
85   - description="%launchableJndiDescription"
86   - priority="-100"
87   - launchable="org.eclipse.jst.server.core.JndiLaunchable"
88   - class="org.eclipse.jst.server.core.internal.J2EELaunchableClient"/>
89   - </extension>
90   -
91   - <extension point="org.eclipse.wst.common.project.facet.core.runtimes">
92   - <runtime-component-type id="standard.jre">
93   - <!-- <icon>images/jre.gif</icon> -->
94   - </runtime-component-type>
95   -
96   - <runtime-component-version
97   - type="standard.jre"
98   - version="1.4"/>
99   - <runtime-component-version
100   - type="standard.jre"
101   - version="5.0"/>
102   -
103   - <adapter>
104   - <runtime-component id="standard.jre"/>
105   - <factory class="org.eclipse.jst.server.core.internal.StandardJreClasspathProvider$Factory"/>
106   - <type class="org.eclipse.wst.common.project.facet.core.runtime.classpath.IClasspathProvider"/>
107   - </adapter>
108   -
109   - <supported>
110   - <runtime-component id="standard.jre" version="1.4"/>
111   - <facet id="jst.java" version="1.4"/>
112   - </supported>
113   -
114   - <supported>
115   - <runtime-component id="standard.jre" version="5.0"/>
116   - <facet id="jst.java" version="5.0"/>
117   - </supported>
118   - </extension>
119   -</plugin>
519 ...ins/org.eclipse.jst.server.core/sjavacore/org/eclipse/jst/server/core/ClasspathRuntimeTargetHandler.java
... ... @@ -1,519 +0,0 @@
1   -/*******************************************************************************
2   - * Copyright (c) 2003, 2005 IBM Corporation and others.
3   - * All rights reserved. This program and the accompanying materials
4   - * are made available under the terms of the Eclipse Public License v1.0
5   - * which accompanies this distribution, and is available at
6   - * http://www.eclipse.org/legal/epl-v10.html
7   - *
8   - * Contributors:
9   - * IBM Corporation - Initial API and implementation
10   - *******************************************************************************/
11   -package org.eclipse.jst.server.core;
12   -
13   -import java.io.File;
14   -import java.util.ArrayList;
15   -import java.util.Iterator;
16   -import java.util.List;
17   -
18   -import org.eclipse.core.resources.IProject;
19   -import org.eclipse.core.runtime.*;
20   -import org.eclipse.jdt.core.*;
21   -import org.eclipse.jdt.launching.JavaRuntime;
22   -import org.eclipse.jst.server.core.internal.*;
23   -import org.eclipse.wst.server.core.IRuntime;
24   -import org.eclipse.wst.server.core.model.RuntimeTargetHandlerDelegate;
25   -/**
26   - * A runtime target handler that supports changing the classpath of the
27   - * project by adding one or more classpath containers. Runtime providers
28   - * can extend this class and implement the abstract methods to provide
29   - * the correct build path for their runtime type.
30   - *
31   - * <p>
32   - * <b>Provisional API:</b> This class/interface is part of an interim API that is still under development and expected to
33   - * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
34   - * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
35   - * (repeatedly) as the API evolves.
36   - * </p>
37   - * @plannedfor 1.0
38   - */
39   -public abstract class ClasspathRuntimeTargetHandler extends RuntimeTargetHandlerDelegate {
40   - private class SourceAttachmentUpdate {
41   - String runtimeId;
42   - String id;
43   - IPath entry;
44   - IPath sourceAttachmentPath;
45   - IPath sourceAttachmentRootPath;
46   - IClasspathAttribute[] attributes;
47   - }
48   -
49   - private List sourceAttachments;
50   -
51   - /** (non-Javadoc)
52   - * @see RuntimeTargetHandlerDelegate#setRuntimeTarget(IProject, IRuntime, IProgressMonitor)
53   - */
54   - public void setRuntimeTarget(IProject project, IRuntime runtime, IProgressMonitor monitor) throws CoreException {
55   - if (project == null || runtime == null)
56   - return;
57   -
58   - IJavaProject javaProject = null;
59   - try {
60   - javaProject = (IJavaProject) project.getNature(JavaCore.NATURE_ID);
61   - } catch (Exception e) {
62   - // ignore
63   - }
64   -
65   - if (javaProject == null)
66   - return;
67   -
68   - try {
69   - List list = new ArrayList();
70   - IClasspathEntry[] cp = javaProject.getRawClasspath();
71   - int size = cp.length;
72   - for (int i = 0; i < size; i++) {
73   - if (cp[i].getEntryKind() == IClasspathEntry.CPE_CONTAINER) {
74   - if (!cp[i].getPath().segment(0).equals(RuntimeClasspathContainer.SERVER_CONTAINER))
75   - list.add(cp[i]);
76   - } else
77   - list.add(cp[i]);
78   - }
79   -
80   - List add = new ArrayList();
81   - IClasspathEntry[] entries = getDelegateClasspathEntries(runtime, monitor);
82   - if (entries != null) {
83   - size = entries.length;
84   - for (int i = 0; i < size; i++)
85   - add.add(entries[i]);
86   - }
87   -
88   - String[] ids = getClasspathEntryIds();
89   - if (ids != null) {
90   - size = ids.length;
91   - for (int i = 0; i < size; i++) {
92   - String id2 = getRuntimeTargetHandler().getId();
93   - IPath path = new Path(RuntimeClasspathContainer.SERVER_CONTAINER).append(id2).append(runtime.getId());
94   - if (ids[i] != null)
95   - path.append(ids[i]);
96   - add.add(JavaCore.newContainerEntry(path));
97   - String id = "";
98   - if (path.segmentCount() > 3)
99   - id = path.segment(3);
100   - RuntimeClasspathContainer rcc = new RuntimeClasspathContainer(path, this, runtime, id);
101   - JavaCore.setClasspathContainer(path, new IJavaProject[] { javaProject}, new IClasspathContainer[] { rcc }, monitor);
102   - }
103   - }
104   -
105   - // clean up duplicates
106   - cleanupDuplicateClasspath(javaProject, list, add);
107   -
108   - Iterator iterator = add.iterator();
109   - while (iterator.hasNext()) {
110   - list.add(iterator.next());
111   - }
112   -
113   - cp = new IClasspathEntry[list.size()];
114   - list.toArray(cp);
115   - javaProject.setRawClasspath(cp, monitor);
116   - } catch (Exception e) {
117   - Trace.trace(Trace.WARNING, "Error setting runtime target", e);
118   - throw new CoreException(new Status(IStatus.ERROR, JavaServerPlugin.PLUGIN_ID, 0, e.getLocalizedMessage(), e));
119   - }
120   - }
121   -
122   - private void cleanupDuplicateClasspath(IJavaProject project, List current, List add) {
123   - if (project == null || current == null || add == null)
124   - throw new IllegalArgumentException();
125   -
126   - // check if we even have to bother
127   - boolean sourceOnly = true;
128   - Iterator iterator = current.iterator();
129   - while (iterator.hasNext()) {
130   - IClasspathEntry entry = (IClasspathEntry) iterator.next();
131   - if (entry.getEntryKind() != IClasspathEntry.CPE_SOURCE)
132   - sourceOnly = false;
133   - }
134   - if (sourceOnly)
135   - return;
136   -
137   - // remove any of our own containers
138   - List remove = new ArrayList();
139   - iterator = current.iterator();
140   - while (iterator.hasNext()) {
141   - IClasspathEntry entry = (IClasspathEntry) iterator.next();
142   -
143   - if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) {
144   - try {
145   - if (RuntimeClasspathContainer.SERVER_CONTAINER.equals(entry.getPath().segment(0))
146   - || JavaRuntime.JRE_CONTAINER.equals(entry.getPath().segment(0)))
147   - remove.add(entry);
148   - } catch (Exception e) {
149   - Trace.trace(Trace.FINEST, "Error resolving classpath container", e);
150   - }
151   - }
152   - }
153   -
154   - // expand the "add" list
155   - List addExpanded = new ArrayList();
156   - iterator = add.iterator();
157   - while (iterator.hasNext()) {
158   - IClasspathEntry entry = (IClasspathEntry) iterator.next();
159   - if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) {
160   - try {
161   - IClasspathContainer container = JavaCore.getClasspathContainer(entry.getPath(), project);
162   - IClasspathEntry[] entries = container.getClasspathEntries();
163   - int size = entries.length;
164   - for (int i = 0; i < size; i++) {
165   - if (entries[i] != null)
166   - addExpanded.add(entries[i]);
167   - }
168   - } catch (Exception e) {
169   - Trace.trace(Trace.FINEST, "Error resolving classpath container 2", e);
170   - }
171   - } else if (entry.getEntryKind() == IClasspathEntry.CPE_VARIABLE) {
172   - entry = JavaCore.getResolvedClasspathEntry(entry);
173   - if (entry != null)
174   - addExpanded.add(entry);
175   - } else
176   - addExpanded.add(entry);
177   - }
178   -
179   - // check for duplicates by also expanding the current list
180   - iterator = current.iterator();
181   - while (iterator.hasNext()) {
182   - IClasspathEntry entry = (IClasspathEntry) iterator.next();
183   -
184   - List currentExpanded = new ArrayList();
185   - if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) {
186   - try {
187   - IClasspathContainer container = JavaCore.getClasspathContainer(entry.getPath(), project);
188   - IClasspathEntry[] entries = container.getClasspathEntries();
189   - int size = entries.length;
190   - for (int i = 0; i < size; i++) {
191   - if (entries[i] != null)
192   - currentExpanded.add(entries[i]);
193   - }
194   - } catch (Exception e) {
195   - Trace.trace(Trace.FINEST, "Error resolving classpath container 3", e);
196   - }
197   - } else if (entry.getEntryKind() == IClasspathEntry.CPE_VARIABLE) {
198   - entry = JavaCore.getResolvedClasspathEntry(entry);
199   - if (entry != null)
200   - currentExpanded.add(entry);
201   - } else
202   - currentExpanded.add(entry);
203   -
204   - // loop over all of the expanded entries of this current entry
205   - boolean dup = false;
206   - Iterator iterator2 = currentExpanded.iterator();
207   - while (!dup && iterator2.hasNext()) {
208   - IClasspathEntry entry2 = (IClasspathEntry) iterator2.next();
209   - Iterator iterator3 = addExpanded.iterator();
210   - while (iterator3.hasNext()) {
211   - IClasspathEntry entry3 = (IClasspathEntry) iterator3.next();
212   - if (entry3.getPath().equals(entry2.getPath()))
213   - dup = true;
214   - }
215   - }
216   - if (dup && !remove.contains(entry))
217   - remove.add(entry);
218   - }
219   -
220   - // remove duplicates
221   - iterator = remove.iterator();
222   - while (iterator.hasNext()) {
223   - current.remove(iterator.next());
224   - }
225   - }
226   -
227   - /** (non-Javadoc)
228   - * @see RuntimeTargetHandlerDelegate#removeRuntimeTarget(IProject, IRuntime, IProgressMonitor)
229   - */
230   - public void removeRuntimeTarget(IProject project, IRuntime runtime, IProgressMonitor monitor) {
231   - Trace.trace(Trace.FINEST, "Removing runtime target");
232   - if (project == null || runtime == null)
233   - return;
234   -
235   - IJavaProject javaProject = null;
236   - try {
237   - javaProject = (IJavaProject) project.getNature(JavaCore.NATURE_ID);
238   - } catch (Exception e) {
239   - // ignore
240   - }
241   -
242   - if (javaProject == null)
243   - return;
244   -
245   - try {
246   - IClasspathEntry[] delegates = getDelegateClasspathEntries(runtime, monitor);
247   - int delegateSize = 0;
248   - if (delegates != null)
249   - delegateSize = delegates.length;
250   -
251   - List list = new ArrayList();
252   - IClasspathEntry[] cp = javaProject.getRawClasspath();
253   - int size = cp.length;
254   - for (int i = 0; i < size; i++) {
255   - boolean remove = false;
256   -
257   - if (cp[i].getPath().segment(0).equals(RuntimeClasspathContainer.SERVER_CONTAINER))
258   - remove = true;
259   -
260   - for (int j = 0; j < delegateSize; j++) {
261   - if (cp[i].equals(delegates[j]))
262   - remove = true;
263   - }
264   - if (!remove)
265   - list.add(cp[i]);
266   - }
267   -
268   - cp = new IClasspathEntry[list.size()];
269   - list.toArray(cp);
270   - javaProject.setRawClasspath(cp, monitor);
271   - } catch (Exception e) {
272   - Trace.trace(Trace.WARNING, "Error removing runtime target", e);
273   - }
274   - }
275   -
276   - private static void addJarFiles(File dir, List list, boolean includeSubdirectories) {
277   - int depth = 0;
278   - if (includeSubdirectories)
279   - depth = 2;
280   - addJarFiles(dir, list, depth);
281   - }
282   -
283   - private static void addJarFiles(File dir, List list, int depth) {
284   - if (dir == null)
285   - throw new IllegalArgumentException();
286   -
287   - File[] files = dir.listFiles();
288   - if (files != null) {
289   - int size = files.length;
290   - for (int i = 0; i < size; i++) {
291   - if (files[i].isDirectory() && depth > 0) {
292   - addJarFiles(files[i], list, depth - 1);
293   - } else if (files[i].getAbsolutePath().endsWith(".jar") || files[i].getAbsolutePath().endsWith(".zip")) {
294   - IPath path = new Path(files[i].getAbsolutePath());
295   - list.add(JavaCore.newLibraryEntry(path, null, null));
296   - }
297   - }
298   - }
299   - }
300   -
301   - /**
302   - * Add library entries to the given list for every jar file found in the
303   - * given directory. Optionally search subdirectories as well.
304   - *
305   - * @param list a list
306   - * @param dir a directory
307   - * @param includeSubdirectories <code>true</code> to include subdirectories, and
308   - * <code>false</code> otherwise
309   - */
310   - protected static void addLibraryEntries(List list, File dir, boolean includeSubdirectories) {
311   - if (dir == null)
312   - throw new IllegalArgumentException();
313   - addJarFiles(dir, list, includeSubdirectories);
314   - }
315   -
316   - /**
317   - * Returns the classpath entries that correspond to the given runtime.
318   - *
319   - * @param runtime a runtime
320   - * @param monitor a progress monitor, or <code>null</code> if progress
321   - * reporting and cancellation are not desired
322   - * @return an array of classpath entries
323   - */
324   - public IClasspathEntry[] getDelegateClasspathEntries(IRuntime runtime, IProgressMonitor monitor) {
325   - return null;
326   - }
327   -
328   - /**
329   - * Returns the classpath entry ids for this runtime target handler. These
330   - * ids will be added to the classpath container id to create a new fully
331   - * qualified classpath container id.
332   - * <p>
333   - * By default, there is a single classpath entry for the runtime, with no
334   - * extra id (<code>new String[1]</code>). To create multiple ids, just
335   - * return a string array containing the ids. For instance, to have two
336   - * classpath containers with ids "id1" and "id2", use
337   - * <code>new String[] { "id1", "id2" }</code>
338   - * </p>
339   - *
340   - * @return an array of classpath entry ids
341   - */
342   - public String[] getClasspathEntryIds() {
343   - return new String[1];
344   - }
345   -
346   - /**
347   - * Request that the classpath container for the given runtime and id be updated
348   - * with the given classpath container entries.
349   - *
350   - * @param runtime a runtime
351   - * @param id an id
352   - * @param entries an array of classpath entries
353   - */
354   - public void requestClasspathContainerUpdate(IRuntime runtime, String id, IClasspathEntry[] entries) {
355   - // default behaviour is to save the source path entries
356   - if (runtime == null || entries == null)
357   - return;
358   -
359   - // find the source attachments
360   - sourceAttachments = new ArrayList();
361   -
362   - int size = entries.length;
363   - for (int i = 0; i < size; i++) {
364   - if (entries[i].getSourceAttachmentPath() != null || entries[i].getExtraAttributes() != null) {
365   - SourceAttachmentUpdate sau = new SourceAttachmentUpdate();
366   - sau.runtimeId = runtime.getId();
367   - sau.id = id;
368   - sau.entry = entries[i].getPath();
369   - sau.sourceAttachmentPath = entries[i].getSourceAttachmentPath();
370   - sau.sourceAttachmentRootPath = entries[i].getSourceAttachmentRootPath();
371   - sau.attributes = entries[i].getExtraAttributes();
372   - sourceAttachments.add(sau);
373   - }
374   - }
375   - save();
376   - }
377   -
378   - /**
379   - * Returns the classpath container label for the given runtime and the given
380   - * classpath container id (returned from getClasspathEntryIds()). This method
381   - * must not return null.
382   - *
383   - * @param runtime the runtime to resolve the container label for
384   - * @param id the classpath entry id
385   - * @return a classpath container label
386   - */
387   - public abstract String getClasspathContainerLabel(IRuntime runtime, String id);
388   -
389   - /**
390   - * Resolve the classpath container.
391   - *
392   - * @param runtime a runtime
393   - * @param id a container id
394   - * @return a possibly empty array of classpath entries
395   - */
396   - public IClasspathEntry[] resolveClasspathContainerImpl(IRuntime runtime, String id) {
397   - IClasspathEntry[] entries = resolveClasspathContainer(runtime, id);
398   -
399   - if (entries == null)
400   - entries = new IClasspathEntry[0];
401   -
402   - if (sourceAttachments == null)
403   - load();
404   -
405   - int size = entries.length;
406   - int size2 = sourceAttachments.size();
407   - for (int i = 0; i < size; i++) {
408   - for (int j = 0; j < size2; j++) {
409   - SourceAttachmentUpdate sau = (SourceAttachmentUpdate) sourceAttachments.get(j);
410   - if ((id != null && sau.id.equals(id)) || (id == null && sau.id == null)) {
411   - if (sau.runtimeId.equals(runtime.getId()) && sau.entry.equals(entries[i].getPath())) {
412   - entries[i] = JavaCore.newLibraryEntry(entries[i].getPath(), sau.sourceAttachmentPath, sau.sourceAttachmentRootPath, new IAccessRule[0], sau.attributes, false);
413   - }
414   - }
415   - }
416   - }
417   -
418   - return entries;
419   - }
420   -
421   - private void save() {
422   - if (sourceAttachments == null)
423   - return;
424   - String id = getRuntimeTargetHandler().getId();
425   - String filename = JavaServerPlugin.getInstance().getStateLocation().append(id + ".xml").toOSString();
426   - try {
427   - XMLMemento memento = XMLMemento.createWriteRoot("classpath");
428   -
429   - Iterator iterator = sourceAttachments.iterator();
430   - while (iterator.hasNext()) {
431   - SourceAttachmentUpdate sau = (SourceAttachmentUpdate) iterator.next();
432   - IMemento child = memento.createChild("source-attachment");
433   - child.putString("runtime-id", sau.runtimeId);
434   - if (sau.id != null)
435   - child.putString("id", sau.id);
436   - if (sau.entry != null)
437   - child.putString("entry", sau.entry.toPortableString());
438   - if (sau.sourceAttachmentPath != null)
439   - child.putString("source-attachment-path", sau.sourceAttachmentPath.toPortableString());
440   - if (sau.sourceAttachmentRootPath != null)
441   - child.putString("source-attachment-root-path", sau.sourceAttachmentRootPath.toPortableString());
442   - if (sau.attributes != null) {
443   - int size = sau.attributes.length;
444   - for (int i = 0; i < size; i++) {
445   - IClasspathAttribute attr = sau.attributes[i];
446   - IMemento attrChild = child.createChild("attribute");
447   - attrChild.putString("name", attr.getName());
448   - attrChild.putString("value", attr.getValue());
449   - }
450   - }
451   - }
452   -
453   - memento.saveToFile(filename);
454   - } catch (Exception e) {
455   - Trace.trace(Trace.SEVERE, "Error saving source path info", e);
456   - }
457   - }
458   -
459   - private void load() {
460   - sourceAttachments = new ArrayList();
461   -
462   - if (getRuntimeTargetHandler() == null)
463   - return;
464   - String id = getRuntimeTargetHandler().getId();
465   - String filename = JavaServerPlugin.getInstance().getStateLocation().append(id + ".xml").toOSString();
466   -
467   - try {
468   - IMemento memento = XMLMemento.loadMemento(filename);
469   -
470   - IMemento[] children = memento.getChildren("source-attachment");
471   - int size = children.length;
472   -
473   - for (int i = 0; i < size; i++) {
474   - try {
475   - SourceAttachmentUpdate sau = new SourceAttachmentUpdate();
476   - sau.runtimeId = children[i].getString("runtime-id");
477   - sau.id = children[i].getString("id");
478   - String temp = children[i].getString("entry");
479   - if (temp != null)
480   - sau.entry = new Path(temp);
481   - temp = children[i].getString("source-attachment-path");
482   - if (temp != null)
483   - sau.sourceAttachmentPath = new Path(temp);
484   - temp = children[i].getString("source-attachment-root-path");
485   - if (temp != null)
486   - sau.sourceAttachmentRootPath = new Path(temp);
487   - IMemento[] attrChildren = children[i].getChildren("attribute");
488   - if (attrChildren != null) {
489   - int size2 = attrChildren.length;
490   - sau.attributes = new IClasspathAttribute[size2];
491   - for (int j = 0; j < size2; j++) {
492   - String name = attrChildren[j].getString("name");
493   - String value = attrChildren[j].getString("value");
494   - sau.attributes[j] = JavaCore.newClasspathAttribute(name, value);
495   - }
496   - }
497   - sourceAttachments.add(sau);
498   - } catch (Exception e) {
499   - Trace.trace(Trace.WARNING, "Could not load monitor: " + e);
500   - }
501   - }
502   - } catch (Exception e) {
503   - Trace.trace(Trace.WARNING, "Could not load source path info: " + e.getMessage());
504   - }
505   - }
506   -
507   - /**
508   - * Resolves (creates the classpath entries for) the classpath container with
509   - * the given runtime and the given classpath container id (returned from
510   - * getClasspathEntryIds()). If the classpath container cannot be resolved
511   - * (for instance, if the runtime does not exist), return null.
512   - *
513   - * @param runtime the runtime to resolve the container for
514   - * @param id the classpath entry id
515   - * @return an array of classpath entries for the container, or null if the
516   - * container could not be resolved
517   - */
518