org.apache.tools.ant.taskdefs.optional.dotnet
public class DotnetResource extends java.lang.Object
DotnetCompile
to name resources.
Could be upgraded to a datatype in the distant future.
A resource maps to /res:file,nameConstructor and Description |
---|
DotnetResource() |
Modifier and Type | Method and Description |
---|---|
void |
addFileset(FileSet fileset)
Adds a resource file set.
|
java.io.File |
getFile()
The file resource.
|
java.lang.String |
getName()
The name of the resource.
|
java.lang.String |
getNamespace()
Filesets root namespace.
|
void |
getParameters(Project p,
NetCommand command,
boolean csharpStyle)
build the C# style parameter (which has no public/private option)
|
java.lang.Boolean |
getPublic()
Get the public attribute.
|
boolean |
hasFilesets()
Checks that
|
boolean |
isEmbed()
Return the embed attribute.
|
void |
setEmbed(boolean embed)
embed the resource in the assembly (default, true) or just link to it.
|
void |
setFile(java.io.File file)
name the resource
|
void |
setName(java.lang.String name)
should the resource have a name?
|
void |
setNamespace(java.lang.String namespace)
Sets filesets root namespace.
|
void |
setPublic(java.lang.Boolean aPublic)
VB and J# only: is a resource public or not?
|
public boolean isEmbed()
public void setEmbed(boolean embed)
embed
- a boolean
value.public java.io.File getFile()
public void setFile(java.io.File file)
file
- the file.public java.lang.Boolean getPublic()
public void setPublic(java.lang.Boolean aPublic)
aPublic
- a boolean
value.public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name of the resource.public java.lang.String getNamespace()
public void setNamespace(java.lang.String namespace)
namespace
- String root namespacepublic void getParameters(Project p, NetCommand command, boolean csharpStyle)
p
- the current project.command
- the command.csharpStyle
- a boolean
attribute.public void addFileset(FileSet fileset)
fileset
- FileSetpublic boolean hasFilesets()