Files
doris/fe/build.xml
morningman 585c21fab4 add feature and fix bugs (#148)
Add new features:
1. plugins of Ambari and k8s deploy
2. specified config 'priority_network' to solve some ip problems

Fix bugs:
fix bugs that rebalance does not work in some case.
fix count(*) from union stmt bug
fix some union stmt bugs
fix bugs when try to schema change a clone replica
2017-11-30 16:31:12 +08:00

140 lines
5.2 KiB
XML

<?xml version="1.0"?>
<!--
# Copyright (c) 2017, Baidu.com, Inc. All Rights Reserved
# Licensed 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 name="palo-fe" default="jar" basedir=".">
<property environment="env" />
<!-- set global properties for this build -->
<property name="libdir" value="${basedir}/../thirdparty/installed/lib/jar"/>
<property name="kudulibdir" value="${basedir}/../thirdparty/installed/lib/jar/kudu-client"/>
<property name="k8slibdir" value="${basedir}/../thirdparty/installed/lib/jar/k8s-client"/>
<property name="builddir" value="${basedir}/build/"/>
<property name="genjavadir" value="${basedir}/../gensrc/build/java"/>
<property name="outputdir" value="${basedir}/output/"/>
<echo message="${builddir}"/>
<target name="clean">
<delete quiet="true" dir="${builddir}"/>
<delete quiet="true" dir="${outputdir}"/>
</target>
<target name="prepare">
<mkdir dir="${builddir}"/>
<mkdir dir="${builddir}/compile"/>
<mkdir dir="${builddir}/compile/src"/>
<mkdir dir="${builddir}/compile/test"/>
</target>
<target name="gensrc">
<exec executable="make" failonerror="true" >
<arg line="-C ${basedir}/../gensrc" />
</exec>
</target>
<!-- classpath -->
<path id="classpathid">
<pathelement location="${builddir}/compile/src"/>
<fileset dir="${libdir}">
<include name="*.jar" />
</fileset>
<fileset dir="${kudulibdir}">
<include name="*.jar" />
</fileset>
<fileset dir="${k8slibdir}">
<include name="*.jar" />
</fileset>
</path>
<!-- compile source files. -->
<target name="compile-src" depends="prepare, gensrc">
<javac executable="${env.JAVA_HOME}/bin/javac" destdir="${builddir}/compile/src" source="1.8" includeantruntime="false" debug="true" failonerror="true" debuglevel="lines,vars,source" encoding="UTF-8">
<classpath refid="classpathid"/>
<src path="src"/>
<src path="${genjavadir}"/>
</javac>
<!-- copy dat file of cup and default log4j2.xml -->
<copy todir="${builddir}/compile/src/com/baidu/palo/analysis">
<fileset dir="${genjavadir}/com/baidu/palo/analysis">
<include name="*.dat"/>
</fileset>
</copy>
<copy todir="${builddir}/compile/src/">
<fileset dir="${basedir}/src/com/baidu/palo/common">
<include name="log4j2.xml"/>
</fileset>
</copy>
</target>
<!-- create the jar file -->
<target name="jar" depends="compile-src">
<jar jarfile="${builddir}/palo-fe.jar">
<fileset dir="${builddir}/compile/src">
<include name="**/*.class" />
<include name="**/*.dat" />
<include name="log4j2.xml"/>
</fileset>
</jar>
</target>
<!-- install fe -->
<target name="install" depends="jar">
<mkdir dir="${outputdir}" />
<mkdir dir="${outputdir}/bin" />
<mkdir dir="${outputdir}/conf" />
<mkdir dir="${outputdir}/lib" />
<mkdir dir="${outputdir}/lib/kudu-client" />
<mkdir dir="${outputdir}/lib/k8s-client" />
<mkdir dir="${outputdir}/webroot" />
<exec executable="cp">
<arg line="-rp ${basedir}/../bin/start_fe.sh ${outputdir}/bin/" />
</exec>
<exec executable="cp">
<arg line="-rp ${basedir}/../bin/stop_fe.sh ${outputdir}/bin/" />
</exec>
<copy todir="${outputdir}/conf" >
<fileset dir="${basedir}/../conf/" includes="fe.conf" />
</copy>
<copy todir="${outputdir}/lib" >
<fileset dir="${basedir}/../docs/build/" includes="help-resource.zip" />
</copy>
<copy todir="${outputdir}/lib" >
<fileset dir="${builddir}/" includes="palo-fe.jar" />
<fileset dir="${libdir}" includes="*.jar" />
</copy>
<copy todir="${outputdir}/lib/kudu-client" >
<fileset dir="${kudulibdir}/" includes="*.jar"/>
</copy>
<copy todir="${outputdir}/lib/k8s-client" >
<fileset dir="${k8slibdir}/" includes="*.jar"/>
</copy>
<copy todir="${outputdir}/webroot" >
<fileset dir="${basedir}/../webroot/" />
</copy>
</target>
<!-- compile all the test java source files -->
<target name="compile-test" depends="prepare, compile-src">
<javac destdir="${builddir}/compile/test" source="1.8" includeantruntime="false" debug="true" failonerror="true" debuglevel="lines,vars,source">
<classpath refid="classpathid"/>
<src path="test"/>
</javac>
</target>
</project>