Skip to content

Copy_resources plugin not copying files/folders located outside of "dir_source_main_python" value #715

@farooqind

Description

@farooqind

@arcivanov My resources folder is not inside src/main/python but in src/main.
Plugin is not recognizing the path. It says it is copying but nothing gets copied in distribution.

Copying resources matching 'src/main/resources/**' from C:\work\xxx\xxxxx to c:\work\xxx\xxxx\target\dist\xxxxxxx-1.0

this is code in build.py:
@init
def initialize(project):
project.get_property("copy_resources_glob").append("src/main/resources/**")
project.set_property("copy_resources_target", "$dir_dist")

When I move the resources folder inside "src/main/python", it is copied properly to distribution.
@init
def initialize(project):
project.get_property("copy_resources_glob").append("src/main/python/resources/**")
project.set_property("copy_resources_target", "$dir_dist/resources")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions