Explicity use ant name space. In prep for removal of jeez etc
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113213 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
e2da053329
commit
a32df5565e
1 file changed
+18
-17
+18
-17
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<project
|
||||
xmlns:ant="jelly:ant"
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:u="jelly:util">
|
||||
|
||||
@@ -9,42 +10,42 @@
|
||||
description="Generate Application using 'maven -Dpackage=org.mycompany.project genapp'">
|
||||
|
||||
<j:if test="${package == null}">
|
||||
<fail message="">
|
||||
<ant:fail message="">
|
||||
|
||||
You must specifiy a package for your application!
|
||||
|
||||
</fail>
|
||||
</ant:fail>
|
||||
</j:if>
|
||||
|
||||
<!-- Turn the specified package into a path -->
|
||||
<u:replace var="appPath" oldChar="." newChar="/" value="${package}"/>
|
||||
|
||||
<!-- We want to substitute in the package name. -->
|
||||
<filter token="PACKAGE" value="${package}"/>
|
||||
<ant:filter token="PACKAGE" value="${package}"/>
|
||||
|
||||
<!-- Make Java source directory and populate. -->
|
||||
<j:set var="appDirectory" value="${basedir}/src/java/${appPath}"/>
|
||||
<mkdir dir="${appDirectory}"/>
|
||||
<copy todir="${appDirectory}" filtering="true">
|
||||
<fileset dir="${plugin.resources}/src/java"/>
|
||||
</copy>
|
||||
<ant:mkdir dir="${appDirectory}"/>
|
||||
<ant:copy todir="${appDirectory}" filtering="true">
|
||||
<ant:fileset dir="${plugin.resources}/src/java"/>
|
||||
</ant:copy>
|
||||
|
||||
<!-- Make Java unit test source directory and populate. -->
|
||||
<j:set var="appTestDirectory" value="${basedir}/src/test/${appPath}"/>
|
||||
<mkdir dir="${appTestDirectory}"/>
|
||||
<copy todir="${appTestDirectory}" filtering="true">
|
||||
<fileset dir="${plugin.resources}/src/test"/>
|
||||
</copy>
|
||||
<ant:mkdir dir="${appTestDirectory}"/>
|
||||
<ant:copy todir="${appTestDirectory}" filtering="true">
|
||||
<ant:fileset dir="${plugin.resources}/src/test"/>
|
||||
</ant:copy>
|
||||
|
||||
<!-- Starter POM and POM properties. -->
|
||||
<copy todir="${basedir}" filtering="true">
|
||||
<fileset dir="${plugin.resources}/src/pom"/>
|
||||
</copy>
|
||||
<ant:copy todir="${basedir}" filtering="true">
|
||||
<ant:fileset dir="${plugin.resources}/src/pom"/>
|
||||
</ant:copy>
|
||||
|
||||
<!-- Starter conf files to be placed in the JAR. -->
|
||||
<copy todir="${basedir}/src/conf">
|
||||
<fileset dir="${plugin.resources}/src/conf"/>
|
||||
</copy>
|
||||
<ant:copy todir="${basedir}/src/conf">
|
||||
<ant:fileset dir="${plugin.resources}/src/conf"/>
|
||||
</ant:copy>
|
||||
|
||||
</goal>
|
||||
|
||||
|
||||
Reference in new issue
Block a user