congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Path.isEmpty
Code IndexAdd Tabnine to your IDE (free)

How to use
isEmpty
method
in
org.apache.tools.ant.types.Path

Best Java code snippets using org.apache.tools.ant.types.Path.isEmpty (Showing top 12 results out of 315)

origin: org.apache.ant/ant

  private boolean haveEntries(Path p) {
    return !(p == null || p.isEmpty());
  }
}
origin: org.apache.ant/ant

/**
 * Checks if a path exists and is non empty.
 * @param path to be checked
 * @return true if the path is non <code>null</code> and non empty.
 * @since 1.9.7
 */
private static boolean hasPath(final Path path) {
  return path != null && !path.isEmpty();
}
origin: org.apache.ant/ant

private void checkPackages(final List<String> packagesToDoc, final Path sourceDirs) {
  if (!packagesToDoc.isEmpty() && sourceDirs.isEmpty()) {
    throw new BuildException(
      "sourcePath attribute must be set when specifying package names.");
  }
}
origin: org.apache.ant/ant

private void doSourcePath(final Commandline toExecute, final Path sourceDirs) {
  if (!sourceDirs.isEmpty()) {
    toExecute.createArgument().setValue("-sourcepath");
    toExecute.createArgument().setPath(sourceDirs);
  }
}
origin: org.apache.ant/ant

/**
 * Execute the task.
 * @throws BuildException if errors occur.
 */
@Override
public void execute() throws BuildException {
  if (sources == null) {
   throw new BuildException(
     "At least one set of source resources must be specified");
  }
  if (targets == null) {
   throw new BuildException(
     "At least one set of target files must be specified");
  }
  //no sources = nothing to compare; no targets = nothing to delete:
  if (!sources.isEmpty() && !targets.isEmpty() && !uptodate(sources, targets)) {
    log("Deleting all target files.", Project.MSG_VERBOSE);
    if (verbose) {
      for (String t : targets.list()) {
        log("Deleting " + t);
      }
    }
    Delete delete = new Delete();
    delete.bindToOwner(this);
    delete.add(targets);
    delete.perform();
  }
}
origin: org.apache.ant/ant

final Path tagletPath = tagletInfo.getPath()
  .concatSystemClasspath("ignore");
if (!tagletPath.isEmpty()) {
  toExecute.createArgument()
    .setValue("-tagletpath");
origin: org.apache.ant/ant

if (!p.isEmpty()) {
  classpath.append(p);
origin: org.apache.ant/ant

if (!sourcepath.isEmpty()) {
  cmd.createArgument().setValue("-sourcepath");
  cmd.createArgument().setPath(sourcepath);
if (bootclasspath == null || bootclasspath.isEmpty()) {
if (extdirs != null && !extdirs.isEmpty()) {
  cmd.createArgument().setValue("-extdirs");
  cmd.createArgument().setPath(extdirs);
if (!boot.isEmpty()) {
  cmd.createArgument().setValue("-bootclasspath");
  cmd.createArgument().setPath(boot);
origin: org.apache.ant/ant

if (!msp.isEmpty()) {
  cmd.createArgument().setValue("--module-source-path");
  cmd.createArgument().setPath(msp);
if (!mp.isEmpty()) {
  cmd.createArgument().setValue("--module-path");
  cmd.createArgument().setPath(mp);
if (!ump.isEmpty()) {
  cmd.createArgument().setValue("--upgrade-module-path");
  cmd.createArgument().setPath(ump);
origin: org.apache.ant/ant

if (!p.isEmpty()) {
  cp.append(p);
origin: org.apache.ant/ant

  if (!bp.isEmpty()) {
    cmd.createArgument().setValue("-bootclasspath");
    cmd.createArgument().setPath(bp);
if (extdirs != null && !extdirs.isEmpty()) {
  cmd.createArgument().setValue("-extdirs");
  cmd.createArgument().setPath(extdirs);
origin: org.apache.ant/ant

if (!p.isEmpty()) {
  classpath.append(p);
org.apache.tools.ant.typesPathisEmpty

Popular methods of Path

  • <init>
    Invoked by IntrospectionHelper for setXXX(Path p) attribute setters.
  • list
    Returns all path elements defined by this and nested path objects.
  • append
    Append the contents of the other Path instance to this.
  • createPath
    Creates a nested element.
  • setRefid
    Makes this instance in effect a reference to another Path instance.You must not set another attribut
  • toString
    Returns a textual representation of the path, which can be used as CLASSPATH or PATH environment var
  • add
    Add a nested ResourceCollection.
  • setPath
    Parses a path definition and creates single PathElements.
  • setLocation
    Adds a element definition to the path.
  • size
    Fulfill the ResourceCollection contract.
  • createPathElement
    Creates the nested element.
  • concatSystemClasspath
    Concatenates the system class path in the order specified by the ${build.sysclasspath} property - us
  • createPathElement,
  • concatSystemClasspath,
  • addFileset,
  • addExisting,
  • addJavaRuntime,
  • iterator,
  • setProject,
  • addFilelist,
  • clone,
  • addDirset

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top PhpStorm 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