hemantasapkota / j2objc-eclipse-plugin

Eclipse plugin for Google's J2OBJC - A Java to iOS Objective-C translation tool and runtime.
26 stars 12 forks source link

Add mechanism to exclude directory or files from exporting (.h/.cpp/.mm) #5

Closed hemantasapkota closed 10 years ago

hemantasapkota commented 10 years ago

Ref Email:

Hi Hermanta,

I am new to j2objc and I am trying j2objc with the plug-in to see how far it would get in translating a somewhat complex Android project.

I understand there are issues translating Android java, but I just wanted to see how far along the translation would progress.

Anyway....

I was surprised to see that after I set the j2objc output directory to a new directory in my eclipse project, named object-c, that when I ran "J2ObjC --> To Object-C", that my header file in my JNI directory was move to the output directory under JNI.   This, of course, broke the Android build as the JNI portion failed to compile due to the missing/moved header.

This seems not right to me, but get the group's opinion.
In general, how are JNI sources to be specified such that they are excluded from being moved?

I have attached a screenshot showing my open Eclipse and how the QR_Encode.h file has been move to the output directly set in the plug-in’s property page.

Any idea what could be causing this, and how to fix it?

Cheers,
Robin