root/other-projects/gli-rsyntax-textarea/src/build.xml @ 32403

Revision 25584, 3.6 KB (checked in by davidb, 7 years ago)

Initial cut an a text edit area for GLI that supports color syntax highlighting

Line 
1<?xml version="1.0" encoding="UTF-8" ?>
2
3<!--
4
5    This is the Ant build script for rsyntaxtextarea.jar.
6    Available targets include:
7   
8        1. compile:         Compiles all org.fife classes into ${class-dir}.
9        2. make-jar:        Creates the jar file.
10        3. make-source-zip: Creates a source zip file.
11        3. make-javadoc:    Creates the javadoc for RSyntaxTextArea.
12
13    Author:   Robert Futrell
14    Version:  1.4
15    Date:     20feb2009
16
17-->
18
19
20<project name="RSyntaxTextArea" default="make-jar" basedir=".">
21
22    <description>RSyntaxTextArea build file</description>
23
24
25    <!-- Set global properties for this build. -->
26    <property name="version"          value="2.0.3"/>
27    <property name="source-dir"       location="java"/>
28    <property name="class-dir"        location="ant-classes"/>
29    <property name="dist-dir"         location="dist"/>
30    <property name="doc-dir"          location="javadoc"/>
31    <property name="debug"            value="true"/>
32    <property name="debuglevel"       value="lines,var,source"/>
33    <property name="java-level"       value="1.4"/>
34
35
36    <!-- Compiles the classes.  -->
37    <target name="compile" description="Compile the source">
38        <delete includeEmptyDirs="true" quiet="true" dir="${class-dir}"/>
39        <mkdir dir="${class-dir}"/>
40        <javac srcdir="${source-dir}" destdir="${class-dir}"
41            deprecation="yes" debug="${debug}" debuglevel="${debuglevel}"
42            source="${java-level}" target="${java-level}"/>
43    </target>
44
45
46    <!-- Creates the jar file. -->
47    <target name="make-jar" depends="compile"
48            description="Create RSyntaxTextArea jar">
49        <delete includeEmptyDirs="true" quiet="true" dir="${dist-dir}"/>
50        <mkdir dir="${dist-dir}"/>
51        <jar destfile="${dist-dir}/rsyntaxtextarea.jar">
52            <fileset dir="${class-dir}"/>
53            <fileset dir="i18n"/>
54            <fileset dir="${source-dir}">
55                <include name="theme.dtd"/>
56            </fileset>
57            <manifest>
58                <attribute name="Specification-Title" value="RSyntaxTextArea"/>
59                <attribute name="Specification-Version" value="${version}"/>
60                <attribute name="Implementation-Title" value="org.fife.ui"/>
61                <attribute name="Implementation-Version" value="${version}"/>
62                <section name="RTextArea">
63                    <attribute name="Specification-Title" value="RTextArea"/>
64                    <attribute name="Specification-Version" value="${version}"/>
65                    <attribute name="Implementation-Title" value="org.fife.ui.rtextarea"/>
66                    <attribute name="Implementation-Version" value="${version}"/>
67                </section>
68                <section name="RSyntaxTextArea">
69                    <attribute name="Specification-Title" value="RSyntaxTextArea-Core"/>
70                    <attribute name="Specification-Version" value="${version}"/>
71                    <attribute name="Implementation-Title" value="org.fife.ui.rsyntaxtextarea"/>
72                    <attribute name="Implementation-Version" value="${version}"/>
73                </section>
74            </manifest>
75        </jar>
76        <copy todir="${dist-dir}">
77            <fileset dir="distfiles"/>
78        </copy>
79    </target>
80
81
82    <!-- Builds the source zip file. -->
83    <target name="make-source-zip" description="Builds the source zip file">
84        <zip destfile="./rsyntaxtextarea_${version}_Source.zip">
85            <fileset dir=".">
86                <include name="distfiles/**"/>
87                <include name="i18n/**"/>
88                <include name="java/**"/>
89                <include name="build.xml"/>
90                <include name=".properties"/>
91                <include name=".classpath"/>
92            </fileset>
93        </zip>
94    </target>
95
96
97    <!-- Builds the javadoc.  -->
98    <target name="make-javadoc" depends="compile">
99        <javadoc  destdir="${doc-dir}" author="true" version="true"
100                breakiterator="yes">
101            <packageset dir="${source-dir}" defaultexcludes="yes">
102                <include name="org/**"/>
103            </packageset>
104        </javadoc>
105    </target>
106
107
108</project>
Note: See TracBrowser for help on using the browser.