congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PropertySet.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.tools.ant.types.PropertySet
constructor

Best Java code snippets using org.apache.tools.ant.types.PropertySet.<init> (Showing top 5 results out of 315)

origin: org.apache.ant/ant

/**
 * If the prefix is set, then only properties which start with this
 * prefix string will be recorded. If regex is not set and  if this
 * is never set, or it is set to an empty string or <tt>null</tt>,
 * then all properties will be recorded.
 *
 * <p>For example, if the attribute is set as:</p>
 * <pre>&lt;echoproperties  prefix="ant." /&gt;</pre>
 * then the property "ant.home" will be recorded, but "ant-example"
 * will not.
 *
 * @param  prefix  The new prefix value
 */
public void setPrefix(String prefix) {
  if (prefix != null && !prefix.isEmpty()) {
    this.prefix = prefix;
    PropertySet ps = new PropertySet();
    ps.setProject(getProject());
    ps.appendPrefix(prefix);
    addPropertyset(ps);
  }
}
origin: org.apache.ant/ant

/**
 * If the regex is set, then only properties whose names match it
 * will be recorded.  If prefix is not set and if this is never set,
 * or it is set to an empty string or <tt>null</tt>, then all
 * properties will be recorded.
 *
 * <p>For example, if the attribute is set as:</p>
 * <pre>&lt;echoproperties  prefix=".*ant.*" /&gt;</pre>
 * then the properties "ant.home" and "user.variant" will be recorded,
 * but "ant-example" will not.
 *
 * @param  regex  The new regex value
 *
 * @since Ant 1.7
 */
public void setRegex(String regex) {
  if (regex != null && !regex.isEmpty()) {
    this.regex = regex;
    PropertySet ps = new PropertySet();
    ps.setProject(getProject());
    ps.appendRegex(regex);
    addPropertyset(ps);
  }
}
origin: org.apache.ant/ant

PropertySet ps = new PropertySet();
PropertySet.BuiltinPropertySetName sys = new PropertySet.BuiltinPropertySetName();
sys.setValue("system");
origin: org.mybatis.generator/mybatis-generator-core

public PropertySet createPropertyset() {
  if (propertyset == null) {
    propertyset = new PropertySet();
  }
  return propertyset;
}
origin: cxjava/mybatis-generator-core

public PropertySet createPropertyset() {
  if (propertyset == null) {
    propertyset = new PropertySet();
  }
  return propertyset;
}
org.apache.tools.ant.typesPropertySet<init>

Popular methods of PropertySet

  • getProperties
    This is the operation to get the existing or recalculated properties.
  • 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

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Reference (javax.naming)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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