API Ant Tasks

There are two Apache Ant task to simplify the application development. To use these tasks you must write this code:

       
<target name="init">
    <property file="build.properties"/>
    
    <path id="ajaxforms.classpath">
        <fileset dir="${lib.home}" includes="*.jar"/>
    </path>
    
    <taskdef name="ajaxforms"
             classname="net.ajaxforms.ant.AJAXFormsTask"
             classpathref="ajaxforms.classpath"/>
    <taskdef name="ajaxformsresources"
             classname="net.ajaxforms.ant.AJAXFormsResourcesTask"
             classpathref="ajaxforms.classpath"/>
</target> 
        

ajaxforms

This task transforms XHTML/XForms documents to HTML with javascript documents.

destdir
Destination directory. Required.
srcdir
Source directory. Required.
style
This XSLT file trasforms the result. Optional.
base
Sets the base folder. Optional
resourcesdir
Resources directory. Required.
destextension
Destination extension. Optional, defect value .html.
srcextension
Source extension. Optional, defect value .xform
listfiles
List files. Optional, defect value false.

Sample:

<ajaxforms srcdir="${web.home}" destdir="${build.home}" style="${build.home}/site.xsl" listfiles="true" resourcesdir="resources/"/>

ajaxformsresources

Copy resources to directory.

destdir
Destination directory
debug
Speficied if to use a compacted version of javascript script

Sample:

<ajaxformsresources destdir="${build.home}/resources" debug="false"/>

ajaxformsschema

Transforms a XML Schema to javascript. Actually only transforms simple types.

destdir
Destination directoy. Required.
srcdir
Source directory. Required.
srcextension
Source extension. Optional, defect value .xml
listfiles
List files. Optional, defect value false.

Sample:

<ajaxformsschema srcdir="${web.home}" destdir="${build.home}" listfiles="true">




Powered by AJAXForms

SourceForge.net Logo