2011/08/15 - Apache Xindice has been retired.

For more information, please explore the Attic.

apache > xml.apache > xindice
 

Compiling Xindice on Windows

Intended audience

This How-to is aimed at developers who want to compile Xindice from the source distribution or from a Subversion checkout on Windows.

Purpose

Following the steps of this how-to should allow you to compile Xindice on Windows.

Prerequisites

Obtain a working version of the JDK 1.3 or higher. You can get the jdk from lots of places, one of which is Sun.

Obtain the Xindice sources from the download page or via Subversion checkout.

Steps

Place holders used in the Steps

  • {XINDICE_HOME} - Directory where you have unzipped your Xindice source files.
  • {JAVA_VERSION} - Installed JDK Version.

Verify your environment

Open a new command window. Click Start, choose Run. Enter cmd and hit return. A new command window should appear.

Make sure you have the JAVA_HOME environment variable set.

  > echo %JAVA_HOME%
  C:\j2sdk{JAVA_VERSION}
      

Compile

Navigate to the location where you unzipped your Xindice sources (or to your svn checkout of Xindice source code) and run the build batch file. Your output will resemble:

  > cd {XINDICE_HOME}
  > build
  Using Java from C:\j2sdk{JAVA_VERSION}
  Buildfile: build.xml

  init:
     [echo] Building with Java {JAVA_VERSION}

  compile-src:
    [mkdir] Created dir: {XINDICE_HOME}\build\classes-dom
    [javac] Compiling 4 source files to {XINDICE_HOME}\build\classes-dom
    [mkdir] Created dir: {XINDICE_HOME}\build\classes
    [javac] Compiling 287 source files to {XINDICE_HOME}\build\classes

  compile-test:
    [mkdir] Created dir: {XINDICE_HOME}\build\classes-tests
    [mkdir] Created dir: {XINDICE_HOME}\build\test-results
    [javac] Compiling 62 source files to {XINDICE_HOME}\build\classes-tests
     [copy] Copying 65 files to {XINDICE_HOME}\build\classes-tests

  jar:
      [jar] Building jar: {XINDICE_HOME}\xindice-1.1.jar
      [jar] Building jar: {XINDICE_HOME}\xindice-dom-1.1.jar

  bin:
    [mkdir] Created dir: {XINDICE_HOME}\build\bin
     [copy] Copying 5 files to {XINDICE_HOME}\build\bin

  war:
     [copy] Copying 1 file to {XINDICE_HOME}
      [war] Building war: {XINDICE_HOME}\xindice-1.1.war

  BUILD SUCCESSFUL
  Total time: 13 seconds
      

Verify the compilation

If the compile was succeeded, you will find the output files in the current directory.

  > dir xindice-*
  
   Directory of {XINDICE_HOME}

  09/27/2007  09:24 PM           628,694 xindice-1.1.jar
  09/27/2007  09:24 PM         5,184,315 xindice-1.1.war
  09/27/2007  09:24 PM             1,791 xindice-1.1.xml
  09/27/2007  09:24 PM             6,535 xindice-dom-1.1.jar
               4 File(s)      5,821,335 bytes
               0 Dir(s)   3,745,992,704 bytes free
      

Feedback

If you run into problems, don't worry. Be sure to send feedback so that we can improve these documents for the next person.

by Dave Viner

1.1