Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

It should be possible to write the code in other languages then java

For example one should be able (it is not resonable but still should be possible) to write "main" sources using groovy and "test" sources using jython.

then once somebody types "maven jar" groovy compiler should first be invoked and used for compiling groovy classes then unit test runner which undestand jython should be invoked.

This probably also open the point if we should have something like <groovySourceDirectory> or <jythonUnitTestSourceDirectory>.
IMO: NO!

But probably we should replace:
<sourceDirectory>src/java</sourceDirectory>
<unitTestSourceDirectory>src/test/java</unitTestSourceDirectory>

with

Code Block
xml
xml
 
<sourceDirectory>
   <location>src/groovy</location>
    <language>groovy</language>
</sourceDirectory>
 
Code Block
xml
xml
 
 <unitTestSourceDirectory>
  <location>src/test/java</location>
  <language>jython</language>
</unitTestSourceDirectory>
 

with default language = java