biz.hammurapi.ant
Class StyleTask

java.lang.Object
  extended by Task
      extended by biz.hammurapi.ant.StyleTask

public class StyleTask
extends Task

This task applies a stylesheet to XML files. Output file name is calculated from XPath expression.

Author:
Pavel Vlasov

Constructor Summary
StyleTask()
           
 
Method Summary
 void addFileSet(FileSet fileSet)
           
 void execute()
           
 void setFileName(java.lang.String fileName)
          XPath expression for file name.
 void setOutputDir(java.io.File outputDir)
          Output directory.
 void setStyle(java.io.File style)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleTask

public StyleTask()
Method Detail

setOutputDir

public void setOutputDir(java.io.File outputDir)
Output directory.

Parameters:
outputDir -

setFileName

public void setFileName(java.lang.String fileName)
XPath expression for file name. Use / for file separator.

Parameters:
fileName -

addFileSet

public void addFileSet(FileSet fileSet)

setStyle

public void setStyle(java.io.File style)

execute

public void execute()
             throws BuildException
Throws:
BuildException


Copyright © 2003 Hammurapi Group. All Rights Reserved.