[TIMOB-19315] Android: CLI - android.dx.maxMemory not working - typo issue at _build.js
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2020-01-30T10:50:08.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android, CLI |
Labels | n/a |
Reporter | Manojkumar Murugesan |
Assignee | Praveen Innamuri |
Created | 2015-07-13T13:38:25.000+0000 |
Updated | 2020-01-31T10:29:58.000+0000 |
Description
Setting *android.javac.maxMemory* and *android.dx.maxMemory* properties in tiapp.xml never works.
+Test Case:+
<property name="android.javac.maxMemory" type="string">1024M</property>
<property name="android.dx.maxMemory" type="string">2048M</property>
+Expected Behaviour+
Should accept the values from tiapp.xml
+Actual Behaviour+
it always takes *256M / 1024M* which is default.
The below one works.
<property name="android.javac.maxmemory" type="string">1024M</property>
<property name="android.dx.maxmemory" type="string">2048M</property>
Typo issue at https://github.com/appcelerator/titanium_mobile/blob/afcd78293e0f9835c1d244b9dace47e2afb692a4/android/cli/commands/_build.js#L927
This is not a bug. The property names that should be used on tiapp.xml are properly documented: http://docs.appcelerator.com/platform/latest/#!/guide/Titanium_CLI_Options-section-src-37549003_TitaniumCLIOptions-android.javac.maxmemory and http://docs.appcelerator.com/platform/latest/#!/guide/Titanium_CLI_Options-section-src-37549003_TitaniumCLIOptions-android.dx.maxmemory
As stated in the docs, the property must be named "android.javac.maxmemory".
As stated above, this ticket is invalid. Closing.