home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Lucene example source code file (build.xml)

This example Lucene source code file (build.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Lucene tags/keywords

apache, as, asf, asf, conditions, license, license, see, see, software, unicode, without, you, you

The Lucene build.xml source code

<?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
    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="icu" default="default">

  	Provides integration with ICU (International Components for Unicode) for
  	stronger Unicode and internationalization support. 

  <path id="additional.dependencies">
    <fileset dir="lib" includes="icu4j-*.jar"/>

  <pathconvert property="project.classpath"

  <import file="../contrib-build.xml"/>

  <property name="gennorm2.src.dir" value="src/data/utr30"/>
  <property name="gennorm2.src.files" 
  	value="nfkc.txt nfkc_cf.txt BasicFoldings.txt DiacriticFolding.txt DingbatFolding.txt HanRadicalFolding.txt NativeDigitFolding.txt"/>
  <property name="gennorm2.tmp" value="${build.dir}/gennorm2/utr30.tmp"/>
  <property name="gennorm2.dst" value="src/resources/org/apache/lucene/analysis/icu/utr30.nrm"/>
  <target name="gennorm2">
    <echo>Note that the gennorm2 and icupkg tools must be on your PATH. These tools
are part of the ICU4C package. See http://site.icu-project.org/ </echo>
    <mkdir dir="${build.dir}/gennorm2"/>
    <exec executable="gennorm2" failonerror="true">
      <arg value="-v"/>
      <arg value="-s"/>
      <arg value="${gennorm2.src.dir}"/>
      <arg line="${gennorm2.src.files}"/>
      <arg value="-o"/>
      <arg value="${gennorm2.tmp}"/>
    <!-- now convert binary file to big-endian -->
    <exec executable="icupkg" failonerror="true">
      <arg value="-tb"/>
      <arg value="${gennorm2.tmp}"/>
      <arg value="${gennorm2.dst}"/>
    <delete file="${gennorm2.tmp}"/>
  <property name="rbbi.src.dir" location="src/data/uax29"/>
  <property name="rbbi.dst.dir" location="src/resources/org/apache/lucene/analysis/icu/segmentation"/>
  <target name="genrbbi" depends="compile-tools">
    <mkdir dir="${rbbi.dst.dir}"/>
      	<path refid="additional.dependencies"/>
      	<pathelement location="${build.dir}/classes/tools"/>
      <arg value="${rbbi.src.dir}"/>
      <arg value="${rbbi.dst.dir}"/>

  <property name="uax29.supp.macros.output.file" 

  <target name="gen-uax29-supp-macros" depends="compile-tools">
      	<path refid="additional.dependencies"/>
      	<pathelement location="${build.dir}/classes/tools"/>
  <target name="compile-tools" depends="common.compile-tools">
      <classpath refid="classpath"/>

Other Lucene examples (source code examples)

Here is a short list of links related to this Lucene build.xml source code file:

my book on functional programming


new blog posts


Copyright 1998-2019 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.