-
Notifications
You must be signed in to change notification settings - Fork 247
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
Copy_resources plugin not copying files/folders located outside of "dir_source_main_python" value #715
Comments
I actually can't reproduce this at all...
|
|
@arcivanov I tried again..here are details..it still doesn't work. Distribution is not having resources folder. |
@arcivanov However this works fine. ie providing the file directly at root, it copies that file. |
Confirmed on Windows: https://travis-ci.org/github/pybuilder/pybuilder/jobs/680308181 |
For me it doesn't work on Linux as well. [INFO] Copying resources matching 'src/main/resources/**' from /disk1/jenkins/XXXXXX/workspace/ABC/abc_test to /disk1/jenkins/XXXXXX/workspace/ABC/abc_test/target/dist/abc_test-1.0 [INFO] Copying resources matching 'src/main/resources/**' from /disk1/jenkins/XXXXX/workspace/ABC/abc_test to /disk1/jenkins/XXXXX/workspace/ABC/abc_test/target/dist/abc_test-1.0 |
@farooqind "Not copying" and "Not appearing in tar file" are DIFFERENT things. I have specifically asked you here where the files did not appear. On Linux copying works verifiably. On Windows it appears not to, I'm currently investigating why. |
@arcivanov Ultimate aim is to get resources folder as part of tar file. As per my understanding & observation, whatever appears in distribution folder, is also appearing in tar file for distribution. Please correct me if my understanding is wrong. So I checked on Jenkins Linux server, it is copying the files. However, it is not putting those folders/files into final .tar.gz file. Apologies for the confusion.
|
Replace custom RE-based glob with real `glob.iglob` to make behavior standard. Fix itest harness moronic path manipulation. fixes pybuilder#715
Replace custom RE-based glob with real `glob.iglob` to make behavior standard. Fix itest harness moronic path manipulation. fixes pybuilder#715
Replace custom RE-based glob with real `glob.iglob` to make behavior standard. Fix itest harness moronic path manipulation. fixes pybuilder#715
Run tests to see whether there is a Windows issue for #715
@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")
The text was updated successfully, but these errors were encountered: