Am 12.04.11 04:45, schrieb Brett Porter:
>> >> Modified: incubator/npanday/trunk/dotnet/assemblies/NPanday.Plugin.MojoGenerator/src/main/csharp/NPanday/Plugin/MojoGenerator/Generator.cs
>>  
URL:http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.Plugin.MojoGenerator/src/main/csharp/NPanday/Plugin/MojoGenerator/Generator.cs?rev=1025511&r1=1025510&r2=1025511&view=diff
>>  
==============================================================================
>>  --- 
incubator/npanday/trunk/dotnet/assemblies/NPanday.Plugin.MojoGenerator/src/main/csharp/NPanday/Plugin/MojoGenerator/Generator.cs
 (original)
>>  +++ 
incubator/npanday/trunk/dotnet/assemblies/NPanday.Plugin.MojoGenerator/src/main/csharp/NPanday/Plugin/MojoGenerator/Generator.cs
 Wed Oct 20 11:37:11 2010
>>  @@ -100,11 +100,9 @@ namespace NPanday.Plugin.MojoGenerator
>>                                jcuLocal.unmarshall(javaClass, fileInfo);
>>                        }
>>                        
>>  -                     ResourceManager resourceManager = new 
ResourceManager("NPanday.Plugin.MojoGenerator",
>>  -                                                                           
Assembly.GetExecutingAssembly());
>>  -                     String pomXml = (String) 
resourceManager.GetObject("pom-java.xml");
>>  -                     TextReader reader = new StringReader(pomXml);
>>  -                 XmlSerializer serializer = new 
XmlSerializer(typeof(NPanday.Model.Pom.Model));
>>  +            TextReader reader = new 
StreamReader(Assembly.GetExecutingAssembly().
>>  +            
GetManifestResourceStream(Assembly.GetExecutingAssembly().GetManifestResourceNames()[0]));
>>  +                     XmlSerializer serializer = new 
XmlSerializer(typeof(NPanday.Model.Pom.Model));
>>                        NPanday.Model.Pom.Model model = 
(NPanday.Model.Pom.Model) serializer.Deserialize(reader);       
>>                        model.artifactId = artifactId + ".JavaBinding";
>>                        model.groupId = groupId;
> > I'm not sure I understand this change. Is it reading the POM as the first resource from an asembly? >
I also stumbled over that change and filed a "bug". Didn't know it was introduced lately:


   JavaBindings-Generator for .NET-Mojos is fragile (and not working
   for NPanday.Plugin.SettingsGenerator)
   <https://issues.apache.org/jira/browse/NPANDAY-385>


https://issues.apache.org/jira/browse/NPANDAY-385

Reply via email to