Cargo

Cargo deleted all my source

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 0.1
  • Fix Version/s: 0.2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

This is a major problem

I set the working directory to my source path (as I wasn't sure quite what it did) - and when I stopped the server Cargo deleted all my source.

Traced the problem down to DefaultContainer.cleanWorkingDirectory().

If this is what it's meant to do, I'd put a HUGE warning on the doco and everywhere to ensure that users don't set the working directory to a directory that already contains files before Cargo starts.

Activity

Hide
Vincent Massol added a comment -

Cargo now cleans up working directory only if there is a cargo timestamp file and a cargo timestamp file is only created in empty directories.

Show
Vincent Massol added a comment - Cargo now cleans up working directory only if there is a cargo timestamp file and a cargo timestamp file is only created in empty directories.
Hide
Sebastien Tardif added a comment -

I use "redeploy", then "start" and the start fail because the folder is not empty. I don't know what is cargo timestamp but that's not working great.

Show
Sebastien Tardif added a comment - I use "redeploy", then "start" and the start fail because the folder is not empty. I don't know what is cargo timestamp but that's not working great.
Hide
Savas Ali Tokmen added a comment -

Hi Sebastien

Please open a new JIRA issue with the exact steps of what you're doing, what you're expecting to get and what you get instead.

Thank you

Show
Savas Ali Tokmen added a comment - Hi Sebastien Please open a new JIRA issue with the exact steps of what you're doing, what you're expecting to get and what you get instead. Thank you
Hide
Sebastien Tardif added a comment -
Show
Sebastien Tardif added a comment - See CARGO-1074

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: