writer.addAttribute( "kind", "src" );
<BUG>sourceRoot = toRelative( projectBaseDir, sourceRoot );
</BUG>
if (!projectBaseDir.equals(basedir))
{
<BUG>sourceRoot = sourceRoot.replaceAll( "/", "-" );

}
writer.addAttribute( "path", sourceRoot );
</BUG>
if ( output != null )

writer.addAttribute( "kind", "src" );
String eclipseSourceRoot = toRelative( projectBaseDir, sourceRoot );
if (!projectBaseDir.equals(basedir))
{
eclipseSourceRoot = eclipseSourceRoot.replaceAll( "/", "-" );
}
addedSourceRoots.put( sourceRoot, eclipseSourceRoot );
writer.addAttribute( "path", eclipseSourceRoot );
