You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by dan tran <da...@gmail.com> on 2006/09/12 17:23:35 UTC

Re: maven-native-plugin Resource compiler

Hi Robert,

First, please always direct your inquiry to user list so that others can
answer/benefit as well

Please file a JIRA, provide a patch to add .exe to all msvc executables, and
test against your build

Glad it works out for you

-Dan

On 9/12/06, Robert Phillips <rp...@princetonsoftech.com> wrote:
>
>   Dan,
>
>   Thanks for your work on the maven-native-plugin.  I'm working on a
> project that is using the plugin to compile a large set of C-language shared
> objects on Win32 and 4 different Unix variants.  Would it be possible for
> you to change MSVCResourceCompiler.java and MSVCMessageCompiler.java (and,
> presumably, ResourceCompilerConfiguration.java and
> MessageCompilerConfiguration.java) to obtain the resource compiler and
> message compiler executable names from configuration parameters?
>
>
>
>   Our Unix compilation uses a product called MainWin from Mainsoft, which
> provides a Win32 environment on Unix systems (the gag reflex usually kicks
> in at this point).  The MSVC provider works almost perfectly in this
> environment, except that the executables called must have the .exe suffix
> appended.  With the linker and compiler, I can accomplish this task easily.
> However, the resource compiler is hard-coded to "rc", which exists in a
> MainWin environment and serves a purpose different than that served by
> "rc.exe".  A similar situation exists with respect to the message compiler.
>
>
>
>   There are a number of ways around this problem, but I thought that I
> would try this one first for a couple of reasons.  First, if you incorporate
> this change into the distributed and maintained plugin, I am relieved of the
> need to ever have to think about it again.  Second, I can congratulate you
> on a piece of work that has saved me a good bit of time and effort.
>
>
>
>   If you prefer not to make these changes, I understand, and I can resolve
> the problem in a less elegant way.  Thanks for your consideration, and
> thanks again for the plugin.
>
>
>
> Best Regards,
>
>
>
> Bob Phillips
>
> Developer
>
> Princeton Softech
>
> 111 Campus Drive
>
> Princeton, NJ 08540
>
> ph: 1-800-457-7060
>
> direct: 1-609-627-5626
>
> fax: 1-609-627-7799
>
> rphillips@princetonsoftech.com
>
> www.princetonsoftech.com
>
>
>
>
>