Le 24-sept.-08 à 02:04, Sergiu Dumitriu a écrit :
The wrapper script is somehow better in a multi-user
environment
because
it is common for all users, so they don't have to modify their own
~/.bash_profile. To sum up:
~/.bash_profile is good because it lets a user define his own settings
A common script is good because it lets all users on a system have the
same settings for maven, which is good if they ALL need the same
settings.
I agree.
Basically upgrading went as follows:
- install and put a wrapper script mvn-2.9
- test, let other tests using that command instead (from time to time)
- when decided to upgrade all replace mvn by a symbolic link to mvn-2.9
Using some global initialization file, like
/etc/bash/bashrc has the
same advantages as the common script file, but also has the advantage
that it sets the settings only once, and not every time mvn is
executed.
There's no performance penalty in setting up a few variables! really
none.
paul