Package org.apache.tools.ant.types

Examples of org.apache.tools.ant.types.Path


    createExtdirs().setRefid(ref);
  }

  public Path createExtdirs() {
    if (extdirs == null) {
      extdirs = new Path(project);
    }
    return extdirs.createPath();
  }
View Full Code Here


    aspectpath = incPath(aspectpath, path);
  }

  public Path createAspectpath() {
    if (aspectpath == null) {
      aspectpath = new Path(project);
    }
    return aspectpath.createPath();
  }
View Full Code Here

    return createSrcdir();
  }

  public Path createSrcdir() {
    if (srcdir == null) {
      srcdir = new Path(project);
    }
    return srcdir.createPath();
  }
View Full Code Here

    argfiles = incPath(argfiles, path);
  }

  public Path createArgfiles() {
    if (argfiles == null) {
      argfiles = new Path(project);
    }
    return argfiles.createPath();
  }
View Full Code Here

    inxmlfiles = incPath(inxmlfiles, path);
  }

  public Path createInxml() {
    if (inxmlfiles == null) {
      inxmlfiles = new Path(project);
    }
    return inxmlfiles.createPath();
  }
View Full Code Here

      if (null != inpath) {
        throw new BuildException("weaveDir incompatible with inpath now");
      }

      File injar = zipDirectory(xweaveDir);
      setInjars(new Path(getProject(), injar.getAbsolutePath()));
      setDestdir(xweaveDir);
    }
  }
