Tabnine Logo
PropertySet.getProperties
Code IndexAdd Tabnine to your IDE (free)

How to use
getProperties
method
in
org.apache.tools.ant.types.PropertySet

Best Java code snippets using org.apache.tools.ant.types.PropertySet.getProperties (Showing top 16 results out of 315)

origin: org.apache.ant/ant

/**
 * Merge all property sets into a single Properties object.
 * @return the merged object.
 */
private Properties mergePropertySets() {
  Properties p = new Properties();
  for (PropertySet ps : propertySets) {
    p.putAll(ps.getProperties());
  }
  return p;
}
origin: org.apache.ant/ant

/**
 * Adds the properties provided by the specified PropertySet to this filterset.
 *
 * @param propertySet the propertyset to be added to this propertyset
 */
public synchronized void addConfiguredPropertySet(PropertySet propertySet) {
  if (isReference()) {
    throw noChildrenAllowed();
  }
  Properties p = propertySet.getProperties();
  Set<Map.Entry<Object, Object>> entries = p.entrySet();
  for (Map.Entry<Object, Object> entry : entries) {
    addFilter(new Filter(String.valueOf(entry.getKey()),
               String.valueOf(entry.getValue())));
  }
}
origin: org.apache.ant/ant

/**
 * Fulfill the ResourceCollection contract.
 * @return the size of this ResourceCollection.
 */
@Override
public int size() {
  return isReference() ? getRef().size() : getProperties().size();
}
origin: org.testng/testng

/**
 * Add the referenced property set as system properties for the TestNG JVM.
 *
 * @param sysPropertySet A PropertySet of system properties.
 */
public void addConfiguredPropertySet(PropertySet sysPropertySet) {
 Properties properties = sysPropertySet.getProperties();
 log(properties.keySet().size() + " properties found in nested propertyset", Project.MSG_VERBOSE);
 for (Object propKeyObj : properties.keySet()) {
  String propKey = (String) propKeyObj;
  Environment.Variable sysProp = new Environment.Variable();
  sysProp.setKey(propKey);
  if (properties.get(propKey) instanceof String) {
   String propVal = (String) properties.get(propKey);
   sysProp.setValue(propVal);
   getJavaCommand().addSysproperty(sysProp);
   log("Added system property " + propKey + " with value " + propVal, Project.MSG_VERBOSE);
  } else {
   log("Ignoring non-String property " + propKey, Project.MSG_WARN);
  }
 }
}
origin: cbeust/testng

/**
 * Add the referenced property set as system properties for the TestNG JVM.
 *
 * @param sysPropertySet A PropertySet of system properties.
 */
public void addConfiguredPropertySet(PropertySet sysPropertySet) {
 Properties properties = sysPropertySet.getProperties();
 log(
   properties.keySet().size() + " properties found in nested propertyset",
   Project.MSG_VERBOSE);
 for (Object propKeyObj : properties.keySet()) {
  String propKey = (String) propKeyObj;
  Environment.Variable sysProp = new Environment.Variable();
  sysProp.setKey(propKey);
  if (properties.get(propKey) instanceof String) {
   String propVal = (String) properties.get(propKey);
   sysProp.setValue(propVal);
   getJavaCommand().addSysproperty(sysProp);
   log("Added system property " + propKey + " with value " + propVal, Project.MSG_VERBOSE);
  } else {
   log("Ignoring non-String property " + propKey, Project.MSG_WARN);
  }
 }
}
origin: org.apache.ant/ant

  getProperty = PropertyHelper.getPropertyHelper(project);
} else {
  getProperty = propertySet.getProperties()::getProperty;
origin: org.apache.ant/ant

addAlmostAll(ps.getProperties(), PropertyType.PLAIN);
origin: org.hibernate/hibernate-tools

public void addConfiguredPropertySet(PropertySet ps) {
  properties.putAll(ps.getProperties());
}

origin: hibernate/hibernate-tools

public void addConfiguredPropertySet(PropertySet ps) {
  properties.putAll(ps.getProperties());
}

origin: org.hibernate/hibernate-tools

public void addConfiguredPropertySet(PropertySet ps) {
  properties.putAll(ps.getProperties());
}

origin: hibernate/hibernate-tools

public void addConfiguredPropertySet(PropertySet ps) {
  properties.putAll(ps.getProperties());
}

origin: randomizedtesting/randomizedtesting

 @Override
 public Properties getProperties() {
  Properties properties = super.getProperties();
  Properties clone = new Properties();
  for (String s : properties.stringPropertyNames()) {
   String value = (String) properties.get(s);
   if (ignoreEmptyValue && Strings.isNullOrEmpty(value)) {
    continue;
   } else {
    clone.setProperty(s, value);
   }
  }
  return clone;
 }
}
origin: com.carrotsearch.randomizedtesting/junit4-ant

 @Override
 public Properties getProperties() {
  Properties properties = super.getProperties();
  Properties clone = new Properties();
  for (String s : properties.stringPropertyNames()) {
   String value = (String) properties.get(s);
   if (ignoreEmptyValue && Strings.isNullOrEmpty(value)) {
    continue;
   } else {
    clone.setProperty(s, value);
   }
  }
  return clone;
 }
}
origin: cxjava/mybatis-generator-core

Properties p = propertyset == null ? null : propertyset.getProperties();
origin: org.mybatis.generator/mybatis-generator-core

.getProperties();
origin: Ant-Grand/Grand

/**
 * Create and initialize a GraphProducer according to the
 * task parameters.
 *
 * @return an initialized GraphProducer.
 */
private GraphProducer initAntProject() {
  Project antProject;
  if (buildFile == null) {
    // Working with current project
    log("Using current project");
    antProject = getProject();
  } else {
    // Open a new project.
    log("Loading project " + buildFile);
    antProject = loadNewProject();
  }
  for (PropertySet ps : propertySets) {
    addAlmostAll(antProject, ps.getProperties());
  }
  if (properties.size() > 0) {
    for (Property prop : properties) {
      prop.setProject(antProject);
      prop.setTaskName("property");
      prop.execute();
    }
  }
  return new AntProject(antProject);
}
org.apache.tools.ant.typesPropertySetgetProperties

Javadoc

This is the operation to get the existing or recalculated properties.

Popular methods of PropertySet

  • <init>
  • addPropertyNames
  • addPropertyref
    Add a property reference (nested element) to the references to be used.
  • appendBuiltin
    Allow builtin (all, system or commandline) properties in the set.
  • appendPrefix
    Allow properties whose names start with a prefix in the set.
  • appendRegex
    Allow properties whose names match a regex in the set.
  • assertNotReference
    Ensures this data type is not a reference.Calling this method as the first line of every bean method
  • createMapper
    Create a mapper to map the property names.
  • dieOnCircularReference
  • getAllSystemProperties
    Convert the system properties to a Map. Use stringPropertyNames to get the list of properties (inclu
  • getCheckedRef
  • getDynamic
    Get the dynamic attribute.
  • getCheckedRef,
  • getDynamic,
  • getEffectiveProperties,
  • getMapper,
  • getProject,
  • getPropertyMap,
  • getPropertyNames,
  • getRef,
  • isChecked

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JCheckBox (javax.swing)
  • Option (scala)
  • Top 12 Jupyter Notebook extensions
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