if (platforms == null)
return null;
Set<Platform> set = new HashSet<Platform>();
for (String platform : platforms.split("\\s*,\\s*")) {
Platform p = KnownPlatforms.find(platform);
if (p != null)
set.add(p);
else
project.logWarning("Failed to resolve a supported platform for '%s'", platform);
}