[mono-android] transforming a property in a java library project
Wally McClure
theevilprogrammer at hotmail.com
Mon Jun 25 19:51:18 UTC 2012
I have created a class called operations in .java file in eclipse. Everything compiles as intended in Eclipse. I want to then import my jar file into a java binding project in MfA 4.2. I have INTENTIONALLY created a property in java that will result in a conflict with an initializer in C#. My question is how do I go about fixing this via the transform .xml files? In the EnumMethods.xml file, I have tried: <mapping jni-class="com/scalabledevelopment/math/Operations">
<method jni-name="Operations" parameter="Operations"
clr-enum-type="FixedOperations" />
</mapping> as will as: <mapping jni-class="com/scalabledevelopment/math/Operations">
<method jni-name="Operations"
clr-enum-type="FixedOperations" />
</mapping> Neither of the above options helps me. I have tried to go into Metadata.xml and use the following:<attr path="/api/package[@name='com.scalabledevelopment.math']/class[@name='Operations']/property[@name='Operations']" name="managedName" >NumOperations</attr> Unfortunately, I have no luck there as well. My other option is to go into the source file at obj/Debug/generated/src/.cs file. I can fix the error there, but won't the file be overwritten the next time I perform a compile? Ideas, thoughts, and whatever are appreciated. Wally
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120625/4e98b3e0/attachment.html>
More information about the Monodroid
mailing list