Maven-antrun-plugin deprecated tasks in favor of target, this patch
fixes JGit poms to do the same.
Change-Id: I420fd2ce88c61cf8e786ed45fbb8235dc30c124e
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
<id>translate-source-qualifier</id>
<phase>generate-resources</phase>
<configuration>
- <tasks>
+ <target>
<copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/>
<replace file="${source-bundle-manifest}">
<replacefilter token=".qualifier" value=".${maven.build.timestamp}"/>
</replace>
- </tasks>
+ </target>
</configuration>
<goals>
<goal>run</goal>
<id>create_jgit</id>
<phase>package</phase>
<configuration>
- <tasks>
+ <target>
<concat destfile="${basedir}/target/jgit" force="yes" binary="true">
<fileset file="${basedir}/jgit.sh" />
<fileset file="${basedir}/target/jgit-cli.jar" />
</concat>
<chmod file="${basedir}/target/jgit" perm="a+x"/>
- </tasks>
+ </target>
</configuration>
<goals>
<goal>run</goal>
<id>translate-source-qualifier</id>
<phase>generate-resources</phase>
<configuration>
- <tasks>
+ <target>
<copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/>
<replace file="${source-bundle-manifest}">
<replacefilter token=".qualifier" value=".${maven.build.timestamp}"/>
</replace>
- </tasks>
+ </target>
</configuration>
<goals>
<goal>run</goal>
<id>translate-source-qualifier</id>
<phase>generate-resources</phase>
<configuration>
- <tasks>
+ <target>
<copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/>
<replace file="${source-bundle-manifest}">
<replacefilter token=".qualifier" value=".${maven.build.timestamp}"/>
</replace>
- </tasks>
+ </target>
</configuration>
<goals>
<goal>run</goal>