Include generated differently since release 2.8

59 views
Skip to first unread message

david_...@sil.org

unread,
Apr 3, 2023, 6:29:34 PM4/3/23
to j2objc-discuss
I have been building with j2objc 2.8 until now.  Today I created a fork and built a dist from the next to the last checkout (git checkout 4adbb2ddc7c542431902ee14e77256ba7808923d).  In the image below, the left hand file is the java file being processed, the shot in the middle is what was generated today using the updated j2objc.  The file on the right is the same file as it was processed by j2objc 2.8.  

This is the build command in xcode used to call j2objc to produce the file.  

"${J2OBJC_HOME}/j2objc" --swift-friendly -d ${GENERATED_FILES_DIR} -classpath ${J2OBJC_HOME}/lib/json.jar -sourcepath "${JAVA_SOURCE_PATH}" --no-package-directories --prefixes "${SRCROOT}/AppLibCommon/prefixes.properties" -use-arc -g ${INPUT_FILE_PATH};

With this option, in j2objc 2.8, all of the .h and .m files are located in one directory regardless of where they appeared in the hierarchy in the original java code at the completion of the run.  I assume that I need to change some option to accommodate a change made.  If you can tell me what I need to change, I would appreciate it
Screenshot 2023-04-03 at 6.18.26 PM.png

david_...@sil.org

unread,
Apr 3, 2023, 6:32:43 PM4/3/23
to j2objc-discuss
Didn't state the problem was: If you look, the includes generated for the local java files now have the entire path to the original location in the architecture.  Since that is not where j2objc is placing them, the includes are not found.

Tom Ball

unread,
Apr 3, 2023, 7:26:56 PM4/3/23
to j2objc-...@googlegroups.com
Please file an issue on GitHub, as it looks like the --no-package-directories flag isn't working.

--
You received this message because you are subscribed to the Google Groups "j2objc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to j2objc-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/j2objc-discuss/1383c858-a0ac-4456-bbfe-6e9392b8cf5an%40googlegroups.com.

david_...@sil.org

unread,
May 12, 2023, 12:32:54 PM5/12/23
to j2objc-discuss

I did generate an issue.  Just checking to see if there is any update on this.
Reply all
Reply to author
Forward
0 new messages