You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2003/09/03 04:10:10 UTC
[jira] Updated: (MAVEN-757) wrong paths for file:// deployment
The following issue has been updated:
Updater: dion gillard (mailto:dion@apache.org)
Date: Tue, 2 Sep 2003 9:08 PM
Changes:
Fix Version changed to 1.1
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-757&page=history
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-757
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-757
Summary: wrong paths for file:// deployment
Type: Bug
Status: Unassigned
Priority: Major
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
plugin-artifact
Fix Fors:
1.1
Versions:
1.0-rc1
Assignee:
Reporter: Frank Wagner
Created: Fri, 29 Aug 2003 8:54 AM
Updated: Tue, 2 Sep 2003 9:08 PM
Description:
I am looking at Maven HEAD.
The org.apache.maven.deploy.deployers.FileDeployer is a little confused about the destination file path.
It generates the offset directory twice:
Instead of copying a file to
<repository>/<group>/<type>/
it uses
<repository>/<group>/<type>s/<group>/<type>s
The current code in deploy(DeployRequest) is
...
destFile = new File(destFile, request.dirname());
if (!destFile.exists())
{
destFile.mkdirs();
}
destFile = new File(destFile, request.getDestFile());
...
That should be replaced by something like:
...
if (destFile.getParentFile()!=null && !destFile.getParentFile().exists())
{
destFile.getParentFile().mkdirs();
}
destFile = new File(destFile, request.getDestFile());
...
Which fixed the problem for me.
Tschau,
Frank
---------------------------------------------------------------------
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org