git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113229 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion 2003-03-30 16:18:05 +00:00
parent 8acb775a1d
commit 230698d6ee
23 changed files with 267 additions and 265 deletions

View File

@ -18,7 +18,7 @@
pluginName="maven-ashkelon-plugin" pluginName="maven-ashkelon-plugin"
link="ashkelon" link="ashkelon"
description="Report on the validity of all links in the documentation."/> description="Report on the validity of all links in the documentation."/>
<!--doc:registerReport <!--doc:registerReport
name="Ashkelon Deploy Report" name="Ashkelon Deploy Report"
pluginName="maven-ashkelon-plugin" pluginName="maven-ashkelon-plugin"
link="ashkelon-output" link="ashkelon-output"
@ -36,15 +36,15 @@
<!-- ================================================================== --> <!-- ================================================================== -->
<goal name="maven-ashkelon-plugin:report"> <goal name="maven-ashkelon-plugin:report">
</goal> </goal>
<goal name="ashkelon:generate-xml"> <goal name="ashkelon:generate-xml">
<j:new var="packageTool" className="org.apache.maven.ashkelon.PackageTool"/> <j:new var="packageTool" className="org.apache.maven.ashkelon.PackageTool"/>
<u:file var="src" name="${pom.build.sourceDirectory}"/> <u:file var="src" name="${pom.build.sourceDirectory}"/>
<j:set var="packages" value="${packageTool.findPackages(src)}"/> <j:set var="packages" value="${packageTool.findPackages(src)}"/>
${packages} ${packages}
<echo>${basedir}/${pom.artifactId}-ashkelon.xml</echo> <echo>${basedir}/${pom.artifactId}-ashkelon.xml</echo>
<j:file name="${basedir}/${pom.artifactId}-ashkelon.xml" prettyPrint="true" xmlns="dummy"> <j:file name="${basedir}/${pom.artifactId}-ashkelon.xml" prettyPrint="true" xmlns="dummy">
<api> <api>
<name>${pom.name}</name> <name>${pom.name}</name>
@ -55,12 +55,12 @@
<release_date>2000-01-01T00:00:00.000</release_date> <release_date>2000-01-01T00:00:00.000</release_date>
<version>${pom.currentVersion}</version> <version>${pom.currentVersion}</version>
<j:forEach var="package" items="${packages}"> <j:forEach var="package" items="${packages}">
<package>${package}</package> <package>${package}</package>
</j:forEach> </j:forEach>
</api> </api>
</j:file> </j:file>
</goal> </goal>
</project> </project>

View File

@ -64,8 +64,8 @@
</j:if> </j:if>
</j:if> </j:if>
</goal> </goal>
<goal name="aspectj:ajdoc" description="Javadoc source using ajdoc"> <goal name="aspectj:ajdoc" description="Javadoc source using ajdoc">

View File

@ -78,8 +78,8 @@
description="Run all Cactus Test Cases"> description="Run all Cactus Test Cases">
<!-- Find all the scripts in ${maven.cactus.antintegration.dir}/scripts <!-- Find all the scripts in ${maven.cactus.antintegration.dir}/scripts
and try to start the tests for all the corresponding containers and try to start the tests for all the corresponding containers
which have a home directory set --> which have a home directory set -->
<fileScanner var="scanner"> <fileScanner var="scanner">
<fileset dir="${maven.cactus.antintegration.dir}/scripts" <fileset dir="${maven.cactus.antintegration.dir}/scripts"
@ -91,7 +91,7 @@
value="${script.name.substring(12, script.name.indexOf('.'))}"/> value="${script.name.substring(12, script.name.indexOf('.'))}"/>
<j:set var="containerHomeName" value="cactus.home.${scriptName}"/> <j:set var="containerHomeName" value="cactus.home.${scriptName}"/>
<j:set var="containerHome" value="${context.findVariable(containerHomeName)}"/> <j:set var="containerHome" value="${context.findVariable(containerHomeName)}"/>
<j:set var="containerHomeX" value="${containerHome}X"/> <j:set var="containerHomeX" value="${containerHome}X"/>
<j:if test="${containerHomeX != 'X'}"> <j:if test="${containerHomeX != 'X'}">
@ -120,12 +120,12 @@
<j:set var="containerFound" value="true"/> <j:set var="containerFound" value="true"/>
</j:if> </j:if>
</j:forEach> </j:forEach>
<!-- If no container was defined, display a warning message --> <!-- If no container was defined, display a warning message -->
<j:if test="${containerFound != 'true'}"> <j:if test="${containerFound != 'true'}">
<echo>WARNING: You need to define at least one container property of the form cactus.home.[container name]. See the plugin documentation.</echo> <echo>WARNING: You need to define at least one container property of the form cactus.home.[container name]. See the plugin documentation.</echo>
</j:if> </j:if>
</goal> </goal>

View File

@ -10,14 +10,14 @@
<goal name="maven-changes-plugin:register"> <goal name="maven-changes-plugin:register">
<ant:property name="maven.docs.src" <ant:property name="maven.docs.src"
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.src')}"/> value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.src')}"/>
<util:file var="changes" name="${maven.docs.src}/changes.xml"/> <util:file var="changes" name="${maven.docs.src}/changes.xml"/>
<j:if test="${changes.exists()}"> <j:if test="${changes.exists()}">
<doc:registerReport <doc:registerReport
name="Changes" name="Changes"
pluginName="maven-changes-plugin" pluginName="maven-changes-plugin"
link="changes-report" link="changes-report"
description="Report on the project changes."/> description="Report on the project changes."/>
</j:if> </j:if>
</goal> </goal>
<goal name="maven-changes-plugin:deregister"> <goal name="maven-changes-plugin:deregister">
@ -31,10 +31,10 @@
<goal <goal
name="maven-changes-plugin:report" name="maven-changes-plugin:report"
description="Generate a changes report"> description="Generate a changes report">
<ant:property name="maven.docs.src" <ant:property name="maven.docs.src"
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.src')}"/> value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.src')}"/>
<doc:jsl <doc:jsl
input="${maven.docs.src}/changes.xml" input="${maven.docs.src}/changes.xml"
output="changes-report.xml" output="changes-report.xml"
stylesheet="${plugin.resources}/changes.jsl" stylesheet="${plugin.resources}/changes.jsl"

