Files
maven-plugins/jalopy/plugin.jelly
T
ltheussl f8eacd8b86 PR: MPJALOPY-12
Add a property that controls the source code encoding. Thanks to Joachim Bader.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@528376 13f79535-47bb-0310-9956-ffa450edef68
2007-04-13 07:33:23 +00:00

76 lines
2.6 KiB
XML

<?xml version="1.0"?>
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<project
xmlns:ant="jelly:ant"
xmlns:define="jelly:define"
xmlns:jalopy="jalopy"
xmlns:j="jelly:core">
<!--==================================================================-->
<!-- J A L O P Y (source code formatter) -->
<!--==================================================================-->
<define:taglib uri="jalopy">
<define:jellybean
name="jalopy"
className="org.apache.maven.jalopy.JalopyBean"
method="execute"/>
</define:taglib>
<goal name="jalopy"
description="Format all sources with code convention conformance"
prereqs="jalopy:format"/>
<goal name="jalopy:format"
description="Format all sources with code convention conformance">
<jalopy:jalopy
fileFormat="${maven.jalopy.fileFormat}"
convention="${maven.jalopy.style}"
historyPolicy="${maven.jalopy.history}"
failOnError="${maven.jalopy.failOnError}"
inspect="${maven.jalopy.inspect}"
backup="${maven.jalopy.backup}"
force="${maven.jalopy.force}"
encoding="${maven.jalopy.encoding}"
sourceDirectory="${pom.build.sourceDirectory}"
testSourceDirectory="${pom.build.unitTestSourceDirectory}"
srcIncludesPattern="${maven.jalopy.src.filesetInclude}"
srcExcludesPattern="${maven.jalopy.src.filesetExclude}"
testIncludesPattern="${maven.jalopy.test.filesetInclude}"
testExcludesPattern="${maven.jalopy.test.filesetExclude}"/>
</goal>
<goal name="jalopy:settings"
description="Call the jalopy settings dialog">
<ant:java classname="de.hunsicker.jalopy.swing.SettingsDialog" fork="true">
<ant:classpath>
<ant:pathelement path="${plugin.getDependencyPath('jalopy:jalopy')}"/>
<ant:pathelement path="${plugin.getDependencyPath('log4j:log4j')}"/>
</ant:classpath>
</ant:java>
</goal>
</project>