mirror of https://github.com/apache/maven.git
[MNG-4464] Improve handling of relative paths with backslashes
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@904931 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d0d3f58fff
commit
8b6616cf3b
|
@ -338,6 +338,8 @@ public class DefaultProjectBuilder
|
|||
continue;
|
||||
}
|
||||
|
||||
module = module.replace( '\\', File.separatorChar ).replace( '/', File.separatorChar );
|
||||
|
||||
File moduleFile = new File( basedir, module );
|
||||
|
||||
if ( moduleFile.isDirectory() )
|
||||
|
|
|
@ -545,6 +545,8 @@ public class DefaultModelBuilder
|
|||
|
||||
String parentPath = childModel.getParent().getRelativePath();
|
||||
|
||||
parentPath = parentPath.replace( '\\', File.separatorChar ).replace( '/', File.separatorChar );
|
||||
|
||||
File pomFile = new File( new File( projectDirectory, parentPath ).toURI().normalize() );
|
||||
|
||||
if ( pomFile.isDirectory() )
|
||||
|
|
|
@ -39,6 +39,8 @@ public class DefaultPathTranslator
|
|||
|
||||
if ( path != null && basedir != null )
|
||||
{
|
||||
path = path.replace( '\\', File.separatorChar ).replace( '/', File.separatorChar );
|
||||
|
||||
File file = new File( path );
|
||||
if ( file.isAbsolute() )
|
||||
{
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -41,7 +41,7 @@
|
|||
<commonsCliVersion>1.2</commonsCliVersion>
|
||||
<easyMockVersion>1.2_Java1.3</easyMockVersion>
|
||||
<junitVersion>3.8.2</junitVersion>
|
||||
<plexusVersion>1.5.3</plexusVersion>
|
||||
<plexusVersion>1.5.4</plexusVersion>
|
||||
<plexusInterpolationVersion>1.11</plexusInterpolationVersion>
|
||||
<plexusPluginManagerVersion>1.0-alpha-1</plexusPluginManagerVersion>
|
||||
<plexusUtilsVersion>2.0.1</plexusUtilsVersion>
|
||||
|
|
Loading…
Reference in New Issue