View File

@ -109,8 +109,8 @@
| |
--> -->
<ant:mkdir dir="${cloverReportDirectory}"/> <ant:mkdir dir="${cloverReportDirectory}"/>
<ant:java classname="com.cortexeb.tools.clover.reporters.html.HtmlReporter" <ant:java classname="com.cortexeb.tools.clover.reporters.html.HtmlReporter"
fork="true"> fork="true">
<ant:arg line="-o ${cloverReportDirectory}"/> <ant:arg line="-o ${cloverReportDirectory}"/>
<ant:arg line="-i ${clover.initstring}"/> <ant:arg line="-i ${clover.initstring}"/>

View File

@ -36,7 +36,7 @@
<j:set var="lastGoal" value="${goal}"/> <j:set var="lastGoal" value="${goal}"/>
</j:catch> </j:catch>
<j:if test="${ex != null}"> <j:if test="${ex != null}">
${pom.getContext().removeVariable("maven.test.failure")} ${pom.getContext().removeVariable("maven.test.failure")}
<log:info>${ex}</log:info> <log:info>${ex}</log:info>
</j:if> </j:if>
</j:otherwise> </j:otherwise>

2
dist/plugin.jelly vendored
View File

@ -160,7 +160,7 @@
name="dist:build-src" name="dist:build-src"
prereqs="dist:build-setup,dist:prepare-src-filesystem" prereqs="dist:build-setup,dist:prepare-src-filesystem"
description="Build the source distribution."> description="Build the source distribution.">
<!-- Create a tar.gz file --> <!-- Create a tar.gz file -->
<ant:tar longfile="gnu" tarfile="${maven.dist.dir}/${maven.final.name}-src.tar"> <ant:tar longfile="gnu" tarfile="${maven.dist.dir}/${maven.final.name}-src.tar">
<ant:tarfileset dir="${maven.dist.src.archive.dir}"/> <ant:tarfileset dir="${maven.dist.src.archive.dir}"/>

View File

@ -1,10 +1,10 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<project <project
xmlns:j="jelly:core" xmlns:j="jelly:core"
xmlns:ant="jelly:ant" xmlns:ant="jelly:ant"
xmlns:license="license" xmlns:license="license"
xmlns:util="jelly:util"> xmlns:util="jelly:util">
<!--==================================================================--> <!--==================================================================-->
<!-- Default goal : Builds a ear file --> <!-- Default goal : Builds a ear file -->

View File

@ -183,7 +183,7 @@
<ant:attribute name="Implementation-Vendor" value="${pom.organization.name}"/> <ant:attribute name="Implementation-Vendor" value="${pom.organization.name}"/>
<ant:attribute name="Implementation-Vendor-Id" value="${pom.organization.identifier}"/> <ant:attribute name="Implementation-Vendor-Id" value="${pom.organization.identifier}"/>
<j:set var="mainclass" value="${pom.getPluginContext('maven-java-plugin').getVariable('maven.jar.mainclass')}"/> <j:set var="mainclass" value="${pom.getPluginContext('maven-java-plugin').getVariable('maven.jar.mainclass')}"/>
<j:if test="${!empty(mainclass)}"> <j:if test="${!empty(mainclass)}">
<ant:attribute name="Main-Class" value="${mainclass}"/> <ant:attribute name="Main-Class" value="${mainclass}"/>
</j:if> </j:if>
</ant:manifest> </ant:manifest>

View File

