# Application Plugin Percent Char %

**URL:** <https://discuss.gradle.org/t/application-plugin-percent-char/853>\
**Category:** Old Forum Archive\
**Created:** [September 9, 2014, 11:56am UTC](https://discuss.gradle.org/t/application-plugin-percent-char/853 "2014-09-09T11:56:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![david\_koch444](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@david\_koch444](https://discuss.gradle.org/u/david_koch444)\
**Post date:** [September 9, 2014, 11:56am UTC](https://discuss.gradle.org/t/application-plugin-percent-char/853/1 "2014-09-09T11:56:00Z")

</div>

When setting defaultJvmOpts I would like to refer to the %APP\_HOME% env variable which is set at the begin of the script. This seems to be quite straight forward and looks like:

```gradle
startScripts{
  defaultJvmOpts = ['-Xmx512M', "-Djava.security.policy=%APP_HOME%\etc\client.policy"]

```

Accidentally wants the StartScriptGenerator.groovy class to escape the % with another % in order to suppress environment substitution. So I see no chance to pass a path value relative to APP\_HOME. Wouldn’t it be better to not escape automatically and let it to the user to do so?

See StartScriptGenerator.groovy line 108 ff

–David
