mirah / pindah

Tools for building Android applications with Mirah
Apache License 2.0
228 stars 27 forks source link

pindah should force Mirah to generate Java 1.6 bytecode #25

Closed tlwalker closed 11 years ago

tlwalker commented 12 years ago

There should be a way have Mirah generate a specific version of JVM bytecode or have the Pindah build script compile the Mirah-generated Java source code compiled as a step. This is to address the fact that Java 7 is not supported the Android SDK.

baroquebobcat commented 12 years ago

you mean like the --jvm option on mirahc?

tlwalker commented 12 years ago

Yes, I believe that is it. Having the mirahc task run as mirachc --jvm 1.6 when run on a system with 1.7 installed would fix this until android supports Java 7. I would say mirror the javac task but the target attribute is already taken. So I guess a jvm or target-jvm attribute would work.

baroquebobcat commented 12 years ago

Added a new Mirah issue for this (https://github.com/mirah/mirah/issues/156). it should be a pretty straight forward change on the Mirah side.

tlwalker commented 12 years ago

Cool. By the way, there also needs to be an addition in the target and source attributes to the javac entry in pindah's build.xml file.

abscondment commented 11 years ago

Ah, looks like we just fixed this. Sorry 'bout the lag.