maven-plugins/jalopy/plugin.jelly
2007-04-23 21:28:38 +00:00

77 lines
2.7 KiB
XML

<?xml version="1.0"?>
<!--
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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>