History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEABKL-5149
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Vladislav Kaznacheev
Reporter: Hugo Palma
Votes: 1
Watchers: 1
Available Workflow Actions

Mark as Stalled
Operations

If you were logged in you would be able to see more operations.
IDEA: Backlog

Different JDK for runtime and tests

Created: 18 Apr 07 16:41   Updated: 08 Jun 07 14:04
Component/s: Project Configuration
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 6,180
Severity: Medium


 Description  « Hide
It would be great if it was possible to configure a diferent JDK for testing.
My current use case is that i'm implementing a project that will run in JDK 1.4 but i want to implement and run the tests in JDK 1.5.

The only way i can do this now is use JDK 1.5 and be very carefull not to use any JDK 1.5 features in the runtime code base.



 All   Comments   Work Log   Change History      Sort Order:
Vladislav Kaznacheev - 19 Apr 07 13:46
You could also move test classes to a separate module and configure different language level for it.

Hugo Palma - 19 Apr 07 13:56
Yes, that does work.
Still, i don't think that's a better solution than what i suggested. My reasons are:
  • I have enough modules on my projects. I don't want to double the number of modules in my projects, it will make it almost impossible to manage.
  • It will force me to either export all dependencies of the runtime module or have to replicate them to the test module. I want neither.
  • As you can't have two modules in the same dir, following the maven source structure, i'd have to create the test module in the src/test directory. This doesn't look very clean to me.