Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11641] Have the Android Module build.xml accept and use a Java-Home argument

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2016-08-25T00:04:40.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterShalom Gibly
AssigneeEric Merriman
Created2012-11-02T00:27:26.000+0000
Updated2017-03-17T18:13:34.000+0000

Description

This one was created after investigating a Studio ticket - TISTUD-1984 As it looks like, a user has to set a JAVA_HOME environment variable in the system. Failing to do so triggers an error from the build.xml for Android module packaging. Since the Studio does not use an external process to initiate Ant, we need an additional variable support in the 'build.xml' to accept and use a specified java-home. The studio detects a valid Java Home (one that contains bin/javac), even when it's not specified in the environment. The detected location can then be passed into the 'build.xml' as an argument. Something like "java_home".

Comments

  1. Chris Barber 2016-08-25

    The Android module build no longer uses Ant or the build.xml file. Furthermore, the Android module build uses node-appc's JDK detection library which finds the JDK based on the JAVA_HOME environment variable and via the Titanium CLI config java.home override.
  2. Lee Morris 2017-03-17

    Closing ticket as invalid.

JSON Source