@Alex, +1
On Thu, Nov 5, 2015 at 1:50 PM, Alex Soto <[email protected]> wrote: > I think this feature should be documented as well in tomee maven page. > > El dj., 5 nov. 2015 a les 16:53, Romain Manni-Bucau (< > [email protected]>) > va escriure: > > > https://issues.apache.org/jira/browse/TOMEE-1653 > > > > > > Romain Manni-Bucau > > @rmannibucau <https://twitter.com/rmannibucau> | Blog > > <http://rmannibucau.wordpress.com> | Github < > > https://github.com/rmannibucau> | > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > > <http://www.tomitribe.com> > > > > 2015-11-05 6:10 GMT-08:00 Romain Manni-Bucau <[email protected]>: > > > > > Yes it is tomcat so no defaults. > > > > > > Ill surely hack a way to change the main class so you could set them > > > manually. > > > Le 5 nov. 2015 05:47, "Alex Soto" <[email protected]> a écrit : > > > > > >> Yes I know, sadly I think that this is provided by Tomcat and not > TomEE > > >> > > >> El dj., 5 nov. 2015 a les 13:32, jieryn (<[email protected]>) va > > escriure: > > >> > > >> > Yes, thank you, Alex. > > >> > > > >> > When I ask about a default value, by this I mean in server.xml there > > >> > should be toleration of a default value for the variable. E.g. > > >> > ${tomcat.http.port:-8080}, where 8080 is used if tomcat.http.port is > > >> > not set. > > >> > > > >> > This is useful because it allows easy parameter override, but with > > >> > sensible default value. This way, users who do not need to customize > > >> > are not burdened with having to type, and possibly mistake, all the > > >> > -DadditionalSystemProperties=-Dtomcat.http.port=8080 configuration > > >> > values. > > >> > > > >> > On Thu, Nov 5, 2015 at 7:08 AM, Alex Soto <[email protected]> > wrote: > > >> > > Look this is an example of what Romain told you: > > >> > > > > >> > > java -jar -DadditionalSystemProperties=-Dtomcat.http.port=$PORT > > >> > > quote-1.0.0-exec.jar > > >> > > > > >> > > And in server.xml I had defined ${tomcat.http.port} in the > required > > >> > place. > > >> > > > > >> > > El dj., 5 nov. 2015 a les 12:50, jieryn (<[email protected]>) va > > >> > escriure: > > >> > > > > >> > >> This placeholder in server.xml, does it support the use of a > > default > > >> > >> value if no value is specified by the user? Kind of the way bash > > >> > >> variable expansion works? This would be ideal.. > > >> > >> > > >> > >> On Fri, Oct 30, 2015 at 8:40 PM, Romain Manni-Bucau > > >> > >> <[email protected]> wrote: > > >> > >> > If you use a placeholder in server.xml passing it in > > >> > >> > additionalSystemProperties works. > > >> > >> > > > >> > >> > Using tomee embedded main is an alternative. > > >> > >> > Le 30 oct. 2015 07:02, "jieryn" <[email protected]> a écrit : > > >> > >> > > > >> > >> >> How can a user override the ports I specified during the > > building > > >> of > > >> > >> >> the executable war? The tomcat:exec built executable allows > > >> command > > >> > >> >> line flag overriding. I looked through the documentation and > > >> haven't > > >> > >> >> discovered it, sorry, any help is appreciated, thanks! > > >> > >> >> > > >> > >> > > >> > > > >> > > > > > > -- Daniel Cunha https://twitter.com/dvlc_ http://www.tomitribe.com
