bug fixes for classpath generation

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@164326 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-04-23 03:28:14 +00:00
parent ade9741a79
commit 3711af1761
1 changed files with 8 additions and 6 deletions

View File

@ -71,14 +71,16 @@ public class MavenArchiver
for ( Iterator iter = artifacts.iterator(); iter.hasNext(); )
{
File f = (File) iter.next();
if ( classpath.length() > 0 )
File f = new File( (String) iter.next() );
if ( f.isFile() )
{
classpath.append( " " );
}
if ( classpath.length() > 0 )
{
classpath.append( " " );
}
classpath.append( f.getName() );
classpath.append( f.getName() );
}
}
if ( classpath.length() > 0 )