The modified <java> task should behave exactly like the old one did with some exceptions.
The main exception is that it doesn't support all the attributes <exec> supports - only those that have been documented before plus "dir". The main new features visible from outside are nested <arg> and <jvmarg> elements to make the live easier if your arguments contain spaces.
