Skip to content

Commit 5c66fe7

Browse files
author
Christopher Frost
committed
New Relic to give priority to java_opts
This commit changes the ordering of the frameworks so that Java Opts from either the environment or the Java Opts config file will be specified after any Java Opts added by other frameworks in the application start command. [#102143072]
1 parent 69abec6 commit 5c66fe7

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

config/components.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,20 @@ jres:
3131
- "JavaBuildpack::Jre::OpenJdkJRE"
3232
# - "JavaBuildpack::Jre::OracleJRE"
3333

34+
# Frameworks are processed in order. Any Java Opts added by the JavaOpts framework will be specified in the start
35+
# command after any Java Opts added by previous frameworks.
36+
3437
frameworks:
3538
- "JavaBuildpack::Framework::AppDynamicsAgent"
3639
# - "JavaBuildpack::Framework::IntroscopeAgent"
3740
# - "JavaBuildpack::Framework::DynaTraceAgent"
38-
- "JavaBuildpack::Framework::JavaOpts"
3941
- "JavaBuildpack::Framework::JrebelAgent"
40-
# - "JavaBuildpack::Framework::LunaSecurityProvider"
42+
# - "JavaBuildpack::Framework::LunaSecurityProvider"
4143
- "JavaBuildpack::Framework::MariaDbJDBC"
4244
- "JavaBuildpack::Framework::NewRelicAgent"
4345
- "JavaBuildpack::Framework::PlayFrameworkAutoReconfiguration"
4446
- "JavaBuildpack::Framework::PlayFrameworkJPAPlugin"
4547
- "JavaBuildpack::Framework::PostgresqlJDBC"
4648
- "JavaBuildpack::Framework::SpringAutoReconfiguration"
4749
- "JavaBuildpack::Framework::SpringInsight"
50+
- "JavaBuildpack::Framework::JavaOpts"

docs/framework-java_opts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ The framework can be configured by creating or modifying the [`config/java_opts.
2727

2828
Any `JAVA_OPTS` from either the config file or environment variables that configure memory options will cause deployment to fail as they're not allowed. Memory options are configured by the buildpack and may not be modified.
2929

30+
Any `JAVA_OPTS` from either the config file or environment variables will be specified in the start command after any Java Opts added by other frameworks.
31+
3032
## Example
3133
```yaml
3234
# JAVA_OPTS configuration

0 commit comments

Comments
 (0)