jaxp/build-defs.xml
changeset 5831 f5c4c0c0730b
parent 5830 3adf4782de94
child 9059 f7d1d02fad53
equal deleted inserted replaced
5740:c4c8a5bc54f6 5831:f5c4c0c0730b
    53 
    53 
    54     <!-- Create xml file and import it for these drops. -->
    54     <!-- Create xml file and import it for these drops. -->
    55     <drop-import name="jaxp_src"/>
    55     <drop-import name="jaxp_src"/>
    56     <!-- <drop-import name="jaxp_tests"/> -->
    56     <!-- <drop-import name="jaxp_tests"/> -->
    57 
    57 
       
    58     <!-- Fail and print helpful messages if source does not exist. -->
       
    59     <target name="-src-help">
       
    60       <fail message="${failed.url.src.message}">
       
    61 	<condition>
       
    62 	    <and>
       
    63                 <not>
       
    64 	            <available file="${jaxp_src.src.dir}" type="dir"/>
       
    65 	        </not>
       
    66 	        <istrue value="${allow.downloads}"/>
       
    67 	    </and>
       
    68 	</condition>
       
    69       </fail>
       
    70       <fail message="${failed.nourl.src.message}">
       
    71 	<condition>
       
    72             <not>
       
    73 	        <available file="${jaxp_src.src.dir}" type="dir"/>
       
    74 	    </not>
       
    75 	</condition>
       
    76       </fail>
       
    77     </target>
    58 
    78 
    59     <!-- Special build area preparation. -->
    79     <!-- Special build area setup. -->
    60     <target name="-drop-build-prep" depends="init, -init-src-dirs">
    80     <target name="-drop-build-setup" depends="init, -init-src-dirs">
    61         <mkdir dir="${build.classes.dir}"/>
    81         <mkdir dir="${build.classes.dir}"/>
    62         <copy todir="${build.classes.dir}">
    82         <copy todir="${build.classes.dir}">
    63             <fileset dir="${primary.src.dir}"
    83             <fileset dir="${primary.src.dir}"
    64                      includes="**/*.properties"/>
    84                      includes="**/*.properties"/>
    65         </copy>
    85         </copy>
    82         </path>
   102         </path>
    83     </target>
   103     </target>
    84 
   104 
    85     <!-- Source directory selection. -->
   105     <!-- Source directory selection. -->
    86     <target name="-init-src-dirs"
   106     <target name="-init-src-dirs"
    87 	    depends="init, -use-drop">
   107 	    depends="init, -use-drop,-src-help">
    88         <echo message="Using primary.src.dir=${primary.src.dir}"/>
   108         <echo message="Using primary.src.dir=${primary.src.dir}"/>
    89         <pathconvert property="src.list.id" refid="src.dir.id"/>
   109         <pathconvert property="src.list.id" refid="src.dir.id"/>
    90         <echo message="Using src.dir.id=${src.list.id}"/>
   110         <echo message="Using src.dir.id=${src.list.id}"/>
    91     </target>
   111     </target>
    92 
   112