appcelerator/titanium_mobile — pull request #4411 by srahim (2013-06-24 16:09:53+00:00)
Title: [TIMOB-14270] (3_1_X)Adds support for the New Relic module's dex agent.

BACKPORT OF PR #4399

TESTING INSTRUCTIONS IN [JIRA](https://jira.appcelerator.org/browse/TIMOB-14270)

This PR modifies the Android builder script to look for the New Relic module, and if present passes an additional argument to the dx command when it is called. This allows New Relic to do bytecode rewriting for instrumentation.

The Java agent argument to dx is passed via a temporary file to avoid issues the dx command has with spaces in file paths. This temporary file is cleaned up after dx runs.