@ -16,9 +16,9 @@
description="Generate JBuilder [id_project].library file"> description="Generate JBuilder [id_project].library file">
<ant:echo>Creating ${basedir}/${pom.artifactId}.library ...</ant:echo> <ant:echo>Creating ${basedir}/${pom.artifactId}.library ...</ant:echo>
<j:file name="${basedir}/${pom.artifactId}.library" prettyPrint="true" xmlns="dummy"> <j:file name="${basedir}/${pom.artifactId}.library" prettyPrint="true" xmlns="dummy">
<library> <library>
<x:comment>JBuilder Library Definition File</x:comment> <x:comment>JBuilder Library Definition File</x:comment>
<fullname>${pom.artifactId}</fullname> <fullname>${pom.artifactId}</fullname>
<class> <class>
@ -40,38 +40,38 @@
</class> </class>
<required>${pom.artifactId}</required> <required>${pom.artifactId}</required>
</library> </library>
</j:file> </j:file>
</goal> </goal>
<goal name="jbuilder:generate-project" <goal name="jbuilder:generate-project"
description="Generate JBuilder [id_project].jpx file"> description="Generate JBuilder [id_project].jpx file">
<ant:echo>Creating ${basedir}/${pom.artifactId}.jpx ...</ant:echo> <ant:echo>Creating ${basedir}/${pom.artifactId}.jpx ...</ant:echo>
<j:file name="${basedir}/${pom.artifactId}.jpx" prettyPrint="true" xmlns="dummy"> <j:file name="${basedir}/${pom.artifactId}.jpx" prettyPrint="true" xmlns="dummy">
<x:comment>Project XML JBuilder</x:comment> <x:comment>Project XML JBuilder</x:comment>
<project> <project>
<property category="sys" name="AuthorLabel" value="@author"/> <property category="sys" name="AuthorLabel" value="@author"/>
<property category="sys" name="BackupPath" value="bak"/> <property category="sys" name="BackupPath" value="bak"/>
<property category="sys" name="Company" value=""/> <property category="sys" name="Company" value=""/>
<property category="sys" name="CompanyLabel" value="Company :"/> <property category="sys" name="CompanyLabel" value="Company :"/>
<property category="sys" name="Copyright" value="Copyright (c) ${pom.inceptionYear} - ${pom.organization.name}"/> <property category="sys" name="Copyright" value="Copyright (c) ${pom.inceptionYear} - ${pom.organization.name}"/>
<property category="sys" name="CopyrightLabel" value="Copyright :"/> <property category="sys" name="CopyrightLabel" value="Copyright :"/>
<property category="sys" name="DefaultPath" value="${pom.build.sourceDirectory}"/> <property category="sys" name="DefaultPath" value="${pom.build.sourceDirectory}"/>
<property category="sys" name="Description" value=""/> <property category="sys" name="Description" value=""/>
<property category="sys" name="DescriptionLabel" value="Description :"/> <property category="sys" name="DescriptionLabel" value="Description :"/>
<property category="sys" name="DocPath" value="doc"/> <property category="sys" name="DocPath" value="doc"/>
<property category="sys" name="IncludeTestPath" value="1"/> <property category="sys" name="IncludeTestPath" value="1"/>
<property category="sys" name="OutPath" value="target/classes"/> <property category="sys" name="OutPath" value="target/classes"/>
<property category="sys" name="SourcePath" value="${pom.build.sourceDirectory};${pom.build.unitTestSourceDirectory}"/> <property category="sys" name="SourcePath" value="${pom.build.sourceDirectory};${pom.build.unitTestSourceDirectory}"/>
<property category="sys" name="TestPath" value="${pom.build.unitTestSourceDirectory}"/> <property category="sys" name="TestPath" value="${pom.build.unitTestSourceDirectory}"/>
<property category="sys" name="Title" value=""/> <property category="sys" name="Title" value=""/>
<property category="sys" name="TitleLabel" value="Title :"/> <property category="sys" name="TitleLabel" value="Title :"/>
<property category="sys" name="Version" value="${pom.currentVersion}"/> <property category="sys" name="Version" value="${pom.currentVersion}"/>
<property category="sys" name="VersionLabel" value="@version"/> <property category="sys" name="VersionLabel" value="@version"/>
<property category="sys" name="WorkingDirectory" value="."/> <property category="sys" name="WorkingDirectory" value="."/>
</project> </project>
</j:file> </j:file>
</goal> </goal>

View File

@ -1,6 +1,8 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<project xmlns:j="jelly:core"> <project
xmlns:j="jelly:core"
xmlns:ant="jelly:ant">
<!-- ================================================================== --> <!-- ================================================================== -->
<!-- P R O J E C T D O C U M E N T A T I O N --> <!-- P R O J E C T D O C U M E N T A T I O N -->
@ -89,7 +91,7 @@
<param name="-apiname" value="${maven.jdiff.old.tag}"/> <param name="-apiname" value="${maven.jdiff.old.tag}"/>
<param name="-baseURI" value="${baseuri}"/> <param name="-baseURI" value="${baseuri}"/>
</doclet> </doclet>
</javadoc> </javadoc>
<javadoc <javadoc
packagenames="${pom.package}.*" packagenames="${pom.package}.*"
@ -100,7 +102,7 @@
<param name="-apiname" value="${maven.jdiff.new.tag}"/> <param name="-apiname" value="${maven.jdiff.new.tag}"/>
<param name="-baseURI" value="${baseuri}"/> <param name="-baseURI" value="${baseuri}"/>
</doclet> </doclet>
</javadoc> </javadoc>
<javadoc <javadoc
private="yes" private="yes"

View File

@ -15,7 +15,7 @@
link="xref/index" link="xref/index"
description="A set of browsable cross-referenced sources."/> description="A set of browsable cross-referenced sources."/>
<j:if test="${unitTestSourcesPresent}"> <j:if test="${unitTestSourcesPresent}">
<doc:registerReport <doc:registerReport
name="Test Xref" name="Test Xref"
pluginName="maven-jxr-plugin" pluginName="maven-jxr-plugin"
link="xref-test/index" link="xref-test/index"
@ -76,7 +76,7 @@
<util:file var="sourceDirFile" name="${sourceDir}"/> <util:file var="sourceDirFile" name="${sourceDir}"/>
<j:if test="${!sourceDirFile.isAbsolute()}"> <j:if test="${!sourceDirFile.isAbsolute()}">
<j:set var="sourceDir" value="${basedir}/${sourceDir}"/> <j:set var="sourceDir" value="${basedir}/${sourceDir}"/>
</j:if> </j:if>
<jxr:jxr <jxr:jxr
@ -95,7 +95,7 @@
<util:file var="testSourceDirFile" name="${testSourceDir}"/> <util:file var="testSourceDirFile" name="${testSourceDir}"/>
<j:if test="${!testSourceDirFile.isAbsolute()}"> <j:if test="${!testSourceDirFile.isAbsolute()}">
<j:set var="testSourceDir" value="${basedir}/${testSourceDir}"/> <j:set var="testSourceDir" value="${basedir}/${testSourceDir}"/>
</j:if> </j:if>
<jxr:jxr <jxr:jxr

View File

@ -10,7 +10,7 @@
<define:taglib uri="license"> <define:taglib uri="license">
<define:tag name="fileName"> <define:tag name="fileName">
<j:set var="licenseX" value='${maven.license.licenseFile}X'/> <j:set var="licenseX" value='${maven.license.licenseFile}X'/>
<j:choose> <j:choose>
<j:when test="${licenseX != 'X'}"> <j:when test="${licenseX != 'X'}">
@ -80,8 +80,8 @@
</util:available> </util:available>
<j:if test="${licensePresent != 'true'}"> <j:if test="${licensePresent != 'true'}">
<echo> <echo>
====================================================================== ======================================================================
= W A R N I N G = = W A R N I N G =
====================================================================== ======================================================================
= Your project doesn't contain a header file specified as: = = Your project doesn't contain a header file specified as: =
@ -95,9 +95,9 @@
<j:set var="licenseFile" value='${plugin.resources}/LICENSE.txt'/> <j:set var="licenseFile" value='${plugin.resources}/LICENSE.txt'/>
</j:if> </j:if>
<doc:text-xdoc <doc:text-xdoc
title="Project License" title="Project License"
section="Project License" section="Project License"
output="${genDocs}/license.xml" output="${genDocs}/license.xml"
inputFile="${licenseFile}"/> inputFile="${licenseFile}"/>

