diff options
Diffstat (limited to 'eclipse.platform.releng.tychoeclipsebuilder/java11patch49/eclipse.releng.repository.java11patch/antrunbuild.xml')
-rw-r--r-- | eclipse.platform.releng.tychoeclipsebuilder/java11patch49/eclipse.releng.repository.java11patch/antrunbuild.xml | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/eclipse.platform.releng.tychoeclipsebuilder/java11patch49/eclipse.releng.repository.java11patch/antrunbuild.xml b/eclipse.platform.releng.tychoeclipsebuilder/java11patch49/eclipse.releng.repository.java11patch/antrunbuild.xml new file mode 100644 index 000000000..eb4be335e --- /dev/null +++ b/eclipse.platform.releng.tychoeclipsebuilder/java11patch49/eclipse.releng.repository.java11patch/antrunbuild.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<project + default="default" + basedir="."> + + <!-- + This file is called by the pom's "antrun" plugin. These tasks were + "pulled out" of using directly in the pom because it seems errors are + not well captured, and only thing "left" on the build system is the + last ant file created. (Makes me even wonder if you can call twice + during same phase?) + --> + + <target + name="preTransform" + depends="checkExistence"> + <echoproperties /> + <fail + unless="contentjarexists" + message="content.jar file did not exist as expected" /> + <echo message="unzip content.jar, for xslt transform" /> + <unzip + src="${project.build.directory}/repository/content.jar" + dest="${project.build.directory}/repository/" /> + <echo message="backup, of originals, just to help debugging" /> + <copy + file="${project.build.directory}/repository/content.jar" + tofile="${project.build.directory}/backup/contentORIG.jar" + preservelastmodified="true" /> + <copy + file="${project.build.directory}/repository/content.xml" + tofile="${project.build.directory}/backup/contentORIG.xml" + preservelastmodified="true" /> + </target> + <target name="checkExistence"> + <condition property="contentjarexists"> + <available file="${project.build.directory}/repository/content.jar" /> + </condition> + </target> + + <target name="postTransform"> + <!-- In the pom file, are steps that do the transorm, + xxx and copy the transformed content.xml back to "here" --> + <delete + file="${project.build.directory}/repository/content.jar" + failonerror="true" /> + <zip + destfile="${project.build.directory}/repository/content.jar" + basedir="${project.build.directory}/generated-resources/xml/xslt" + includes="content.xml" + filesonly="true" /> + <!-- must delete, or will be kept in the final zipped up version. + Would not really hurt much ... but, be confusing + <delete file="${project.build.directory}/repository/content.xml" /> + --> + <copy + file="${project.build.directory}/repository/content.jar" + tofile="${project.build.directory}/backup/contentORIG2.jar" + preservelastmodified="true" /> + </target> + + <target name="default"> + <fail message="There is no default target for this antrunbuild.xml file." /> + </target> +</project> |