Skip to content

Commit

Permalink
build.xml: Change the "pom" target to use unversioned filename
Browse files Browse the repository at this point in the history
Write to build/pom/xz.pom instead of build/maven/xz-${version}.pom.
The "maven" target then copies it to build/maven/xz-${version}.pom.

This way distro packagers have a simple location from which to pick
xz.pom if they need it.
  • Loading branch information
Larhzu committed Jul 28, 2024
1 parent 7f4ccd6 commit 5689e64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ classes_dir = ${build_dir}/classes
classes9_dir = ${build_dir}/classes9
jar_dir = ${build_dir}/jar
doc_dir = ${build_dir}/doc
pom_dir = ${build_dir}/pom
pom_template = maven/pom_template.xml
maven_dir = ${build_dir}/maven
11 changes: 8 additions & 3 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@
</jar>
</target>

<target name="pom" description="Creates xz-*.pom for a Maven repository">
<mkdir dir="${maven_dir}"/>
<target name="pom" description="Creates xz.pom for a Maven repository">
<mkdir dir="${pom_dir}"/>

<copy file="${pom_template}" tofile="${maven_dir}/xz-${version}.pom"
<copy file="${pom_template}" tofile="${pom_dir}/xz.pom"
overwrite="true">
<filterset>
<filter token="VERSION" value="${version}"/>
Expand All @@ -167,6 +167,11 @@

<target name="maven" depends="pom, doc, jar"
description="Creates POM and JAR files for a Maven repository">
<mkdir dir="${maven_dir}"/>

<copy file="${pom_dir}/xz.pom" tofile="${maven_dir}/xz-${version}.pom"
preservelastmodified="true" overwrite="true"/>

<copy file="${jar_dir}/xz.jar" tofile="${maven_dir}/xz-${version}.jar"
preservelastmodified="true" overwrite="true"/>

Expand Down

0 comments on commit 5689e64

Please sign in to comment.