Closed ryanheath86 closed 9 years ago
@boedah New pull request specifically for this issue, as requested by @slaff
I am waiting for documentation from the Zend Studio team about the expected behaviour.
Just referencing #59 into this one...
Refactored the code in this commit f56d829888a58a5d6966c75062cd2ad8d9bea4f0. The suggested change is not longer needed.
Scripts directory within the ZPK was not being generated correctly (when directories are added to scriptsdir.includes) for two reasons:
1) The files were contained within a double sub directory : /scripts/scripts 2) Sub-directories of the scripts folder were not being flattened, as is the case when packaging using Zend Studio
Packaging through Zend Studio allows directories to be included in scriptsdir.includes, the behaviour you see there is it copies all the files within that directory, along with all files in any sub-directories, into the scriptsdir defined in the XML - giving you a single directory in the package (named after scriptsdir) which contains all the files, flattened out with no sub-directories.
My update should match this behaviour, but I didnt check adding single files to the scriptsdir.includes as this looked to be handled fine already in the pack() method.