jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 1.x Artifact Plugin
  • MPARTIFACT-38

scpexe with pscp and plink fails with multiple args

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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

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

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    MPARTIFACT-38.patch
    13/Aug/04 5:19 AM
    2 kB
    Markus Nolte

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Markus Nolte added a comment - 13/Aug/04 5:19 AM

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

Show
Markus Nolte added a comment - 13/Aug/04 5:19 AM 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
Hide
Permalink
Brett Porter added a comment - 28/Sep/04 6:05 AM

patch wouldn't apply.

Also, don't want to chgrp/chmod -R the entire directory tree - need an alternate solution for this.

Show
Brett Porter added a comment - 28/Sep/04 6:05 AM patch wouldn't apply. Also, don't want to chgrp/chmod -R the entire directory tree - need an alternate solution for this.

People

  • Assignee:
    Brett Porter
    Reporter:
    Markus Nolte
Vote (0)
Watch (2)

Dates

  • Created:
    13/Aug/04 5:10 AM
    Updated:
    28/Sep/04 6:05 AM
    Resolved:
    28/Sep/04 6:05 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.