[protege] / protege-collab / trunk / build-internal.xml
Project Root:

protege: protege-collab/trunk/build-internal.xml

File: [protege] / protege-collab / trunk / build-internal.xml (download) (as text)
Revision: 7413, Thu Aug 23 21:38:05 2007 UTC (2 years, 3 months ago) by vendetti
File size: 4281 byte(s)
set debug to true and debuglevel to lines
<?xml version = "1.0" encoding = "UTF-8"?>
<project name = "protege-collab" default = "usage" basedir = ".">

	<property name = "project.name" value = "protege-collab"/>
	<property name = "Name" value = "Collaborative Protege"/>
	<property name = "build.dir" value = "./build"/>
	<property name = "build.src" value = "${build.dir}/src"/>
	<property name = "build.dest" value = "${build.dir}/classes"/>
	<property name = "dist.dir" value = "./dist"/>
	<property name = "examples.dir" value = "./examples"/>
	<property name = "lib.dir" value = "./lib"/>
	<property name = "packages" value = "edu.*"/>

	<property file = "../global.properties"/>

	<!-- =================================================================== -->
	<!-- INIT -->
	<!-- Initialize properties. -->
	<!-- =================================================================== -->
	<target name = "init">
		<tstamp/>
	</target>

	<!-- =================================================================== -->
	<!-- PREPARE-SRC -->
	<!-- =================================================================== -->
	<target name = "prepare-src" depends = "init">

		<mkdir dir = "${build.src}"/>
		<mkdir dir = "${build.dest}"/>
		<mkdir dir = "${dist.dir}"/>
		<mkdir dir = "${examples.dir}"/>
		<mkdir dir = "${lib.dir}"/>
		
		<!-- get source code from subversion repository -->
		<exec executable = "cmd.exe" dir = "${batch.files}" os = "${os}">
			<arg line = "/c checkout ${svn.core.url}/${project.name}/trunk ../${project.name} --non-recursive"/>
		</exec>
		<exec executable = "cmd.exe" dir = "${batch.files}" os = "${os}">
			<arg line = "/c checkout ${svn.core.url}/${project.name}/trunk/src ../${project.name}/build/src"/>
		</exec>
		<exec executable = "cmd.exe" dir = "${batch.files}" os = "${os}">
			<arg line = "/c checkout ${svn.core.url}/${project.name}/trunk/lib ../${project.name}/lib"/>
		</exec>
		<exec executable = "cmd.exe" dir = "${batch.files}" os = "${os}">
			<arg line = "/c checkout ${svn.core.url}/${project.name}/trunk/examples ../${project.name}/examples"/>
		</exec>

		<!-- add license text to top of source files -->
		<exec executable = "cmd.exe" dir = "${batch.files}" os = "${os}">
			<arg line = "/c merge_license_with_source ../${project.name}/build/src"/>
		</exec>

	</target>

	<!-- =================================================================== -->
	<!-- COMPILE -->
	<!-- Compile the source directory. -->
	<!-- =================================================================== -->
	<target name = "compile" depends = "prepare-src">
		<javac srcdir = "${build.src}" destdir = "${build.dest}" deprecation = "on" debug = "on" debuglevel = "lines" optimize = "on" includeAntRuntime = "no">
			<classpath>
				<pathelement path = "${protege.jar}"/>
				<pathelement path = "${protege-owl.jar}"/>
				<pathelement path = "${change-management.jar}"/>
				<pathelement path = "${change-model.jar}"/>
				<pathelement path = "${chat.jar}"/>
				<fileset dir = "${lib.dir}">
					<include name = "**/*.jar"/>
				</fileset>
			</classpath>
		</javac>
	</target>

	<!-- =================================================================== -->
	<!-- JAR -->
	<!-- Create the class package. -->
	<!-- =================================================================== -->
	<target name = "jar" depends = "compile">
		<copy todir = "${build.dest}/edu/stanford/smi/protege/collab/annotation/gui/images">
			<fileset dir = "${build.src}/edu/stanford/smi/protege/collab/annotation/gui/images"/>
		</copy>
		<jar jarfile = "${dist.dir}/${project.name}.jar" basedir = "${build.dest}" manifest = "${build.src}/META-INF//MANIFEST.MF"/>
	</target>

	<!-- =================================================================== -->
	<!-- CLEAN -->
	<!-- =================================================================== -->
	<target name = "clean" depends = "init">
		<delete dir = "${build.dir}"/>
		<delete dir = "${dist.dir}"/>
		<delete dir = "${lib.dir}"/>
	</target>

	<!-- =================================================================== -->
	<!-- ALL -->
	<!-- =================================================================== -->
	<target name = "all" depends = "jar"/>
</project>

CVS-SVN admin

Powered by ViewCVS 1.0-dev
(Powered by Apache)

ViewCVS and CVS Help