[ad31ea]: build.xml Maximize Restore History

Download this file

build.xml    187 lines (151 with data), 6.2 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!-- ================================================== -->
<!-- Build file for the Project Viewer plugin -->
<!-- :tabSize=2:indentSize=2:noTabs=false: -->
<!-- :folding=explicit:collapseFolds=1: -->
<!-- ================================================== -->
<project name="Project Viewer" default="compile" basedir=".">
<!-- ================================================ -->
<!-- Property definitions -->
<!-- ================================================ -->
<property file="build.properties"/>
<property file="../build.properties"/>
<property file="${user.home}/.build.properties"/>
<property file="${user.home}/build.properties"/>
<property name="jedit.install.dir" value="../../jEdit"/>
<property name="jedit.user.home" value="${user.home}/.jedit" />
<property name="version" value="2.0.1"/>
<property name="jar.name" value="${ant.project.name}.jar"/>
<property name="docs-proc.target" value="xsltproc"/>
<property name="build" value="build"/>
<property name="build.classes" value="${build}/classes"/>
<property name="build.docs" value="${build}/docs"/>
<property name="build.javadoc" value="${build.docs}/javadoc"/>
<property name="build.doxydoc" value="${build.docs}/doxydoc"/>
<property name="src" value="."/>
<property name="src.main" value="${src}"/>
<property name="src.etc" value="."/>
<property name="docs" value="docs"/>
<property name="docbookx_dtd" value="../XML/xml/dtds/docbookx.dtd" />
<!-- ================================================ -->
<!-- Classpath definitions -->
<!-- ================================================ -->
<path id="default.classpath">
<pathelement location="${jedit.install.dir}/jedit.jar" />
</path>
<!-- ================================================ -->
<!-- Targets -->
<!-- ================================================ -->
<!-- ================================================ -->
<target name="compile"
description="Compile all main classes">
<mkdir dir="${build.classes}"/>
<javac srcdir="${src.main}"
destdir="${build.classes}"
debug="${compiler.debug}"
optimize="${compiler.optimize}"
deprecation="${compiler.deprecation}"
verbose="${compiler.verbose}"
classpathref="default.classpath" >
<include name="projectviewer/*.java" />
<include name="projectviewer/**/*.java" />
</javac>
</target>
<!-- ================================================ -->
<target name="docs"
depends="javadoc"
description="Build the User's Guide and Javadoc documentation">
<antcall target="docs-${docs-proc.target}"/>
</target>
<!-- ================================================ -->
<target name="build"
depends="compile"
description="Build the plugin">
<copy todir="${build.classes}">
<fileset dir="${src.main}">
<include name="projectviewer/**/*.props"/>
<include name="projectviewer/**/*.properties"/>
<include name="projectviewer/**/icons/*.gif"/>
</fileset>
</copy>
<copy todir="${build.classes}">
<fileset dir="${src.etc}">
<include name="actions.xml"/>
<include name="dockables.xml"/>
</fileset>
</copy>
<mkdir dir="${build.docs}"/>
<copy todir="${build.docs}">
<fileset dir="${docs}">
<exclude name="**/*.xml"/>
<exclude name="**/*.xsl"/>
</fileset>
</copy>
<jar jarfile="${build}/ProjectViewer.jar">
<fileset dir="${build.classes}"/>
<fileset dir="${build.docs}"/>
</jar>
</target>
<!-- ================================================ -->
<target name="dist"
depends="docs,build"
description="Build a distribution">
<zip zipfile="ProjectViewer-${version}.zip">
<fileset dir="${build}">
<include name="projectviewer/**"/>
<include name="ProjectViewer.jar"/>
</fileset>
</zip>
</target>
<!-- ================================================ -->
<target name="deploy"
depends="dist"
description="Deploy the plugin">
<unzip src="ProjectViewer-${version}.zip" dest="${jedit.user.home}/jars"/>
</target>
<!-- ================================================ -->
<target name="javadoc" description="Generates javadoc sourcecode documentation">
<mkdir dir="${build.javadoc}"/>
<javadoc sourcepath="${src}"
destdir="${build.javadoc}"
packagenames="projectviewer.*"
windowtitle="${ant.project.name} API"
classpathref="default.classpath"/>
</target>
<target name="doxydoc" description="Generates doxygen sourcecode documentation">
<mkdir dir="${build.doxydoc}"/>
<exec executable="doxygen">
<arg value="doxyconf"/>
</exec>
</target>
<!-- ================================================ -->
<!-- Generate docs with xsltproc tool from www.xmlsoft.org -->
<target name="docs-xsltproc" description="Generate user documentation in hmtl format with xsltproc">
<exec executable="xsltproc">
<arg value="-o"/>
<arg value="docs/users-guide.html"/>
<arg value="--catalogs"/>
<arg value="docs/users-guide.xsl"/>
<arg value="docs/users-guide.xml"/>
</exec>
</target>
<!-- Generate docs with Xalan tool from xml.apache.org -->
<target name="docs-xalan" description="Generate user documentation in hmtl format with xalan">
<style style="docs/users-guide.xsl"
in="docs/users-guide.xml"
out="docs/users-guide.html" >
<xmlcatalog>
<dtd publicId="-//OASIS//DTD DocBook XML V4.1.2//EN"
location="${docbookx_dtd}" />
</xmlcatalog>
</style>
</target>
<!-- ================================================ -->
<target name="clean" description="Cleans project directories">
<delete dir="${build}"/>
<delete>
<fileset dir=".">
<include name="ProjectViewer-*.zip"/>
</fileset>
</delete>
</target>
</project>