/bundles/plugins-trunk/XML/build.xml
XML | 133 lines | 94 code | 16 blank | 23 comment | 0 complexity | 63145e46a87aa3e2a437964b4b19f558 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
- <project name="XML" default="build" basedir=".">
- <!--
- This is a build.xml file for building the XML plugin.
- The 'dist' target compiles the plugin and creates the JAR file.
- Before running the 'dist' target, you will need to generate the
- documentation using xsltproc from xmllib
- To use this template for building your own plugin, make these changes:
- - Change 'name' property for the <project> to the name of your plugin
- - If necessary, add any dependencies to the 'project.class.path' definition
- - If necessary, change the list of files in the 'packageFiles' selector
- -->
- <property file="build.properties"/>
- <property file="../build.properties"/>
- <!-- You should set this property below in your ../build.properties to
- the location of the jedit's "build-support/trunk" project
- checked out from jEdit's SVN repository -->
- <property name="build.support" value="../build-support" />
- <property name="docs-proc.target" value="xsltproc" />
- <property name="javadoc.packagenames" value="xml.*, sidekick.*" />
- <property name="build.dir" value="build"/>
- <property name="install.dir" value="../"/>
- <property name="jedit.plugins.dir" value="${install.dir}" />
- <property name="lib.dir" value="lib" />
- <!-- set this property if we wanted to chunk the user manual :
- <property name="docbook.xsl.sheet" value="html/chunk.xsl" />
- -->
- <import file="${build.support}/plugin-build.xml" />
- <target name="build.prepare">
- <copy todir="${install.dir}">
- <fileset dir="lib" includes="*.jar" />
- </copy>
- </target>
- <!-- exclude the test directory -->
- <selector id="compileFiles">
- <or>
- <filename name="sidekick/**/*.java" />
- <filename name="xml/**/*.java" />
- </or>
- </selector>
- <selector id="packageFiles">
- <or>
- <filename name="docs/*.html" />
- <filename name="docs/*.txt" />
- <filename name="icons/*.gif" />
- <filename name="icons/*.png" />
- <filename name="xml/**/*.xml" />
- <filename name="xml/**/catalog" />
- <filename name="xml/**/*.xsd" />
- <filename name="xml/**/*.ent" />
- <filename name="xml/**/*.mod" />
- <filename name="xml/**/*.png" />
- <filename name="xml/**/*.dtd" />
- <filename name="xml/**/*.rng" />
- <filename name="xml/**/*.rnc" />
- <filename name="templates/**/*.vm" />
- </or>
- </selector>
- <path id="project.class.path">
- <pathelement location="${ant.home}/lib/ant.jar" />
- <pathelement location="${lib.dir}/jing.jar"/>
- <pathelement location="${lib.dir}/trang.jar"/>
- <pathelement location="${lib.dir}/relaxngDatatype.jar"/>
- <pathelement location="${jedit.install.dir}/jedit.jar"/>
- <pathelement location="${jedit.plugins.dir}/Beauty.jar"/>
- <pathelement location="${jedit.plugins.dir}/ErrorList.jar"/>
- <pathelement location="${jedit.plugins.dir}/SideKick.jar"/>
- <pathelement location="${jedit.plugins.dir}/resolver.jar"/>
- <pathelement location="${jedit.plugins.dir}/xercesImpl.jar"/>
- <pathelement location="${jedit.plugins.dir}/CommonControls.jar"/>
- <pathelement location="${jedit.plugins.dir}/kappalayout.jar"/>
- <pathelement location="${jedit.plugins.dir}/EclipseIcons.jar"/>
- <pathelement location="${jedit.plugins.dir}/Hyperlinks.jar"/>
- <pathelement location="${jedit.plugins.dir}/Templates.jar"/>
- <pathelement location="."/>
- </path>
- <echo>project.class.path = ${toString:project.class.path}</echo>
- <!-- Generate ant-complete.xml file with AntComplete task
- you may need commons-net-1.4.jar in your ~/.ant/lib dir for this to
- work -->
- <target name="ant-complete" depends="compile"
- description="generate completion info for ant build files based on current version of ant">
- <taskdef name="antcomplete" classname="xml.completion.AntCompleteTask" classpath="${build.classes}"/>
- <antcomplete output="${src.dir}/xml/completion/ant-complete.xml"/>
- </target>
- <target name="jar" depends="ant-complete, build"
- description="builds jar + ant-completion info" />
- <target name="dist" depends="docs, jar"
- description="The whole shebang" />
- <target name="javacc" description="Runs javacc compiler on *.jj files.">
- <condition property="javacchome.set">
- <isset property="javacchome"/>
- </condition>
- <fail unless="javacchome.set" message="Property 'javacchome' needs to be set."/>
- <javacc javacchome="${javacchome}" target="./sidekick/html/parser/html/HtmlParser.jj"/>
- <jjtree javacchome="${javacchome}"
- target="./sidekick/ecmascript/parser/EcmaScript.jjt"
- outputdirectory="./sidekick/ecmascript/parser"/>
- <javacc javacchome="${javacchome}" target="./sidekick/ecmascript/parser/EcmaScript.jj"/>
- <javacc javacchome="${javacchome}" target="./sidekick/css/parser/CSS3Parser.jj"/>
- <javacc javacchome="${javacchome}" target="./xml/parser/javacc/XmlParser.jj"/>
-
- </target>
- <!-- Generate tags using 'ctags' program from ctags.sourceforge.net -->
- <target name="tags">
- <exec executable="ctags">
- <arg value="-R" />
- <arg path="." />
- </exec>
- </target>
- <target name="test" description="run current unit tests" depends="build">
- <ant dir="test" inheritAll="false" target="test" useNativeBasedir="true"/>
- </target>
- <target name="test-all" description="run all unit tests" depends="build">
- <ant dir="test" inheritAll="false" target="test-all"/>
- </target>
- </project>