View File

@ -1,91 +1,91 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<project xmlns:j="jelly:core" xmlns:util="jelly:util" xmlns:ant="jelly:ant"> <project xmlns:j="jelly:core" xmlns:util="jelly:util" xmlns:ant="jelly:ant">
<!--==================================================================--> <!--==================================================================-->
<!-- Compile all source code --> <!-- Compile all source code -->
<!--==================================================================--> <!--==================================================================-->
<goal name="native" description="Native compiler" prereqs="native:compile"/> <goal name="native" description="Native compiler" prereqs="native:compile"/>
<goal name="native:compile" description="Compile the native compiler" prereqs="native:jniheader"> <goal name="native:compile" description="Compile the native compiler" prereqs="native:jniheader">
<taskdef name="cc" classname="net.sf.antcontrib.cpptasks.CCTask"/> <taskdef name="cc" classname="net.sf.antcontrib.cpptasks.CCTask"/>
<typedef name="linker" classname="net.sf.antcontrib.cpptasks.LinkerDef"/> <typedef name="linker" classname="net.sf.antcontrib.cpptasks.LinkerDef"/>
<typedef name="compiler" classname="net.sf.antcontrib.cpptasks.CompilerDef"/> <typedef name="compiler" classname="net.sf.antcontrib.cpptasks.CompilerDef"/>
<ant:echo> Real Java Home = '${java.home}/..' <ant:echo> Real Java Home = '${java.home}/..'
artifactId = '${pom.artifactId}' </ant:echo> artifactId = '${pom.artifactId}' </ant:echo>
<mkdir dir="${maven.build.dir}/native"/> <mkdir dir="${maven.build.dir}/native"/>
<!-- for some reason '.' aren't allow as parameter for outfile--> <!-- for some reason '.' aren't allow as parameter for outfile-->
<cc outfile="${maven.build.dir}/native/_" link="shared" debug="true"> <cc outfile="${maven.build.dir}/native/_" link="shared" debug="true">
<compiler name="gcc"/> <compiler name="gcc"/>
<fileset dir="src/unix"/> <fileset dir="src/unix"/>
<includepath location="${java.home}/../include"/> <includepath location="${java.home}/../include"/>
<includepath location="${java.home}/../include/linux"/> <includepath location="${java.home}/../include/linux"/>
<includepath location="${java.home}/../include/linux"/> <includepath location="${java.home}/../include/linux"/>
<includepath location="${maven.build.dir}/native/jni"/> <includepath location="${maven.build.dir}/native/jni"/>
</cc> </cc>
<!-- just copy the file don't move because we don't want the compiler to compile if for no reason --> <!-- just copy the file don't move because we don't want the compiler to compile if for no reason -->
<ant:copy file="${maven.build.dir}/native/lib_.so" <ant:copy file="${maven.build.dir}/native/lib_.so"
tofile="${maven.build.dir}/native/lib${pom.artifactId}-${pom.currentVersion}.so" overwrite="true"/> tofile="${maven.build.dir}/native/lib${pom.artifactId}-${pom.currentVersion}.so" overwrite="true"/>
</goal> </goal>
<!-- ================================================================== --> <!-- ================================================================== -->
<!-- I N S T A L L J A R --> <!-- I N S T A L L J A R -->
<!-- ================================================================== --> <!-- ================================================================== -->
<goal name="native:install" prereqs="native:compile" description="Install the lib in the local repository"> <goal name="native:install" prereqs="native:compile" description="Install the lib in the local repository">
<ant:echo> <ant:echo>
id = '${pom.artifactId}' id = '${pom.artifactId}'
groupId = '${pom.groupId}' groupId = '${pom.groupId}'
artifactDirectory = '${pom.artifactDirectory}' artifactDirectory = '${pom.artifactDirectory}'
</ant:echo> </ant:echo>
<ant:property name="libdir__" value="${maven.repo.local}/${pom.artifactDirectory}/so"/> <ant:property name="libdir__" value="${maven.repo.local}/${pom.artifactDirectory}/so"/>
<ant:mkdir dir="${libdir__}"/> <ant:mkdir dir="${libdir__}"/>
<ant:copy file="${maven.build.dir}/native/lib${pom.artifactId}-${pom.currentVersion}.so" tofile="${libdir__}/lib${pom.artifactId}-${pom.currentVersion}.so" overwrite="true"/> <ant:copy file="${maven.build.dir}/native/lib${pom.artifactId}-${pom.currentVersion}.so" tofile="${libdir__}/lib${pom.artifactId}-${pom.currentVersion}.so" overwrite="true"/>
</goal> </goal>
<goal name="native:test" description="Install the lib in the local repository"> <goal name="native:test" description="Install the lib in the local repository">
<ant:echo> <ant:echo>
id = '${pom.artifactId}' id = '${pom.artifactId}'
groupId = '${pom.groupId}' groupId = '${pom.groupId}'
artifactDirectory = '${pom.artifactDirectory}' artifactDirectory = '${pom.artifactDirectory}'
</ant:echo> </ant:echo>
</goal> </goal>
<goal name="native:jniheader" description="make jniheaders for classes" prereqs="java:compile"> <goal name="native:jniheader" description="make jniheaders for classes" prereqs="java:compile">
<fileScanner var="classFiles"> <fileScanner var="classFiles">
<fileset dir="${maven.build.dest}"> <fileset dir="${maven.build.dest}">
<patternset> <patternset>
<include name="**/*.class"/> <include name="**/*.class"/>
</patternset> </patternset>
</fileset> </fileset>
</fileScanner> </fileScanner>
<j:set var="compileJNI" value="false"/> <j:set var="compileJNI" value="false"/>
<j:forEach var="file" items="${classFiles.iterator()}"> <j:forEach var="file" items="${classFiles.iterator()}">
<j:set var="clazz" value="${javaSourceTool.getBcelClass(file.toString())}"/> <j:set var="clazz" value="${javaSourceTool.getBcelClass(file.toString())}"/>
<j:forEach var="method" items="${clazz.getMethods()}"> <j:forEach var="method" items="${clazz.getMethods()}">
<j:if test="${method.isNative() == 'true'}"> <j:if test="${method.isNative() == 'true'}">
<j:set var="compileJNI" value="true"/> <j:set var="compileJNI" value="true"/>
</j:if> </j:if>
</j:forEach> </j:forEach>
</j:forEach> </j:forEach>
<j:if test="${compileJNI == 'true'}"> <j:if test="${compileJNI == 'true'}">
<mkdir dir="${maven.build.dir}/native/jni"/> <mkdir dir="${maven.build.dir}/native/jni"/>
<javah destdir="${maven.build.dir}/native/jni"> <javah destdir="${maven.build.dir}/native/jni">
<classpath> <classpath>
<pathelement location="${maven.build.dest}"/> <pathelement location="${maven.build.dest}"/>
</classpath> </classpath>
<j:useBean var="javaSourceTool" class="org.apache.maven.natives.util.JavaSourceTool"/> <j:useBean var="javaSourceTool" class="org.apache.maven.natives.util.JavaSourceTool"/>
<j:forEach var="file" items="${classFiles.iterator()}"> <j:forEach var="file" items="${classFiles.iterator()}">
<j:set var="isNative" value="false"/> <j:set var="isNative" value="false"/>
<j:set var="clazz" value="${javaSourceTool.getBcelClass(file.toString())}"/> <j:set var="clazz" value="${javaSourceTool.getBcelClass(file.toString())}"/>
<j:forEach var="method" items="${clazz.getMethods()}"> <j:forEach var="method" items="${clazz.getMethods()}">
<j:if test="${method.isNative() == 'true'}"> <j:if test="${method.isNative() == 'true'}">
<j:set var="isNative" value="true"/> <j:set var="isNative" value="true"/>
</j:if> </j:if>
</j:forEach> </j:forEach>
<j:if test="${isNative == 'true'}"> <j:if test="${isNative == 'true'}">
<class name="${clazz.className}"/> <class name="${clazz.className}"/>
</j:if> </j:if>
</j:forEach> </j:forEach>
</javah> </javah>
</j:if> </j:if>
</goal> </goal>
</project> </project>

View File

@ -50,13 +50,13 @@
<goal <goal
name="pom:contentvalidate" name="pom:contentvalidate"
description="Validate the content of the Maven POM"> description="Validate the content of the Maven POM">
<j:new className="org.apache.maven.ContentValidator" var="contentvalidator"/> <j:new className="org.apache.maven.ContentValidator" var="contentvalidator"/>
<j:setProperties object="${contentvalidator}" project="${pom}"/> <j:setProperties object="${contentvalidator}" project="${pom}"/>
<j:set var="notices" value="${contentvalidator.execute()}"/> <j:set var="notices" value="${contentvalidator.execute()}"/>
<j:forEach var="notice" items="${notices}"> <j:forEach var="notice" items="${notices}">
<echo>${notice.Level} : ${notice.Section} : ${notice.Message}</echo> <echo>${notice.Level} : ${notice.Section} : ${notice.Message}</echo>
</j:forEach> </j:forEach>
</goal> </goal>

View File

@ -64,7 +64,7 @@
<delete file="${localFileName}"/> <delete file="${localFileName}"/>
<get src="${url}" dest="${localFileName}"/> <get src="${url}" dest="${localFileName}"/>
<!-- copy the license --> <!-- copy the license -->
<j:set var="directory" value="${maven.repo.central.directory}/${groupId}/licenses/" /> <j:set var="directory" value="${maven.repo.central.directory}/${groupId}/licenses/" />
<repository:copy from="${localFileName}" toFileOrDir="${directory}" /> <repository:copy from="${localFileName}" toFileOrDir="${directory}" />
@ -105,11 +105,11 @@
<j:set var="${var}" value="${snapAndJar[0]}.${snapAndJar[1]}" scope="parent"/> <j:set var="${var}" value="${snapAndJar[0]}.${snapAndJar[1]}" scope="parent"/>
</define:tag> </define:tag>
<!-- <!--
! @name the name of the value being checked ! @name the name of the value being checked
! @value the value that musn't be empty ! @value the value that musn't be empty
! @message the message to be displayed when value is empty ! @message the message to be displayed when value is empty
!--> !-->
<define:tag name="required"> <define:tag name="required">
<j:if test="${empty(message)}"> <j:if test="${empty(message)}">
<j:set var="message">'${name}' must be specified</j:set> <j:set var="message">'${name}' must be specified</j:set>

View File

