Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4648400
Votes 0
Synopsis When only a resource file is changed, gnumake does not do a new build
Category customdoclets:mifdoclet
Reported Against 1.2beta1
Release Fixed 1.2beta2
State 10-Fix Delivered, bug
Priority: 2-High
Related Bugs
Submit Date 06-MAR-2002
Description
When template.mif is changed, running "gnumake mifdoclet" says there are no changes.
Work Around
N/A
Evaluation
This required two changes:
- Put the resource filenames in ${MIFDOCLET_JAR} dependency list.
- Change the compile target to filter in only the *.java files

mifdoclet: ${MIFDOCLET_JAR} ${SRC}/com/sun/tools/doclets/mif/resources/mif.properties
${MIFDOCLET_JAR}: ${JSRC} ${RESOURCES}
      @echo Compiling...  ^^^^^^^^^^^^
      mkdir -p classes

This is the filter code:

        ${JBIN_DIR}/javac                -d classes                -sourcepath ${SRC_DIR}                -classpath ${SRC_DIR}/standarddoclet.jar:${JAVA_HOME}/lib/tools.jar                $(filter %.java, $?)

Also reduced the number of reource files copied into
the jar file by copying over only the exact resource files
we need.  This will also help make the jar size not vary
by hundreds of kilobytes just because a backup of an image
or .mif file was included.

  xxxxx@xxxxx   2002-03-07
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang