TLD Formatter Plugin

The TLD Formatter plugin lets you format a project’s TLD files.

Usage

To use the plugin, include it in your project’s root pom.xml file:

<build>
    <plugins>
    ...
        <plugin>
            <groupId>com.liferay</groupId>
            <artifactId>com.liferay.tld.formatter</artifactId>
            <version>1.0.5</version>
            <configuration>
            </configuration>
        </plugin>
    ...
    </plugins>
</build>

You can view an example POM containing the TLD Formatter configuration here.

Goals

The plugin adds one Maven goal to your project:

NameDescription
tld-formatter:formatRuns the Liferay TLD Formatter to format files.

Available Parameters

You can set the following parameters in the <configuration> section of the POM:

Parameter NameTypeDefault ValueDescription
baseDirNameString"./"The base directory to begin searching for TLD files to format.
pluginbooleantrueWhether to format all the TLD files contained in the working directory. If false, all liferay-portlet-ext.tld files are ignored.
« Theme Builder PluginWSDD Builder Plugin »
Este artigo foi útil?
Utilizadores que acharam útil: 0 de 0