Bug 173662

Summary: www/tomcat7: Add missing features to init script
Product: Ports & Packages Reporter: Victor Balada Diaz <victor>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me CC: ale
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
tomcat7.patch none

Description Victor Balada Diaz 2012-11-16 15:30:00 UTC
	www/tomcat6 init script does have the following variables that are missing on www/tomcat7:

	tomcat7_java_vendor (str):
	tomcat7_java_version (str):
	tomcat7_java_os (str):

	These are very useful if you have more than one JVM installed to select which want
	to use. As they existed on tomcat6 port, i was expecting to find them on tomcat7.

Fix: The following patch adds them. The reason to run java in dry mode is that
	unless you specify JAVA_HOME jsvc doesn't work. The easiest way that i've
	found to get a proper JAVA_HOME from other settings is just running on dry
	mode and let javavm tell me what's the proper JAVA_HOME.

	Probably there's a better way to do this, but i think this is good enough.

	This work is based on www/tomcat6 init script.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-11-16 15:30:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2012-11-16 15:33:40 UTC
State Changed
From-To: open->closed

Which part of tomcat7_java_home (Specify the Java VM to use.) is not clear? :-)