Tabnine Logo
CommandlineJava$SysProperties.mergePropertySets
Code IndexAdd Tabnine to your IDE (free)

How to use
mergePropertySets
method
in
org.apache.tools.ant.types.CommandlineJava$SysProperties

Best Java code snippets using org.apache.tools.ant.types.CommandlineJava$SysProperties.mergePropertySets (Showing top 3 results out of 315)

origin: org.apache.ant/ant

/**
 * Get the size of the sysproperties instance. This merges all
 * property sets, so is not an O(1) operation.
 * @return the size of the sysproperties instance.
 */
public int size() {
  Properties p = mergePropertySets();
  return variables.size() + p.size();
}
origin: org.apache.ant/ant

/**
 * Add all definitions (including property sets) to a list.
 * @param listIt list iterator supporting add method.
 */
public void addDefinitionsToList(ListIterator<String> listIt) {
  String[] props = super.getVariables();
  if (props != null) {
    for (String prop : props) {
      listIt.add("-D" + prop);
    }
  }
  Properties propertySetProperties = mergePropertySets();
  for (String key : propertySetProperties.stringPropertyNames()) {
    listIt.add("-D" + key + "=" + propertySetProperties.getProperty(key));
  }
}
origin: org.apache.ant/ant

/**
 * Cache the system properties and set the system properties to the
 * new values.
 * @throws BuildException if Security prevented this operation.
 */
public void setSystem() throws BuildException {
  try {
    sys = System.getProperties();
    Properties p = new Properties();
    for (String name : sys.stringPropertyNames()) {
      String value = sys.getProperty(name);
      if (value != null) {
        p.put(name, value);
      }
    }
    p.putAll(mergePropertySets());
    for (Environment.Variable v : variables) {
      v.validate();
      p.put(v.getKey(), v.getValue());
    }
    System.setProperties(p);
  } catch (SecurityException e) {
    throw new BuildException("Cannot modify system properties", e);
  }
}
org.apache.tools.ant.typesCommandlineJava$SysPropertiesmergePropertySets

Javadoc

Merge all property sets into a single Properties object.

Popular methods of CommandlineJava$SysProperties

  • getVariables
    Get the properties as an array; this is an override of the superclass, as it evaluates all the prope
  • restoreSystem
    Restore the system properties to the cached value.
  • setSystem
    Cache the system properties and set the system properties to the new values.
  • <init>
  • addVariable
  • addSyspropertyset
    Add a propertyset to the total set.
  • size
    Get the size of the sysproperties instance. This merges all property sets, so is not an O(1) operati
  • addDefinitionsToList
    Add all definitions (including property sets) to a list.
  • addSysproperties
    Add a propertyset to the total set.
  • clone
    Create a deep clone.
  • getVariablesVector
  • getVariablesVector

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now