@ -1,7 +1,7 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<project xmlns:j="jelly:core" <project xmlns:j="jelly:core"
xmlns:test="test"> xmlns:test="test">
<!--==================================================================--> <!--==================================================================-->
<!-- Generate Eclipse .project and .classpath files --> <!-- Generate Eclipse .project and .classpath files -->
@ -13,13 +13,13 @@
<goal name="shell:zsh" <goal name="shell:zsh"
description="Generate Zsh files"> description="Generate Zsh files">
<j:set var="outputDir" value="${maven.shell.zsh.dir}"/> <j:set var="outputDir" value="${maven.shell.zsh.dir}"/>
<j:if test="${empty outputDir}"> <j:if test="${empty outputDir}">
<j:set var="outputDir" value="${maven.build.dir}"/> <j:set var="outputDir" value="${maven.build.dir}"/>
</j:if> </j:if>
<j:file name="${maven.build.dir}/_mavenzsh.tmp" omitXmlDeclaration="true" xmlns="dummy"> <j:file name="${maven.build.dir}/_mavenzsh.tmp" omitXmlDeclaration="true" xmlns="dummy">
<![CDATA[ <![CDATA[
#compdef maven #compdef maven
case "$service" in case "$service" in
@ -50,11 +50,11 @@ case "$state" in
tmp=( tmp=(
]]> ]]>
<j:set var="mavenSession" value="${context.getMavenSession()}"/> <j:set var="mavenSession" value="${context.getMavenSession()}"/>
<j:set var="allGoals" value="${mavenSession.getAllGoalNames()}"/> <j:set var="allGoals" value="${mavenSession.getAllGoalNames()}"/>
<j:new var="modList" className="java.util.ArrayList"/> <j:new var="modList" className="java.util.ArrayList"/>
<j:set var="dummy" value="${modList.addAll(allGoals)}"/> <j:set var="dummy" value="${modList.addAll(allGoals)}"/>
<j:invokeStatic method="sort" className="java.util.Collections" var="dummy"> <j:invokeStatic method="sort" className="java.util.Collections" var="dummy">
<j:arg type="java.util.List" value="${modList}" /> <j:arg type="java.util.List" value="${modList}" />
</j:invokeStatic> </j:invokeStatic>
@ -87,8 +87,8 @@ case "$state" in
]]> ]]>
</j:file> </j:file>
<echo>Now start a new zsh shell</echo> <echo>Now start a new zsh shell</echo>
<filter token="AMBERSAND" value="&amp;"/> <filter token="AMBERSAND" value="&amp;"/>
<filter token="LESSER_THAN" value="&lt;"/> <filter token="LESSER_THAN" value="&lt;"/>
<filter token="GREATER_THAN" value="&gt;"/> <filter token="GREATER_THAN" value="&gt;"/>
@ -96,7 +96,7 @@ case "$state" in
<delete file="${maven.build.dir}/_mavenzsh.tmp"/> <delete file="${maven.build.dir}/_mavenzsh.tmp"/>
</goal> </goal>
</project> </project>

View File

@ -27,10 +27,10 @@
</goal> </goal>
<goal name="site:run-reports" prereqs="xdoc:register-reports"> <goal name="site:run-reports" prereqs="xdoc:register-reports">
<j:set var="reports" <j:set var="reports"
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/> value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/>
<j:forEach var="report" items="${reports}"> <j:forEach var="report" items="${reports}">
<echo>Generating the ${report.get('name')}...</echo> <echo>Generating the ${report.get('name')}...</echo>
<attainGoal name="${report.get('pluginName')}:report"/> <attainGoal name="${report.get('pluginName')}:report"/>
</j:forEach> </j:forEach>

View File

@ -30,7 +30,7 @@
</goal> </goal>
<goal name="maven-statcvs-plugin:report"> <goal name="maven-statcvs-plugin:report">
<attainGoal name="statcvs"/> <attainGoal name="statcvs"/>
</goal> </goal>
<goal name="statcvs" prereqs="statcvs:generate" <goal name="statcvs" prereqs="statcvs:generate"
@ -48,7 +48,7 @@
<cvs command="-q log" output="${statcvs.logfile}"/> <cvs command="-q log" output="${statcvs.logfile}"/>
<property name="maven.docs.dest" value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.dest')}"/> <property name="maven.docs.dest" value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.dest')}"/>
<java jar="${plugin.getDependencyPath('statcvs')}" fork="true"> <java jar="${plugin.getDependencyPath('statcvs')}" fork="true">
<arg value="${pom.name}"/> <arg value="${pom.name}"/>

View File

@ -9,7 +9,7 @@
<goal name="struts:validate-war" <goal name="struts:validate-war"
description="Ensure a war file containing a Struts application is valid"> description="Ensure a war file containing a Struts application is valid">
<taskdef name="struts10warvalidator" <taskdef name="struts10warvalidator"
classname="org.apache.maven.struts.Struts10WarValidator"> classname="org.apache.maven.struts.Struts10WarValidator">
<classpath> <classpath>

View File

@ -7,9 +7,9 @@
<define:taglib uri="test"> <define:taglib uri="test">
<define:tag name="eclipse"> <define:tag name="eclipse">
<!-- The eclipse plugin requires access to the test plugin. <!-- The eclipse plugin requires access to the test plugin.
Using this tag forces the test plugin to be loaded into the Using this tag forces the test plugin to be loaded into the
eclipse plugin --> eclipse plugin -->
</define:tag> </define:tag>
</define:taglib> </define:taglib>
@ -37,8 +37,8 @@
deprecation="${maven.compile.deprecation}" deprecation="${maven.compile.deprecation}"
optimize="${maven.compile.optimize}"> optimize="${maven.compile.optimize}">
<j:if test="${context.getVariable('maven.test.source') != null}"> <j:if test="${context.getVariable('maven.test.source') != null}">
<setProperty name="source" value="${maven.test.source}" /> <setProperty name="source" value="${maven.test.source}" />
</j:if> </j:if>
<classpath> <classpath>
<pathelement path="${maven.build.dest}"/> <pathelement path="${maven.build.dest}"/>
<path refid="maven.dependency.classpath"/> <path refid="maven.dependency.classpath"/>
@ -274,23 +274,23 @@
<goal name="test:single-test" <goal name="test:single-test"
description="[deprecated] please use the test:single goal instead"> description="[deprecated] please use the test:single goal instead">
<echo>[deprecated] please use the test:single goal instead</echo> <echo>[deprecated] please use the test:single goal instead</echo>
<attainGoal name="test:single"/> <attainGoal name="test:single"/>
</goal> </goal>
<goal name="test:match-test" <goal name="test:match-test"
description="[deprecated] please use the test:match goal instead"> description="[deprecated] please use the test:match goal instead">
<echo>[deprecated] please use the test:match goal instead</echo> <echo>[deprecated] please use the test:match goal instead</echo>
<attainGoal name="test:match"/> <attainGoal name="test:match"/>
</goal> </goal>
<goal name="test:eclipse"> <goal name="test:eclipse">
<echo>Used by eclipse to drag in test plugin context</echo> <echo>Used by eclipse to drag in test plugin context</echo>
</goal> </goal>
<!-- ================================================================== --> <!-- ================================================================== -->
<!-- T E S T R E S O U R C E S --> <!-- T E S T R E S O U R C E S -->
<!-- ================================================================== --> <!-- ================================================================== -->

