return value;
}
private LegacyArtifactPath readLegacyArtifactPath( String prefix, Registry registry )
{
LegacyArtifactPath value = new LegacyArtifactPath();
//String path = registry.getString( prefix + "path", value.getPath() );
List<String> pathList = registry.getList( prefix + "path" );
String path = value.getPath();
if (pathList != null && !pathList.isEmpty() )
{
StringBuilder sb = new StringBuilder( );
for (int i = 0,size = pathList.size();i<size;i++)
{
sb.append( pathList.get( i ) );
if (i<size - 1)
{
sb.append( ',' );
}
}
path = sb.toString();
}
value.setPath( path );
//String artifact = registry.getString( prefix + "artifact", value.getArtifact() );
List<String> artifactList = registry.getList( prefix + "artifact" );
String artifact = value.getArtifact();
if (artifactList != null && !artifactList.isEmpty() )
{
StringBuilder sb = new StringBuilder( );
for (int i = 0,size = artifactList.size();i<size;i++)
{
sb.append( artifactList.get( i ) );
if (i<size - 1)
{
sb.append( ',' );
}
}
artifact = sb.toString();
}
value.setArtifact( artifact );
return value;
}