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="jaxws_src"/> |
55 <drop-import name="jaxws_src"/> |
56 <drop-import name="jaf_src"/> |
56 <drop-import name="jaf_src"/> |
57 <!-- <drop-import name="jaxws_tests"/> --> |
57 <!-- <drop-import name="jaxws_tests"/> --> |
|
58 |
|
59 <!-- Fail and print helpful messages if source does not exist. --> |
|
60 <target name="-src-help"> |
|
61 <fail message="${failed.url.src.message}"> |
|
62 <condition> |
|
63 <and> |
|
64 <not> |
|
65 <and> |
|
66 <available file="${jaxws_src.src.dir}" type="dir"/> |
|
67 <available file="${jaf_src.src.dir}" type="dir"/> |
|
68 </and> |
|
69 </not> |
|
70 <istrue value="${allow.downloads}"/> |
|
71 </and> |
|
72 </condition> |
|
73 </fail> |
|
74 <fail message="${failed.nourl.src.message}"> |
|
75 <condition> |
|
76 <not> |
|
77 <and> |
|
78 <available file="${jaxws_src.src.dir}" type="dir"/> |
|
79 <available file="${jaf_src.src.dir}" type="dir"/> |
|
80 </and> |
|
81 </not> |
|
82 </condition> |
|
83 </fail> |
|
84 </target> |
58 |
85 |
59 <!-- Special build area preparation. --> |
86 <!-- Special build area setup. --> |
60 <target name="-drop-build-prep" depends="init, -init-src-dirs"> |
87 <target name="-drop-build-setup" depends="init, -init-src-dirs"> |
61 <mkdir dir="${build.classes.dir}"/> |
88 <mkdir dir="${build.classes.dir}"/> |
62 <copy todir="${build.classes.dir}"> |
89 <copy todir="${build.classes.dir}"> |
63 <fileset dir="${primary.src.dir}" |
90 <fileset dir="${primary.src.dir}" |
64 includes="**/*.xsd, **/*.default, **/*.properties" |
91 includes="**/*.xsd, **/*.default, **/*.properties" |
65 excludes="**/*.java, **/*.package.html"/> |
92 excludes="**/*.java, **/*.package.html"/> |
97 </path> |
124 </path> |
98 </target> |
125 </target> |
99 |
126 |
100 <!-- Source directory selection. --> |
127 <!-- Source directory selection. --> |
101 <target name="-init-src-dirs" |
128 <target name="-init-src-dirs" |
102 depends="init, -use-drop"> |
129 depends="init, -use-drop,-src-help"> |
103 <echo message="Using primary.src.dir=${primary.src.dir}"/> |
130 <echo message="Using primary.src.dir=${primary.src.dir}"/> |
104 <pathconvert property="src.list.id" refid="src.dir.id"/> |
131 <pathconvert property="src.list.id" refid="src.dir.id"/> |
105 <echo message="Using src.dir.id=${src.list.id}"/> |
132 <echo message="Using src.dir.id=${src.list.id}"/> |
106 </target> |
133 </target> |
107 |
134 |