Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding directories to scriptsdir.includes #61

Closed
wants to merge 1 commit into from

Conversation

ryanheath86
Copy link

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.

…r 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.
@ryanheath86
Copy link
Author

@boedah New pull request specifically for this issue, as requested by @slaff

@slaff
Copy link
Contributor

slaff commented Apr 14, 2015

I am waiting for documentation from the Zend Studio team about the expected behaviour.

@boedah
Copy link
Contributor

boedah commented Apr 14, 2015

Just referencing #59 into this one...

@slaff
Copy link
Contributor

slaff commented Apr 20, 2015

Refactored the code in this commit f56d829. The suggested change is not longer needed.

@slaff slaff closed this Apr 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants