Code Search for Developers
 
 
  

BuildOda.xml from BIRT at Krugle


Show BuildOda.xml syntax highlighted

<?xml version="1.0"?>
<!--
 *************************************************************************
 * Copyright (c) 2004, 2005 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *  
 *************************************************************************
 *
 *  Build.xml
 *
 *  Build script for project org.eclipse.birt.data.oda
 *
 * 
 * The following are public targets callable by external users. 
 * 
 * "Clean" - Clean all objects created by this script. Individual project build script can not call this target; 
 * "Jar" - Compile source code and generate jar for this project.
 *          The compile dependency on other projects should be defined explicitly.
 *         eclipse.home should be passed in when Individual project build script  call this target; 
 *          the property of "failonerror" should be set true(default) when compiling source code
 * "UnitTest" - Run unit tests. This task must be called after calling Jar task, 
 *              so it needn't depend on Jar explicitly
 * "Export" - Export the project, for instance, jar files are copied to a designated folder. 
 *            this task must be called after calling Jar task, so it needn't depend on Jar explicitly
 * "JavaDoc" - generate java documents
 *
 * Usage:
 *    ant [any one or more of the public targets] 
 *        -Declipse.home=<your eclipse home> 
 *        -Ddtp.home=<your DTP plugins source home>  [optional]
 *
 * Default target is "Jar".
 *
 * 
 * This script may also additional targets. These targets are private to this build script only. 
 *
 * 
 *
 * Notes:
 *  1. classpath need to be set for junit.jar
 *  2. This file now requires Ant 1.6
 *
-->

<project name="ODA Interface" default="Jar" basedir=".">
	<description>BIRT Open Data Access Runtime Interfaces</description>
	<property file="META-INF/MANIFEST.MF" />
	<property name="module.name" value="org.eclipse.birt.data.oda"/>
	<property name="plugin.version" value="${Bundle-Version}" />
	<property name="plugin.package" value="${module.name}_${plugin.version}" />
	
	<!-- set global properties for this build -->
	<!-- Public properties, used by public targets, top level build script
		     will pass on the value at runtime. Properties will have there default
		     value.

		     eclipse.home
		     dtp.home
		     utest.report.dir
		     javadoc.dir
		     plugin.version 
	-->
	
	<!-- ===== Default value for public properties ============= -->
	<property name="utest.report.dir" location="utestreports" />
	<property name="javadoc.dir" location="docs/api" />
	<property name="api.javadoc.dir" location="docs/birt/api"/>
	<property name="export.dir" location="export" />
	<property name="eclipse.home" location="." />
	<property name="dtp.home" location=".." />
	
	<property name="dir.utest" value="utest" />
 	<property name="dir.src" value="src" />
 	<property name="dir.test" value="test" />
 	<property name="dir.bin" value="bin" />
 	<property name="dir.lib" value="lib" />
	
	<property name="src" value="src" />
	<property name="bin" value="bin" />
	<property name="lib" value="lib" />
	<property name="java_encoding" value="utf-8" />
	<property name="sourceVer" value="1.4" />
	<property name="oda_jar" value="oda.jar" />
	<property name="core.dir" location="../org.eclipse.birt.core" />		
	<property name="core.jar" value="core.jar" />

	<path id="class.path">
		<pathelement path="${dir.bin}" />
		<fileset dir="${core.dir}">
			<include name="core.jar"/>
		</fileset>
		
		<!-- Dependencies on Eclipse installation -->
		<fileset dir="${eclipse.home}/plugins">
            <include name="org.eclipse.datatools.connectivity.oda*.jar"/>
			<include name="org.eclipse.core.runtime_*.jar"/>
			<include name="org.eclipse.equinox.*.jar"/>
			<include name="org.eclipse.core.jobs_*.jar"/>
			<include name="org.eclipse.osgi_*.jar"/>
			<include name="com.ibm.icu_*.jar"/>
			<include name="org.junit_*/*.jar"/>
		</fileset>
	</path>
	

	<!-- Compile source code and generate jar for this project.
		 Input parameters:
		 	eclipse.home
		 	dtp.home
	-->
	<target name="Jar" depends="compileSource">
		<jar destfile="oda.jar">
			<fileset dir="${dir.bin}">
				<include name="**/*.class" />
				<include name="**/*.txt" />
				<include name="**/*.xml" />
				<include name="**/*.def" />
				<include name="**/*.properties" />
				<exclude name="**/*Test.class" />
			</fileset>
		</jar>
	</target>
	
	<!-- Export the project, for instance, jar files are copied to a designated folder
		 the dependency on Jar should implement in top level script by call sequence	
		 Parameters:
		 		- ${export.dir} target directory to put the plugin binaries
		 		- ${plugin.version} the version of plugin exported
	 -->
	<target name="Export">
	  	<copy todir="${export.dir}/${plugin.package}">
	        <fileset dir="." includes="*.jar,about.html,plugin.xml,META-INF/**,schema/**"/>
	    </copy>
	</target>

	<!-- public task UnitTest will not explicitly depend on complie, Top level script should call compile before calling UnitTest -->
	<!-- Run Unit test.
			 Parameters:
			 		- ${utest.report.dir} target directory to put the unit test report
	-->	
	<target name="UnitTest" depends="compileTest" description="run all the unit tests">
	</target>
	
	<!-- Clean all objects created by this script -->
	<target name="Clean" description="clean up">
		<!-- Delete the ${dir.bin} and ${dir.utest} directory trees -->
		<delete dir="${dir.bin}" />
		<delete dir="${dir.utest}" />
		<delete>
			<fileset dir="." includes="*junit*" />
		</delete>
		<!-- Delete the target jar file -->
		<delete file="oda.jar" />
	</target>
	
	
	<!-- Generate the JavaDoc.
		 Parameters:
		 		- ${javadoc.dir} target directory to put the java document
	 -->	
	<target name="Javadoc">
		<mkdir dir="${javadoc.dir}" />
		<javadoc destdir="${javadoc.dir}" 
				 author="true" 
				 version="true" 
				 use="true" 
				 windowtitle="BIRT Open Data Access 2.0 API Specification" 
				 doctitle="BIRT Open Data Access (ODA) API (Deprecated)" 
				 source="1.4"
				 packagenames="${module.name}.*">
				<packageset dir="${dir.src}" defaultexcludes="yes" />
	 	        <bottom><![CDATA[<i>Copyright &#169;  2005 Actuate Corp. All rights reserved. </i>]]></bottom>
				<classpath refid="class.path" />
		</javadoc>
	</target>
	
	<!-- Generate the apiJavaDoc.
		 Parameters:
		 		- ${api.javadoc.dir} target directory to put the java document
	 -->
	<target name="apiJavaDoc">
		<mkdir dir="${api.javadoc.dir}" />
		<javadoc destdir="${api.javadoc.dir}" 
				author="true" 
				version="true" 
				use="true" 
				windowtitle="BIRT Open Data Access 2.0 API Specification" 
				doctitle="BIRT Open Data Access (ODA) API (Deprecated)"  
				source="1.4"
				packagenames="${module.name}.*">
			  	<packageset dir="${src}" defaultexcludes="yes">
					<include name="org/eclipse/birt/data/oda/**" />
			  	</packageset>
	 	        <bottom><![CDATA[<i>Copyright &#169;  2005 Actuate Corp. All rights reserved. </i>]]></bottom>
				<classpath refid="class.path" />
		</javadoc>
	</target>

	<target name="buildDependency">
		<echo message="start call Jar task in ${core.dir}"/>
		<ant dir="${core.dir}" antfile="BuildCore.xml" target="Jar" inheritall="false">
		 	<property name="eclipse.home" value="${eclipse.home}" />
		</ant>
		<echo message="end call Jar task in ${core.dir}"/>
	</target>
	
	<target name="compileSource" depends="buildDependency,nativeToAscii" description="compile the source ">
		<mkdir dir="${dir.bin}" />

		<!-- Compile the java code from ${dir.src} into ${dir.bin} -->
		<javac srcdir="${dir.src}" 
			   destdir="${dir.bin}" 
			   encoding="utf-8" 
			   source="1.4" 
			   debug="true">
			
			<classpath refid="class.path" />
			<exclude name="util/**/*" />
		</javac>
	</target>

	
	<!-- Compile Oda Test Files 
			 javac.failonerror should be true.
	-->
	<target name="compileTest" description="compile the test ">
	</target>
	
	<target name="nativeToAscii">
		<native2ascii encoding="Cp1252" 
			          src="${src}/org/eclipse/birt/data/oda/util" 
			          dest="${src}/org/eclipse/birt/data/oda/util"
					  ext=".java"
		    		  includes="OdaResources_de_DE.msg,
					  			OdaResources_fr_FR.msg,
			                    OdaResources_es_ES.msg"
		/>
		<native2ascii encoding="GBK" 
			          src="${src}/org/eclipse/birt/data/oda/util" 
			          dest="${src}/org/eclipse/birt/data/oda/util"
                      ext=".java" 
				 	  includes="OdaResources_zh_CN.msg"
		/>	
		<native2ascii encoding="SJIS" 
			          src="${src}/org/eclipse/birt/data/oda/util" 
			          dest="${src}/org/eclipse/birt/data/oda/util"
					  ext=".java"
			          includes="OdaResources_ja_JP.msg"
				/>
		<native2ascii encoding="MS949" 
			          src="${src}/org/eclipse/birt/data/oda/util" 
			          dest="${src}/org/eclipse/birt/data/oda/util"
					  ext=".java"
			          includes="OdaResources_ko_KR.msg"
				/>
	</target>
</project>





See more files for this project here

BIRT

BIRT is an open source, Eclipse-based reporting system that integrates with your application to produce compelling reports for both web and PDF.

Project homepage: http://www.eclipse.org/birt/phoenix/
Programming language(s): Java,XML
License: gpl2

  META-INF/
    MANIFEST.MF
  lib/
  schema/
    doc/
      org_eclipse_birt_data_oda_datasource.html
    datasource.exsd
  src/
    org/
      eclipse/
        birt/
          data/
            oda/
              impl/
                SimpleConnection.java
                SimpleDataSetMetaData.java
                SimpleDriver.java
                SimpleQuery.java
                SimpleResultSet.java
                SimpleResultSetMetaData.java
                package.html
              util/
                driverconfig/
                logging/
                  FileHandler.java
                  Filter.java
                  Handler.java
                  Level.java
                  LogFormatter.java
                  LogManager.java
                  LogRecord.java
                  Logger.java
                  LoggingErrorHandler.java
                  SimpleFormatter.java
                  StreamHandler.java
                  package.html
                manifest/
                  DataSetType.java
                  DataTypeMapping.java
                  DtpManifestExplorer.java
                  ExtensionManifest.java
                  JavaRuntimeInterface.java
                  ManifestExplorer.java
                  Property.java
                  PropertyChoice.java
                  RuntimeInterface.java
                  TraceLogging.java
                  package.html
                BirtOdaPlugin.java
                OdaResources.java
                OdaResources_de_DE.msg
                OdaResources_es_ES.msg
                OdaResources_fr_FR.msg
                OdaResources_ja_JP.msg
                OdaResources_ko_KR.msg
                OdaResources_zh_CN.msg
                ResourceCache.java
                ResourceManager.java
                StringSubstitutionUtil.java
                package.html
              IAdvancedQuery.java
              IConnection.java
              IDataSetMetaData.java
              IDriver.java
              IParameterMetaData.java
              IParameterRowSet.java
              IQuery.java
              IResultSet.java
              IResultSetMetaData.java
              LogConfiguration.java
              OdaException.java
              SortSpec.java
              package.html
  .classpath
  .project
  BuildOda.xml
  OdaInterfacesManifest
  about.html
  build.properties
  plugin.xml