View File

@ -36,8 +36,8 @@
</goal> </goal>
<goal name="war:build"> <goal name="war:build">
</goal> </goal>
<goal name="war:package"> <goal name="war:package">
@ -50,9 +50,9 @@
<j:if test="${webSourcesPresent == 'true'}"> <j:if test="${webSourcesPresent == 'true'}">
<fileset dir="${maven.war.src}"> <fileset dir="${maven.war.src}">
<exclude name="WEB-INF/web.xml"/> <exclude name="WEB-INF/web.xml"/>
<exclude name="WEB-INF/classes/**/*.class"/> <exclude name="WEB-INF/classes/**/*.class"/>
<exclude name="WEB-INF/lib/*.jar"/> <exclude name="WEB-INF/lib/*.jar"/>
</fileset> </fileset>
</j:if> </j:if>
@ -147,7 +147,7 @@
description="Install the war in the local repository"> description="Install the war in the local repository">
<property name="maven.war.install.dir" <property name="maven.war.install.dir"
value="${maven.repo.local}/${pom.artifactDirectory}/wars"/> value="${maven.repo.local}/${pom.artifactDirectory}/wars"/>
<mkdir dir="${maven.war.install.dir}"/> <mkdir dir="${maven.war.install.dir}"/>
<copy file="${maven.war.build.dir}/${maven.war.final.name}" <copy file="${maven.war.build.dir}/${maven.war.final.name}"
tofile="${maven.war.install.dir}/${maven.war.final.name}"/> tofile="${maven.war.install.dir}/${maven.war.final.name}"/>

View File

