Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit be842ba265ec435ea8d97d9acb6f570f5ce8ad84 1 parent 685e33b
ndai authored
Showing with 0 additions and 6,932 deletions.
  1. +0 −7 plugins/org.eclipse.jst.server.generic.core/.classpath
  2. +0 −1  plugins/org.eclipse.jst.server.generic.core/.cvsignore
  3. +0 −33 plugins/org.eclipse.jst.server.generic.core/.project
  4. +0 −10 plugins/org.eclipse.jst.server.generic.core/build.properties
  5. +0 −7 plugins/org.eclipse.jst.server.generic.core/plugin.properties
  6. +0 −123 plugins/org.eclipse.jst.server.generic.core/plugin.xml
  7. +0 −117 plugins/org.eclipse.jst.server.generic.core/servers/jboss323.server
  8. +0 −92 plugins/org.eclipse.jst.server.generic.core/servers/jonas.server
  9. +0 −109 plugins/org.eclipse.jst.server.generic.core/servers/weblogic81.server
  10. +0 −130 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/CorePlugin.java
  11. +0 −183 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/AntPublisher.java
  12. +0 −649 ...ins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericServer.java
  13. +0 −56 ...erver.generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerConfigurationDelegate.java
  14. +0 −195 ...er.generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerConfigurationWorkingCopy.java
  15. +0 −130 ...generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerLaunchConfigurationDelegate.java
  16. +0 −92 ...r.generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerLaunchableAdapterDelegate.java
  17. +0 −114 ....eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerRuntime.java
  18. +0 −65 ...server.generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerRuntimeTargetHandler.java
  19. +0 −126 ...t.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerRuntimeWorkingCopy.java
  20. +0 −82 ....generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerSourcePathComputerDelegate.java
  21. +0 −274 ...ipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerWorkingCopy.java
  22. +0 −110 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/PingThread.java
  23. +0 −86 ...e.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/ServerTypeDefinitionManager.java
  24. +0 −74 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/Trace.java
  25. +0 −136 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/xml/ClasspathItem.java
  26. +0 −41 ...s/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/xml/IXMLTagProcessor.java
  27. +0 −407 ...ns/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/xml/ServerAdminTool.java
  28. +0 −739 ...g.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/xml/ServerTypeDefinition.java
  29. +0 −135 ...e.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/xml/ServerTypeDefinitionProperty.java
  30. +0 −214 ...s/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/xml/XMLConfiguration.java
  31. +0 −152 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/xml/XMLReader.java
  32. +0 −164 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/xml/XMLUtils.java
  33. +0 −7 plugins/org.eclipse.jst.server.generic.modules/.classpath
  34. +0 −1  plugins/org.eclipse.jst.server.generic.modules/.cvsignore
  35. +0 −28 plugins/org.eclipse.jst.server.generic.modules/.project
  36. +0 −6 plugins/org.eclipse.jst.server.generic.modules/build.properties
  37. +0 −42 plugins/org.eclipse.jst.server.generic.modules/plugin.xml
  38. +0 −121 plugins/org.eclipse.jst.server.generic.modules/src/org/eclipse/jst/server/generic/modules/EjbModule.java
  39. +0 −132 ...rg.eclipse.jst.server.generic.modules/src/org/eclipse/jst/server/generic/modules/EnterpriseApplication.java
  40. +0 −102 plugins/org.eclipse.jst.server.generic.modules/src/org/eclipse/jst/server/generic/modules/J2EEModule.java
  41. +0 −56 ...ipse.jst.server.generic.modules/src/org/eclipse/jst/server/generic/modules/J2EESpecModuleObjectAdapter.java
  42. +0 −196 ...se.jst.server.generic.modules/src/org/eclipse/jst/server/generic/modules/J2eeSpecModuleFactoryDelegate.java
  43. +0 −100 plugins/org.eclipse.jst.server.generic.modules/src/org/eclipse/jst/server/generic/modules/ModulesPlugin.java
  44. +0 −72 plugins/org.eclipse.jst.server.generic.modules/src/org/eclipse/jst/server/generic/modules/Trace.java
  45. +0 −78 plugins/org.eclipse.jst.server.generic.modules/src/org/eclipse/jst/server/generic/modules/Utils.java
  46. +0 −147 plugins/org.eclipse.jst.server.generic.modules/src/org/eclipse/jst/server/generic/modules/WebModule.java
  47. +0 −7 plugins/org.eclipse.jst.server.generic.ui/.classpath
  48. +0 −1  plugins/org.eclipse.jst.server.generic.ui/.cvsignore
  49. +0 −28 plugins/org.eclipse.jst.server.generic.ui/.project
  50. +0 −10 plugins/org.eclipse.jst.server.generic.ui/build.properties
  51. BIN  plugins/org.eclipse.jst.server.generic.ui/icons/obj16/lomboz.gif
  52. +0 −3  plugins/org.eclipse.jst.server.generic.ui/plugin.properties
  53. +0 −92 plugins/org.eclipse.jst.server.generic.ui/plugin.xml
  54. +0 −67 ...st.server.generic.ui/src/org/eclipse/jst/server/generic/internal/ui/GenericLaunchConfigurationTabGroup.java
  55. +0 −59 ...se.jst.server.generic.ui/src/org/eclipse/jst/server/generic/internal/ui/GenericServerEditorPartFactory.java
  56. +0 −58 ...jst.server.generic.ui/src/org/eclipse/jst/server/generic/internal/ui/GenericServerEditorSectionFactory.java
  57. +0 −265 ...lipse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/internal/ui/GenericServerWizardFragment.java
  58. +0 −300 ...se.jst.server.generic.ui/src/org/eclipse/jst/server/generic/internal/ui/ServerRuntimePropertyComposite.java
  59. +0 −101 plugins/org.eclipse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/GenericUiPlugin.java