View Full Code Here

   * @throws BuildException if ajc aborts (negative value) or if failonerror and there were compile errors.
   */
  protected void executeInOtherVM(String[] args) {
    javaCmd.setClassname(org.aspectj.tools.ajc.Main.class.getName());

    final Path vmClasspath = javaCmd.createClasspath(getProject());
    {
      File aspectjtools = null;
      int vmClasspathSize = vmClasspath.size();
      if ((null != forkclasspath) && (0 != forkclasspath.size())) {
        vmClasspath.addExisting(forkclasspath);
      } else {
        aspectjtools = findAspectjtoolsJar();
        if (null != aspectjtools) {
          vmClasspath.createPathElement().setLocation(aspectjtools);
        }
      }
      int newVmClasspathSize = vmClasspath.size();
      if (vmClasspathSize == newVmClasspathSize) {
        String m = "unable to find aspectjtools to fork - ";
        if (null != aspectjtools) {
          m += "tried " + aspectjtools.toString();
        } else if (null != forkclasspath) {
View Full Code Here

      } else if ("-1.4".equals(flag)) {
        setCompliance(flag);
      } else if ("-1.5".equals(flag)) {
        setCompliance("1.5");
      } else if ("-argfile".equals(flag)) {
        setArgfiles(new Path(project, in.next()));
      } else if ("-aspectpath".equals(flag)) {
        setAspectpath(new Path(project, in.next()));
      } else if ("-classpath".equals(flag)) {
        setClasspath(new Path(project, in.next()));
      } else if ("-extdirs".equals(flag)) {
        setExtdirs(new Path(project, in.next()));
      } else if ("-Xcopyinjars".equals(flag)) {
        setCopyInjars(true); // ignored - will be flagged by setter
      } else if ("-g".equals(flag)) {
        setDebug(true);
      } else if (flag.startsWith("-g:")) {
        setDebugLevel(flag.substring(2));
      } else if ("-deprecation".equals(flag)) {
        setDeprecation(true);
      } else if ("-d".equals(flag)) {
        setDestdir(new File(in.next()));
      } else if ("-crossrefs".equals(flag)) {
        setCrossrefs(true);
      } else if ("-emacssym".equals(flag)) {
        setEmacssym(true);
      } else if ("-encoding".equals(flag)) {
        setEncoding(in.next());
      } else if ("-Xfailonerror".equals(flag)) {
        setFailonerror(true);
      } else if ("-fork".equals(flag)) {
        setFork(true);
      } else if ("-forkclasspath".equals(flag)) {
        setForkclasspath(new Path(project, in.next()));
      } else if ("-help".equals(flag)) {
        setHelp(true);
      } else if ("-incremental".equals(flag)) {
        setIncremental(true);
      } else if ("-injars".equals(flag)) {
        setInjars(new Path(project, in.next()));
      } else if ("-inpath".equals(flag)) {
        setInpath(new Path(project, in.next()));
      } else if ("-Xlistfileargs".equals(flag)) {
        setListFileArgs(true);
      } else if ("-Xmaxmem".equals(flag)) {
        setMaxmem(in.next());
      } else if ("-Xmessageholderclass".equals(flag)) {
        setMessageHolderClass(in.next());
      } else if ("-noexit".equals(flag)) {
        setNoExit(true);
      } else if ("-noimport".equals(flag)) {
        setNoExit(true);
      } else if ("-noExit".equals(flag)) {
        setNoExit(true);
      } else if ("-noImportError".equals(flag)) {
        setNoImportError(true);
      } else if ("-noWarn".equals(flag)) {
        setNowarn(true);
      } else if ("-noexit".equals(flag)) {
        setNoExit(true);
      } else if ("-outjar".equals(flag)) {
        setOutjar(new File(in.next()));
      } else if ("-outxml".equals(flag)) {
        setOutxml(true);
      } else if ("-outxmlfile".equals(flag)) {
        setOutxmlfile(in.next());
      } else if ("-preserveAllLocals".equals(flag)) {
        setPreserveAllLocals(true);
      } else if ("-proceedOnError".equals(flag)) {
        setProceedOnError(true);
      } else if ("-referenceInfo".equals(flag)) {
        setReferenceInfo(true);
      } else if ("-source".equals(flag)) {
        setSource(in.next());
      } else if ("-Xsourcerootcopyfilter".equals(flag)) {
        setSourceRootCopyFilter(in.next());
      } else if ("-sourceroots".equals(flag)) {
        setSourceRoots(new Path(project, in.next()));
      } else if ("-Xsrcdir".equals(flag)) {
        setSrcDir(new Path(project, in.next()));
      } else if ("-Xtagfile".equals(flag)) {
        setTagFile(new File(in.next()));
      } else if ("-target".equals(flag)) {
        setTarget(in.next());
      } else if ("-time".equals(flag)) {
        setTime(true);
      } else if ("-time".equals(flag)) {
        setTime(true);
      } else if ("-verbose".equals(flag)) {
        setVerbose(true);
      } else if ("-showWeaveInfo".equals(flag)) {
        setShowWeaveInfo(true);
      } else if ("-version".equals(flag)) {
        setVersion(true);
      } else if ("-warn".equals(flag)) {
        setWarn(in.next());
      } else if (flag.startsWith("-warn:")) {
        setWarn(flag.substring(6));
      } else if ("-Xlint".equals(flag)) {
        setXlintwarnings(true);
      } else if (flag.startsWith("-Xlint:")) {
        setXlint(flag.substring(7));
      } else if ("-Xlintfile".equals(flag)) {
        setXlintfile(new File(in.next()));
      } else if ("-XterminateAfterCompilation".equals(flag)) {
        setXTerminateAfterCompilation(true);
      } else if ("-Xreweavable".equals(flag)) {
        setXReweavable(true);
      } else if ("-XnotReweavable".equals(flag)) {
        setXNotReweavable(true);
      } else if (flag.startsWith("@")) {
        File file = new File(flag.substring(1));
        if (file.canRead()) {
          setArgfiles(new Path(project, file.getPath()));
        } else {
          ignore(flag);
        }
      } else {
        File file = new File(flag);
View Full Code Here

        if (null != err) {
            throw new Error(err);
        }

        Ajc10 tempAjc = (Ajc10) task;
        Path srcDir = javac.getSrcdir();
        if (null != srcDir) {
            tempAjc.setSrcdir(srcDir);
        }
        File destDir = javac.getDestdir();
        if (null != destDir) {
            tempAjc.setDestdir(destDir.getPath());
        }
        Path classpath = javac.getClasspath();
        if (null != classpath) {
            tempAjc.setClasspath(classpath);
        }
        Path bootclasspath = javac.getBootclasspath();
        if (null != bootclasspath) {
            tempAjc.setBootclasspath(bootclasspath);
        }
        Path extDirs = javac.getExtdirs();
        if (null != extDirs) {
            tempAjc.setExtdirs(extDirs);
        }

        tempAjc.setFailonerror(javac.getFailonerror());
View Full Code Here

        }
    }

    public Path createSourcepath() {
        return sourcepath == null ?
            (sourcepath = new Path(getProject())) :
            sourcepath.createPath();
    }
View Full Code Here

TOP

Related Classes of org.apache.tools.ant.types.Path

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.