Hi Wally
On 2012.06.25 22:23, Wally McClure wrote:
As a followup to this, I am getting a bunch of generator.exe errors
that look like this:
------ Build started: Project: BindingLibrary, Configuration: Debug
Any CPU ------
C:\Program Files
(x86)\MSBuild\Novell\Xamarin.Android.Bindings.targets(197,5): error
MSB6006: "generator.exe" exited with code -532462766.
------ Build started: Project: ExampleJavaBindings, Configuration:
Debug Any CPU ------
========== Build: 0 succeeded or up-to-date, 2 failed, 0 skipped
==========
something like:
It seems that xml breaks generator.exe.
I have filed bug report when there is whietspace in element content:
<attr
path="/api/package[@name='org.achartengine.tools']/class[@name='Pan']/method[@name='addPanListener']"
name="propertyName"
>
Panned
</attr>
And now about Your errors - inline
------------------------------------------------------------------------
From: theevilprogram...@hotmail.com
To: monodroid@lists.ximian.com
Subject: transforming a property in a java library project
Date: Mon, 25 Jun 2012 15:51:18 -0400
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>
It seems it is xml again - from what I can see (blurred) w/o coffee
this early in the morning.
You're closing <mapping> twice: with /> and </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>
And here I think it is not property, but method!
Props are methods....
try:
<attr
path="/api/package[@name='com.scalabledevelopment.math']/class[@name='Operations']/method[@name='Operations']"
name="managedName" >NumOperations</attr>
see my sample above.... (achartengine wrapped)
real world (acharengine + admob)
https://github.com/moljac/HolisticWare_JavaBindingProjects
AdMob is not done (yet)
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?
it will - so no use. Don't do it.
Ideas, thoughts, and whatever are appreciated.
try commenting/uncommenting metadata.xml in my project. It helped me a
lot...
regards
mel
Wally
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
--
Miljenko Cvjetko dipl.ing. ET
Direktor/CEO
Projektant rjes(enja/Solution Architect
Razvojni programer/Senior developer
Voditelj projekta/Project Manager
IX juz(na obala 13
Kajzerica Zagreb
T: 385 1 7775555
M: 385 91 557 447 3
F: 385 1 7779556
e: mcvje...@holisticware.net
w: http://www.holisticware.net
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid