Skip to content

Commit fa1d0f5

Browse files
committed
AppDynamics custom resources
Previously, if a user wanted to override the app-agent-config.xml file in their application, it was impossible to do so. This change adds the copy_resources() functionality to the AppDynamics framework. This functionality now allows a user to add files to resources/app_dynamics_agent and have those files overlayed on the framework's sandbox. [#67769548]
1 parent 33f59b1 commit fa1d0f5

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

docs/framework-app_dynamics_agent.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ The framework can be configured by modifying the [`config/app_dynamics_agent.yml
3333
| `repository_root` | The URL of the AppDynamics repository index ([details][repositories]).
3434
| `version` | The version of AppDynamics to use. Candidate versions can be found in [this listing][].
3535

36+
### Additional Resources
37+
The framework can also be configured by overlaying a set of resources on the default distribution. To do this, add files to the `resources/app_dynamics_agent` directory in the buildpack fork. For example, to override the default `app-agent-config.xml` add your custom file to `resources/app_dynamics_agent/conf/app-agent-config.xml`.
38+
3639

3740
[`config/app_dynamics_agent.yml`]: ../config/app_dynamics_agent.yml
3841
[AppDynamics Service]: http://www.appdynamics.com

java-buildpack.iml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@
282282
<orderEntry type="library" scope="PROVIDED" name="parser (v2.1.7, rbenv: 1.9.3-p545) [gem]" level="application" />
283283
<orderEntry type="library" scope="PROVIDED" name="powerpack (v0.0.9, rbenv: 1.9.3-p545) [gem]" level="application" />
284284
<orderEntry type="library" scope="PROVIDED" name="rainbow (v2.0.0, rbenv: 1.9.3-p545) [gem]" level="application" />
285-
<orderEntry type="library" scope="PROVIDED" name="rake (v10.2.0, rbenv: 1.9.3-p545) [gem]" level="application" />
285+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.2.2, rbenv: 1.9.3-p545) [gem]" level="application" />
286286
<orderEntry type="library" scope="PROVIDED" name="redcarpet (v3.1.1, rbenv: 1.9.3-p545) [gem]" level="application" />
287287
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.0.0.beta2, rbenv: 1.9.3-p545) [gem]" level="application" />
288288
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.0.0.beta2, rbenv: 1.9.3-p545) [gem]" level="application" />

lib/java_buildpack/framework/app_dynamics_agent.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class AppDynamicsAgent < JavaBuildpack::Component::VersionedDependencyComponent
2727
# (see JavaBuildpack::Component::BaseComponent#compile)
2828
def compile
2929
download_zip false
30+
@droplet.copy_resources
3031
end
3132

3233
# (see JavaBuildpack::Component::BaseComponent#release)

0 commit comments

Comments
 (0)