2009/9/19 Martin Gainty <[email protected]>:
>    <plugin>
>        <artifactId>maven-compiler-plugin</artifactId>
>        <configuration>
>          <compilerId>csharp</compilerId>
> <compilerArgument>csc /out:My.exe File.cs</compilerArgument
>        </configuration>
>        <dependencies>
>          <dependency>
>            <groupId>org.codehaus.plexus</groupId>
>            <artifactId>plexus-compiler-csharp</artifactId>
>            <version>1.5.2</version>
>          </dependency>
>        </dependencies>
>      </plugin>

I tried with

<compilerArgument>-target:library
-out:${project.build.directory}/${project.artifactId}-${project.version}.dll
-debug -recurse:src/main/csharp/*.cs</compilerArgument>

but this does not make the slightest difference. I also tried
<compilerArgument>gmcs ...</compilerArgument> (just to be sure) but
again no dice.

Mvn -X compile still shows the plugin to be looking in src/main/java.
Very silly.

I've got it working with an Ant snippet so I'll stick with that, I
guess. This plexus-compiler-csharp plugin doesn't strike me as
particularly useful. ;-)

(Actually, I don't think compilerArgument does anything for javac
either. I just tried it with "beep beep" and it didn't trigger any
kind of error or warning. So unless javac compiles a little quicker
when the Roadrunner urges it on...) :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to