View
7 plugins/org.eclipse.jst.server.generic.core/.classpath
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
View
1  plugins/org.eclipse.jst.server.generic.core/.cvsignore
@@ -1 +0,0 @@
-bin
View
33 plugins/org.eclipse.jst.server.generic.core/.project
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.jst.server.generic.core</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>com.ibm.sse.model.structuredbuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
View
10 plugins/org.eclipse.jst.server.generic.core/build.properties
@@ -1,10 +0,0 @@
-source.genericserver.jar = src/
-output.genericserver.jar = bin/
-bin.includes = plugin.xml,\
- genericserver.jar,\
- servers/,\
- plugin.properties
-src.includes = servers/,\
- src/,\
- plugin.xml,\
- plugin.properties
View
7 plugins/org.eclipse.jst.server.generic.core/plugin.properties
@@ -1,7 +0,0 @@
-pluginName= Generic J2EE Server Plugin
-providerName=Eteration.com
-
-errorName=Invalid name.
-errorLocation=Invalid location.
-errorJRE=Invalid JRE.
-errorDuplicateRuntimeName=Name is already in use.
View
123 plugins/org.eclipse.jst.server.generic.core/plugin.xml
@@ -1,123 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-<plugin
- id="org.eclipse.jst.server.generic.core"
- name="%pluginName"
- version="1.0.0"
- provider-name="%providerName"
- class="org.eclipse.jst.server.generic.core.CorePlugin">
-
- <runtime>
- <library name="genericserver.jar">
- <export name="*"/>
- </library>
- </runtime>
-
- <requires>
- <import plugin="org.eclipse.ui"/>
- <import plugin="org.eclipse.core.runtime"/>
- <import plugin="org.eclipse.core.resources" />
- <import plugin="org.eclipse.debug.core" />
- <import plugin="org.eclipse.jdt.core" />
- <import plugin="org.eclipse.jdt.launching" />
- <import plugin="org.eclipse.wst.server.core" />
- <import plugin="org.eclipse.jst.server.core" />
- <import plugin="org.eclipse.debug.ui"/>
- <import plugin="org.eclipse.ant.core"/>
- <import plugin="org.eclipse.ant.ui"/>
- <import plugin="org.eclipse.jst.server.generic.modules"/>
- </requires>
-
- <extension point="org.eclipse.wst.server.core.runtimeTargetHandlers">
- <runtimeTargetHandler
- id="org.eclipse.jst.server.generic.runtimeTarget"
- runtimeTypeIds="org.eclipse.jst.server.generic.runtime"
- class="org.eclipse.jst.server.generic.internal.core.GenericServerRuntimeTargetHandler"/>
- </extension>
-
- <extension point="org.eclipse.wst.server.core.moduleKinds">
- <moduleKind
- id="j2ee.web"
- name="war file"/>
- <moduleKind
- id="j2ee.ejb"
- name="ejb"/>
- <moduleKind
- id="j2ee.ear"
- name="ear"/>
- </extension>
-
- <extension point="org.eclipse.wst.server.core.runtimeTypes">
- <runtimeType
- id="org.eclipse.jst.server.generic.runtime"
- name="J2EE Generic Server Runtime"
- description="This is the Lomboz type runtime support"
- vendor="All"
- version="0"
- order="100"
- class="org.eclipse.jst.server.generic.internal.core.GenericServerRuntime"
- workingCopyClass="org.eclipse.jst.server.generic.internal.core.GenericServerRuntimeWorkingCopy">
- <moduleType
- types="j2ee.web"
- versions="1.2, 1.3, 1.4"/>
- </runtimeType>
- </extension>
-
-<extension point="org.eclipse.wst.server.core.serverTypes">
- <serverType
- runtime="true"
- class="org.eclipse.jst.server.generic.internal.core.GenericServer"
- order="100"
- hosts="localhost"
- id="org.eclipse.jst.server.generic"
- initialState="stopped"
- workingCopyClass="org.eclipse.jst.server.generic.internal.core.GenericServerWorkingCopy"
- runtimeTypeId="org.eclipse.jst.server.generic.runtime"
- description="Lomboz like generic server"
- launchConfigId="org.eclipse.jst.server.generic.core.launchConfigurationType"
- monitorable="true"
- name="J2EE Generic server support"
- launchModes="run,debug"
- configurationTypeId="org.eclipse.jst.server.generic">
- </serverType>
- </extension>
-
- <extension point="org.eclipse.wst.server.core.serverConfigurationTypes">
- <serverConfigurationType
- id="org.eclipse.jst.server.generic"
- name="J2EE Generic server configuration"
- description="Lomboz like server configuration"
- isFolder="true"
- class="org.eclipse.jst.server.generic.internal.core.GenericServerConfigurationDelegate"
- workingCopyClass="org.eclipse.jst.server.generic.internal.core.GenericServerConfigurationWorkingCopy">
- </serverConfigurationType>
- </extension>
-
- <extension point="org.eclipse.debug.core.launchConfigurationTypes">
- <launchConfigurationType
- id="org.eclipse.jst.server.generic.core.launchConfigurationType"
- name="Generic server launch configuration type"
- delegate="org.eclipse.jst.server.generic.internal.core.GenericServerLaunchConfigurationDelegate"
- modes="run, debug"
- sourceLocatorId="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector"
- sourcePathComputerId="org.eclipse.jst.server.generic.core.sourcePathComputer"/>
- </extension>
-
- <extension point="org.eclipse.debug.core.sourcePathComputers">
- <sourcePathComputer
- id="org.eclipse.jst.server.generic.core.sourcePathComputer"
- class="org.eclipse.jst.server.generic.internal.core.GenericServerSourcePathComputerDelegate"/>
- </extension>
-
- <extension point="org.eclipse.wst.server.core.launchableAdapters">
- <launchableAdapter
- class="org.eclipse.jst.server.generic.internal.core.GenericServerLaunchableAdapterDelegate"
- id="org.eclipse.jst.server.generic.web"/>
- </extension>
-
-
-
-
-
-
-</plugin>
View
117 plugins/org.eclipse.jst.server.generic.core/servers/jboss323.server
@@ -1,117 +0,0 @@
-
-<serverDefinition
- name="JBOSS 3.2.3"
- ejbModules="true"
- webModules="true"
- earModules="true">
-<property id="serverRootDirectory"
- label="Application Server Directory:"
- type="directory"
- default="/your_server_root/appservers/jboss-3.2.3" />
-<property id="serverAddress"
- label="Address:"
- type="string"
- default="127.0.0.1" />
-<property id="port"
- label="Port:"
- type="string"
- default="8080" />
-<property id="serverConfig"
- label="Server Configuration (minimal/default/all):"
- type="string"
- default="default" />
-<property id="classPathVariableName"
- label="Classpath Variable Name:"
- type="string"
- default="JBOSS32X" />
-<property id="classPath"
- label="Classpath Variable:"
- type="directory"
- default="/your_server_root/appservers/jboss-3.2.3" />
-<serverHome>${serverRootDirectory}</serverHome>
-<webModulesDeployDirectory>${serverRootDirectory}/server/${serverConfig}/deploy</webModulesDeployDirectory>
-<ejbModulesDeployDirectory>${serverRootDirectory}/server/${serverConfig}/deploy</ejbModulesDeployDirectory>
-<earModulesDeployDirectory>${serverRootDirectory}/server/${serverConfig}/deploy</earModulesDeployDirectory>
-<jndiInitialContextFactory>org.jnp.interfaces.NamingContextFactory</jndiInitialContextFactory>
-<jndiProviderUrl>jnp://${serverAddress}:1099</jndiProviderUrl>
-<startClass>org.jboss.Main</startClass>
-<startWorkingDirectory>${serverRootDirectory}/bin</startWorkingDirectory>
-<startVmParameters></startVmParameters>
-<startProgramArguments>-c ${serverConfig}</startProgramArguments>
-<stopClass>org.jboss.Shutdown</stopClass>
-<stopWorkingDirectory>${serverRootDirectory}/bin</stopWorkingDirectory>
-<stopVmParameters></stopVmParameters>
-<stopProgramArguments>-S</stopProgramArguments>
-<serverClassPath>
- <jar type="variable">${classPath}/bin/run.jar</jar>
- <jar type="variable">${classPath}/bin/shutdown.jar</jar>
- <jar type="variable">${classPath}/client/jboss-j2ee.jar</jar>
- <jar type="variable">${classPath}/server/${serverConfig}/lib/javax.servlet.jar</jar>
- <jar type="variable">${classPath}/lib/jboss-boot.jar</jar>
- <jar type="variable">${classPath}/lib/jboss-system.jar</jar>
- <jar type="variable">${classPath}/lib/concurrent.jar</jar>
- <jar type="variable">${classPath}/server/${serverConfig}/lib/jboss.jar</jar>
- <jar type="variable">${classPath}/server/${serverConfig}/lib/jnpserver.jar</jar>
- <jar type="variable">${classPath}/server/${serverConfig}/lib/jpl-pattern.jar</jar>
- <jar type="variable">${classPath}/server/${serverConfig}/lib/jpl-util.jar</jar>
- <jar type="variable">${classPath}/server/${serverConfig}/lib/jboss-transaction.jar</jar>
- <jar type="variable">${classPath}/server/${serverConfig}/lib/bcel.jar</jar>
- <jar type="variable">${classPath}/lib/jdom.jar</jar>
- <jar type="variable">${classPath}/lib/xercesImpl.jar</jar>
- <jar type="variable">${classPath}/lib/xml-apis.jar</jar>
- <jar type="variable">${classPath}/lib/gnu-regexp.jar</jar>
- <jar type="variable">${classPath}/lib/getopt.jar</jar>
-</serverClassPath>
-<clientClassPath>
- <jar type="variable">${classPath}/client/jboss-j2ee.jar</jar>
- <jar type="variable">${classPath}/client/jnp-client.jar</jar>
- <jar type="variable">${classPath}/client/jboss-client.jar</jar>
- <jar type="variable">${classPath}/client/jboss-common-client.jar</jar>
- <jar type="variable">${classPath}/client/jbosssx-client.jar</jar>
- <jar type="variable">${classPath}/client/log4j.jar</jar>
- <jar type="variable">${classPath}/client/jnet.jar</jar>
- <jar type="variable">${classPath}/server/default/lib/jnpserver.jar</jar>
- <jar type="variable">${classPath}/client/jboss-jaas.jar</jar>
-</clientClassPath>
-<projectClassPath>
- <jar type="variable">${classPath}/bin/run.jar</jar>
- <jar type="variable">${classPath}/bin/shutdown.jar</jar>
- <jar type="variable">${classPath}/client/jboss-j2ee.jar</jar>
- <jar type="variable">${classPath}/server/${serverConfig}/lib/javax.servlet.jar</jar>
- <jar type="variable">${classPath}/lib/jboss-boot.jar</jar>
- <jar type="variable">${classPath}/lib/jboss-system.jar</jar>
- <jar type="variable">${classPath}/lib/concurrent.jar</jar>
- <jar type="variable">${classPath}/server/${serverConfig}/lib/jboss.jar</jar>
- <jar type="variable">${classPath}/server/${serverConfig}/lib/jnpserver.jar</jar>
- <jar type="variable">${classPath}/server/${serverConfig}/lib/jpl-pattern.jar</jar>
- <jar type="variable">${classPath}/server/${serverConfig}/lib/jpl-util.jar</jar>
- <jar type="variable">${classPath}/server/${serverConfig}/lib/jboss-transaction.jar</jar>
- <jar type="variable">${classPath}/server/${serverConfig}/lib/bcel.jar</jar>
-</projectClassPath>
-<adminTool>
- <web>
- <deploy>
- <![CDATA[
-
- <project name="deployextension" default="deploy" basedir=".">
- <target name="deploy">
- <jar destfile="${deploymentUnitName}.war">
- <zipfileset dir="${moduleDir}">
- <include name="**/*.*"/>
- <exclude name="**/*.war"/>
- </zipfileset>
- </jar>
- <move file="${deploymentUnitName}.war" todir="${deployDir}"/>
- </target>
- </project>
-
- ]]>
-
- </deploy>
- <undeploy>
- </undeploy>
- </web>
-</adminTool>
-<adminToolPath>
-</adminToolPath>
-</serverDefinition>
View
92 plugins/org.eclipse.jst.server.generic.core/servers/jonas.server
@@ -1,92 +0,0 @@
-
-<serverDefinition
- name="JonAS 4.1.4"
- ejbModules="true"
- webModules="true"
- earModules="true">
-<property id="jonasRoot"
- label="JonAS Installation Directory:"
- type="directory"
- default="/your_server_root/JOnAS-4.1.4" />
-<property id="jonasBase"
- label="JonAS Configuration Directory:"
- type="directory"
- default="/your_server_root/JOnAS-4.1.4" />
-<property id="serverAddress"
- label="Address:"
- type="string"
- default="127.0.0.1" />
-<property id="port"
- label="Port:"
- type="string"
- default="9000" />
-<property id="protocols"
- label="Ejb Protocols:"
- type="string"
- default="jrmp" />
-<property id="mappernames"
- label="Mapper names:"
- type="string"
- default="" />
-<property id="classPathVariableName"
- label="Classpath Variable Name:"
- type="string"
- default="JONAS" />
-<property id="classPath"
- label="Classpath Variable:"
- type="directory"
- default="/your_server_root/JOnAS-4.1.4" />
-<serverHome>${jonasRoot}</serverHome>
-<webModulesDeployDirectory>${jonasBase}/webapps/autoload</webModulesDeployDirectory>
-<ejbModulesDeployDirectory>${jonasBase}/ejbjars/autoload</ejbModulesDeployDirectory>
-<earModulesDeployDirectory>${jonasBase}/apps/autoload</earModulesDeployDirectory>
-<jndiInitialContextFactory>org.objectweb.carol.jndi.spi.MultiOrbInitialContextFactory</jndiInitialContextFactory>
-<jndiProviderUrl>iiop://${serverAddress}:2001</jndiProviderUrl>
-<startClass>org.objectweb.jonas.server.Bootstrap</startClass>
-<startWorkingDirectory>${jonasRoot}</startWorkingDirectory>
-<startVmParameters>-Dinstall.root=${jonasRoot} -Djonas.base=${jonasBase} -Djava.security.policy=${jonasRoot}/conf/java.policy -Djonas.classpath= -Djonas.default.classloader=true -Djavax.rmi.CORBA.PortableRemoteObjectClass=org.objectweb.carol.rmi.multi.MultiPRODelegate -Djava.naming.factory.initial=org.objectweb.carol.jndi.spi.MultiOrbInitialContextFactory -Djava.security.auth.login.config=${jonasRoot}/conf/jaas.config -Djava.endorsed.dirs=${jonasRoot}/lib/endorsed -Djava.rmi.server.RMIClassLoaderSpi=org.objectweb.jonas.server.RemoteClassLoaderSpi</startVmParameters>
-<startProgramArguments>org.objectweb.jonas.server.Server</startProgramArguments>
-<stopClass>org.objectweb.jonas.server.Bootstrap</stopClass>
-<stopWorkingDirectory>${jonasRoot}</stopWorkingDirectory>
-<stopVmParameters>-Dinstall.root=${jonasRoot} -Djonas.base=${jonasBase} -Djava.security.policy=${jonasRoot}/conf/java.policy -Djonas.classpath= -Djonas.default.classloader=true -Djavax.rmi.CORBA.PortableRemoteObjectClass=org.objectweb.carol.rmi.multi.MultiPRODelegate -Djava.naming.factory.initial=org.objectweb.carol.jndi.spi.MultiOrbInitialContextFactory -Djava.security.auth.login.config=${jonasRoot}/conf/jaas.config -Djava.endorsed.dirs=${jonasRoot}/lib/endorsed -Djava.rmi.server.RMIClassLoaderSpi=org.objectweb.jonas.server.RemoteClassLoaderSpi</stopVmParameters>
-<stopProgramArguments>org.objectweb.jonas.adm.JonasAdmin -s</stopProgramArguments>
-<serverClassPath>
- <jar type="variable">${classPath}/lib/common/ow_jonas_bootstrap.jar</jar>
- <jar type="variable">${classPath}/conf</jar>
-</serverClassPath>
-<clientClassPath>
- <jar type="variable">${classPath}/lib/client.jar</jar>
-</clientClassPath>
-<projectClassPath>
- <jar type="variable">${classPath}/lib/common/ow_jonas_bootstrap.jar</jar>
- <jar type="variable">${classPath}/lib/common/j2ee/ejb/ejb-2_1-api.jar</jar>
-</projectClassPath>
-<adminTool>
- <web>
- <deploy>
- <![CDATA[
-
- <project name="deployextension" default="deploy" basedir=".">
- <target name="deploy">
- <jar destfile="${deploymentUnitName}.war">
- <zipfileset dir="${moduleDir}">
- <include name="**/*.*"/>
- <exclude name="**/*.war"/>
- </zipfileset>
- </jar>
- <move file="${deploymentUnitName}.war" todir="${deployDir}"/>
- </target>
- </project>
-
- ]]>
-
- </deploy>
- <undeploy>
- </undeploy>
- </web>
-</adminTool>
-<adminToolPath>
- <jar type="absolute">${jonasBase}/conf</jar>
- <jar type="absolute">${classPath}/lib/common/ow_jonas_bootstrap.jar</jar>
-</adminToolPath>
-</serverDefinition>
View
109 plugins/org.eclipse.jst.server.generic.core/servers/weblogic81.server
@@ -1,109 +0,0 @@
-
-<serverDefinition
- name="BEA Weblogic Server v8.1"
- ejbModules="true"
- webModules="true"
- earModules="true">
-<property id="beaHome"
- label="BEA Home Directory:"
- type="directory"
- default="C:/bea" />
-<property id="serverRootDirectory"
- label="Application Server Directory:"
- type="directory"
- default="C:/bea/weblogic81" />
-<property id="domainName"
- label="Admin Domain Name:"
- type="string"
- default="mydomain" />
-<property id="domainDirectory"
- label="Administration Domain Directory:"
- type="directory"
- default="C:/bea/user_projects/domains/mydomain" />
-<property id="serverName"
- label="Server Name:"
- type="string"
- default="myserver" />
-<property id="userName"
- label="User Name:"
- type="string"
- default="system" />
-<property id="password"
- label="Password:"
- type="string"
- default="weblogic" />
-<property id="productionMode"
- label="Production Mode:"
- type="boolean"
- default="false" />
-<property id="serverAddress"
- label="Address:"
- type="string"
- default="127.0.0.1" />
-<property id="port"
- label="Port:"
- type="string"
- default="7001" />
-<!--<property id="classPathVariableName"
- label="Classpath Variable Name:"
- type="string"
- default="WEBLOGIC81" />-->
-<property id="classPath"
- label="Classpath Variable:"
- type="directory"
- default="C:/bea/weblogic81/server/lib" />
-<serverHome>${serverRootDirectory}</serverHome>
-<webModulesDeployDirectory>${domainDirectory}/applications</webModulesDeployDirectory>
-<ejbModulesDeployDirectory>${domainDirectory}/applications</ejbModulesDeployDirectory>
-<earModulesDeployDirectory>${domainDirectory}/applications</earModulesDeployDirectory>
-<jndiInitialContextFactory>weblogic.jndi.WLInitialContextFactory</jndiInitialContextFactory>
-<jndiProviderUrl>t3:/${serverAddress}:${port}</jndiProviderUrl>
-<startClass>weblogic.Server</startClass>
-<startWorkingDirectory>${domainDirectory}</startWorkingDirectory>
-<startVmParameters>-Xms32m -Xmx200m -XX:MaxPermSize=128m -Dweblogic.Name=${serverName} -Dbea.home="${beaHome}" -Dweblogic.management.username=${userName} -Dweblogic.management.password=${password} -Dweblogic.ProductionModeEnabled=${productionMode} -Djava.security.policy=="${serverRootDirectory}/server/lib/weblogic.policy"</startVmParameters>
-<startProgramArguments></startProgramArguments>
-<stopClass>weblogic.Admin</stopClass>
-<stopWorkingDirectory>${domainDirectory}</stopWorkingDirectory>
-<stopVmParameters></stopVmParameters>
-<stopProgramArguments>-url t3://${serverAddress}:${port} -username ${userName} -password ${password} SHUTDOWN</stopProgramArguments>
-<serverClassPath>
- <jar type="variable">${classPath}/weblogic.jar</jar>
- <jar type="variable">${classPath}/ojdbc14.jar</jar>
- <jar type="variable">${classPath}/webservices.jar</jar>
-</serverClassPath>
-<clientClassPath>
- <jar type="variable">${classPath}/wlclient.jar</jar>
- <jar type="variable">${classPath}/wsclient81.jar</jar>
- <jar type="variable">${classPath}/wljtaclient.jar</jar>
- <jar type="variable">${classPath}/wljmsclient.jar</jar>
-</clientClassPath>
-<projectClassPath>
- <jar type="variable">${classPath}/weblogic.jar</jar>
- <jar type="variable">${classPath}/ojdbc14.jar</jar>
- <jar type="variable">${classPath}/webservices.jar</jar>
-</projectClassPath>
-<adminTool>
- <web>
- <deploy>
- <![CDATA[
-
- <project name="deployextension" default="deploy" basedir=".">
- <target name="deploy">
- <jar destfile="${deploymentUnitName}.war">
- <zipfileset dir="${moduleDir}">
- <include name="**/*.*"/>
- <exclude name="**/jsp_servlet/*.class"/>
- <exclude name="**/*.war"/>
- </zipfileset>
- </jar>
- <move file="${deploymentUnitName}.war" todir="${deployDir}"/>
- </target>
- </project>
-
- ]]>
- </deploy>
- <undeploy>
- </undeploy>
- </web>
-</adminTool>
-</serverDefinition>
View
130 plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/CorePlugin.java
@@ -1,130 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 Eteration Bilisim A.S.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * Gorkem Ercan - initial API and implementation
- * Naci M. Dai
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL ETERATION A.S. OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Eteration Bilisim A.S. For more
- * information on eteration, please see
- * <http://www.eteration.com/>.
- ***************************************************************************/
-package org.eclipse.jst.server.generic.core;
-
-
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.jst.server.generic.internal.core.ServerTypeDefinitionManager;
-import org.eclipse.ui.plugin.*;
-import org.osgi.framework.BundleContext;
-import java.io.IOException;
-import java.net.URL;
-import java.util.*;
-
-/**
- * The main plugin class to be used in the desktop.
- *
- * @author Gorkem Ercan
- */
-public class CorePlugin extends AbstractUIPlugin {
-
- public static final String PLUGIN_ID = "org.eclipse.jst.server.generic.core";
-
- //The shared instance.
- private static CorePlugin plugin;
- //Resource bundle.
- private ResourceBundle resourceBundle;
- private ServerTypeDefinitionManager fServerTypeDefinitionManager;
- /**
- * The constructor.
- */
- public CorePlugin() {
- super();
- plugin = this;
- try {
- resourceBundle = ResourceBundle.getBundle("org.eclipse.jst.server.generic.core.CorePluginResources");
- } catch (MissingResourceException x) {
- resourceBundle = null;
- }
- }
-
- /**
- * This method is called upon plug-in activation
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- }
-
- /**
- * This method is called when the plug-in is stopped
- */
- public void stop(BundleContext context) throws Exception {
- super.stop(context);
- }
-
- /**
- * Returns the shared instance.
- */
- public static CorePlugin getDefault() {
- return plugin;
- }
-
- /**
- * Returns the string from the plugin's resource bundle,
- * or 'key' if not found.
- */
- public static String getResourceString(String key) {
- ResourceBundle bundle = CorePlugin.getDefault().getResourceBundle();
- try {
- return (bundle != null) ? bundle.getString(key) : key;
- } catch (MissingResourceException e) {
- return key;
- }
- }
-
- /**
- * Returns the plugin's resource bundle,
- */
- public ResourceBundle getResourceBundle() {
- return resourceBundle;
- }
- /**
- *
- * @return
- */
- public ServerTypeDefinitionManager getServerTypeDefinitionManager()
- {
- if(fServerTypeDefinitionManager==null)
- fServerTypeDefinitionManager = new ServerTypeDefinitionManager(getInstallUrl());
- return fServerTypeDefinitionManager;
- }
-
- private URL getInstallUrl()
- {
- try {
- return Platform.resolve(this.getBundle().getEntry("/"));
- } catch (IOException e) {
- return null;
- }
- }
-
-
-}
View
183 ...s/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/AntPublisher.java
@@ -1,183 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 Eteration Bilisim A.S.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * Naci M. Dai - initial API and implementation
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL ETERATION A.S. OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Eteration Bilisim A.S. For more
- * information on eteration, please see
- * <http://www.eteration.com/>.
- ***************************************************************************/
-package org.eclipse.jst.server.generic.internal.core;
-
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import org.eclipse.ant.core.AntRunner;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.jst.server.generic.core.CorePlugin;
-import org.eclipse.jst.server.generic.internal.xml.ServerTypeDefinition;
-import org.eclipse.jst.server.generic.modules.WebModule;
-import org.eclipse.wst.server.core.model.IModule;
-import org.eclipse.wst.server.core.model.IPublisher;
-import org.eclipse.wst.server.core.resources.IModuleFolder;
-import org.eclipse.wst.server.core.resources.IModuleResource;
-import org.eclipse.wst.server.core.resources.IRemoteResource;
-/**
- * Ant based publisher.
- *
- * @author Gorkem Ercan
- */
-
-public class AntPublisher implements IPublisher {
-
- /**
- * @param parents
- * @param module
- * @param serverDefinition
- */
- private List parents;
- private IModule module;
- private ServerTypeDefinition serverTypeDefinition;
-
- public AntPublisher(List parents, IModule module, ServerTypeDefinition serverDefinition) {
- this.parents = parents;
- this.module = module;
- this.serverTypeDefinition = serverDefinition;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.wtp.server.core.model.IPublisher#getMappedLocation(org.eclipse.wtp.server.core.resources.IModuleResource)
- */
- public IPath getMappedLocation(IModuleResource resource) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.wtp.server.core.model.IPublisher#shouldMapMembers(org.eclipse.wtp.server.core.resources.IModuleFolder)
- */
- public boolean shouldMapMembers(IModuleFolder folder) {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.wtp.server.core.model.IPublisher#getRemoteResources(org.eclipse.core.runtime.IProgressMonitor)
- */
- public IRemoteResource[] getRemoteResources(IProgressMonitor monitor)
- throws CoreException {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.wtp.server.core.model.IPublisher#delete(org.eclipse.wtp.server.core.resources.IRemoteResource[], org.eclipse.core.runtime.IProgressMonitor)
- */
- public IStatus[] delete(IRemoteResource[] resource, IProgressMonitor monitor)
- throws CoreException {
-
- return new IStatus[]{new Status(IStatus.OK,CorePlugin.PLUGIN_ID,0,"DeleteResource",null)};
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.wtp.server.core.model.IPublisher#publish(org.eclipse.wtp.server.core.resources.IModuleResource[], org.eclipse.core.runtime.IProgressMonitor)
- */
- public IStatus[] publish(IModuleResource[] resource,
- IProgressMonitor monitor) throws CoreException {
- String deployAnt = serverTypeDefinition.getAdminTool().getWeb().getDeploy();
- if(deployAnt == null || deployAnt.length()<1)
- return new IStatus[]{new Status(IStatus.ERROR,CorePlugin.PLUGIN_ID,0,"AntBuildFileDoesNotExist",null)};
-
-
- IPath file = CorePlugin.getDefault().getStateLocation().append("tempAnt.xml");
- try {
- createNewFile(file.toFile(),deployAnt.getBytes());
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- runAnt(file.toString(),new String[]{"deploy"},getPublishProperties(resource),monitor);
-
- file.toFile().delete();
-
- // TODO Auto-generated method stub
- return null;
- }
- private Map getPublishProperties(IModuleResource[] resource)
- {
- Map props = new HashMap();
- props.put("deploymentUnitName",this.module.getName());
- props.put("moduleDir",((WebModule)this.module).getLocation().toString());
- props.put("deployDir",serverTypeDefinition.getWebModulesDeployDirectory());
- return props;
-
-
- }
- private void runAnt(String buildFile,String[] targets,Map properties ,IProgressMonitor monitor)throws CoreException
- {
- AntRunner runner = new AntRunner();
- runner.setBuildFileLocation(buildFile);
- runner.setExecutionTargets(targets);
- runner.addUserProperties(properties);
- runner.run(monitor);
- }
-
-
-
-
- public boolean createNewFile(File f,byte[] content) throws IOException {
- if (f != null) {
- if (f.exists()) {
- return false;
- }
- FileOutputStream fos = null;
- try {
- fos = new FileOutputStream(f);
- fos.write(content);
- } finally {
- if (fos != null) {
- fos.close();
- }
- }
- return true;
- }
- return false;
- }
- /* (non-Javadoc)
- * @see org.eclipse.wtp.server.core.model.IPublisher#deleteAll(org.eclipse.core.runtime.IProgressMonitor)
- */
- public IStatus deleteAll(IProgressMonitor monitor) throws CoreException {
- // TODO Auto-generated method stub
- return null;
- }
-
-
-}
View
649 .../org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericServer.java
@@ -1,649 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 Eteration Bilisim A.S.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * Gorkem Ercan - initial API and implementation
- * Naci M. Dai
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL ETERATION A.S. OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Eteration Bilisim A.S. For more
- * information on eteration, please see
- * <http://www.eteration.com/>.
- ***************************************************************************/
-package org.eclipse.jst.server.generic.internal.core;
-
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.debug.core.DebugEvent;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.IDebugEventSetListener;
-import org.eclipse.debug.core.ILaunch;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationType;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.core.ILaunchManager;
-import org.eclipse.debug.core.model.IProcess;
-import org.eclipse.debug.ui.IDebugUIConstants;
-import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;
-import org.eclipse.jdt.launching.IRuntimeClasspathEntry;
-import org.eclipse.jdt.launching.IVMInstall;
-import org.eclipse.jdt.launching.JavaRuntime;
-import org.eclipse.jst.server.generic.core.CorePlugin;
-import org.eclipse.jst.server.generic.internal.xml.ClasspathItem;
-import org.eclipse.jst.server.generic.internal.xml.ServerTypeDefinition;
-import org.eclipse.jst.server.generic.modules.J2eeSpecModuleFactoryDelegate;
-import org.eclipse.jst.server.j2ee.IWebModule;
-import org.eclipse.wst.server.core.IServer;
-import org.eclipse.wst.server.core.IServerConfiguration;
-import org.eclipse.wst.server.core.IServerState;
-import org.eclipse.wst.server.core.ITask;
-import org.eclipse.wst.server.core.ServerCore;
-import org.eclipse.wst.server.core.model.IModule;
-import org.eclipse.wst.server.core.model.IModuleEvent;
-import org.eclipse.wst.server.core.model.IModuleFactoryEvent;
-import org.eclipse.wst.server.core.model.IMonitorableServer;
-import org.eclipse.wst.server.core.model.IPublisher;
-import org.eclipse.wst.server.core.model.IServerDelegate;
-import org.eclipse.wst.server.core.model.IServerPort;
-import org.eclipse.wst.server.core.model.IStartableServer;
-import org.eclipse.wst.server.core.model.IURLProvider;
-import org.eclipse.wst.server.core.resources.IModuleResourceDelta;
-import org.eclipse.wst.server.core.util.ServerPort;
-import org.eclipse.wst.server.core.util.SocketUtil;
-
-/**
- * Generic XML based server implementation.
- *
- * @author Gorkem Ercan
- */
-public class GenericServer implements IServerDelegate, IStartableServer, IMonitorableServer,IURLProvider {
- private IServerState fLiveServer;
- private static final String ATTR_STOP = "stop-server";
-
- // the thread used to ping the server to check for startup
- protected transient PingThread ping = null;
- protected transient IProcess process;
- protected transient IDebugEventSetListener processListener;
-
- private ServerTypeDefinition fServerDefinition;
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.server.core.model.IServerDelegate#initialize(org.eclipse.wst.server.core.IServerState)
- */
- public void initialize(IServerState liveServer) {
- this.fLiveServer = liveServer;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.server.core.model.IServerDelegate#dispose()
- */
- public void dispose() {
- this.fLiveServer = null;
-
- }
-
- /**
- * Returns the project publisher that can be used to
- * publish the given project.
- *
- * @param project org.eclipse.core.resources.IProject
- * @return org.eclipse.wst.server.core.model.IProjectPublisher
- */
- public IPublisher getPublisher(List parents, IModule module) {
- return new AntPublisher(parents, module, this.getServerDefinition());
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.server.core.model.IServerDelegate#updateConfiguration()
- */
- public void updateConfiguration() {
- Trace.trace(Trace.FINEST, "updateConfiguration" + this);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.server.core.model.IServerDelegate#updateModule(org.eclipse.wst.server.core.model.IModule,
- * org.eclipse.wst.server.core.resources.IModuleResourceDelta)
- */
- public void updateModule(IModule module, IModuleResourceDelta delta) {
- // TODO Auto-generated method stub
- Trace.trace(Trace.FINEST, "Configuration updated " + this);
- //setConfigurationSyncState(SYNC_STATE_DIRTY);
- //setRestartNeeded(true);
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.server.core.model.IServerDelegate#publishStart(org.eclipse.core.runtime.IProgressMonitor)
- */
- public IStatus publishStart(IProgressMonitor monitor) {
- return new Status(IStatus.OK, CorePlugin.PLUGIN_ID, 0, "PublishingStarted", null);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.server.core.model.IServerDelegate#publishConfiguration(org.eclipse.core.runtime.IProgressMonitor)
- */
- public IStatus publishConfiguration(IProgressMonitor monitor) {
-
- return new Status(IStatus.OK, CorePlugin.PLUGIN_ID, 0, "Published Configuration", null);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.server.core.model.IServerDelegate#publishStop(org.eclipse.core.runtime.IProgressMonitor)
- */
- public IStatus publishStop(IProgressMonitor monitor) {
- fLiveServer.setConfigurationSyncState(IServer.SYNC_STATE_IN_SYNC);
- return new Status(IStatus.OK, CorePlugin.PLUGIN_ID, 0, "Published Configuration", null);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.server.core.model.IServerDelegate#canModifyModules(org.eclipse.wst.server.core.model.IModule[],
- * org.eclipse.wst.server.core.model.IModule[])
- */
- public IStatus canModifyModules(IModule[] add, IModule[] remove) {
- // TODO Auto-generated method stub
- return new Status(IStatus.OK, CorePlugin.PLUGIN_ID, 0, "CanModifyModules", null);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.server.core.model.IServerDelegate#getModules()
- */
- public IModule[] getModules() {
- // TODO Auto-generated method stub
- List list = J2eeSpecModuleFactoryDelegate.getInstance().getModules();
- return (IModule[])list.toArray(new IModule[list.size()]);
- }
-
-
- protected IWebModule getWebModule(IProject project) throws CoreException {
-
- return null;
- }
-
-
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.server.core.model.IServerDelegate#getModuleState(org.eclipse.wst.server.core.model.IModule)
- */
- public byte getModuleState(IModule module) {
- // TODO Auto-generated method stub
- return IServer.MODULE_STATE_STARTED;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.server.core.model.IServerDelegate#getRepairCommands(org.eclipse.wst.server.core.model.IModuleFactoryEvent[],
- * org.eclipse.wst.server.core.model.IModuleEvent[])
- */
- public ITask[] getRepairCommands(IModuleFactoryEvent[] factoryEvent,
- IModuleEvent[] moduleEvent) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.server.core.model.IServerDelegate#getChildModules(org.eclipse.wst.server.core.model.IModule)
- */
- public List getChildModules(IModule module) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.server.core.model.IServerDelegate#getParentModules(org.eclipse.wst.server.core.model.IModule)
- */
- public List getParentModules(IModule module) throws CoreException {
- //FIXME This is valid for only web modules. A generic server should support any
- // kind of j2ee module. Fix this after the server architectures are determined.
- if (module instanceof IWebModule) {
- IWebModule webModule = (IWebModule) module;
- IStatus status = canModifyModules(new IModule[] { module }, null);
- if (status == null || !status.isOK())
- throw new CoreException(status);
- ArrayList l = new ArrayList();
- l.add(webModule);
- return l;
- } else
- return null;
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.server.core.model.IServerDelegate#setLaunchDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
- */
- public void setLaunchDefaults(ILaunchConfigurationWorkingCopy workingCopy) {
- fLiveServer.getRuntime().getDelegate();
- workingCopy.setAttribute(
- IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME,
- getStartClassName());
-
- GenericServerRuntime runtime = (GenericServerRuntime) fLiveServer
- .getRuntime().getDelegate();
-
- IVMInstall vmInstall = runtime.getVMInstall();
- workingCopy.setAttribute(
- IJavaLaunchConfigurationConstants.ATTR_VM_INSTALL_TYPE, runtime
- .getVMInstallTypeId());
- workingCopy.setAttribute(
- IJavaLaunchConfigurationConstants.ATTR_VM_INSTALL_NAME,
- vmInstall.getName());
-
- setupLaunchClasspath(workingCopy, vmInstall);
-
-
- workingCopy.setAttribute(
- IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY,
- getWorkingDirectory());
- workingCopy.setAttribute(
- IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,
- getProgramArguments());
- workingCopy.setAttribute(
- IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS,
- getVmArguments());
-
- //workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_INSTALL_TYPE_SPECIFIC_ATTRS_MAP,);
-
- }
-
- private List getClasspathMementos() {
- List cpathList = getServerDefinition().getServerClassPath();
- ArrayList mementoList = new ArrayList();
- for (int i = 0; i < cpathList.size(); i++) {
- ClasspathItem item = (ClasspathItem) cpathList.get(i);
- String cpath = getServerDefinition().resolveProperties(
- item.getClasspath());
- String memento = null;
- try {
- memento = JavaRuntime.newArchiveRuntimeClasspathEntry(
- new Path(cpath)).getMemento();
- } catch (CoreException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- mementoList.add(memento);
- }
- return mementoList;
- }
-
- private String getVmArguments() {
- String vmParams = getServerDefinition().resolveProperties(
- getServerDefinition().getStartVmParameters());
- return vmParams;
- }
-
- private String getProgramArguments() {
- String startParams = getServerDefinition().resolveProperties(
- getServerDefinition().getStartProgramArguments());
- return startParams;
- }
-
- private String getWorkingDirectory() {
- String wDirectory = getServerDefinition().resolveProperties(
- getServerDefinition().getStartWorkingDirectory());
- return wDirectory;
-
- }
-
- public String getStartClassName() {
- return getServerDefinition().getStartClass();
- }
-
- /**
- * @return
- */
- private Map getServerInstanceProperties() {
- Map instanceProperties = fLiveServer.getRuntime().getAttribute(
- GenericServerRuntime.SERVER_INSTANCE_PROPERTIES, (Map) null);
- return instanceProperties;
- }
-
- public ServerTypeDefinition getServerDefinition() {
-
- if (fServerDefinition == null)
- fServerDefinition = CorePlugin.getDefault()
- .getServerTypeDefinitionManager()
- .getServerRuntimeDefinition(
- fLiveServer.getRuntime().getAttribute(
- GenericServerRuntime.SERVER_DEFINITION_ID,
- ""), getServerInstanceProperties());
- return fServerDefinition;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.server.core.model.IMonitorableServer#getServerPorts()
- */
- public List getServerPorts() {
- List ports = new ArrayList();
-
-
- try {
- int port = Integer.parseInt(this.getServerDefinition().getPort());
- ports.add(new ServerPort("server", "Server port", port, "TCPIP"));
- } catch (Exception e) {
- }
-
- return ports;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.wst.server.core.model.IStartableServer#isTerminateOnShutdown()
- */
- public boolean isTerminateOnShutdown() {
- // TODO Auto-generated method stub
- return false;
- }
-
- /**
- * Setup for starting the server.
- *
- * @param launch ILaunch
- * @param launchMode String
- * @param monitor IProgressMonitor
- */
- public void setupLaunch(ILaunch launch, String launchMode, IProgressMonitor monitor) throws CoreException {
- if ("true".equals(launch.getLaunchConfiguration().getAttribute(ATTR_STOP, "false")))
- return;
-// IStatus status = getRuntime().validate();
-// if (status != null && !status.isOK())
-// throw new CoreException(status);
-
-
- Iterator iterator = this.getServerPorts().iterator();
- IServerPort sp = null;
- while (iterator.hasNext()) {
- sp = (IServerPort) iterator.next();
- if (SocketUtil.isPortInUse(sp.getPort(), 5))
- throw new CoreException(new Status(IStatus.ERROR, CorePlugin.PLUGIN_ID, 0, "Server Part In Use "+sp.getPort() + "- " +sp.getName() ,null));
- }
-
- fLiveServer.setServerState(IServer.SERVER_STARTING);
-
- // ping server to check for startup
- try {
- String url = "http://localhost";
- int port = sp.getPort();
- if (port != 80)
- url += ":" + port;
- ping = new PingThread(this, fLiveServer, url, launchMode);
- ping.start();
- } catch (Exception e) {
- Trace.trace(Trace.SEVERE, "Can't ping for server startup.");
- }
- }
-
- /**
- * Cleanly shuts down and terminates the server.
- */
- public void stop() {
- byte state = this.fLiveServer.getServerState();
- if (state == IServer.SERVER_STOPPED)
- return;
- else if (state == IServer.SERVER_STARTING || state == IServer.SERVER_STOPPING) {
- terminate();
- return;
- }
-
- try {
- Trace.trace(Trace.FINEST, "Stopping Server");
- if (state != IServer.SERVER_STOPPED)
- fLiveServer.setServerState(IServer.SERVER_STOPPING);
- ILaunchManager mgr = DebugPlugin.getDefault().getLaunchManager();
-
- ILaunchConfigurationType type =
- mgr.getLaunchConfigurationType(
- IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION);
-
- String launchName = "GenericServerStopper";
- String uniqueLaunchName =
- mgr.generateUniqueLaunchConfigurationNameFrom(launchName);
- ILaunchConfiguration conf = null;
-
- ILaunchConfiguration[] lch = mgr.getLaunchConfigurations(type);
- for (int i = 0; i < lch.length; i++) {
- if (launchName.equals(lch[i].getName())) {
- conf = lch[i];
- break;
- }
- }
-
- ILaunchConfigurationWorkingCopy wc = null;
- if (conf != null) {
- wc = conf.getWorkingCopy();
- } else {
- wc = type.newInstance(null, uniqueLaunchName);
- }
- //To stop from appearing in history lists
- wc.setAttribute(IDebugUIConstants.ATTR_PRIVATE, true);
-
- wc.setAttribute(
- IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME,
- this.getServerDefinition().getStopClass());
-
- GenericServerRuntime runtime = (GenericServerRuntime) fLiveServer
- .getRuntime().getDelegate();
-
- IVMInstall vmInstall = runtime.getVMInstall();
- wc.setAttribute(
- IJavaLaunchConfigurationConstants.ATTR_VM_INSTALL_TYPE, runtime
- .getVMInstallTypeId());
- wc.setAttribute(
- IJavaLaunchConfigurationConstants.ATTR_VM_INSTALL_NAME,
- vmInstall.getName());
-
- setupLaunchClasspath(wc, vmInstall);
-
- wc.setAttribute(
- IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY,
- getWorkingDirectory());
- wc.setAttribute(
- IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,
- getServerDefinition().resolveProperties(
- getServerDefinition().getStopProgramArguments()));
- wc.setAttribute(
- IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS,
- getServerDefinition().resolveProperties(
- getServerDefinition().getStopVmParameters()));
- wc.setAttribute(ATTR_STOP, "true");
- wc.launch(ILaunchManager.RUN_MODE, new NullProgressMonitor());
- } catch (Exception e) {
- Trace.trace(Trace.SEVERE, "Error stopping Server", e);
- }
- }
-
-
- /**
- * @param wc
- * @param vmInstall
- */
- private void setupLaunchClasspath(ILaunchConfigurationWorkingCopy wc, IVMInstall vmInstall) {
- List cp = getClasspathMementos();
-
- // add tools.jar to the path
- if (vmInstall != null) {
- try {
- cp
- .add(JavaRuntime
- .newRuntimeContainerClasspathEntry(
- new Path(JavaRuntime.JRE_CONTAINER)
- .append(
- "org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType")
- .append(vmInstall.getName()),
- IRuntimeClasspathEntry.BOOTSTRAP_CLASSES)
- .getMemento());
- } catch (Exception e) {
- }
-
- IPath jrePath = new Path(vmInstall.getInstallLocation()
- .getAbsolutePath());
- if (jrePath != null) {
- IPath toolsPath = jrePath.append("lib").append("tools.jar");
- if (toolsPath.toFile().exists()) {
- try {
- cp.add(JavaRuntime.newArchiveRuntimeClasspathEntry(
- toolsPath).getMemento());
- } catch (CoreException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
- }
- }
- }
-
- wc.setAttribute(
- IJavaLaunchConfigurationConstants.ATTR_CLASSPATH, cp);
- wc.setAttribute(
- IJavaLaunchConfigurationConstants.ATTR_DEFAULT_CLASSPATH,
- false);
- }
-
- /**
- * Terminates the server.
- */
- public void terminate() {
- if (fLiveServer.getServerState() == IServer.SERVER_STOPPED)
- return;
-
- try {
- fLiveServer.setServerState(IServer.SERVER_STOPPING);
- Trace.trace(Trace.FINEST, "Killing the Server process");
- if (process != null && !process.isTerminated()) {
- process.terminate();
- stopImpl();
- }
- } catch (Exception e) {
- Trace.trace(Trace.SEVERE, "Error killing the process", e);
- }
- }
-
- protected void stopImpl() {
- if (ping != null) {
- ping.stopPinging();
- ping = null;
- }
- if (process != null) {
- process = null;
- DebugPlugin.getDefault().removeDebugEventListener(processListener);
- processListener = null;
- }
- fLiveServer.setServerState(IServer.SERVER_STOPPED);
- }
- public void setProcess(final IProcess newProcess) {
- if (process != null)
- return;
-
- process = newProcess;
- processListener = new IDebugEventSetListener() {
- public void handleDebugEvents(DebugEvent[] events) {
- if (events != null) {
- int size = events.length;
- for (int i = 0; i < size; i++) {
- if (process.equals(events[i].getSource()) && events[i].getKind() == DebugEvent.TERMINATE) {
- DebugPlugin.getDefault().removeDebugEventListener(this);
- stopImpl();
- }
- }
- }
- }
- };
- DebugPlugin.getDefault().addDebugEventListener(processListener);
- }
-
- public int getStartTimeout() {
- return 300000;
- }
-
- public int getStopTimeout() {
- return 300000;
- }
- /* (non-Javadoc)
- * @see org.eclipse.wtp.server.core.model.IURLProvider#getModuleRootURL(org.eclipse.wtp.server.core.model.IModule)
- */
- public URL getModuleRootURL(IModule module) {
-
- try {
- if (module == null || !(module instanceof IWebModule))
- return null;
-
- IServerConfiguration serverConfig = fLiveServer
- .getServerConfiguration();
- if (serverConfig == null)
- return null;
-
- String url = "http://localhost";
- int port = Integer.parseInt(getServerDefinition().getPort());
- port = ServerCore.getServerMonitorManager().getMonitoredPort(
- fLiveServer, port, "web");
- if (port != 80)
- url += ":" + port;
-
- url += "/"+module.getName();
-
- if (!url.endsWith("/"))
- url += "/";
-
- return new URL(url);
- } catch (Exception e) {
- Trace.trace("Could not get root URL", e);
- return null;
- }
-
- }
-
-}
View
56 ...er.generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerConfigurationDelegate.java
@@ -1,56 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 Eteration Bilisim A.S.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * Gorkem Ercan - initial API and implementation
- * Naci M. Dai
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL ETERATION A.S. OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Eteration Bilisim A.S. For more
- * information on eteration, please see
- * <http://www.eteration.com/>.
- ***************************************************************************/
-package org.eclipse.jst.server.generic.internal.core;
-
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.wst.server.core.util.ServerConfigurationDelegate;
-
-
-public class GenericServerConfigurationDelegate extends ServerConfigurationDelegate {
-
- /* (non-Javadoc)
- * @see org.eclipse.wst.server.core.model.IServerConfigurationDelegate#save(org.eclipse.core.runtime.IPath, org.eclipse.core.runtime.IProgressMonitor)
- */
- public void save(IPath path, IProgressMonitor monitor) throws CoreException {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.wst.server.core.model.IServerConfigurationDelegate#save(org.eclipse.core.resources.IFolder, org.eclipse.core.runtime.IProgressMonitor)
- */
- public void save(IFolder folder, IProgressMonitor monitor) throws CoreException {
- // TODO Auto-generated method stub
-
- }}
View
195 ...generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerConfigurationWorkingCopy.java
@@ -1,195 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 Eteration Bilisim A.S.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * Gorkem Ercan - initial API and implementation
- * Naci M. Dai
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL ETERATION A.S. OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Eteration Bilisim A.S. For more
- * information on eteration, please see
- * <http://www.eteration.com/>.
- ***************************************************************************/
-
-package org.eclipse.jst.server.generic.internal.core;
-
-import java.io.ByteArrayInputStream;
-import java.io.InputStream;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.jst.server.generic.core.CorePlugin;
-import org.eclipse.wst.server.core.IRuntime;
-import org.eclipse.wst.server.core.IServerConfiguration;
-import org.eclipse.wst.server.core.IServerConfigurationWorkingCopy;
-import org.eclipse.wst.server.core.model.IServerConfigurationWorkingCopyDelegate;
-import org.eclipse.wst.server.core.util.ProgressUtil;
-
-
-public class GenericServerConfigurationWorkingCopy implements
- IServerConfigurationWorkingCopyDelegate {
-
- IServerConfigurationWorkingCopy configurationWC;
- IServerConfiguration configuration;
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.core.model.IServerConfigurationWorkingCopyDelegate#initialize(com.ibm.wtp.server.core.IServerConfigurationWorkingCopy)
- */
- public void initialize(IServerConfigurationWorkingCopy configuration) {
- this.configurationWC = configuration;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.core.model.IServerConfigurationWorkingCopyDelegate#setDefaults()
- */
- public void setDefaults() {
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.core.model.IServerConfigurationWorkingCopyDelegate#importFromPath(org.eclipse.core.runtime.IPath, org.eclipse.core.runtime.IProgressMonitor)
- */
- public void importFromPath(IPath path, IProgressMonitor monitor)
- throws CoreException {
- // TODO Auto-generated method stub
- System.out.println("importFromPath - " + path);
-
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.core.model.IServerConfigurationWorkingCopyDelegate#importFromRuntime(com.ibm.wtp.server.core.IRuntime, org.eclipse.core.runtime.IProgressMonitor)
- */
- public void importFromRuntime(IRuntime runtime, IProgressMonitor monitor)
- throws CoreException {
- // TODO Auto-generated method stub
- System.out.println("importFromRuntime - " + runtime);
-
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.core.model.IServerConfigurationDelegate#initialize(com.ibm.wtp.server.core.IServerConfiguration)
- */
- public void initialize(IServerConfiguration configuration) {
- this.configuration = configuration;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.core.model.IServerConfigurationDelegate#dispose()
- */
- public void dispose() {
- // TODO Auto-generated method stub
- System.out.println("dispose - ");
-
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.core.model.IServerConfigurationDelegate#load(org.eclipse.core.runtime.IPath, org.eclipse.core.runtime.IProgressMonitor)
- */
- public void load(IPath path, IProgressMonitor monitor) throws CoreException {
- // TODO Auto-generated method stub
- System.out.println("load - " + path);
-
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.core.model.IServerConfigurationDelegate#load(org.eclipse.core.resources.IFolder, org.eclipse.core.runtime.IProgressMonitor)
- */
- public void load(IFolder folder, IProgressMonitor monitor)
- throws CoreException {
- // TODO Auto-generated method stub
- System.out.println("load - " + folder);
-
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.core.model.IServerConfigurationDelegate#save(org.eclipse.core.runtime.IPath, org.eclipse.core.runtime.IProgressMonitor)
- */
- public void save(IPath path, IProgressMonitor monitor) throws CoreException {
-
- try {
- monitor = ProgressUtil.getMonitorFor(monitor);
- boolean forceDirty = false;
- // make sure directory exists
- if (!path.toFile().exists()) {
- forceDirty = true;
- path.toFile().mkdir();
- }
- monitor.worked(1);
-
- monitor.worked(1);
-
-
- if (monitor.isCanceled())
- return;
- monitor.done();
- } catch (Exception e) {
- Trace.trace("Could not save Generic Server configuration to " + path.toString(), e);
- throw new CoreException(new Status(IStatus.ERROR, CorePlugin.PLUGIN_ID, 0, "Could Not Save Configuration", e));
- }
- System.out.println("save - " + path);
-
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.core.model.IServerConfigurationDelegate#save(org.eclipse.core.resources.IFolder, org.eclipse.core.runtime.IProgressMonitor)
- */
- public void save(IFolder folder, IProgressMonitor monitor)
- throws CoreException {
-
- try {
- monitor = ProgressUtil.getMonitorFor(monitor);
-
- // save server.xml
- byte[] data = "".getBytes();
- InputStream in = new ByteArrayInputStream(data);
- IFile file = folder.getFile("server.xml");
- if (file.exists()) {
- file.setContents(in, true, true, ProgressUtil.getSubMonitorFor(monitor, 200));
- } else
- file.create(in, true, ProgressUtil.getSubMonitorFor(monitor, 200));
-
-
-
- if (monitor.isCanceled())
- return;
- monitor.done();
- } catch (Exception e) {
- Trace.trace("Could not save Generic Server configuration to " + folder.toString(), e);
- throw new CoreException(new Status(IStatus.ERROR, CorePlugin.PLUGIN_ID, 0, "Could Not Save Configuration", e));
- }
- System.out.println("save - " + folder);
-
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.wst.server.core.model.IServerConfigurationWorkingCopyDelegate#handleSave(byte, org.eclipse.core.runtime.IProgressMonitor)
- */
- public void handleSave(byte id, IProgressMonitor monitor) {
- // TODO Auto-generated method stub
- System.out.println("handleSave - " + id);
-
- }
-
-}
View
130 ...eric.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerLaunchConfigurationDelegate.java
@@ -1,130 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 Eteration Bilisim A.S.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * Gorkem Ercan - initial API and implementation
- * Naci M. Dai
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL ETERATION A.S. OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Eteration Bilisim A.S. For more
- * information on eteration, please see
- * <http://www.eteration.com/>.
- ***************************************************************************/
-package org.eclipse.jst.server.generic.internal.core;
-
-import java.io.File;
-import java.util.Map;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.debug.core.ILaunch;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate;
-import org.eclipse.jdt.launching.ExecutionArguments;
-import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;
-import org.eclipse.jdt.launching.IVMInstall;
-import org.eclipse.jdt.launching.IVMRunner;
-import org.eclipse.jdt.launching.VMRunnerConfiguration;
-import org.eclipse.jst.server.generic.core.CorePlugin;
-import org.eclipse.wst.server.core.IServer;
-import org.eclipse.wst.server.core.ServerCore;
-/**
- * ServerLaunchConfiguration for the generic server.
- *
- * @author Gorkem Ercan
- */
-public class GenericServerLaunchConfigurationDelegate extends AbstractJavaLaunchConfigurationDelegate {
-
- /* (non-Javadoc)
- * @see org.eclipse.debug.core.model.ILaunchConfigurationDelegate#launch(org.eclipse.debug.core.ILaunchConfiguration, java.lang.String, org.eclipse.debug.core.ILaunch, org.eclipse.core.runtime.IProgressMonitor)
- */
- public void launch(ILaunchConfiguration configuration, String mode,
- ILaunch launch, IProgressMonitor monitor) throws CoreException {
-
- String serverId = configuration.getAttribute(IServer.ATTR_SERVER_ID, (String) null);
-
- IServer server = ServerCore.getResourceManager().getServer(serverId);
- if (server == null)
- {
- abort("Server "+serverId+" does not exist", null, IJavaLaunchConfigurationConstants.ERR_INTERNAL_ERROR);
- }
-
- GenericServer genericServer = (GenericServer)server.getDelegate();
- genericServer.setupLaunch(launch, mode, monitor);
-
- String mainTypeName = genericServer.getStartClassName();
-
- IVMInstall vm = verifyVMInstall(configuration);
-
- IVMRunner runner = vm.getVMRunner(mode);
-
- File workingDir = verifyWorkingDirectory(configuration);
- String workingDirName = null;
- if (workingDir != null)
- workingDirName = workingDir.getAbsolutePath();
-
- // Program & VM args
- String pgmArgs = getProgramArguments(configuration);
- String vmArgs = getVMArguments(configuration);
-
- ExecutionArguments execArgs = new ExecutionArguments(vmArgs, pgmArgs);
-
- // VM-specific attributes
- Map vmAttributesMap = getVMSpecificAttributesMap(configuration);
-
- // Classpath
- String[] classpath = getClasspath(configuration);
-
- // Create VM config
- VMRunnerConfiguration runConfig = new VMRunnerConfiguration(mainTypeName, classpath);
- runConfig.setProgramArguments(execArgs.getProgramArgumentsArray());
- runConfig.setVMArguments(execArgs.getVMArgumentsArray());
- runConfig.setWorkingDirectory(workingDirName);
- runConfig.setVMSpecificAttributesMap(vmAttributesMap);
-
- // Bootpath
- String[] bootpath = getBootpath(configuration);
- if (bootpath != null && bootpath.length > 0)
- runConfig.setBootClassPath(bootpath);
-
- setDefaultSourceLocator(launch, configuration);
-
- // Launch the configuration
- runner.run(runConfig, launch, monitor);
- genericServer.setProcess(launch.getProcesses()[0]);
-
- }
-
- /**
- * Throws a core exception with the given message and optional
- * exception. The exception's status code will indicate an error.
- *
- * @param message error message
- * @param exception cause of the error, or <code>null</code>
- * @exception CoreException with the given message and underlying
- * exception
- */
- protected void abort(String message, Throwable exception, int code) throws CoreException {
- throw new CoreException(new Status(IStatus.ERROR, CorePlugin.getDefault().getBundle().getSymbolicName(), code, message, exception));
- }
-
-}
View
92 ...eneric.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerLaunchableAdapterDelegate.java
@@ -1,92 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 Eteration Bilisim A.S.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * Gorkem Ercan - initial API and implementation
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL ETERATION A.S. OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Eteration Bilisim A.S. For more
- * information on eteration, please see
- * <http://www.eteration.com/>.
- ***************************************************************************/
-package org.eclipse.jst.server.generic.internal.core;
-
-import java.net.URL;
-import org.eclipse.wst.server.core.IServer;
-import org.eclipse.wst.server.core.model.*;
-import org.eclipse.wst.server.core.util.HttpLaunchable;
-import org.eclipse.wst.server.core.util.NullLaunchable;
-import org.eclipse.wst.server.core.util.NullModuleObject;
-import org.eclipse.jst.server.j2ee.IWebModule;
-import org.eclipse.jst.server.j2ee.Servlet;
-import org.eclipse.jst.server.j2ee.WebResource;
-/**
- * Web Launchable adapter delegate
- * @author Gorkem Ercan
- */
-public class GenericServerLaunchableAdapterDelegate implements ILaunchableAdapterDelegate {
- /*
- * @see ILaunchableAdapterDelegate#getLaunchable(IServer, IModuleObject)
- */
- public ILaunchable getLaunchable(IServer server, IModuleObject moduleObject) {
-
- IServerDelegate delegate = server.getDelegate();
- if (!(delegate instanceof GenericServer))
- return null;
- if (!(moduleObject instanceof Servlet) &&
- !(moduleObject instanceof WebResource) &&
- !(moduleObject instanceof NullModuleObject))
- return null;
- if (!(moduleObject.getModule() instanceof IWebModule))
- return null;
-
- try {
- URL url = ((IURLProvider) delegate).getModuleRootURL(moduleObject.getModule());
-
- Trace.trace("root: " + url);
-
- if (moduleObject instanceof Servlet) {
- Servlet servlet = (Servlet) moduleObject;
- if (servlet.getAlias() != null) {
- String path = servlet.getAlias();
- if (path.startsWith("/"))
- path = path.substring(1);
- url = new URL(url, path);
- } else
- url = new URL(url, "servlet/" + servlet.getServletClassName());
- } else if (moduleObject instanceof WebResource) {
- WebResource resource = (WebResource) moduleObject;
- String path = resource.getPath().toString();
- Trace.trace("path: " + path);
- if (path != null && path.startsWith("/") && path.length() > 0)
- path = path.substring(1);
- if (path != null && path.length() > 0)
- url = new URL(url, path);
- } else { // null
- return new NullLaunchable();
- }
- return new HttpLaunchable(url);
- } catch (Exception e) {
- Trace.trace("Error getting URL for " + moduleObject, e);
- return null;
- }
- }
-}
View
114 ...lipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerRuntime.java
@@ -1,114 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 Eteration Bilisim A.S.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * Gorkem Ercan - initial API and implementation
- * Naci M. Dai
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL ETERATION A.S. OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Eteration Bilisim A.S. For more
- * information on eteration, please see
- * <http://www.eteration.com/>.
- ***************************************************************************/
-package org.eclipse.jst.server.generic.internal.core;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.jdt.launching.IVMInstall;
-import org.eclipse.jdt.launching.JavaRuntime;
-import org.eclipse.jst.server.core.IGenericRuntime;
-import org.eclipse.jst.server.generic.core.CorePlugin;
-import org.eclipse.jst.server.internal.core.JavaServerPlugin;
-import org.eclipse.wst.server.core.IRuntime;
-import org.eclipse.wst.server.core.ServerUtil;
-/**
- * Generic server runtime support.
- *
- * @author Gorkem Ercan
- */
-public class GenericServerRuntime implements IGenericRuntime
-{
-
- private IRuntime fRuntime;
- public static final String SERVER_DEFINITION_ID = "server_definition_id";
- public static final String SERVER_INSTANCE_PROPERTIES = "generic_server_instance_properties";
- /* (non-Javadoc)
- * @see org.eclipse.jst.server.core.IGenericRuntime#getVMInstallTypeId()
- */
- public String getVMInstallTypeId() {
- return JavaRuntime.getDefaultVMInstall().getVMInstallType().getId();
- // TODO configurable.
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.server.core.IGenericRuntime#getVMInstallId()
- */
- public String getVMInstallId() {
- return JavaRuntime.getDefaultVMInstall().getId();
- // TODO configurable.
-
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.server.core.IGenericRuntime#getVMInstall()
- */
- public IVMInstall getVMInstall() {
- return JavaRuntime.getDefaultVMInstall();
- // TODO configurable
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.server.core.IGenericRuntime#validate()
- */
- public IStatus validate() {
- if (fRuntime.getName() == null || fRuntime.getName().length() == 0)
- return new Status(IStatus.ERROR, CorePlugin.PLUGIN_ID, 0, CorePlugin.getResourceString("%errorName"), null);
-
- if (ServerUtil.isNameInUse(fRuntime))
- return new Status(IStatus.ERROR, CorePlugin.PLUGIN_ID, 0, CorePlugin.getResourceString("%errorDuplicateRuntimeName"), null);
-
-// IPath path = fRuntime.getLocation();
-// if (path == null || path.isEmpty())
-// return new Status(IStatus.ERROR, CorePlugin.PLUGIN_ID, 0, "", null);
-// else if (!path.toFile().exists())
-// return new Status(IStatus.ERROR, CorePlugin.PLUGIN_ID, 0, CorePlugin.getResourceString("%errorLocation"), null);
-// else
- if (getVMInstall() == null)
- return new Status(IStatus.ERROR, CorePlugin.PLUGIN_ID, 0, CorePlugin.getResourceString("%errorJRE"), null);
- else
- return new Status(IStatus.OK, JavaServerPlugin.PLUGIN_ID, 0, "", null);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.wst.server.core.model.IRuntimeDelegate#initialize(org.eclipse.wst.server.core.IRuntime)
- */
- public void initialize(IRuntime runtime) {
- this.fRuntime = runtime;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.wst.server.core.model.IRuntimeDelegate#dispose()
- */
- public void dispose() {
- this.fRuntime=null;
- }
-
-}
View
65 ...ver.generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerRuntimeTargetHandler.java
@@ -1,65 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 Eteration Bilisim A.S.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * Gorkem Ercan - initial API and implementation
- * Naci M. Dai
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL ETERATION A.S. OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Eteration Bilisim A.S. For more
- * information on eteration, please see
- * <http://www.eteration.com/>.
- ***************************************************************************/
-package org.eclipse.jst.server.generic.internal.core;
-
-import org.eclipse.jdt.core.IClasspathEntry;
-import org.eclipse.jst.server.core.ClasspathRuntimeTargetHandler;
-
-import org.eclipse.wst.server.core.IRuntime;
-
-public class GenericServerRuntimeTargetHandler extends
- ClasspathRuntimeTargetHandler {
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.java.core.ClasspathRuntimeTargetHandler#getId()
- */
- public String getId() {
- return "org.eclipse.jst.server.generic.runtime";
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.java.core.ClasspathRuntimeTargetHandler#getClasspathContainerLabel(com.ibm.wtp.server.core.IRuntime, java.lang.String)
- */
- public String getClasspathContainerLabel(IRuntime runtime, String id) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.java.core.ClasspathRuntimeTargetHandler#resolveClasspathContainer(com.ibm.wtp.server.core.IRuntime, java.lang.String)
- */
- public IClasspathEntry[] resolveClasspathContainer(IRuntime runtime,
- String id) {
- // TODO Auto-generated method stub
- return null;
- }
-
-}
View
126 ...erver.generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerRuntimeWorkingCopy.java
@@ -1,126 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 Eteration Bilisim A.S.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * Gorkem Ercan - initial API and implementation
- * Naci M. Dai
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL ETERATION A.S. OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Eteration Bilisim A.S. For more
- * information on eteration, please see
- * <http://www.eteration.com/>.
- ***************************************************************************/
-package org.eclipse.jst.server.generic.internal.core;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.jdt.launching.IVMInstall;
-import org.eclipse.jst.server.core.IGenericRuntimeWorkingCopy;
-
-import org.eclipse.wst.server.core.IRuntime;
-import org.eclipse.wst.server.core.IRuntimeWorkingCopy;
-
-public class GenericServerRuntimeWorkingCopy implements
- IGenericRuntimeWorkingCopy {
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.java.core.IGenericRuntimeWorkingCopy#setVMInstall(java.lang.String, java.lang.String)
- */
- public void setVMInstall(String typeId, String id) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.java.core.IGenericRuntime#getVMInstallTypeId()
- */
- public String getVMInstallTypeId() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.java.core.IGenericRuntime#getVMInstallId()
- */
- public String getVMInstallId() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.java.core.IGenericRuntime#getVMInstall()
- */
- public IVMInstall getVMInstall() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.core.model.IRuntimeDelegate#validate()
- */
- public IStatus validate() {
- // TODO Auto-generated method stub
- return Status.OK_STATUS;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.core.model.IRuntimeWorkingCopyDelegate#initialize(com.ibm.wtp.server.core.IRuntimeWorkingCopy)
- */
- public void initialize(IRuntimeWorkingCopy runtime) {
-
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.core.model.IRuntimeWorkingCopyDelegate#setDefaults()
- */
- public void setDefaults() {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.core.model.IRuntimeWorkingCopyDelegate#handleSave(byte, org.eclipse.core.runtime.IProgressMonitor)
- */
- public void handleSave(byte id, IProgressMonitor monitor) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.core.model.IRuntimeDelegate#initialize(com.ibm.wtp.server.core.IRuntime)
- */
- public void initialize(IRuntime runtime) {
-
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see com.ibm.wtp.server.core.model.IRuntimeDelegate#dispose()
- */
- public void dispose() {
- // TODO Auto-generated method stub
-
- }
-}
View
82 ...neric.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerSourcePathComputerDelegate.java
@@ -1,82 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 Eteration Bilisim A.S.
- * All rights reserved.   This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * Gorkem Ercan - initial API and implementation
- * Naci M. Dai
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL ETERATION A.S. OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Eteration Bilisim A.S. For more
- * information on eteration, please see
- * <http://www.eteration.com/>.
- ***************************************************************************/
-package org.eclipse.jst.server.generic.internal.core;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.sourcelookup.ISourceContainer;
-import org.eclipse.debug.core.sourcelookup.ISourcePathComputerDelegate;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.internal.launching.JavaSourceLookupUtil;
-import org.eclipse.jdt.launching.IRuntimeClasspathEntry;
-import org.eclipse.jdt.launching.JavaRuntime;
-/**