XSLTProcess.<init>
Code IndexAdd Codota to your IDE (free)

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

  • Common ways to obtain XSLTProcess
private void myMethod () {
XSLTProcess x =
  • new XSLTProcess()
  • Smart code suggestions by Codota
}
origin: org.apache.ant/ant-junit

/**
 * constructor creating the transformer from the junitreport task.
 * @param task  task delegating to this class
 */
public AggregateTransformer(Task task) {
  this.task = task;
  xsltTask = new XSLTProcess();
  xsltTask.bindToOwner(task);
}
origin: org.assertj/assertj-swing-junit

private XSLTProcess xsltTask() {
 XSLTProcess xsltTask = new XSLTProcess();
 xsltTask.bindToOwner(task);
 xsltTask.setClasspath(classpath);
 xsltTask.setXslResource(getStylesheet());
 xsltTask.setIn(((XMLResultAggregator) task).getDestinationFile());
 return xsltTask;
}
origin: joel-costigliola/assertj-swing

private XSLTProcess xsltTask() {
 XSLTProcess xsltTask = new XSLTProcess();
 xsltTask.bindToOwner(task);
 xsltTask.setClasspath(classpath);
 xsltTask.setXslResource(getStylesheet());
 xsltTask.setIn(((XMLResultAggregator) task).getDestinationFile());
 return xsltTask;
}
origin: org.apache.ivy/ivy

private void gen(ResolutionCacheManager cache, String organisation, String module,
    String style, String ext) throws IOException {
  XSLTProcess xslt = new XSLTProcess();
  xslt.setTaskName(getTaskName());
  xslt.setProject(getProject());
  xslt.init();
  String resolveId = ResolveOptions.getDefaultResolveId(new ModuleId(organisation, module));
  xslt.setIn(cache.getConfigurationResolveReportInCache(resolveId, "default"));
  xslt.setOut(new File(getTodir(), outputname + "." + ext));
  xslt.setBasedir(cache.getResolutionCacheRoot());
  xslt.setStyle(style);
  xslt.execute();
}
origin: org.apache.ivy/ivy

private void genreport(ResolutionCacheManager cache, String organisation, String module)
    throws IOException {
  // first process the report with xslt
  XSLTProcess xslt = new XSLTProcess();
  xslt.setTaskName(getTaskName());
  xslt.setProject(getProject());
  xslt.init();
  String resolveId = ResolveOptions.getDefaultResolveId(new ModuleId(organisation, module));
  xslt.setIn(cache.getConfigurationResolveReportInCache(resolveId, "default"));
  xslt.setOut(new File(getTodir(), outputname + "." + xslext));
  xslt.setStyle(xslFile);
  XSLTProcess.Param param = xslt.createParam();
  param.setName("extension");
  param.setExpression(xslext);
  // add the provided XSLT parameters
  for (Iterator it = params.iterator(); it.hasNext();) {
    param = (XSLTProcess.Param) it.next();
    XSLTProcess.Param realParam = xslt.createParam();
    realParam.setName(param.getName());
    realParam.setExpression(param.getExpression());
  }
  xslt.execute();
}
org.apache.tools.ant.taskdefsXSLTProcess<init>

Popular methods of XSLTProcess

  • setXslResource
    API method to set the XSL Resource.
  • setIn
    specifies a single XML document to be styled. Should be used with the out attribute; required if ou
  • setOut
    Specifies the output name for the styled result from thein attribute; required if in is set
  • createClasspath
    Set the optional classpath to the XSL processor
  • createParam
    Create an instance of an XSL parameter for configuration by Ant.
  • execute
    Executes the task.
  • addMapper
    Defines the mapper to map source to destination files.
  • bindToOwner
  • checkDest
    Throws a BuildException if the destination directory hasn't been specified.
  • configureLiaison
    Loads the stylesheet and set xsl:param parameters.
  • ensureDirectoryFor
    Ensure the directory exists for a given file
  • getDirectoryScanner
  • ensureDirectoryFor,
  • getDirectoryScanner,
  • getFactory,
  • getLiaison,
  • getLocation,
  • getOutputProperties,
  • getProject,
  • getSuppressWarnings,
  • getTaskType

Popular in Java

  • Updating database using SQL prepared statement
  • getContentResolver (Context)
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • IsNull (org.hamcrest.core)
    Is the value null?

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)