build-main.xml 865 B

123456789101112131415161718192021222324
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <project name="maven-antrun-" default="main" >
  3. <target name="main">
  4. <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.plugin.classpath"/>
  5. <if>
  6. <available file="about.mappings"/>
  7. <then>
  8. <echo message="Replacing back build id within about.mappings with @build@ token."/>
  9. <replace file="about.mappings">
  10. <replacefilter token="${unqualifiedVersion}.${buildQualifier}" value="@build@"/>
  11. </replace>
  12. </then>
  13. </if>
  14. <if>
  15. <available file="javadocOptions.txt"/>
  16. <then>
  17. <echo message="Replacing back build id within javadocOptions.txt with @build@ token."/>
  18. <replace file="javadocOptions.txt">
  19. <replacefilter token="${unqualifiedVersion}.${buildQualifier}" value="@build@"/>
  20. </replace>
  21. </then>
  22. </if>
  23. </target>
  24. </project>