View Single Post
  #2 (permalink)  
Old 03-13-2007
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 962
Hi Blair,

The Slice2Java ant task uses a dependency file to determine whether a Slice file needs to be recompiled. By default this file is named .depend, or ${outputdir}/.depend if you define the outputdir attribute. In your ant project, this file would be called ${src.dir}/.depend.

As you've seen, removing the generated files does not prompt the Slice2Java task to execute the translator. However, if you remove the dependency file as part of your clean target, the Slice2Java task will recompile all of your Slice files.

Hope that helps,
- Mark
Reply With Quote