<commit_before>Developing Gridsphere with Eclipse
----------------------------------

Author: <NAME> <<EMAIL>>

Questions, Comments, Enhancements Welcome :-)

1. Requirements
-Eclipse 2.1.1 (should work with Eclipse 3.0M4)
-Tomcat launcher Eclipse plugin (http://www.sysdeo.com/eclipse/tomcatPlugin.html)
-Tomcat4 patch for JSP debugging (http://www.sysdeo.com/eclipse/tomcatPlugin.html)
-Recent Tomcat4 distribution

2. Installation

- Install the eclipse plugin and the Tomcat4 patch
  (The patch is binary, so no recompilation of Tomcat needed)
- Use Window -> Customize Preferences... to activate the Tomcat plugin
- Use Window -> Preferences to specify the Path to the Tomcat installation
- Create a new Tomcat Project (e. g. GSProject)
	-Webapp context: /gridsphere
	-Webapp path: /webapps/gridsphere
- In the project's settings
	Can update server.xml
	Don't be a reloadable context (It messes up anyway)
	Redirect context logger to Eclipse

- Check out Gridsphere (module gridsphere in CVS) _into_ the project
	-Setup Java Build Configuration
		Add source folder gridsphere/src and gridsphere/tests
		Add the libraries in gridsphere/lib/ext
		Extend the variable TOMCAT_HOME
			Add the activation.jar from Tomcat to the project
			Add the xercesImpl.jar from Tomcat to the project
			Add the XmlParserAPIs.jar from Tomcat to the project
		Export the libraries and the source folders

- Create an external tool launch configuration for Ant
	Ant resource: gridsphere/config/build/eclipse.build.xml
	Working directory: gridsphere
	Parameters: -Dcatalina.home=/path/to/tomcat/installation -Dcatalina.base=${project_loc:/GSProject}
			-Declipse.build=${workspace_loc:/GSProject/path/to/build/directory}
	Targets (in this order): eclipse-deploy eclipse-create-database eclipse-resources
	Refresh project

- Optionally setup the Ant launch configuration to deploy local gridsphere configuration
	Additional parameter: -Dlocal.config=${resource_loc:/project/path/to/dir}
	Additional target: eclipse-local-config

- Launch the configuration -> Should deploy Gridsphere to the project

- From the project context menu -> Tomcat -> update server.xml
Go to server.xml, and adjust the generated Context so that it includes the crossContext="true" 
attribute. 

- In Window -> Preferences -> Tomcat add the project (here GSProject) to the Tomcat Classpath

- Change the Tomcat 4.1.x launch configuration to start in the Debug perspective

- Launch Tomcat<commit_msg>minor updates<commit_after>Developing Gridsphere with Eclipse
----------------------------------

Author: <NAME> <<EMAIL>>

Questions, Comments, Enhancements Welcome :-)

1. Requirements
-Eclipse 2.1.1 (should work with Eclipse 3.0M4)
-Tomcat launcher Eclipse plugin (http://www.sysdeo.com/eclipse/tomcatPlugin.html)
-Tomcat4 patch for JSP debugging (http://www.sysdeo.com/eclipse/tomcatPlugin.html)
-Recent Tomcat4 distribution

2. Installation

- Install the eclipse plugin and the Tomcat4 patch
  (The patch is binary, so no recompilation of Tomcat needed)
- Use Window -> Customize Preferences... to activate the Tomcat plugin
- Use Window -> Preferences to specify the Path to the Tomcat installation
- Create a new Tomcat Project (e. g. GSProject)
	-Webapp context: /gridsphere
	-Webapp path: /webapps/gridsphere
- In the project's settings
	Can update server.xml
	Don't be a reloadable context (It messes up anyway)
	Redirect context logger to Eclipse

- Check out Gridsphere (module gridsphere in CVS) _into_ the project
	-Setup Java Build Configuration
		Add source folder gridsphere/src and gridsphere/tests
		Add the libraries in gridsphere/lib
		Extend the variable TOMCAT_HOME
			Add the activation.jar from Tomcat to the project
			Add the xercesImpl.jar from Tomcat to the project
			Add the XmlParserAPIs.jar from Tomcat to the project
			Add the jta.jar from Tomcat to the project
		Export the libraries and the source folders

- Create an external tool launch configuration for Ant
	Ant resource: gridsphere/config/build/eclipse.build.xml
	Working directory: gridsphere
	Parameters: -Dcatalina.home=/path/to/tomcat/installation -Dcatalina.base=${project_loc:/GSProject}
			-Declipse.build=${workspace_loc:/GSProject/path/to/build/directory}
	Targets (in this order): eclipse-deploy eclipse-create-database eclipse-resources
	Refresh project

- Optionally setup the Ant launch configuration to deploy local gridsphere configuration
	Additional parameter: -Dlocal.config=${resource_loc:/project/path/to/dir}
	Additional target: eclipse-local-config

- Launch the configuration -> Should deploy Gridsphere to the project

- From the project context menu -> Tomcat -> update server.xml
Go to server.xml, and adjust the generated Context so that it includes the crossContext="true" 
attribute. 

- In Window -> Preferences -> Tomcat add the project (here GSProject) to the Tomcat Classpath

- Change the Tomcat 4.1.x launch configuration to start in the Debug perspective

- Launch Tomcat
{'fraction_non_alphanumeric': 0.08346774193548387, 'fraction_numerical': 0.005241935483870968, 'mean_word_length': 4.119711042311661, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6180585', 'n_tokens_mistral': 1473, 'n_tokens_neox': 1335, 'n_words': 552}