http://blog.csdn.net/chinrui/article/details/66472815
http://www.importnew.com/20348.html
定義Mojo參數
定義一個參數很簡單,只需要在Mojo中創建一個實例變量并增加恰當的注解。以下是帶參數的簡單Mojo示例:
1
2
3
4
5/**
* The greeting to display.
*/
@Parameter( property ="sayhi.greeting", defaultValue ="Hello World!")
privateString greeting;
注解之前的部分是參數說明。參數注解將變量聲明為Mojo參數。注解的defaultValue參數定義了變量的默認值。這個值可以包含引用項目變量的表達式,如”{project.version}”(在“Parameter Expressions” document能看到更多)。property參數支持引用用戶在命令行中通過-D指定的系統屬性。