Skip to content

Commit

Permalink
Generating pom.xml via ant make-pom target
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Apr 28, 2015
1 parent 2ab8519 commit db45684
Show file tree
Hide file tree
Showing 4 changed files with 427 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ doc/tutorial/*.css
conf/MANIFEST.MF
target/
lib/
pom.xml


14 changes: 13 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<!-- Also available: colony.css, github.css etc -->
<property name="asciidoctor-style" value="./asciidoctor.css"/>
<property name="ivy.version" value="2.4.0" />
<property name="pom.template" value="${conf.dir}/pom.template.xml"/>


<!-- 5 minutes per test suite timeout -->
Expand Down Expand Up @@ -208,7 +209,7 @@
uri="antlib:org.apache.ivy.ant" classpathref="jg.classpath"/>
</target>

<target name="prepare" depends="retrieve">
<target name="prepare" depends="retrieve,make-pom">
<property environment="env"/>
<mkdir dir="${compile.dir}"/>
<copy file="${build.properties.file}.template" tofile="${build.properties.file}" overwrite="false"/>
Expand Down Expand Up @@ -443,6 +444,16 @@
<echo message="manual.up-to-date=${manual.up-to-date}"/>
</target>

<target name="make-pom" description="Copies conf/pom-xml.template to pom.xml and replaces version">
<copy file="${pom.template}"
tofile="${root.dir}/pom.xml"
overwrite="false" verbose="false">
<filterset>
<filter token="VERSION" value="${version}"/>
</filterset>
</copy>
</target>

<target name="make-schema" description="Creates XML schema for this version of JGroups"
depends="create-schema">
</target>
Expand Down Expand Up @@ -476,6 +487,7 @@
<delete dir="${root.dir}/target" failonerror="false"/>
<delete dir="${keystore.dir}" failonerror="false"/>
<delete file="${root.dir}/velocity.log*" failonerror="false"/>
<delete file="${root.dir}/pom.xml" failonerror="false"/>
<delete file="${conf.dir}/MANIFEST.MF" failonerror="false"/>
<delete>
<fileset dir="${root.dir}" defaultexcludes="no">
Expand Down
Loading

0 comments on commit db45684

Please sign in to comment.