Package org.apache.maven.archetype.model
Class Resource
java.lang.Object
org.apache.maven.archetype.model.Resource
- All Implemented Interfaces:
Serializable
Describes a resource file.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the encoding to be used when reading/writing this file.getFile()
Get the resource file.boolean
Get a resource can be filtered, which means the file will be used as Velocity template.void
setEncoding
(String encoding) Set the encoding to be used when reading/writing this file.void
Set the resource file.void
setFiltered
(boolean filtered) Set a resource can be filtered, which means the file will be used as Velocity template.
-
Constructor Details
-
Resource
public Resource()
-
-
Method Details
-
getEncoding
Get the encoding to be used when reading/writing this file. Platform encoding is used by default, or ISO-8859-1 when filename ends in.properties
- Returns:
- String
-
getFile
Get the resource file.- Returns:
- String
-
isFiltered
public boolean isFiltered()Get a resource can be filtered, which means the file will be used as Velocity template. It can be non-filtered, which means the file will be copied without modification.- Returns:
- boolean
-
setEncoding
Set the encoding to be used when reading/writing this file. Platform encoding is used by default, or ISO-8859-1 when filename ends in.properties
- Parameters:
encoding
- a encoding object.
-
setFile
Set the resource file.- Parameters:
file
- a file object.
-
setFiltered
public void setFiltered(boolean filtered) Set a resource can be filtered, which means the file will be used as Velocity template. It can be non-filtered, which means the file will be copied without modification.- Parameters:
filtered
- a filtered object.
-