ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lopez, William" <william.lo...@eds.com>
Subject <depend> help
Date Fri, 22 Aug 2003 21:27:47 GMT
I want to expand the depend class dependency file list but I don't see how
to include the other source directories, currently I have task defined as
so:
     <depend srcdir="${src.base}/BillReview"
             destdir="${bo.build.dir}/BillReview"
             cache="${build.base}/depend/bodependcache"
             closure="yes"/>

I want to expand it to include more projects. I created a path structure and
include that in the scrdir attribute:
   <path id="sourcepath.depend">
     <pathelement location="${src.base}"/>
   </path>

...the classes are at
    <path id="classpath.depend">
     <pathelement location="${bo.build.dir}"/>
     <pathelement location="${ejb.build.dir}/BillReviewEJS"/>
     <pathelement location="${ejb.build.dir}/BillReviewBERefEJS"/>
     <pathelement location="${ejb.build.dir}/BillReviewBillEventEJS"/>
     <pathelement location="${ejb.build.dir}/BillReviewBillServicesEJS"/>
     <pathelement location="${ejb.build.dir}/BillReviewHistoryEJS"/>
     <pathelement location="${ejb.build.dir}/BillReviewLMClaimEJS"/>
     <pathelement location="${ejb.build.dir}/BillReviewClaimEJS"/>
     <pathelement location="${ejb.build.dir}/BillReviewOrganizationEJS"/>
     <pathelement location="${ejb.build.dir}/BillReviewProviderEJS"/>
     <pathelement location="${ejb.build.dir}/BillReviewRefEJS"/>
     <pathelement location="${ejb.build.dir}/BillReviewSecurityEJS"/>
     <pathelement location="${ejb.build.dir}/BillReviewServiceTransferEJS"/>
     <pathelement location="${ejb.build.dir}/BillReviewWorkAssignmentEJS"/>
     <pathelement location="${ejb.build.dir}/BillReviewXMLEJS"/>
     <pathelement location="${web.build.dir}/Servlet"/>
     <pathelement location="${web.build.dir}/ServletXXX"/>
  </path>

...so I altered the depend task to:
 <target name="dependCheck">
     <depend srcdir="${sourcepath.depend}"
             destdir="${classpath.depend}"
             cache="${build.base}/depend/combodependcache"
             closure="yes">
       <include name="**/*.java"/>
       <excludesfile name="${build.base}/depend/depend_excludes"/>
     </depend>
  </target>

I use the "<excludesfile name="${build.base}/depend/depend_excludes"/>" to
exclude the other source directories I don't need but the depend doesn't
delete any files [when it is expected to]:
dependCheck:
   [depend] Deleted 0 out of date files in 0 seconds

Any ideas? Thanks.
-Will

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message