This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When selecting the 'Copy files from Source folder to another location' option in a PHP project's properties, the target directory has to be empty. This is a setback, since often php development is about writing plugins to other php scripts (CMS for example) and such a project needs to be deployed into a preexistent directory in the webroot. I am writing Joomla plugins and these need to be deployed into a subfolder of a Joomla installation. Right now, this has to be done manually.
This behaviour is intentional because NB has to ensure that the mirrored sources are always up to date; consider the following scenario: - create PHP project *without* copying source files - later, select copying sources Now, NB doesn't know anything about the target directory (whether it already contains [fresh] sources or not) so to create exact mirror, NB should delete all the content of the directory and then copy sources but this could be *very* dangerous (possible data loss). OTOH if NB does not delete all the content then some old, already deleted source files could exist in the target directory - this is definitely wrong because file deletion is mirrored as well. Anyway, hard to decide how to solve this situation and satisfy all the possible scenarios.
Possible work around: - move all the folders/files from the target directory to another location - check copying sources - return the original folders/files to the target directory
batch reassigning