org.exolab.castor.tools
Class XSDCompiler

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.exolab.castor.tools.XSDCompiler
All Implemented Interfaces:
java.lang.Cloneable

public class XSDCompiler
extends org.apache.tools.ant.Task

A Task to process via XSLT a set of XML documents. This is useful for building views of XML based documentation. arguments:

Of these arguments, the sourcedir and destdir are required.

This task will recursively scan the sourcedir and destdir looking for XML documents to process via XSLT. Any other files, such as images, or html files in the source directory will be copied into the destination directory.

Version:
$Revision: 1.2 $ $Date: 2005/03/05 13:41:55 $
Author:
Keith Visco

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
XSDCompiler()
          Creates a new XSDCompiler Task.
 
Method Summary
 void execute()
          Executes the task.
 void setDestdir(java.lang.String dirName)
          Set the destination directory into which the Java sources should be copied to
 void setForce(boolean force)
          Set overwriting existing files.
 void setLineseperator(java.lang.String lineSep)
          Set the line separator.
 void setPackage(java.lang.String pkgName)
          Set the target package name.
 void setSchema(java.lang.String schema)
          Set the schema file name.
 void setTypefactory(java.lang.String typeFactory)
          Set the type factory.
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSDCompiler

public XSDCompiler()
Creates a new XSDCompiler Task.

Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Executes the task.

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

setSchema

public void setSchema(java.lang.String schema)
Set the schema file name.


setPackage

public void setPackage(java.lang.String pkgName)
Set the target package name.


setLineseperator

public void setLineseperator(java.lang.String lineSep)
Set the line separator.


setForce

public void setForce(boolean force)
Set overwriting existing files.


setTypefactory

public void setTypefactory(java.lang.String typeFactory)
Set the type factory.


setDestdir

public void setDestdir(java.lang.String dirName)
Set the destination directory into which the Java sources should be copied to

Parameters:
dirName - the name of the destination directory


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com