in src/main/org/apache/ant/dotnet/compile/DotnetResource.java [181:206]
private String getParameter(String fileName, String name, boolean csharpStyle) {
StringBuffer buffer = new StringBuffer();
buffer.append(isEmbed() ? "/resource" : "/linkresource");
buffer.append(':');
buffer.append(fileName);
if (name != null) {
buffer.append(',');
buffer.append(name);
if (csharpStyle) {
if (getPublic() != null) {
throw new BuildException("This compiler does not support the "
+ "public/private option.");
} else {
if (getPublic() != null) {
buffer.append(',');
buffer.append(getPublic().booleanValue() ? "public" : "private");
}
}
} else if (getPublic() != null) {
throw new BuildException("You cannot have a public or private "
+ "option without naming the resource");
}
}
return buffer.toString();
}