slachiewicz opened a new pull request, #966:
URL: https://github.com/apache/maven-wagon/pull/966

   Supersedes #817 with added unit test coverage and updated codebase 
conventions.
   
   When `localFile` is specified as a bare relative filename (such as via `mvn 
gpg:sign-and-deploy-file -Dfiles=artifact-sources.jar`), 
`localFile.getParentFile()` returns `null`, causing a `NullPointerException` 
when calling `localFile.getParentFile().getAbsolutePath()`.
   
   - Safely resolve the working directory to 
`localFile.getAbsoluteFile().getParentFile()` when `localFile.getParentFile()` 
is null.
   - Add `ExternalScpWagonTest` with offline unit tests verifying commandline 
construction with both bare relative files and parented files, as well as PuTTY 
detection.
   
   Co-authored-by: Sven Göthel <[email protected]>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to