Issue Details (XML | Word | Printable)

Key: HARMONY-2180
Type: Sub-task Sub-task
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Geir Magnusson Jr
Reporter: Ilya Neverov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Harmony
HARMONY-2179

to prepare scripts and patches for moving classlib/tools to "jdktools"

Created: 13/Nov/06 08:28 PM   Updated: 07/Jan/07 11:04 PM
Return to search
Component/s: JDK
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works 001_build_jdwp_on_windows.patch 2006-12-08 04:02 PM Ivan Popov 7 kB
Text File Licensed for inclusion in ASF works 002_build_other_modules_on_windows.patch 2006-12-08 04:03 PM Ivan Popov 2 kB
Text File Licensed for inclusion in ASF works 003_remove_copying_msvcr71_dll.patch 2006-12-08 04:04 PM Ivan Popov 0.5 kB
Text File Licensed for inclusion in ASF works 004.run-test.patch 2006-12-12 07:57 PM Ilya Neverov 19 kB
Text File Licensed for inclusion in ASF works deploy_new_jni_jvmti_headers_from_classlib_luni_module.patch 2006-12-15 05:51 PM Ivan Popov 1.0 kB
Zip Archive Licensed for inclusion in ASF works mv-2-jdktools.zip 2006-11-13 08:51 PM Ilya Neverov 10 kB
Issue Links:
Blocker
 

Estimated Complexity: Novice
Resolution Date: 07/Jan/07 11:04 PM


 Description  « Hide
Scripts with svn actions for moving the sources should be provided to automate the jdktools/ initial populating with sources from classlib.
Patches for existing tools build files are needed to create build system for jdktools/

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Ilya Neverov added a comment - 13/Nov/06 08:51 PM
The attachment is just a very early draft of required scrips and build files. It can serve as a base for reviewing the proposed directory and build structure for the jdktools component.

Only jdk/lib/tools.jar and jdk/jre/lib/jretools/jar are built in this version. Test and Doc targets should be added/corrected to correspond to the jdktools/ dir structure.

The scripts were checked on Windows 2003 only with cygwin/bash and ant 1.2.3.
harmony-hdk-r468731 was used as a base for that build checks; joint building classlib-and-jdktools was not checked yet.

Run
    bash mv-2-jdktools.sh
to checkout and rearrange sources; then run
    ant -f trunk\working_jdktools\build.xml -Dhy.hdk=${path-to-HDK}
to build jdk/lib/tools.jar and jdk/jre/lib/jretools/jar .

Gregory Shimansky added a comment - 27/Nov/06 08:43 PM
I think Geir is already working on this.

Ivan Popov added a comment - 08/Dec/06 04:00 PM
Tools and launcher sources were moved from classlib to jdktools component, and jpda module was added there. Now jdktools can be built on Linux, but cannot be built on Windows, mostly because of lack of makefiles for JPDA module. I've prepared three patches to resolve this problem.

Ivan Popov added a comment - 08/Dec/06 04:02 PM
Patch '001_build_jdwp_on_windows.patch' provides missed makefiles and *.def files for JPDA module and adds workaround for macros _WINSOCKAPI_ used in JDWP transport.

Ivan Popov added a comment - 08/Dec/06 04:03 PM
Patch '002_build_other_modules_on_windows.patch' fixes paths in makefiles for other modules.

Ivan Popov added a comment - 08/Dec/06 04:04 PM
Patch '003_remove_copying_msvcr71_dll.patch' removes copying msvcr71.dll to ${hy.jdk}/jre/bin because it should be already there.

Ilya Neverov added a comment - 12/Dec/06 07:57 PM
The attached 004.run-test.patch improves build files in jdktools/ to allow running the 'test' tagret of ant build.

I checked this patch on Windows 2003 with "-Dhy.hdk=../harmony-hdk-r468731" and manually created '..\working_vm\build\deploy\jdk\include' where jvmti*.h and jni*.h files were copied to from drlvm/ sources.
All tools are built and tests run. There are issues with jpda tests - some tests are failed due to timeout; will investigate tomorrow.

Checking the patch on Linux is yet in progress - I failed to build jdktools binaries. Again better i proceed with that tomorrow.

Ivan Popov added a comment - 15/Dec/06 05:51 PM
This patch if for deploying new jni/jvmti headers to 'working_classlib/deploy/jdk/include' while building classlib. Current jni/jvmti headers in classlib/luni module should be replaced by DRLVM ones first.

Geir Magnusson Jr added a comment - 07/Jan/07 11:04 PM
I believe all of these issues are taken care of, so closing. If not, please open a new JIRA