maven-plugins/jalopy/plugin.jelly
ltheussl 4a26045e8a PR: MPJALOPY-11
Submitted by: Joachim Bader
Add a new goal to open Jalopy's SettingsDialog.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@398533 13f79535-47bb-0310-9956-ffa450edef68
2006-05-01 05:47:34 +00:00

75 lines
2.5 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}"
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>