The Source for Java Technology Collaboration


Add a new project from CVS. Make it a Java Project and name it 'platform' (note: if you name it anything else Ant will fail). Tell the new project wizrd that the source is in /src and the build should be in /bin. This is important because these directoris dont exist and thats just what we want. We will change these later once the platform has built.

Once the project has downloaded from CVS go to the Project Properties dialog.

  1. Go to the "Builders" branch
  2. Disable (uncheck) the default Java Builder
  3. Add a new Ant builder, call it 'platform' (name isnt important here, it just cant duplicate an existing builder name)
  4. Use the build file platform/binding/java/build.xml
  5. Go to the Build Options tab and check every box there. You want Ant to be invoked for every kind of build, including incramental builds
  6. If you dont want to build the full Jar ever time there is a build change the default target in the "Targets" tab to something else

Close the properties dialog and let the project build. At this point you should have a clean Jxta Build but there will be errors in the Package Explorer.

  1. Go back into Project Properties and go to the "Java Build Path" branch
  2. Add the following folders as source directories in the "Source" tab:
    • /platform/binding/java/api/src/
    • /platform/binding/java/impl/src/
    • /platform/binding/java/ext/src/
  3. Set the default output folder to match the folder where Ant compiles JXTA:
    • platform/binding/java/classes
  4. In the "Libraries" tab add all libraries from: * /platform/binding/java/lib * /platform/binding/java/ext/lib

Now when you include the platform in another project you will be able to debug platform code using the built in debugger. This last step also enables you to jump to platform code from other code correctly.

-- Main.racerxky - 13 Oct 2004

Topic HowToBuildUsingEclipse . { Edit | Ref-By | Printable | Diffs r4 < r3 < r2 < r1 | More }
 XML java.net RSS

Revision r4 - 13 Oct 2004 - 05:28:00 - Main.racerxky
Parents: WebHome > BuildingJXTA