Package org.apache.maven.archetype.model
Class Source
java.lang.Object
org.apache.maven.archetype.model.Source
- All Implemented Interfaces:
Serializable
Describes a source file. Note that source files are always
filtered, unlike resources that
can be non-filtered.
- 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 source file.void
setEncoding
(String encoding) Set the encoding to be used when reading/writing this file.void
Set the source file.
-
Constructor Details
-
Source
public Source()
-
-
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 source file.- Returns:
- String
-
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 source file.- Parameters:
file
- a file object.
-