Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.4
-
Fix Version/s: 1.4.1
-
Labels:None
-
Environment:win2k, j2re1.4.2_05, maven-1.0
-
Number of attachments :
Description
defining more than one attribute in maven.repo.[name].ssh.args or maven.repo.[name].scp.args leads to an unknown option error in pscp, plink fails silently.
example:
maven.repo.[name].scp.args=-2 -P 50022
ERROR>pscp: unknown option "-2 -P 50022"
ERROR> try typing just "pscp" for help
assigning ports with maven.repo.[name].port=50022 doesn't help because plink and pscp both uses the "-P" to define the port
the problem is the runtime.exec call in ScpExeDeployer who uses a String[] instead of String
using a batch file as workaround makes the args property obsolete
this patch fixed the described issue, I've also added streamGobbler for executeSimpleCommand and a recursive chmod g+w for the maven.repo.[name].directory path top level parent dir