Project

General

Profile

« Previous | Next » 

Revision 6897

Adapted the build to be able to generate the Sphinx Admin Guide, and to
better handle the copyright for Javadoc generation.

View differences:

build.xml
13 13
	* Build file for the Ant cross-platform build system for metacat
14 14
	* See http://jakarta.apache.org for details on Ant
15 15
	*
16
	* usage: ant [compile|jar|install|jdoc]
16
	* usage: ant [compile|jar|install|documentation]
17 17
	*
18 18
	* This program is free software; you can redistribute it and/or modify
19 19
	* it under the terms of the GNU General Public License as published by
......
157 157
		<property name="Name" value="MetaCat" />
158 158
		<property name="debugprefix" value="${Name}:" />
159 159
		<property name="release" value="${metacat.version}" />
160
		<tstamp>
161
		    <format property="copyrightyear" pattern="yyyy" locale="en,US"/>
162
		</tstamp>
163
		<property name="copyright" value="${copyrightyear} Regents of the University of California" />
160 164
		<property name="style-common-relpath" value="/style/common" />
161 165
		<property name="style-shared-relpath" value="/style/shared" />
162 166
		<property name="schema-relpath" value="/schema" />
......
1240 1244
			<fileset dir="${utilitiesdir}"/>
1241 1245
		</delete>
1242 1246
	</target>
1247
	
1248
	<target name="documentation" depends="javadoc,admindoc"
1249
	    description="generates Javadoc API documentation and Admin Guide">
1250
    </target>
1251
	
1252
	<target name="admindoc" depends="prepare">
1253
		<!-- Build the administrator's guide, which is a Sphinx RST project
1254
		     For this to succeed, you must have Sphinx installed on your machine
1255
		     See: http://sphinx.pocoo.org/ for details
1256
		     And you must also have the 'make' build tool installed
1257
		-->
1258
		<exec dir="${docdir}/user/metacat" executable="make"> 
1259
		        <arg value="html"/> 
1260
		</exec>
1261
    </target>
1243 1262

  
1244
	<target name="jdoc" depends="prepare"
1245
		description="generates javadoc documentation">
1263
	<target name="javadoc" depends="prepare"
1264
		description="generates Javadoc API documentation">
1246 1265
		<javadoc packagenames="edu.ucsb.nceas.*"
1247 1266
			sourcepath="${build.src}" destdir="${build.javadocs}" author="true"
1248 1267
			version="true" use="true" windowtitle="${Name} API"
1249 1268
			doctitle="&lt;h1&gt;${Name}&lt;/h1&gt;"
1250
			bottom="&lt;i&gt;Copyright &#169; 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.&lt;/i&gt;">
1269
			bottom="&lt;i&gt;Copyright &#169; ${copyright}. All Rights Reserved.&lt;/i&gt;">
1251 1270
			<classpath>
1252 1271
				<path refid="compile.classpath" />
1253 1272
			</classpath>
......
1255 1274
	</target>
1256 1275

  
1257 1276
	<target name="dist"
1258
		depends="geteml,get-ecogrid,jar,protocol,jdoc,getConversionXSL,getutilities"
1277
		depends="geteml,get-ecogrid,jar,protocol,documentation,getConversionXSL,getutilities"
1259 1278
		description="prepares a full release distribution">
1260 1279
		<mkdir dir="${dist.dir}" />
1261 1280
		<delete dir="${ver.dir}" />

Also available in: Unified diff