Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-14322

CLI: Setting _JAVA_OPTIONS global variable breaks building of project

    Details

      Description

      Problem

      I have option _JAVA_OPTIONS set to -Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel to make all java apps looks like GTK apps

      That gives some grave probems when trying to build any android (or probably any java related project).

      After that variable set any java app would give this info message:

      Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel

      which breaks python parser inside android/avd.py. (See logs)

      Usetting _JAVA_OPTIONS fixes problem.

      That's pretty infamous " AttributeError: 'NoneType' object has no attribute 'split' " problem, that show weakness of python parsers written

      Logs

      console

      [ERROR] Exception occured while building Android project:
      [ERROR] Traceback (most recent call last):
      [ERROR]   File "/home/khades/.titanium/mobilesdk/linux/3.1.1.GA/android/builder.py", line 2604, in <module>
      [ERROR]     builder.build_and_run(True, avd_id, device_args=device_args, debugger_host=debugger_host, profiler_host=profiler_host)
      [ERROR]   File "/home/khades/.titanium/mobilesdk/linux/3.1.1.GA/android/builder.py", line 2321, in build_and_run
      [ERROR]     for avd_props in avd.get_avds(self.sdk):
      [ERROR]   File "/home/khades/.titanium/mobilesdk/linux/3.1.1.GA/android/avd.py", line 23, in get_avds
      [ERROR]     for line in run.run([sdk.get_android(),'list','target'],debug=False).split("\n"):
      [ERROR] AttributeError: 'NoneType' object has no attribute 'split'
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                khades Khadisov Alexandr
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-16809
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration