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: 6649672
Votes 0
Synopsis Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter
Category java:build
Reported Against
Release Fixed 7(b25)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs
Submit Date 11-JAN-2008
Description
The top level Makefile needs a few adjustments (might need changes to jdk/make/common/Defs*gmk files too)

Two basic issues, left over empty directories for debug builds, and left over short paths on windows.

1. Change use of _OUTPUTDIR to OUTPUTDIR in Makefile for debug builds:
  COMMON_DEBUG_FLAGS= \
        DEBUG_NAME=$(DEBUG_NAME) \
        ALT_OUTPUTDIR=$(_OUTPUTDIR)-$(DEBUG_NAME) \
        NO_DOCS=true
 should be:
  COMMON_DEBUG_FLAGS= \
        DEBUG_NAME=$(DEBUG_NAME) \
        ALT_OUTPUTDIR=$(OUTPUTDIR)-$(DEBUG_NAME) \
        NO_DOCS=true

2. Delete some mkdir lines in Makefile:
  setup:
        $(MKDIR) -p $(OUTPUTDIR)/j2sdk-image
        $(MKDIR) -p $(ABS_OUTPUTDIR)/j2sdk-image
        $(MKDIR) -p $(OUTPUTDIR)-fastdebug/j2sdk-image
        $(MKDIR) -p $(ABS_OUTPUTDIR)-fastdebug/j2sdk-image
 should be just
  setup:
        $(MKDIR) -p $(OUTPUTDIR)/j2sdk-image
        $(MKDIR) -p $(ABS_OUTPUTDIR)/j2sdk-image

3. When  defining _OUTPUTDIR (the default) on windows in the jdk/make/common/Defs* file, get the short path for TOPDIR but not the short path for outputdir which is unreliable.

4. When ALT_OUTPUTDIR is passed in, do NOT get the short path for it, check it for spaces giving an error if a path with spaces is provided as the destination output directory. This directory might not exist so might not have a short path.
Posted Date : 2008-01-11 18:28:58.0
Work Around
N/A
Evaluation
See description.
Posted Date : 2008-03-04 22:50:45.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang