Correcting module-path validation to error on '..' rather than '/'...'/' causes problems when modules are not direct subdirs of the current basedir.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@168639 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2005-05-06 19:17:11 +00:00
parent b90399de88
commit f1d5f829f2
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ public class DefaultMaven
for ( Iterator i = project.getModules().iterator(); i.hasNext(); ) for ( Iterator i = project.getModules().iterator(); i.hasNext(); )
{ {
String name = (String) i.next(); String name = (String) i.next();
if ( name.indexOf( '/' ) >= 0 ) if ( name.indexOf( ".." ) >= 0 )
{ {
String message = "Illegal module name: " + name + " (cannot contain path characters)"; String message = "Illegal module name: " + name + " (cannot contain path characters)";
throw new ReactorException( message ); throw new ReactorException( message );