Dear all,

I am the one that asked for such feature :) Let me explain why.

I develop a library that needs to run on a 1.4 JVM (Eclipse requirements).

Since I like Java 5+ features, the code is written in 1.5 type and I use
the compiler jsr14 target to produce 1.4 bytecode.

The project being a few years old, my initial unit tests were in JUnit
3.8 style, so no problem.

Since JUnit4 style unit tests are available, I do prefer to write my
tests the JUnit 4 way. So I have a mix of JUnit3 and JUnit4 tests.

Because I currently compile the JUnit4 tests with the jsr14 target, I
loose all the JUnit4 annotations needed for JUnit4 tests, so those test
currently fail within Maven test cycle.

I use Eclipse to develop. Indeed, I do not have separate compiler
options under Eclipse: I use Java 1.5 settings and I can run both JUnit3
and JUnit4 tests without problem.
The jsr14 target is only used during integration. And it is important
for me to run all my tests then.

I guess that I am not the only one in that situation (i.e. production
code with some requirements and tests with other requirements).

Cheers,

    Daniel

Oleg Gusakov a écrit :
>
> This could be arranged, but Eugene has a very valid question - Eclipse
> sets all those on the project level and might misbehave as soon as
> somebody starts debugging such a project.
>
> Milos, you can say that's eclipse's problem. But is't a majority of
> users, whether it's good or bad, we need to respect that use case.
>
> So the question remains - should we modify the compiler plugin to
> allow separate configurations for test compiler? Or if such a need
> comes - it's an indication that it's time to move tests into a
> separate project?
>
> Anyone ?
>
> � wrote:
>> Yes Milos, it was my question.
>>
>> In fact, it's nice to can specify specific configuration for both
>> source and
>> test.
>>
>> For instance, we want to be able to define the source and target
>> level but
>> also some other configuration such as compilerArgument and so on
>>
>> R�my
>>
>>   
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


-- 
             Daniel Le Berre mailto:[EMAIL PROTECTED]
             MCF,    CRIL-CNRS UMR 8188,    Universite d'Artois
             http://www.cril.univ-artois.fr/~leberre


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to