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

Improved target path parsing for Config File. #5

Closed
wants to merge 7 commits into from

Conversation

rbusch90
Copy link
Contributor

Checking for "." anywhere in full filepath is a poor way of determining whether a path is to a file or a directory. Naming conventions allow for periods in directory names and do not necessitate them in file names. As plugin currently works, /a/path.with/periods would be parsed as a file but /a/path/to/readme would be parsed as a directory.

Plugin should assume target is specifying filename unless (1) path includes a trailing slash or (2) the path already exists in the workspace as a directory.

imod and others added 7 commits August 1, 2013 18:04
Conflicts:
	src/main/java/org/jenkinsci/plugins/configfiles/maven/job/MvnGlobalSettingsProvider.java
	src/main/java/org/jenkinsci/plugins/configfiles/maven/job/MvnSettingsProvider.java
	src/main/java/org/jenkinsci/plugins/configfiles/maven/security/CredentialsHelper.java
	src/test/java/org/jenkinsci/plugins/configfiles/maven/security/CredentialsHelperTest.java
Checking for "." anywhere in full filepath is a poor way of determining whether a path is to a file or a directory.  Naming conventions allow for periods in directory names and do not necessitate them in file names.

Plugin should assume target is specifying filename unless (1) path includes a trailing slash or (2) the path already exists in the workspace as a directory.
@cloudbees-pull-request-builder

plugins » config-file-provider-plugin #28 SUCCESS
This pull request looks good

@jenkinsadmin
Copy link
Member

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

@imod
Copy link
Member

imod commented Nov 3, 2013

can you add a testcase?

@imod
Copy link
Member

imod commented Jan 31, 2014

integrated with bcd785f

@imod imod closed this Jan 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants