JDK-6209095 : Make the demo code more friendly to build
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0,6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-12-15
  • Updated: 2010-05-09
  • Resolved: 2005-02-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
5.0u3Fixed 6 b24Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
Not sure what the layout should be. But we need to be more friendly
to build.

Need more details..

This may spawn multiple teams and may need their approval.
###@###.### 2004-12-15 19:08:28 GMT
###@###.### 2005-1-19 02:00:55 GMT

Comments
SUGGESTED FIX Simpliest possible fix for the jfc demos (not Java2D): ######### File: ./DemoSwing.gmk ######### (cd . && sccs diffs -C -w -s -b DemoSwing.gmk) ------- DemoSwing.gmk ------- *** /tmp/sccs.IVaGw5 Tue Jan 18 17:55:02 2005 --- DemoSwing.gmk Tue Jan 18 17:45:47 2005 *************** *** 121,126 **** --- 121,130 ---- $(DEMO_JARFILE): $(DEMO_class) @$(ECHO) "Main-Class: $(DEMONAME)" > $(TMPDIR)/manifest $(JAR) -cfm $@ $(TMPDIR)/manifest -C $(DEMODST_CLASS) . + if [ -d $(DEMODST_CLASS)/resources ] ; then \ + $(RM) -r $(DEMODST_SRC)/resources; \ + $(CP) -r $(DEMODST_CLASS)/resources $(DEMODST_SRC); \ + fi $(RM) $(TMPDIR)/manifest ifeq ($(DEMONAME),SwingSet2) $(RM) -r $(DEMODST)/resources ###@###.### 2005-1-19 01:56:30 GMT
19-01-2005

EVALUATION Looking into what we can do now. ###@###.### 2005-1-12 22:50:34 GMT Lowest risk and simpliest change is to just copy resources into the src directory for the jfc demos. See suggested fix. Will test this out with netbeans. ###@###.### 2005-1-19 01:56:30 GMT ###@###.### 2005-1-19 02:00:55 GMT I've made the following changes: Java2D demo: - images and fonts directory will be copied into demo/jfc/Java2D/src Swing demos: - In the workspace, all demos with resources (files, images, help files) will find their resources in a "resources" directory or a subdirectory of "resources". Any code that looked for resources elsewhere has been changed to now look in resources. - This resources directory will be copied over into demo/jfc/DEMO_NAME/src so that developers can build from the src directories. - Source code will no longer be copied into the JAR files, except for SwingSet2, which needs it. - Demos that search for resources will use getResource() to find resources in the JAR file. This will allow them to be run anywhere. - Additionally, some files that weren't being used have been pulled. ###@###.### 2005-1-21 20:40:22 GMT
12-01-2005