Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-174] jdklib: Implement options mechanism

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusResolved
ResolutionFixed
Resolution Date2017-12-01T16:45:15.000+0000
Affected Version/sn/a
Fix Version/sAppc Daemon 1.0.0
Componentsjdklib
Labelsn/a
ReporterChris Barber
AssigneeEwan Harris
Created2017-11-20T18:12:43.000+0000
Updated2017-12-01T17:06:17.000+0000

Description

This ticket is to implement an options mechanism similar to ioslib and androidlib.

Comments

  1. Ewan Harris 2017-11-30

    [~cbarber] I'm not sure what would be added to jdklib here? We should mixin java.home here in [jdk-info-service](https://github.com/appcelerator/appc-daemon/blob/b39102772b8463279f33b259f45bd2958a87b02c/plugins/appcd-plugin-jdk/src/jdk-info-service.js#L24) but I'm not grasping the usefulness of overriding the executables object for a jdk?
  2. Chris Barber 2017-11-30

    This ticket is simply adding support for jdk.searchPaths option. In the core's server.js, we can import java.home from the Ti CLI's config and copy it into jdk.searchPaths. Then in the JDK plugin, we simply get(options, 'jdk.searchPaths') or fall back to the default ones (or whatever we do for Android, etc).
  3. Ewan Harris 2017-11-30

    Ah ok, I assumed it extended to executables too as we included them in the java import change here https://github.com/appcelerator/appc-daemon/pull/166/files#diff-955bce450ab6d9d1deaeeb4d6f5a6124R381
  4. Chris Barber 2017-11-30

    Ah, yeah, all of those settings need to be removed. We only need jdk.home (String) -> jdk.searchPaths (Array.).
  5. Ewan Harris 2017-12-01

    https://github.com/appcelerator/appc-daemon/pull/214

JSON Source