apache > xml.apache > xindice
 

Compiling Xindice on Windows

Intended audience

This How-to is aimed at developers who want to compile Xindice on Windows.

Purpose

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

Prerequisites

See the prerequisites page.

Steps

Don't skip the prerequisites

Be sure to follow the prerequisites.

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.

  C:\>echo %JAVA_HOME%
  C:\j2sdk1.4.1_01

  C:\>
      

Compile

Navigate to your the location where you unzipped your Xindice sources and run the compile.

Note
This example assumes that you unzip the Xindice sources into D:\xindice\current. If you unzip the sources elsewhere, just substitute that path for D:\xindice\current.
  C:\>d:

  D:\>cd xindice\current\xml-xindice
  D:\xindice\current\xml-xindice>dir
  Volume in drive D is Data
  Volume Serial Number is A3EB-9689

  Directory of D:\xindice\current\xml-xindice

  11/20/2002  08:40p      <DIR>          .
  11/20/2002  08:40p      <DIR>          ..
  10/29/2002  11:59a               1,507 .classpath
  10/29/2002  11:59a                  64 .cvsignore
  10/29/2002  11:59a                 387 .project
  11/18/2002  01:41p      <DIR>          bin
  11/20/2002  10:20a      <DIR>          build
  12/06/2001  10:33a                 864 build.bat
  10/26/2002  05:06p                 431 build.properties.sample
  10/25/2002  01:18a                 753 build.sh
  11/18/2002  01:41p              14,109 build.xml
  11/20/2002  02:43p      <DIR>          classes
  11/18/2002  01:41p      <DIR>          config
  10/25/2002  12:33a                 348 contributor.properties.sample
  10/25/2002  12:33a               2,268 contributor.xml
  11/01/2002  03:53p      <DIR>          deploy
  11/20/2002  03:51p      <DIR>          docs
  11/20/2002  08:40p                  15 fclean.bat
  11/01/2002  01:52p               1,026 forrest.properties
  11/20/2002  03:51p      <DIR>          java
  12/06/2001  11:22a               2,743 LICENSE
  12/06/2001  10:33a                 230 README
  11/18/2002  01:42p      <DIR>          src
  11/01/2002  01:52p               3,668 status.xml
  15 File(s)         28,797 bytes
  12 Dir(s)   6,087,512,064 bytes free

  D:\xindice\current\xml-xindice>build

  Xindice Build System

  Buildfile: build.xml

  init:

  src-build:

  test-build:

  examples-build:

  build:

  jar-release:

  war-release:

  examples-release:

  release:

  BUILD SUCCESSFUL
  Total time: 7 seconds

  D:\xindice\current\xml-xindice>
      
Note
Your compile will probably show a few more lines reporting that some files were compiled. I omitted those for brevity.

Verify the compilation

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

  D:\xindice\current\xml-xindice>dir
  Volume in drive D is Data
  Volume Serial Number is A3EB-9689

  Directory of D:\xindice\current\xml-xindice

  11/18/2002  01:55p      <DIR>          .
  11/18/2002  01:55p      <DIR>          ..
  11/20/2002  03:57p             392,842 xindice-1.1b5-dev.jar
  11/20/2002  03:57p           2,421,719 xindice-1.1b5-dev.war
  11/20/2002  03:57p               1,748 xindice-1.1b5-dev.xml
  11/20/2002  03:57p               6,503 xindice-dom-1.1b5-dev.jar
      

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.

Revisions

Find a problem with this document? Consider contacting the mailing lists or submitting your own revision. For instructions, read the How To Submit a Revision.

by Dave Viner

1.0