jaxws/build-defs.xml
changeset 4137 a06d987928b2
parent 3887 2d600411d2b7
child 5516 d5307370d017
equal deleted inserted replaced
4079:946518568340 4137:a06d987928b2
    79                      includes="**/*.java"
    79                      includes="**/*.java"
    80                      excludes="**/*.package.html"/>
    80                      excludes="**/*.package.html"/>
    81         </copy>
    81         </copy>
    82     </target>
    82     </target>
    83 
    83 
    84     <!-- Try to get drop sources, set property use.orig.src.dir if no drops. -->
    84     <!-- Try to get drop sources. -->
    85     <target name="-set-props"
    85     <target name="-set-props"
    86 	    depends="init,
    86 	    depends="init,
    87                      jaxws_src-update,
    87                      jaxws_src-update,
    88                      jaf_src-update">
    88                      jaf_src-update">
    89         <condition property="use.orig.src.dir">
       
    90             <and>
       
    91                 <available file="${orig.src.dir}" type="dir"/>
       
    92                 <not>
       
    93                     <and>
       
    94                         <available file="${jaxws_src.src.dir}" type="dir"/>
       
    95                         <available file="${jaf_src.src.dir}"   type="dir"/>
       
    96                     </and>
       
    97                 </not>
       
    98             </and>
       
    99         </condition>
       
   100     </target>
    89     </target>
   101 
    90 
   102     <!-- Set up source to use orig.src.dir, if use.orig.src.dir defined. -->
    91     <!-- Set up source to use drop.dir. -->
   103     <target name="-use-orig" depends="-set-props" if="use.orig.src.dir">
    92     <target name="-use-drop" depends="-set-props">
   104         <property name="primary.src.dir" value="${orig.src.dir}"/>
       
   105         <path id="src.dir.id">
       
   106             <pathelement path="${primary.src.dir}"/>
       
   107         </path>
       
   108     </target>
       
   109 
       
   110     <!-- Set up source to use drop.dir, if use.orig.src.dir not defined. -->
       
   111     <target name="-use-drop" depends="-set-props" unless="use.orig.src.dir">
       
   112         <property name="primary.src.dir" value="${jaxws_src.src.dir}"/>
    93         <property name="primary.src.dir" value="${jaxws_src.src.dir}"/>
   113         <path id="src.dir.id">
    94         <path id="src.dir.id">
   114             <pathelement path="${primary.src.dir}"/>
    95             <pathelement path="${primary.src.dir}"/>
   115             <pathelement path="${jaf_src.src.dir}"/>
    96             <pathelement path="${jaf_src.src.dir}"/>
   116         </path>
    97         </path>
   117     </target>
    98     </target>
   118 
    99 
   119     <!-- Source directory selection. -->
   100     <!-- Source directory selection. -->
   120     <target name="-init-src-dirs"
   101     <target name="-init-src-dirs"
   121 	    depends="init, -use-orig, -use-drop">
   102 	    depends="init, -use-drop">
   122         <echo message="Using primary.src.dir=${primary.src.dir}"/>
   103         <echo message="Using primary.src.dir=${primary.src.dir}"/>
   123         <pathconvert property="src.list.id" refid="src.dir.id"/>
   104         <pathconvert property="src.list.id" refid="src.dir.id"/>
   124         <echo message="Using src.dir.id=${src.list.id}"/>
   105         <echo message="Using src.dir.id=${src.list.id}"/>
   125     </target>
   106     </target>
   126 
   107 
   127     <!-- Create orig src.zip. -->
       
   128     <target name="-orig-src-zip" depends="init, -set-props" if="use.orig.src.dir">
       
   129         <zip file="${dist.src.zip}" basedir="${primary.src.dir}"/>
       
   130     </target>
       
   131 
       
   132     <!-- Create drop src.zip. -->
   108     <!-- Create drop src.zip. -->
   133     <target name="-drop-src-zip" depends="init, -set-props" unless="use.orig.src.dir">
   109     <target name="-drop-src-zip" depends="init, -set-props">
   134         <zip file="${dist.src.zip}" basedir="${primary.src.dir}"/>
   110         <zip file="${dist.src.zip}" basedir="${primary.src.dir}"/>
   135         <zip file="${dist.src.zip}" basedir="${jaf_src.src.dir}" update="true"/>
   111         <zip file="${dist.src.zip}" basedir="${jaf_src.src.dir}" update="true"/>
   136     </target>
   112     </target>
   137 
   113 
   138     <!-- Create src.zip. -->
   114     <!-- Create src.zip. -->
   139     <target name="-dist-src-zip" depends="init, -orig-src-zip, -drop-src-zip">
   115     <target name="-dist-src-zip" depends="init, -drop-src-zip">
   140     </target>
   116     </target>
   141     
   117     
   142 </project>
   118 </project>