org.eclipse.jdt.launching/r3_0_changes.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (download) (as text) (annotate)
Thu Mar 11 18:29:46 2004 UTC (5 years, 8 months ago) by darin
Branch: MAIN
CVS Tags: v20040624, v20040623, v20040426, v20080115_r332, v20090519, v20081205-1400, r301_v20040907, v20040604b, v20051017, v20051011, v20051108, v20060731, v20081124, R3_1_1, v20061219, v20040325a, v20070510, v20050425, v20041011, R3_0_2, R3_0_1, v20090731, v20070202, v20061127, v20080201, r3011_v20041005, v20060130, R3_2_1, r302_v20050202, R3_2_2, v20080324-1300, v20080929, v20070426, r322_v20061114, v20061106, v20091023, v20041102, v20080206, v20090824, v20080204, v20040827-pre-console-release, v20050516, v20090112-1500, v20060814, v20041129, v20060206, v20050411, v20090706, v20080128, v20050418, v20071005, v20091015_r352, v20071002, v20060327b, v11-7-2005_preAsychronousViewerMerge, v20041122, v20040617a, v20060123, v20040528, R3_5, v20091026-1150, v20050214, v20060411, v20060412, v20040525, v20090817, v20040913, v20040419, v20090527, v20090504, v20060717, v20080218, v20060710, v20050321a, r321_v20060731, v20080407, v20080114, R3_2, v20050110, r301_v20040727, v20041031, v20090413-1530, v20050615, v20040321, v20040322, v20050131, v20070304, v20071015, v20040610b, v20060327, v20061028, v20060525, R3_4, v20090302-1500, R3_0, R3_1, v20070813, R3_3, v20040517, v20050207, v20040511, v20040510, v20080221_pre_api_tooling, v20050323, v20081117, v20060210a, v20040525a, v20050805, v20081215, v20050609, v20051205, v20040527c, v20040803, v20040527a, v20051209, v20080310, v20040726, v20070316, v20061016, v20081010, v20070709, pre_R3_3, v20060318, v20070808_r331, v20040405, v20091019, R3_3_1_1, v20040505, v20070326, v20090428, v20090429, v20051121, v20051212, v20071002_r332, v20070122, v20040623a, v20070129, v20080303, v20070321, v20090306, v20040524, v20040816, v20060306, v20070409, v20041115, v20070402, v20060227, v20040617, v20060412a, v20080731, v20060116, v20060504c, R3_5_1, v20050502, v20090123-1045, v20061120, v20051107-pre_branch_merge, v20070219, v20050307, v20050213, v20081112-0800, v20040823, v20060605, I20060605-1430, v20050512, v20041212, v20050622, v20090302-2030, v20071120_r332, v20050905, v20081006, v20041018, v20071126, v20040517a, v20060503, v20070724, v20041025, v20040603a, v20060413a, v20040525c, v20051213, v20060510, v20080818, v20050916, v20060517, v20070904, v20050314, v20060109, v20090406, v20090911, v20060612, v20041108, R3_1_2, v20050525, v20070104, v20070102, v20081110-1500, v20070730, v20050404, v20050912, v20070226, v20061218, v20061002, v20070423, v20060209, R3_3_1, R3_3_2, v20070427, v20080729_r341, v20061213, v20061212, v20050321, v20040412, v20070719_r331, v20070910, v20080529-1300, v2005-pre_branch_merge, v20070914, v20050117, v20050509a, v20050228, v20080825, v20050509b, R3_4_2, R3_4_1, v20040519, v20060426, v20051007, v20080225, v20060626, v20070116, v20070502, v20070501, v20050926, v20070212, r323_v20080114, v20040518, v20051128, v20040315, v20061113, v20061208, r3011_v20041010, r302_v20050117, v20061204, v20060918-1600, v20040325, v20070827, v20070820, v20080506-1630, HEAD
Branch point for: R3_3_maintenance, R3_0_maintenance, R3_2_maintenance, R3_4_maintenance, R3_5_maintenance
Changes since 1.3: +11 -0 lines
Bug 37862 - Installed JRE should remember default VM arguments
<html>
<head>
<title>3.0 JDT Launching Change Notes</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<h1>3.0 JDT Launching Change Notes</h1>
<p>This document describes important changes in the 3.0 JDT launching support, relative 
  to the 2.1 release.</p>
<h2>API Changes</h2>
<h3>VMRunnerConfiguration contains environment</h3>
<p>Two methods have been added to the <code>VMRunnerConfiguration</code> type
  to support the setting and retrieving of environment variables.
<p>Implementors of <code>IVMRunner</code> should call <code>VMRunnerConfiguration.getEnvironment()</code> 
  and pass that environment into the executed VM. Clients who use <code>DebugPlugin#exec(String[] 
  cmdLine, File workingDirectory)</code> can do this by calling <code>DebugPlugin#exec(String[] 
  cmdLine, File workingDirectory, String[] envp)</code> instead. Simply passing 
  in the result from <code>getEnvironment()</code> is sufficient.</p>
<h3>VMRunnerConfiguration and Bootstrap Classes</h3>
<p>In prior releases, the <code>VMRunnerConfiguration</code> had one attribute 
  to describe a boot path. The attribute is a collection of <code>Strings</code> 
  to be specified in the -<code>Xbootclasspath</code> argument. Three new attributes 
  have been added to the VM specific attributes map to support VMs that allow 
  for prepending and appending to the boot path. The newly added attributes are 
  defined in <code>IJavaLanuchConfigurationConstants</code>:</p>
<ul>
  <li><code>ATTR_BOOTPAH_PREPEND</code> - an array of strings describing paths 
    in the local file system to be prepended to the boot path (the <code>-Xbootclasspath/p</code> 
    argument)</li>
  <li><code>ATTR_BOOTPATH</code> - an array of strings describing paths in the 
    local file system to be placed on the boot path (the <code>-Xbootclasspath</code> 
    argument)</li>
  <li><code>ATTR_BOOTPATH_APPEND</code> - an array of strings describing paths 
    in the local file system to be appended to the boot path (the <code>-Xbootclasspath/a</code> 
    argument)</li>
</ul>
<p>The old attribute,<code> getBootClassPath()</code> still exists, and contains 
  a complete path equivalent to that of the three new attributes. However, <code>VMRunners</code> 
  that support the new boot path options should take advantage of the new attributes, 
  found in the VM specific attributes map (i.e. <code>VMRunnerConfiguration.getVMSpecificAttributesMap()</code>). 
  The attributes are computed dynamically at launch time based on the classpath 
  attribute associated with a launch configiuration. The boothpath attributes 
  themselves are not stored in launch configurations.</p>
<h3>Default VM Arguments</h3>
<p>To allow a specific set of VM arguments to be used every time a specific VM 
  is launched (without having to specify the arguments on all associated launch 
  configurations), a new &quot;VM arguments&quot; attribute has been added to 
  <code>IVMInstall</code>, along with getter and setter methods. Although clients 
  may implement this interface, the additional API is intended to be non-breaking, 
  since clients who implement the interface should be subclassing <code>AbstractVMInstall</code>, 
  where the new feature is implemented. Existing VM runners need to honor the 
  new attributes when launching a VM. A convenience method (<code>combineVmArgs</code>) 
  has been added to <code>AbstractVMRunner</code> to combine VM arguments specified 
  on a runner configuration and a VM install.</p>
</body>
</html>