Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
xsltjson/build.xml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
60 lines (52 sloc)
1.47 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project name="XSLTJSON" default="examples"> | |
<description> | |
Simple project to transform arbitrary XML files to JSON format. | |
</description> | |
<property name="xsltjson.build" value="output"/> | |
<property name="xsltjson.lib" value="lib"/> | |
<property name="xsltjson.config" value="conf"/> | |
<path id="saxon.classpath"> | |
<fileset dir="${xsltjson.lib}/saxon"> | |
<include name="*.jar"/> | |
</fileset> | |
</path> | |
<path id="xalan.classpath"> | |
<fileset dir="${xsltjson.lib}/xalan"> | |
<include name="*.jar"/> | |
</fileset> | |
</path> | |
<target name="init"> | |
<mkdir dir="${xsltjson.build}"/> | |
</target> | |
<target name="examples" depends="init"> | |
<xslt basedir="input/examples" destdir="${xsltjson.build}/examples" extension=".json" | |
style="${xsltjson.config}/xml-to-json.xsl"> | |
<classpath> | |
<path refid="saxon.classpath"/> | |
</classpath> | |
</xslt> | |
</target> | |
<target name="examples-xalan"> | |
<xslt basedir="input/examples" destdir="${xsltjson.build}/examples" extension=".json" | |
style="${xsltjson.config}/xml-to-jsonml.xsl"> | |
<classpath> | |
<path refid="xalan.classpath"/> | |
</classpath> | |
</xslt> | |
</target> | |
<target name="test" depends="init"> | |
<xslt basedir="input/tests" destdir="${xsltjson.build}/tests" extension=".xml" | |
style="${xsltjson.config}/test.xsl"> | |
<classpath> | |
<path refid="saxon.classpath"/> | |
</classpath> | |
</xslt> | |
</target> | |
<!-- | |
<target name="test-xalan" depends="init"> | |
</target> | |
--> | |
<target name="clean"> | |
<delete dir="${xsltjson.build}"/> | |
</target> | |
</project> |