The following comment has been added to this issue:
Author: Tore Green
Created: Wed, 10 Nov 2004 5:55 AM
Body:
The problem is that exec(String command, String[] evp) expects evp to be an
"array of strings, each element of which has environment variable settings in
format name=value" (according to Sun's javadoc).
But the elements in the current params arraus are not environment variables,
they are command line arguments. (At least I assume that was the point?)
The result of the current implementation is that
- no command line arguments are passed to the external process
- the process does not enherit maven's shell environment variables (since
envp!=null) ie. it has no PATH etc.
- so basicly the command has no way of knowing what to deploy where ;-)
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPARTIFACT-44?page=comments#action_26278
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPARTIFACT-44
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPARTIFACT-44
Summary: external:// broken
Type: Bug
Status: Unassigned
Priority: Major
Original Estimate: 5 minutes
Time Spent: Unknown
Remaining: 5 minutes
Project: maven-artifact-plugin
Versions:
1.4.1
Assignee:
Reporter: Tore Green
Created: Wed, 10 Nov 2004 5:38 AM
Updated: Wed, 10 Nov 2004 5:55 AM
Environment: Win2K, Maven v1.0
Description:
The ExternalDeployer does not work because it uses an incorrect call to
Runtime.exec().
To fix this problem, put cmd and params in the same String[] and use the
exec(String[]) version instead:
String[] params = {cmd, request.getSrcFile(), request.getDestFile()};
//...
Process process = Runtime.getRuntime().exec(params);
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]