[ http://jira.codehaus.org/browse/MNG-463?page=comments#action_40881 ] Jerome Lacoste commented on MNG-463: ------------------------------------
Yes. m2-bootstrap-all.sh The code that performs the delete is I think in MBoot.java [...] File dist = new File( mavenHome ); System.out.println( "Maven installation directory: " + dist ); [...] // build the installation FileUtils.deleteDirectory( dist ); [...] > [data loss] installation script inconditionally deletes M2_HOME contents > ------------------------------------------------------------------------ > > Key: MNG-463 > URL: http://jira.codehaus.org/browse/MNG-463 > Project: Maven 2 > Type: Improvement > Versions: 2.0-alpha-3 > Reporter: Jerome Lacoste > Priority: Critical > > > I've set up M2_HOME to a wrong directory by mistake, and the m2 installer > deleted everything in it... > May I suggest to use the same strategy used by the cargo installer? > I.e. > if (target directory empty || m2 marker file exists) > - copy the contents > - add a marker file specific to m2 > else > warn user > See CARGO-27 for the original CARGO issue. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]