ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Ellsworth <sc...@alodar.com>
Subject depend 1.5 not handling nonpublic classes?
Date Fri, 17 May 2002 17:41:11 GMT
Hi, all.

I have some code that compiled without warnings in 1.4.1.  After moving 
to 1.5, I am getting warnings about "has not been deleted because its 
source file could not be found" for certain package protected classes 
defined in the same file with the public class that uses them.

To wit:

    [depend] The class 
com.isisph.bioinfo.general.POV.StartingMaterialResultController in file 
/Users/work/Documents/coding/isis/source/genetrove/application/pov_genetrove/
ant_build/classes/com/isisph/bioinfo/general/POV/StartingMaterialResultController.
class is out of date due to 
com.isisph.bioinfo.general.POV.StartingMaterialResultController but has 
not been deleted because its source file could not be determined
    [depend] The class 
com.isisph.bioinfo.general.POV.StartingMaterialResultSet in file 
/Users/work/Documents/coding/isis/source/genetrove/application/pov_genetrove/
ant_build/classes/com/isisph/bioinfo/general/POV/StartingMaterialResultSet.
class is out of date due to 
com.isisph.bioinfo.general.POV.StartingMaterialPlug but has not been 
deleted because its source file could not be determined
    [depend] The class 
com.isisph.bioinfo.general.POV.StartingMaterialRSetController in file 
/Users/work/Documents/coding/isis/source/genetrove/application/pov_genetrove/
ant_build/classes/com/isisph/bioinfo/general/POV/StartingMaterialRSetController.
class is out of date due to 
com.isisph.bioinfo.general.POV.StartingMaterialPlug but has not been 
deleted because its source file could not be determined

The file StartingMaterialPlug.java contains the public class Starting 
MaterialPlug, and the package protected classes

class StartingMaterialResultController  {
class StartingMaterialRSetController {
class StartingMaterialResultSet  {

So, while it is true that it may be bad design to have all of these in 
just one file, it is still legal Java.

Any suggestions for what to tell <depend>?

   <target name="depend">
     <depend
       srcdir="${compile.source}"
       destdir="${compile.classes}"
       cache="${compile.depcache}"
       closure="yes"
       excludes="${compile.excludedFiles}"
       includes="${compile.includedFiles}">
       <classpath>
         <!-- filelist dir="${depend.library.dir}" 
files="${depend.library.classpath}"/ -->
         <!-- filelist dir="${depend.product.dir}" 
files="${depend.product.classpath}"/ -->
         <fileset dir="${depend.product.dir}" 
includes="${depend.product.classpath}"/>
       </classpath>
     </depend>
   </target>

Scott


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


Mime
View raw message