Skip to content

Appdir.excludes is being ignored #69

Closed
@ericovasconcelos

Description

@ericovasconcelos

Hi,

I've tried to use the appdir.excludes from deployment.properties to exclude .svn files in my project. I realized that files in the directories were not being excluded.

From my perspective, I believe that the code at ZpkInvokable.php:451 that validates the exclude is working:

the code:
if (in_array($localPath, $excludes)) {
return;
}

Returns returns false for the following example:
$localPath = "module/Application/view/application/usuariomodule/Application/view/application/usuario";
$excludes[0] = "svn";
$excludes[1] = "**/.svn";

This means that it will neve enter the return line.

I've managed to solve it by adding the following loop:

foreach($excludes as $excludeItem) {
if (strpos($localPath, $excludeItem)) {
return;
}
}

If you authorize I could send pull request for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions