mirror of https://github.com/apache/maven.git
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:
parent
ade9741a79
commit
3711af1761
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue