The message-compiler isn't executed in the environment specified in the 
plugin-configuration
--------------------------------------------------------------------------------------------

                 Key: MOJO-1533
                 URL: http://jira.codehaus.org/browse/MOJO-1533
             Project: Mojo
          Issue Type: Bug
          Components: native
            Reporter: Barnabas Bodnar
            Priority: Minor
         Attachments: 
org.codehaus.mojo.natives.plugin.NativeMessageCompileMojo.patch

Although in a MSVC6 installation the message-compiler (mc.exe) resides in the 
same directory as the compiler and linker, 
it is not found when attempted to be executed by the Maven Native Plugin. A 
short research revealed, that the class 
org.codehaus.mojo.natives.plugin.NativeMessageCompileMojo has an own member 
"envFactoryName", which hides the member of the same name in the superclass 
org.codehaus.mojo.natives.plugin.AbstractNativeMojo; during configuring the 
plugin the former is set, while the plugin-code attempts to read the latter.
Removing the member "envFactoryName" (which is never directly accessed in the 
code) from org.codehaus.mojo.natives.plugin.NativeMessageCompileMojo solves the 
problem; a corresponding patch based on 
"http://svn.codehaus.org/mojo/trunk/mojo/maven-native/native-maven-plugin/src/main/java/org/codehaus/mojo/natives/plugin/nativemessagecompilemojo.j...@11550";
  is attached.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to