1.1 --- a/build-defs.xml Thu Jun 24 20:03:05 2010 -0700 1.2 +++ b/build-defs.xml Tue Jun 29 22:31:40 2010 -0700 1.3 @@ -55,9 +55,36 @@ 1.4 <drop-import name="jaxws_src"/> 1.5 <drop-import name="jaf_src"/> 1.6 <!-- <drop-import name="jaxws_tests"/> --> 1.7 + 1.8 + <!-- Fail and print helpful messages if source does not exist. --> 1.9 + <target name="-src-help"> 1.10 + <fail message="${failed.url.src.message}"> 1.11 + <condition> 1.12 + <and> 1.13 + <not> 1.14 + <and> 1.15 + <available file="${jaxws_src.src.dir}" type="dir"/> 1.16 + <available file="${jaf_src.src.dir}" type="dir"/> 1.17 + </and> 1.18 + </not> 1.19 + <istrue value="${allow.downloads}"/> 1.20 + </and> 1.21 + </condition> 1.22 + </fail> 1.23 + <fail message="${failed.nourl.src.message}"> 1.24 + <condition> 1.25 + <not> 1.26 + <and> 1.27 + <available file="${jaxws_src.src.dir}" type="dir"/> 1.28 + <available file="${jaf_src.src.dir}" type="dir"/> 1.29 + </and> 1.30 + </not> 1.31 + </condition> 1.32 + </fail> 1.33 + </target> 1.34 1.35 - <!-- Special build area preparation. --> 1.36 - <target name="-drop-build-prep" depends="init, -init-src-dirs"> 1.37 + <!-- Special build area setup. --> 1.38 + <target name="-drop-build-setup" depends="init, -init-src-dirs"> 1.39 <mkdir dir="${build.classes.dir}"/> 1.40 <copy todir="${build.classes.dir}"> 1.41 <fileset dir="${primary.src.dir}" 1.42 @@ -99,7 +126,7 @@ 1.43 1.44 <!-- Source directory selection. --> 1.45 <target name="-init-src-dirs" 1.46 - depends="init, -use-drop"> 1.47 + depends="init, -use-drop,-src-help"> 1.48 <echo message="Using primary.src.dir=${primary.src.dir}"/> 1.49 <pathconvert property="src.list.id" refid="src.dir.id"/> 1.50 <echo message="Using src.dir.id=${src.list.id}"/>