launchingsupport

16:38:41.832 INFO  jd.cli.Main - Decompiling launchingsupport.jar
package org.eclipse.jdt.internal.launching.support;

import java.io.PrintStream;

public class LegacySystemProperties
{
  public static void main(String[] args)
  {
    StringBuffer buffer = new StringBuffer();
    buffer.append("<systemProperties>\n");
    for (int i = 0; i < args.length; i++)
    {
      String name = args[i];
      String value = System.getProperty(name);
      if (value != null)
      {
        buffer.append("<property ");
        buffer.append("\n\tname= \"");
        buffer.append(name);
        buffer.append("\"\n\tvalue= \"");
        buffer.append(value);
        buffer.append("\"/>\n");
      }
    }
    buffer.append("</systemProperties>");
    System.out.print(buffer.toString());
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jdt.internal.launching.support.LegacySystemProperties
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jdt.internal.launching.support;

import java.io.PrintStream;
import java.util.Enumeration;
import java.util.Properties;

public class LibraryDetector
{
  public static void main(String[] args)
  {
    if ("j9".equalsIgnoreCase(System.getProperty("java.vm.name")))
    {
      String configuration = System.getProperty("com.ibm.oti.configuration");
      if ("found10".equals(configuration)) {
        System.out.print("1.4");
      } else if ("found11".equals(configuration)) {
        System.out.print("1.4");
      } else {
        System.out.print(System.getProperty("java.version"));
      }
      System.out.print("|");
      System.out.print(System.getProperty("com.ibm.oti.system.class.path"));
    }
    else
    {
      System.out.print(System.getProperty("java.version"));
      System.out.print("|");
      
      Enumeration keys = System.getProperties().keys();
      boolean found = false;
      while (keys.hasMoreElements())
      {
        String key = (String)keys.nextElement();
        if (key.endsWith(".boot.class.path"))
        {
          found = true;
          System.out.print(System.getProperty(key));
          break;
        }
      }
      if (!found) {
        System.out.print(System.getProperty("sun.boot.class.path"));
      }
    }
    System.out.print("|");
    System.out.print(System.getProperty("java.ext.dirs"));
    System.out.print("|");
    System.out.print(System.getProperty("java.endorsed.dirs"));
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jdt.internal.launching.support.LibraryDetector
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.jdt.internal.launching.support;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.Document;
import org.w3c.dom.Element;

public class SystemProperties
{
  public static void main(String[] args)
  {
    try
    {
      Document doc = newDocument();
      Element properties = doc.createElement("systemProperties");
      doc.appendChild(properties);
      for (int i = 0; i < args.length; i++)
      {
        String name = args[i];
        String value = System.getProperty(name);
        if (value != null)
        {
          Element property = doc.createElement("property");
          property.setAttribute("name", name);
          property.setAttribute("value", value);
          properties.appendChild(property);
        }
      }
      String text = serializeDocument(doc);
      System.out.print(text);
    }
    catch (ParserConfigurationException localParserConfigurationException) {}catch (IOException localIOException) {}catch (TransformerException localTransformerException) {}
  }
  
  private static Document newDocument()
    throws ParserConfigurationException
  {
    DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder docBuilder = dfactory.newDocumentBuilder();
    Document doc = docBuilder.newDocument();
    return doc;
  }
  
  private static String serializeDocument(Document doc)
    throws IOException, TransformerException
  {
    ByteArrayOutputStream s = new ByteArrayOutputStream();
    
    TransformerFactory factory = TransformerFactory.newInstance();
    Transformer transformer = factory.newTransformer();
    transformer.setOutputProperty("method", "xml");
    transformer.setOutputProperty("indent", "yes");
    
    DOMSource source = new DOMSource(doc);
    StreamResult outputTarget = new StreamResult(s);
    transformer.transform(source, outputTarget);
    
    return s.toString("UTF8");
  }
}

/* Location:
 * Qualified Name:     org.eclipse.jdt.internal.launching.support.SystemProperties
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
1

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd