Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 1.0-beta-3.0.7
-
Component/s: Container
-
Labels:None
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
Trying something like
/** * @parameter default-value="${project.file}" */ private String stringParam;
currently fails with
Cause: Cannot assign value '[...]\plexus-conf\pom.xml' to field: MyMojo.stringParam; type: java.io.File
Values of type File as well as other scalar types like Number or URL which can naturally be represented by strings should be acceptable input values for string fields, too.
The proposed patch extends the StringConverter accordingly.