@ -15,39 +15,39 @@
<define:taglib uri="doc"> <define:taglib uri="doc">
<define:tag name="deregisterReport"> <define:tag name="deregisterReport">
<!-- @name : Report to deregister, must be same as name used to register --> <!-- @name : Report to deregister, must be same as name used to register -->
<j:set <j:set
var="reports" var="reports"
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/> value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/>
<j:set var="removeRpt" value="null"/> <j:set var="removeRpt" value="null"/>
<j:forEach var="rpt" items="${reports}"> <j:forEach var="rpt" items="${reports}">
<j:if test="${rpt.get('name').equals(name)}"> <j:if test="${rpt.get('name').equals(name)}">
<j:set var="removeRpt" value="${rpt}"/> <j:set var="removeRpt" value="${rpt}"/>
</j:if> </j:if>
</j:forEach> </j:forEach>
<j:if test="${removeRpt != null}"> <j:if test="${removeRpt != null}">
<j:set var="dummy" value="${reports.remove(removeRpt)}"/> <j:set var="dummy" value="${reports.remove(removeRpt)}"/>
</j:if> </j:if>
</define:tag> </define:tag>
<define:tag name="registerReport"> <define:tag name="registerReport">
<!-- <!--
@name the name of this report. Used for navigation items @name the name of this report. Used for navigation items
@plugin-name the name of the plugin. @plugin:report goal must exist @plugin-name the name of the plugin. @plugin:report goal must exist
@description text description of report @description text description of report
@link the nav-bar link for this report @link the nav-bar link for this report
--> -->
<j:set <j:set
var="reports" var="reports"
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/> value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/>
<j:set var="add" value="true"/> <j:set var="add" value="true"/>
<j:forEach var="rpt" items="${reports}"> <j:forEach var="rpt" items="${reports}">
<j:if test="${rpt.get('name').equals(name)}"> <j:if test="${rpt.get('name').equals(name)}">
<j:set var="add" value="false"/> <j:set var="add" value="false"/>
</j:if> </j:if>
</j:forEach> </j:forEach>
<j:if test="${add.equals('true')}"> <j:if test="${add.equals('true')}">
@ -76,9 +76,9 @@
</define:tag> </define:tag>
<define:tag name="jslFile"> <define:tag name="jslFile">
<!-- <!--
| Basic tag for performing arbitrary jsl transformations | Basic tag for performing arbitrary jsl transformations
| on arbitrary jsl inputs. | on arbitrary jsl inputs.
| @input | @input
| @output | @output
| @stylesheet | @stylesheet
@ -159,54 +159,54 @@
</define:tag> </define:tag>
<define:tag name="itemLink"> <define:tag name="itemLink">
<!-- <!--
@link @link
@relativePath @relativePath
@name @name
@img @img
--> -->
<a href="${pathTool.calculateLink(link,relativePath)}"> <a href="${pathTool.calculateLink(link,relativePath)}">
<j:if test="${empty(img)}">${name}</j:if> <j:if test="${empty(img)}">${name}</j:if>
<j:if test="${!empty(img)}"><img style="border: 1px" src="${img}" title="${name}" alt="${name}"/></j:if> <j:if test="${!empty(img)}"><img style="border: 1px" src="${img}" title="${name}" alt="${name}"/></j:if>
</a> </a>
</define:tag> </define:tag>
<define:tag name="text-xdoc"> <define:tag name="text-xdoc">
<!-- <!--
@output - The output file @output - The output file
@title - Title for page @title - Title for page
@section - Section heading @section - Section heading
@encoding - The XML encoding @encoding - The XML encoding
@preamble - Placed in paragraph block prior to text @preamble - Placed in paragraph block prior to text
@inputText - Will be wrapped in a CDATA, will not escape CDATA tags (as yet) @inputText - Will be wrapped in a CDATA, will not escape CDATA tags (as yet)
@inputFile - Will be read in and wrapped in CDATA. Overrides inputText if set @inputFile - Will be read in and wrapped in CDATA. Overrides inputText if set
--> -->
<j:set var="inputFile">${inputFile}</j:set> <j:set var="inputFile">${inputFile}</j:set>
<j:if test="${inputFile != ''}"> <j:if test="${inputFile != ''}">
<util:file name="${inputFile}" var="inputFileObject"/> <util:file name="${inputFile}" var="inputFileObject"/>
<util:loadText var="inputText" file="${inputFileObject}"/> <util:loadText var="inputText" file="${inputFileObject}"/>
</j:if> </j:if>
<!-- Set default encoding if not set. --> <!-- Set default encoding if not set. -->
<j:if test="${encoding == null}"> <j:if test="${encoding == null}">
<j:set var="encoding" <j:set var="encoding"
value="${plugin.getVariable('maven.docs.outputencoding')}"/> value="${plugin.getVariable('maven.docs.outputencoding')}"/>
</j:if> </j:if>
<j:file name="${output}" prettyPrint="false" encoding="ISO-8859-1"> <j:file name="${output}" prettyPrint="false" encoding="ISO-8859-1">
<document> <document>
<properties><title>${title}</title></properties> <properties><title>${title}</title></properties>
<body> <body>
<section name="${section}"> <section name="${section}">
<p>${preamble}</p> <p>${preamble}</p>
<source> <source>
<![CDATA[${inputText}]]> <![CDATA[${inputText}]]>
</source> </source>
</section> </section>
</body> </body>
</document> </document>
</j:file> </j:file>
</define:tag> </define:tag>
<!-- Alternator for row style in a table --> <!-- Alternator for row style in a table -->
@ -271,7 +271,7 @@
<j:forEach var="file" items="${docFiles.iterator()}"> <j:forEach var="file" items="${docFiles.iterator()}">
<util:replace var="inDirForward" oldChar="\" newChar="/" value="${file.parent}"/> <util:replace var="inDirForward" oldChar="\" newChar="/" value="${file.parent}"/>
<j:set var="outDir" value="${dirMapper.mapFileName(inDirForward).0}"/> <j:set var="outDir" value="${dirMapper.mapFileName(inDirForward).0}"/>
<mkdir dir="${outDir}"/> <mkdir dir="${outDir}"/>
@ -533,14 +533,14 @@
|--> |-->
<j:if test="${!pom.reports.isEmpty()}"> <j:if test="${!pom.reports.isEmpty()}">
<j:forEach var="report" items="${pom.reports}"> <j:forEach var="report" items="${pom.reports}">
<attainGoal name="${report}:register"/> <attainGoal name="${report}:register"/>
</j:forEach> </j:forEach>
</j:if> </j:if>
<!-- If the descriptor is empty, use these as defaults --> <!-- If the descriptor is empty, use these as defaults -->
<j:if test="${pom.reports.isEmpty()}"> <j:if test="${pom.reports.isEmpty()}">
<attainGoal name="maven-jdepend-plugin:register"/> <attainGoal name="maven-jdepend-plugin:register"/>
<attainGoal name="maven-checkstyle-plugin:register"/> <attainGoal name="maven-checkstyle-plugin:register"/>
<attainGoal name="maven-changes-plugin:register"/> <attainGoal name="maven-changes-plugin:register"/>
<attainGoal name="maven-changelog-plugin:register"/> <attainGoal name="maven-changelog-plugin:register"/>
@ -552,7 +552,7 @@
<attainGoal name="maven-junit-report-plugin:register"/> <attainGoal name="maven-junit-report-plugin:register"/>
<attainGoal name="maven-linkcheck-plugin:register"/> <attainGoal name="maven-linkcheck-plugin:register"/>
<attainGoal name="maven-tasklist-plugin:register"/> <attainGoal name="maven-tasklist-plugin:register"/>
</j:if> </j:if>
</goal> </goal>
<goal name="xdoc:jelly-transform" <goal name="xdoc:jelly-transform"
@ -605,21 +605,21 @@
<!-- This is required as the linkchecker runs as a final pass over the generated <!-- This is required as the linkchecker runs as a final pass over the generated
document tree --> document tree -->
<goal name="xdoc:performJSL" <goal name="xdoc:performJSL"
description="Allows the LinkCheck plugin to xdoc a single directory"> description="Allows the LinkCheck plugin to xdoc a single directory">
<j:set var="maven.xdoc.src" value="${pom.getPluginContext('maven-linkcheck-plugin').getVariable('maven.xdoc.src')}"/> <j:set var="maven.xdoc.src" value="${pom.getPluginContext('maven-linkcheck-plugin').getVariable('maven.xdoc.src')}"/>
<doc:performJSL <doc:performJSL
srcdir="${maven.xdoc.src}" srcdir="${maven.xdoc.src}"
destdir="${maven.docs.dest}"/> destdir="${maven.docs.dest}"/>
</goal> </goal>
<goal name="xdoc:dump-report-settings"> <goal name="xdoc:dump-report-settings">
<echo>Dumping report settings</echo> <echo>Dumping report settings</echo>
<j:set <j:set
var="reports" var="reports"
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/> value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/>
<j:forEach var="report" items="${reports}"> <j:forEach var="report" items="${reports}">
<echo>Report: ${report}</echo> <echo>Report: ${report}</echo>
</j:forEach> </j:forEach>
</goal> </goal>