All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pivotal.gemfirexd.internal.jdbc.build.xml Maven / Gradle / Ivy

There is a newer version: 2.0-BETA
Show newest version
<?xml version="1.0"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

<project default="jdbc" basedir="../../../../../..">

<!-- Set Properties -->
  <!-- User settings -->
  <property file="${user.home}/ant.properties"/>
  <!-- Set property lib dir -->
  <property name="properties.dir" value="tools/ant/properties"/>
  <!-- Significant dirs -->
  <property file="${properties.dir}/dirs.properties"/>
  <!-- Compiler settings -->
  <property file="${properties.dir}/defaultcompiler.properties"/>
  <property file="${properties.dir}/${build.compiler}.properties"/>
  <!-- Compile-time classpath properties files -->
  <property file="${properties.dir}/extrapath.properties"/>
  <property file="${properties.dir}/compilepath.properties"/>

<!-- Targets -->
  <target name="jdbc" depends="compile_jdbc2,compile_jdbc3,compile_jdbc4"/>

<!-- build targets which need jdbc2.0 libs in the end-->
<!-- first build all non-special (non jdbc2.0) targets-->
  <target name="compile_jsr169">
    <javac
      source="1.7"
      target="1.7"
      bootclasspath="${empty}"
      nowarn="on"
      debug="${debug}"
      depend="${depend}"
      deprecation="${deprecation}"
      optimize="${optimize}"
      proceed="${proceed}"
      verbose="${verbose}"
      srcdir="${derby.engine.src.dir}"
      destdir="${out.dir}">
      <classpath>
            <pathelement path="${java16compile.classpath}"/>
      </classpath>
      <include name="${derby.dir}/jdbc/InternalDriver.java"/>
      <include name="${derby.dir}/jdbc/EmbeddedSimpleDataSource.java"/>
    </javac>
 
  </target>
	  <target name="compile_jsr169_opt">
	    <javac
	      source="1.7"
	      target="1.7"
	      bootclasspath="${empty}"
	      nowarn="on"
	      debug="${debug}"
	      depend="${depend}"
	      deprecation="${deprecation}"
	      optimize="${optimize}"
	      proceed="${proceed}"
	      verbose="${verbose}"
	      srcdir="${derby.engine.src.dir}"
	      destdir="${out.dir}">
	      <classpath>
            <pathelement path="${java16compile.classpath}"/>
	      </classpath>
	      <include name="${derby.dir}/jdbc/Driver169.java"/>
	    </javac>
	  </target>
	
  <target name="compile_jdbc2" depends="compile_jsr169">
    <javac
      source="1.7"
      target="1.7"
      bootclasspath="${empty}"
      nowarn="on"
      debug="${debug}"
      depend="${depend}"
      deprecation="${deprecation}"
      optimize="${optimize}"
      proceed="${proceed}"
      verbose="${verbose}"
      srcdir="${derby.engine.src.dir}"
      destdir="${out.dir}">
      <classpath>
            <pathelement path="${java16compile.classpath}"/>
      </classpath>
      <include name="${derby.dir}/jdbc/AutoloadedDriver.java"/>
      <include name="${derby.dir}/jdbc/EmbeddedDriver.java"/>
      <include name="${derby.dir}/jdbc/ReferenceableDataSource.java"/>
      <include name="${derby.dir}/jdbc/EmbeddedDataSource.java"/>
      <include name="${derby.dir}/jdbc/EmbeddedConnectionPoolDataSource.java"/>
      <include name="${derby.dir}/jdbc/EmbedPooledConnection.java"/>
	  <include name="${derby.dir}/jdbc/Driver20.java"/>
    </javac>
 </target>

 <target name="compile_jdbc3">
    <javac
      source="1.7"
      target="1.7"
      bootclasspath="${empty}"
      nowarn="on"
      debug="${debug}"
      depend="${depend}"
      deprecation="${deprecation}"
      optimize="${optimize}"
      proceed="${proceed}"
      verbose="${verbose}"
      srcdir="${derby.engine.src.dir}"
      destdir="${out.dir}">
      <classpath>
            <pathelement path="${java16compile.classpath}"/>
      </classpath>
      <include name="${derby.dir}/jdbc/Driver30.java"/>
      <include name="${derby.dir}/jdbc/EmbedXAConnection.java"/>
      <include name="${derby.dir}/jdbc/EmbeddedXADataSource.java"/>
      <include name="${derby.dir}/jdbc/XATransactionState.java"/>
      <include name="${derby.dir}/jdbc/XAStatementControl.java"/>
      <include name="${derby.dir}/jdbc/ResourceAdapterImpl.java"/>
   </javac>  
  </target>
  
  <target name="compile_jdbc4" if="jdk16">
    <javac
      source="1.7"
      target="1.7"
        fork="yes"
        executable="${jdk16}/bin/javac"
        bootclasspath="${empty}"
        nowarn="on"
        debug="${debug}"
        depend="${depend}"
        deprecation="${deprecation}"
        optimize="${optimize}"
        proceed="${proceed}"
        verbose="${verbose}"
        srcdir="${derby.engine.src.dir}"
        destdir="${out.dir}">
        <classpath>
            <pathelement path="${java16compile.classpath}"/>
        </classpath>
        <include name="${derby.dir}/jdbc/*40.java"/>
    </javac>

  </target> 
</project>





© 2015 - 2024 Weber Informatics LLC | Privacy Policy