[
https://issues.apache.org/jira/browse/TIKA-3748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tim Allison updated TIKA-3748:
------------------------------
Description:
In the original request on the user list, we received this use case. The
forked process should be able to receive the forking processes system
properties as passed in via the commandline, e.g. {{java
-Dlogpath=something...}}
It would be trivial add some expansion code to allow this, and it would be
fairly secure because we can limit it to system variables _and_ the user has to
specify which system properties to interpolate.
{noformat}
<forkedJvmArgs>
<arg>-Xms1g</arg>
<arg>-Xmx1g</arg>
<arg>-Dlogpath="${sys:logpath}"</arg>
<arg>-Dlog4j.configurationFile="C:\tmp\configs\log4jTika.xml"</arg>
</forkedJvmArgs>
{noformat}
was:Along the lines of TIKA-3715, it would be handy to pass in the system
properties specified by "-Dxyz" in the main tika-server commandline into the
forked processes. As with TIKA-3715, this does not propose adding these into
the pipes/async processors for now.
> Allow expansion of system properties from forking to forked in tika-server
> --------------------------------------------------------------------------
>
> Key: TIKA-3748
> URL: https://issues.apache.org/jira/browse/TIKA-3748
> Project: Tika
> Issue Type: Wish
> Reporter: Tim Allison
> Priority: Major
>
> In the original request on the user list, we received this use case. The
> forked process should be able to receive the forking processes system
> properties as passed in via the commandline, e.g. {{java
> -Dlogpath=something...}}
> It would be trivial add some expansion code to allow this, and it would be
> fairly secure because we can limit it to system variables _and_ the user has
> to specify which system properties to interpolate.
> {noformat}
> <forkedJvmArgs>
> <arg>-Xms1g</arg>
> <arg>-Xmx1g</arg>
> <arg>-Dlogpath="${sys:logpath}"</arg>
> <arg>-Dlog4j.configurationFile="C:\tmp\configs\log4jTika.xml"</arg>
> </forkedJvmArgs>
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)