|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectprotoj.core.ResourceFeature
public final class ResourceFeature
This feature can extract resources on the classpath and place them in the
destination directory with the same relative path. En route variable
replacements can be applied to ${var} variables inside the resources where a
Configuration instance has been supplied with a call to
initReplacements(Configuration).
Useful when a third-party component can only work with a filing system
resource whereas the resource logically belongs in the jar or in the classes
directory. The RetrieveFeature that delegates to ivy is a good
example of this since ivy can only work with files on the filing system and
not input streams obtained from system resources.
| Constructor Summary | |
|---|---|
ResourceFeature(CoreProject parent)
Creates an instance with the owning parent. |
|
| Method Summary | |
|---|---|
java.io.File |
extractToDir(java.lang.String resourceName,
java.io.File destDir)
Extracts the resource on the classpath with the specified name to the specified directory. |
void |
initReplacements(org.apache.commons.configuration.Configuration replacements)
If variable replacement is required then this method should be called to specify the set of properties to be used during creation of the extracted resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceFeature(CoreProject parent)
parent - | Method Detail |
|---|
public void initReplacements(org.apache.commons.configuration.Configuration replacements)
replacements -
public java.io.File extractToDir(java.lang.String resourceName,
java.io.File destDir)
resourceName -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||