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!
> >>
>