dion 2002/05/31 08:11:09
Modified: src/templates/build/plugins/j2ee build.xml
Log:
Reformatted
Revision Changes Path
1.7 +256 -249 jakarta-turbine-maven/src/templates/build/plugins/j2ee/build.xml
Index: build.xml
===================================================================
RCS file:
/home/cvs/jakarta-turbine-maven/src/templates/build/plugins/j2ee/build.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- build.xml 25 May 2002 11:49:53 -0000 1.6
+++ build.xml 31 May 2002 15:11:09 -0000 1.7
@@ -4,60 +4,55 @@
#parse("build.init.target")
- <!-- ================================================================== -->
- <!-- L O C A L I N I T -->
- <!-- ================================================================== -->
-
- <target name="local-init" depends="init">
- <!-- Pick up tool specific defaults -->
- <property file="${maven.home}/plugins/$plugin/default.properties"/>
+ <!-- ================================================================== -->
+ <!-- L O C A L I N I T -->
+ <!-- ================================================================== -->
+
+ <target name="local-init" depends="init">
+ <!-- Pick up tool specific defaults -->
+ <property file="${maven.home}/plugins/$plugin/default.properties"/>
- <!-- Check all requirements are available -->
- <condition property="maven.j2ee.war.ready">
- <and>
- <not>
- <equals arg1="${maven.j2ee.war.name}"
- arg2="$${maven.j2ee.war.name}" />
- </not>
- <available file="${maven.j2ee.war.src}" type="dir"/>
- <available file="${maven.j2ee.war.content}" type="dir"/>
- <available file="${maven.j2ee.war.webxml}" type="file"/>
- </and>
- </condition>
+ <!-- Check all requirements are available -->
+ <condition property="maven.j2ee.war.ready">
+ <and>
+ <not>
+ <equals arg1="${maven.j2ee.war.name}"
+ arg2="$${maven.j2ee.war.name}" />
+ </not>
+ <available file="${maven.j2ee.war.src}" type="dir"/>
+ <available file="${maven.j2ee.war.content}" type="dir"/>
+ <available file="${maven.j2ee.war.webxml}" type="file"/>
+ </and>
+ </condition>
- <condition property="maven.j2ee.ear.ready">
- <and>
- <not>
- <equals arg1="${maven.j2ee.ear.name}"
- arg2="$${maven.j2ee.ear.name}" />
- </not>
- <available file="${maven.j2ee.ear.appxml}" type="file"/>
- </and>
- </condition>
-
- <condition property="maven.j2ee.ejb.ready">
- <and>
- <not>
- <equals arg1="${maven.j2ee.ejb.name}"
- arg2="$${maven.j2ee.ejb.name}" />
- </not>
- <available file="${maven.j2ee.ejb.conf.dir}" type="dir"/>
- </and>
- </condition>
- </target>
+ <condition property="maven.j2ee.ear.ready">
+ <and>
+ <not>
+ <equals arg1="${maven.j2ee.ear.name}"
+ arg2="$${maven.j2ee.ear.name}" />
+ </not>
+ <available file="${maven.j2ee.ear.appxml}" type="file"/>
+ </and>
+ </condition>
+
+ <condition property="maven.j2ee.ejb.ready">
+ <and>
+ <not>
+ <equals arg1="${maven.j2ee.ejb.name}"
+ arg2="$${maven.j2ee.ejb.name}" />
+ </not>
+ <available file="${maven.j2ee.ejb.conf.dir}" type="dir"/>
+ </and>
+ </condition>
+ </target>
- <target name="war"
- depends="local-init,
- war-error,
- war-init,
- #callback("pre-war"),
- war-build,
- #callback("post-war")"
- description="o Create a war file" />
+ <target name="war" depends="local-init,war-error,war-init,
+ #callback("pre-war"), war-build, #callback("post-war")"
+ description="o Create a war file" />
- <target name="war-error" unless="maven.j2ee.war.ready">
- <!-- extend this list with requirements as needed -->
- <fail>
+ <target name="war-error" unless="maven.j2ee.war.ready">
+ <!-- extend this list with requirements as needed -->
+ <fail>
+------------------------------------------------------------------------------
|
| ERROR: One of the required properties for maven:war was not provided.
@@ -75,78 +70,74 @@
|
| ${maven.j2ee.war.webxml}
+------------------------------------------------------------------------------
- </fail>
- </target>
+ </fail>
+ </target>
- <target name="war-init" if="maven.j2ee.war.ready">
- <!-- nothing to do as of yet -->
- </target>
+ <target name="war-init" if="maven.j2ee.war.ready">
+ <!-- nothing to do as of yet -->
+ </target>
- <target name="war-build" if="maven.j2ee.war.ready">
- <!-- make sure the source is compiled -->
- <ant antfile="${maven.home}/plugins/core/build.xml" target="jar" />
+ <target name="war-build" if="maven.j2ee.war.ready">
+ <!-- make sure the source is compiled -->
+ <ant antfile="${maven.home}/plugins/core/build.xml" target="jar" />
- <echo>Building WAR ${maven.j2ee.war.name}</echo>
+ <echo>Building WAR ${maven.j2ee.war.name}</echo>
- <war warfile="${maven.build.dir}/${maven.j2ee.war.name}.war"
- webxml="${maven.j2ee.war.webxml}">
- <fileset dir="${maven.j2ee.war.content}"/>
- <lib dir="${lib.repo}">
- <patternset refid="maven.dependency.set" />
- <exclude name="servlet*.jar" />
- </lib>
- <classes dir="${maven.build.dest}">
- <include name="${maven.j2ee.war.classes.includes}" />
- <exclude name="${maven.j2ee.war.classes.excludes}" />
- </classes>
- <metainf dir="${basedir}">
- <include name="LICENSE.txt"/>
- </metainf>
- <manifest>
- <attribute name="Built-By" value="${user.name}" />
- <section name="${maven.package}">
- <attribute name="Specification-Title" value="${maven.id}" />
- <attribute name="Specification-Version"
value="${maven.currentVersion}" />
- <attribute name="Specification-Vendor"
value="${maven.organization}" />
- <attribute name="Implementation-Title" value="${maven.package}"
/>
- <attribute name="Implementation-Version"
value="${maven.currentVersion}" />
- <attribute name="Implementation-Vendor"
value="${maven.organization}" />
- </section>
- </manifest>
- </war>
- </target>
-
- <target name="validate-war" depends="local-init">
- <taskdef
- name="warvalidator"
- classname="org.apache.maven.j2ee.WarValidator">
- <classpath refid="maven-classpath"/>
- <classpath refid="maven.dependency.classpath"/>
- </taskdef>
+ <war warfile="${maven.build.dir}/${maven.j2ee.war.name}.war"
+ webxml="${maven.j2ee.war.webxml}">
+ <fileset dir="${maven.j2ee.war.content}"/>
+ <lib dir="${lib.repo}">
+ <patternset refid="maven.dependency.set" />
+ <exclude name="servlet*.jar" />
+ </lib>
+ <classes dir="${maven.build.dest}">
+ <include name="${maven.j2ee.war.classes.includes}" />
+ <exclude name="${maven.j2ee.war.classes.excludes}" />
+ </classes>
+ <metainf dir="${basedir}">
+ <include name="LICENSE.txt"/>
+ </metainf>
+ <manifest>
+ <attribute name="Built-By" value="${user.name}" />
+ <section name="${maven.package}">
+ <attribute name="Specification-Title" value="${maven.id}" />
+ <attribute name="Specification-Version"
+ value="${maven.currentVersion}" />
+ <attribute name="Specification-Vendor"
+ value="${maven.organization}" />
+ <attribute name="Implementation-Title"
+ value="${maven.package}" />
+ <attribute name="Implementation-Version"
+ value="${maven.currentVersion}" />
+ <attribute name="Implementation-Vendor"
+ value="${maven.organization}" />
+ </section>
+ </manifest>
+ </war>
+ </target>
+
+ <target name="validate-war" depends="local-init">
+ <taskdef name="warvalidator" classname="org.apache.maven.j2ee.WarValidator">
+ <classpath refid="maven-classpath"/>
+ <classpath refid="maven.dependency.classpath"/>
+ </taskdef>
- <warvalidator
- warFileName="${maven.build.dir}/${maven.j2ee.war.name}.war">
- <formatter type="plain" usefile="false"/>
- </warvalidator>
+ <warvalidator warFileName="${maven.build.dir}/${maven.j2ee.war.name}.war">
+ <formatter type="plain" usefile="false"/>
+ </warvalidator>
- </target>
+ </target>
- <!--
+ <!--
EAR processing
- -->
- <target name="ear"
- depends="local-init,
- ear-error,
- war,
- ear-init,
- #callback("pre-ear"),
- ear-build,
- #callback("post-ear")"
- description="o Create an ear file" />
-
- <target name="ear-error" unless="maven.j2ee.ear.ready">
- <!-- extend this list with requirements as needed -->
- <fail>
+ -->
+ <target name="ear" depends="local-init,ear-error,war,ear-init,
+ #callback("pre-ear"),ear-build,#callback("post-ear")"
+ description="o Create an ear file" />
+
+ <target name="ear-error" unless="maven.j2ee.ear.ready">
+ <!-- extend this list with requirements as needed -->
+ <fail>
+------------------------------------------------------------------------------
|
| ERROR: One of the required properties for maven:ear was not provided.
@@ -159,54 +150,53 @@
|
| ${maven.j2ee.ear.appxml}
+------------------------------------------------------------------------------
- </fail>
- </target>
+ </fail>
+ </target>
- <target name="ear-init" if="maven.j2ee.ear.ready">
- <!-- nothing to do as of yet -->
- </target>
+ <target name="ear-init" if="maven.j2ee.ear.ready">
+ <!-- nothing to do as of yet -->
+ </target>
- <target name="ear-build" if="maven.j2ee.ear.ready">
- <echo>Building EAR ${maven.j2ee.ear.name}</echo>
+ <target name="ear-build" if="maven.j2ee.ear.ready">
+ <echo>Building EAR ${maven.j2ee.ear.name}</echo>
- <ear earfile="${maven.build.dir}/${maven.j2ee.ear.name}.ear"
- appxml="${maven.j2ee.ear.appxml}">
- <fileset dir="${maven.build.dir}"
- includes="${maven.j2ee.ear.includes}"
- excludes="${maven.j2ee.ear.excludes}" />
- <metainf dir="${basedir}">
- <include name="LICENSE.txt"/>
- </metainf>
- <manifest>
- <attribute name="Built-By" value="${user.name}" />
- <section name="${maven.package}">
- <attribute name="Specification-Title" value="${maven.id}" />
- <attribute name="Specification-Version"
value="${maven.currentVersion}" />
- <attribute name="Specification-Vendor"
value="${maven.organization}" />
- <attribute name="Implementation-Title" value="${maven.package}"
/>
- <attribute name="Implementation-Version"
value="${maven.currentVersion}" />
- <attribute name="Implementation-Vendor"
value="${maven.organization}" />
- </section>
- </manifest>
- </ear>
- </target>
+ <ear earfile="${maven.build.dir}/${maven.j2ee.ear.name}.ear"
+ appxml="${maven.j2ee.ear.appxml}">
+ <fileset dir="${maven.build.dir}" includes="${maven.j2ee.ear.includes}"
+ excludes="${maven.j2ee.ear.excludes}" />
+ <metainf dir="${basedir}">
+ <include name="LICENSE.txt"/>
+ </metainf>
+ <manifest>
+ <attribute name="Built-By" value="${user.name}" />
+ <section name="${maven.package}">
+ <attribute name="Specification-Title" value="${maven.id}" />
+ <attribute name="Specification-Version"
+ value="${maven.currentVersion}" />
+ <attribute name="Specification-Vendor"
+ value="${maven.organization}" />
+ <attribute name="Implementation-Title"
+ value="${maven.package}" />
+ <attribute name="Implementation-Version"
+ value="${maven.currentVersion}" />
+ <attribute name="Implementation-Vendor"
+ value="${maven.organization}" />
+ </section>
+ </manifest>
+ </ear>
+ </target>
- <!--
+ <!--
ejb processing
- -->
- <target name="ejb"
- depends="local-init,
- ejb-error,
- ejb-init,
- #callback("pre-ejb"),
- ejb-build,
- #callback("post-ejb")"
- description="Create an ejb file" />
-
- <target name="ejb-error" unless="maven.j2ee.ejb.ready">
- <!-- extend this list with requirements as needed -->
- <fail>
+ -->
+ <target name="ejb" depends="local-init,ejb-error,ejb-init,
+ #callback("pre-ejb"),ejb-build,#callback("post-ejb")"
+ description="Create an ejb file" />
+
+ <target name="ejb-error" unless="maven.j2ee.ejb.ready">
+ <!-- extend this list with requirements as needed -->
+ <fail>
+------------------------------------------------------------------------------
|
| ERROR: One of the required properties for maven:ejb was not provided.
@@ -219,120 +209,137 @@
|
| ${maven.j2ee.ejb.conf.dir}
+------------------------------------------------------------------------------
- </fail>
- </target>
+ </fail>
+ </target>
- <target name="ejb-init" if="maven.j2ee.ejb.ready">
- <property name="maven.j2ee.ejb.target-base"
value="${maven.build.dir}/ejb/"/>
- </target>
+ <target name="ejb-init" if="maven.j2ee.ejb.ready">
+ <property name="maven.j2ee.ejb.target-base"
+ value="${maven.build.dir}/ejb/"/>
+ </target>
- <target name="ejb-build" depends="ejb-jar, ejb-remote, ejb-local"
if="maven.j2ee.ejb.ready"/>
+ <target name="ejb-build" depends="ejb-jar, ejb-remote, ejb-local"
+ if="maven.j2ee.ejb.ready"/>
- <target name="ejb-jar" if="maven.j2ee.ejb.ready">
+ <target name="ejb-jar" if="maven.j2ee.ejb.ready">
- <!-- ejb jar is always built -->
- <echo>Building EJB jar for ${maven.j2ee.ejb.name}</echo>
+ <!-- ejb jar is always built -->
+ <echo>Building EJB jar for ${maven.j2ee.ejb.name}</echo>
+ <mkdir dir="${maven.j2ee.ejb.target-base}"/>
- <mkdir dir="${maven.j2ee.ejb.target-base}"/>
-
- <jar jarfile="${maven.j2ee.ejb.target-base}/${maven.j2ee.ejb.name}.jar"
index="true">
- <fileset dir="${maven.build.dir}/classes"
- includes="${maven.j2ee.ejb.includes}"
- excludes="${maven.j2ee.ejb.excludes}" />
-
- <metainf dir="${basedir}">
- <include name="LICENSE.txt"/>
- </metainf>
-
-
- <metainf dir="${maven.j2ee.ejb.conf.dir}"
- includes="${maven.j2ee.ejb.conf.includes}"
- excludes="${maven.j2ee.ejb.conf.includes}">
- </metainf>
+ <jar jarfile="${maven.j2ee.ejb.target-base}/${maven.j2ee.ejb.name}.jar"
+ index="true">
+ <fileset dir="${maven.build.dir}/classes"
+ includes="${maven.j2ee.ejb.includes}"
+ excludes="${maven.j2ee.ejb.excludes}" />
+
+ <metainf dir="${basedir}">
+ <include name="LICENSE.txt"/>
+ </metainf>
+
+ <metainf dir="${maven.j2ee.ejb.conf.dir}"
+ includes="${maven.j2ee.ejb.conf.includes}"
+ excludes="${maven.j2ee.ejb.conf.includes}">
+ </metainf>
- <manifest>
- <attribute name="Built-By" value="${user.name}" />
- <section name="${maven.package}">
- <attribute name="Specification-Title" value="${maven.id}" />
- <attribute name="Specification-Version"
value="${maven.currentVersion}" />
- <attribute name="Specification-Vendor"
value="${maven.organization}" />
- <attribute name="Implementation-Title" value="${maven.package}"
/>
- <attribute name="Implementation-Version"
value="${maven.currentVersion}" />
- <attribute name="Implementation-Vendor"
value="${maven.organization}" />
- </section>
- </manifest>
- </jar>
- </target>
+ <manifest>
+ <attribute name="Built-By" value="${user.name}" />
+ <section name="${maven.package}">
+ <attribute name="Specification-Title" value="${maven.id}" />
+ <attribute name="Specification-Version"
+ value="${maven.currentVersion}" />
+ <attribute name="Specification-Vendor"
+ value="${maven.organization}" />
+ <attribute name="Implementation-Title"
+ value="${maven.package}" />
+ <attribute name="Implementation-Version"
+ value="${maven.currentVersion}" />
+ <attribute name="Implementation-Vendor"
+ value="${maven.organization}" />
+ </section>
+ </manifest>
+ </jar>
+ </target>
- <target name="ejb-local" if="maven.j2ee.ejb.local.includes">
+ <target name="ejb-local" if="maven.j2ee.ejb.local.includes">
- <!-- ejb jar is always built -->
- <echo>Building EJB local interface jar for ${maven.j2ee.ejb.name}</echo>
+ <!-- ejb jar is always built -->
+ <echo>Building EJB local interface jar for ${maven.j2ee.ejb.name}</echo>
- <!-- in case excludes hasn't been set -->
- <property name="maven.j2ee.ejb.local.excludes" value=""/>
+ <!-- in case excludes hasn't been set -->
+ <property name="maven.j2ee.ejb.local.excludes" value=""/>
- <mkdir dir="${maven.j2ee.ejb.target-base}"/>
+ <mkdir dir="${maven.j2ee.ejb.target-base}"/>
- <jar
jarfile="${maven.j2ee.ejb.target-base}/${maven.j2ee.ejb.name}-local.jar" index="true">
- <fileset dir="${maven.build.dir}/classes"
- includes="${maven.j2ee.ejb.local.includes}"
- excludes="${maven.j2ee.ejb.local.excludes}" />
-
- <metainf dir="${basedir}">
- <include name="LICENSE.txt"/>
- </metainf>
+ <jar jarfile="${maven.j2ee.ejb.target-base}/${maven.j2ee.ejb.name}-local.jar"
+ index="true">
+ <fileset dir="${maven.build.dir}/classes"
+ includes="${maven.j2ee.ejb.local.includes}"
+ excludes="${maven.j2ee.ejb.local.excludes}" />
+
+ <metainf dir="${basedir}">
+ <include name="LICENSE.txt"/>
+ </metainf>
- <manifest>
- <attribute name="Built-By" value="${user.name}" />
- <section name="${maven.package}">
- <attribute name="Specification-Title" value="${maven.id}" />
- <attribute name="Specification-Version"
value="${maven.currentVersion}" />
- <attribute name="Specification-Vendor"
value="${maven.organization}" />
- <attribute name="Implementation-Title" value="${maven.package}"
/>
- <attribute name="Implementation-Version"
value="${maven.currentVersion}" />
- <attribute name="Implementation-Vendor"
value="${maven.organization}" />
- </section>
- </manifest>
- </jar>
- </target>
+ <manifest>
+ <attribute name="Built-By" value="${user.name}" />
+ <section name="${maven.package}">
+ <attribute name="Specification-Title" value="${maven.id}" />
+ <attribute name="Specification-Version"
+ value="${maven.currentVersion}" />
+ <attribute name="Specification-Vendor"
+ value="${maven.organization}" />
+ <attribute name="Implementation-Title"
+ value="${maven.package}" />
+ <attribute name="Implementation-Version"
+ value="${maven.currentVersion}" />
+ <attribute name="Implementation-Vendor"
+ value="${maven.organization}" />
+ </section>
+ </manifest>
+ </jar>
+ </target>
- <target name="ejb-remote" if="maven.j2ee.ejb.remote.includes">
+ <target name="ejb-remote" if="maven.j2ee.ejb.remote.includes">
- <!-- ejb jar is always built -->
- <echo>Building EJB remote interface jar for ${maven.j2ee.ejb.name}</echo>
+ <!-- ejb jar is always built -->
+ <echo>Building EJB remote interface jar for ${maven.j2ee.ejb.name}</echo>
- <!-- in case excludes hasn't been set -->
- <property name="maven.j2ee.ejb.remote.excludes" value=""/>
+ <!-- in case excludes hasn't been set -->
+ <property name="maven.j2ee.ejb.remote.excludes" value=""/>
- <mkdir dir="${maven.j2ee.ejb.target-base}"/>
+ <mkdir dir="${maven.j2ee.ejb.target-base}"/>
- <jar
jarfile="${maven.j2ee.ejb.target-base}/${maven.j2ee.ejb.name}-remote.jar" index="true">
- <fileset dir="${maven.build.dir}/classes"
- includes="${maven.j2ee.ejb.remote.includes}"
- excludes="${maven.j2ee.ejb.remote.excludes}" />
-
- <metainf dir="${basedir}">
- <include name="LICENSE.txt"/>
- </metainf>
+ <jar jarfile="${maven.j2ee.ejb.target-base}/${maven.j2ee.ejb.name}-remote.jar"
+ index="true">
+ <fileset dir="${maven.build.dir}/classes"
+ includes="${maven.j2ee.ejb.remote.includes}"
+ excludes="${maven.j2ee.ejb.remote.excludes}" />
+
+ <metainf dir="${basedir}">
+ <include name="LICENSE.txt"/>
+ </metainf>
-
- <manifest>
- <attribute name="Built-By" value="${user.name}" />
- <section name="${maven.package}">
- <attribute name="Specification-Title" value="${maven.id}" />
- <attribute name="Specification-Version"
value="${maven.currentVersion}" />
- <attribute name="Specification-Vendor"
value="${maven.organization}" />
- <attribute name="Implementation-Title" value="${maven.package}"
/>
- <attribute name="Implementation-Version"
value="${maven.currentVersion}" />
- <attribute name="Implementation-Vendor"
value="${maven.organization}" />
- </section>
- </manifest>
- </jar>
- </target>
+ <manifest>
+ <attribute name="Built-By" value="${user.name}" />
+ <section name="${maven.package}">
+ <attribute name="Specification-Title" value="${maven.id}" />
+ <attribute name="Specification-Version"
+ value="${maven.currentVersion}" />
+ <attribute name="Specification-Vendor"
+ value="${maven.organization}" />
+ <attribute name="Implementation-Title"
+ value="${maven.package}" />
+ <attribute name="Implementation-Version"
+ value="${maven.currentVersion}" />
+ <attribute name="Implementation-Vendor"
+ value="${maven.organization}" />
+ </section>
+ </manifest>
+ </jar>
+ </target>
</project>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>