CVS-module:eclipse-project mapping (*nix)
creating a new project with cvs co of module 'sakai' from cvs.sakaiproject.org works well for getting the whole project to compile, but it does not do well for debugging,editing, and deploying using J2EE plugins (nor JSF plugins). Ideally, each submodule of the sakai module would be a seperate eclipse project.
...
To add tomcat natures without all the repetitive typing:
- for each project, right-click->properties->tomcat... general tab: checkbox 'tomcat project' (can't figure out how to do this any other way)
- quit eclipse
- rest
Note title TODO Item I think you can add full tomcat natures from the command line (without all the clicking ....above) by adding this line to the .project files:
No Format <nature>com.sysdeo.eclipse.tomcat.tomcatnature</nature>
....Then, run , pointing, and, especially, clicking:
Run this scriptlet in the sakai modules' root directory:
Code Block | ||
---|---|---|
| ||
#!/bin/tcsh
foreach file ( `find . -name .tomcatplugin -exec dirname {} \; | awk -F'/' '{print $NF}'` )
sed -i.bak -r "{s/<warLocation>.*<\/warLocation>/<warLocation>\/usr\/local\/tomcat\/webapps\/sakai-$file.war<\/warLocation>/}" \
./$file/.tomcatplugin
sed -i.bak2 -r "{s/<webPath>.*<\/webPath>/<webPath>\/sakai-$file.war<\/webPath>/}" \
./$file/.tomcatplugin
end
foreach file ( `find . -name .project -print` )
sed -i.bak3 -r "{s/(\s+)(<nature>org.eclipse.jdt.core.javanature<\/nature>)/\1\2\n\1<nature>com.sysdeo.eclipse.tomcat.tomcatnature<\/nature>/}" $file
end
|
... be sure to change the \/usr\/local\/tomcat (the '/' chars are necessary additions) reference to match your tomcat install.