j2objc-contrib / j2objc-gradle

This plugin is no longer actively maintained. J2ObjC Gradle Plugin: enables Java source to be part of an iOS application's build so you can write an app's non-UI code (such as application logic and data models) in Java, which is then shared by Android apps (natively Java) and iOS apps (using J2ObjC), all as part of your usual Android Gradle build.
https://github.com/j2objc-contrib/j2objc-gradle
Apache License 2.0
139 stars 43 forks source link

sourcepath defaults - understand and correct if needed #257

Open brunobowden opened 9 years ago

brunobowden commented 9 years ago

These article suggest in part that -sourcepath should be blank in most cases. I need to delve in to this further in order to confirm what we should be doing.

http://blog.ltgt.net/most-build-tools-misuse-javac/ https://docs.gradle.org/2.4/release-notes#changes-to-default-value-for-java-compilation-sourcepath

advayDev1 commented 9 years ago

Data point: Removing the directories of files even those explicitly passed to j2objc to be translated, when those files are split across multiple source set directories (ex. with dagger code or main/test code), results in class not found errors. My belief (guess) is that the sourcepath is telling j2objc what the root of the directory is so that it can find where to append the package part of the path (otherwise how would it know which part of the path was package vs. just root directory?)