51 <!-- End of Macrodefs --> 52 <!-- ############### --> 53 54 <!-- Create xml file and import it for these drops. --> 55 <drop-import name="jaxp_src"/> 56 <!-- <drop-import name="jaxp_tests"/> --> 57 58 59 <!-- Special build area preparation. --> 60 <target name="-drop-build-prep" depends="init, -init-src-dirs"> 61 <mkdir dir="${build.classes.dir}"/> 62 <copy todir="${build.classes.dir}"> 63 <fileset dir="${primary.src.dir}" 64 includes="**/*.properties"/> 65 </copy> 66 <replaceregexp match="#(.*)$" replace="#" flags="gm"> 67 <fileset dir="${build.classes.dir}" includes="**/*.properties"/> 68 </replaceregexp> 69 </target> 70 71 <!-- Try to get drop sources, set property use.orig.src.dir if no drops. --> 72 <target name="-set-props" 73 depends="init, 74 jaxp_src-update"> 75 <condition property="use.orig.src.dir"> 76 <and> 77 <available file="${orig.src.dir}" type="dir"/> 78 <not> 79 <and> 80 <available file="${jaxp_src.src.dir}" type="dir"/> 81 </and> 82 </not> 83 </and> 84 </condition> 85 </target> 86 87 <!-- Set up source to use orig.src.dir, if use.orig.src.dir defined. --> 88 <target name="-use-orig" depends="-set-props" if="use.orig.src.dir"> 89 <property name="primary.src.dir" value="${orig.src.dir}"/> 90 <path id="src.dir.id"> 91 <pathelement path="${primary.src.dir}"/> 92 </path> 93 </target> 94 95 <!-- Set up source to use drop.dir, if use.orig.src.dir not defined. --> 96 <target name="-use-drop" depends="-set-props" unless="use.orig.src.dir"> 97 <property name="primary.src.dir" value="${jaxp_src.src.dir}"/> 98 <path id="src.dir.id"> 99 <pathelement path="${primary.src.dir}"/> 100 </path> 101 </target> 102 103 <!-- Source directory selection. --> 104 <target name="-init-src-dirs" 105 depends="init, -use-orig, -use-drop"> 106 <echo message="Using primary.src.dir=${primary.src.dir}"/> 107 <pathconvert property="src.list.id" refid="src.dir.id"/> 108 <echo message="Using src.dir.id=${src.list.id}"/> 109 </target> 110 111 <!-- Create orig src.zip. --> 112 <target name="-orig-src-zip" depends="init, -set-props" if="use.orig.src.dir"> 113 <zip file="${dist.src.zip}" basedir="${primary.src.dir}"/> 114 </target> 115 116 <!-- Create drop src.zip. --> 117 <target name="-drop-src-zip" depends="init, -set-props" unless="use.orig.src.dir"> 118 <zip file="${dist.src.zip}" basedir="${primary.src.dir}"/> 119 </target> 120 121 <!-- Create src.zip. --> 122 <target name="-dist-src-zip" depends="init, -orig-src-zip, -drop-src-zip"> 123 </target> 124 125 </project> | 51 <!-- End of Macrodefs --> 52 <!-- ############### --> 53 54 <!-- Create xml file and import it for these drops. --> 55 <drop-import name="jaxp_src"/> 56 <!-- <drop-import name="jaxp_tests"/> --> 57 58 59 <!-- Special build area preparation. --> 60 <target name="-drop-build-prep" depends="init, -init-src-dirs"> 61 <mkdir dir="${build.classes.dir}"/> 62 <copy todir="${build.classes.dir}"> 63 <fileset dir="${primary.src.dir}" 64 includes="**/*.properties"/> 65 </copy> 66 <replaceregexp match="#(.*)$" replace="#" flags="gm"> 67 <fileset dir="${build.classes.dir}" includes="**/*.properties"/> 68 </replaceregexp> 69 </target> 70 71 <!-- Try to get drop sources. --> 72 <target name="-set-props" 73 depends="init, 74 jaxp_src-update"> 75 </target> 76 77 <!-- Set up source to use drop.dir. --> 78 <target name="-use-drop" depends="-set-props"> 79 <property name="primary.src.dir" value="${jaxp_src.src.dir}"/> 80 <path id="src.dir.id"> 81 <pathelement path="${primary.src.dir}"/> 82 </path> 83 </target> 84 85 <!-- Source directory selection. --> 86 <target name="-init-src-dirs" 87 depends="init, -use-drop"> 88 <echo message="Using primary.src.dir=${primary.src.dir}"/> 89 <pathconvert property="src.list.id" refid="src.dir.id"/> 90 <echo message="Using src.dir.id=${src.list.id}"/> 91 </target> 92 93 <!-- Create drop src.zip. --> 94 <target name="-drop-src-zip" depends="init, -set-props"> 95 <zip file="${dist.src.zip}" basedir="${primary.src.dir}"/> 96 </target> 97 98 <!-- Create src.zip. --> 99 <target name="-dist-src-zip" depends="init, -drop-src-zip"> 100 </target> 101 102 </project> |