- tapestry-tldgen:tld-generate
This requires only 2 minutes.
-
Carefully javadoc your component classes and their attributes annotated with @Parameter (already done i hope, isn't it ? :))
-
Open the pom.xml in your library project
-
Add the following configuration in your plugins descriptor :
fr.exanpe tapestry-tldgen${set the version here} tld-generate process-classes $ {set your tld uri here}${set your tld defaut namespace here} $ {set your root package here} ${set your source file encoding here} -
Run a build and get your tld from target/ folder
Configuration key | Required | Description |
uri | true | The uri of your taglib. |
rootPackage | true | The root package to scan the components. Do not append "components" in the end, root only is required. |
namespace | false | The namespace of the taglib. Default is "t" . |
encoding | false | The source file encoding. Default is your plateform encoding. |
outputFile | false | The tld file location. Default is ${project.build.directory}/${project.build.finalName}.tld |