Setting Enhydra Kelp Project Properties

Setting Enhydra Kelp Project Properties

Together Teamlösungen EDV-Dienstleistungen GmbH

Elmargasse 2-4 A-1190 Vienna Austria Phone: +43 (0) 5 04 04 - 122 Fax: +43 (0) 5 04 04 - 11 122 E-Mail: Web: http://www.together.at/together/index.html

All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, without the prior written permission of the Together Teamlösungen EDV-Dienstleistungen GmbH.

Together Teamlösungen EDV-Dienstleistungen GmbH DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.


Table of Contents

1. Kelp Project Properties
Builders
Java Builder
enhydra-ant xmlc
enhydra-ant dods
enhydra-ant rebuild
Java Build Path

Chapter 1. Kelp Project Properties

Eclipse provides many properties that let you customize your projects. After opening a project that you want to use with Enhydra, choose Project|Properties to configure 'Builders', 'Java Build Path', 'Java Code Stile' and 'Java Compiler' project settings.

To open the Project Properties dialog box:

  • choose 'Project > Properties' in main worbench menu.

  • right-click the project and choose 'Properties' from the right-click menu.

Eclipse opens a project (Enhydra Kelp project in our case) specific property page.

Builders

The whole point of project builders is that they are not explicitly run by the user, but instead are run any time a qualifying build takes place for the project that owns the buildfile. Remember that the builders are triggered as indicated on the Build Options tab in the External Tools dialog and can be any combination of after a clean, during a manual build or during auto builds.

Java Builder

The Java builder builds Java programs using a compiler that implements the Java Language Specification. The Java builder can build programs incrementally as individual Java files are saved. Problems detected by the compiler are classified as either warnings or errors. The existence of a warning does not affect the execution of the program; the code executes as if it were written correctly. Compile-time errors (as specified by the Java Language Specification) are always reported as errors by the Java compiler. For some other types of problems you can, however, specify if you want the Java compiler to report them as warnings, errors or to ignore them. To change the default settings, use the Window > Preferences > Java > Compiler > Errors/Warnings preference page. The Java compiler can create CLASS files even in presence of compilation errors. However, in the case of serious errors (for example, references to inconsistent binaries, most likely related to an invalid build path), the Java builder does not produce any CLASS files.

enhydra-ant xmlc

This project build action will start external (Enhydra or Enhydra Enterprise Server) 'enhydra-ant' executable in projects directory with purpose to perform ant build 'xmlc' target. This action will regenerate java classes (only) for changed XMLC resource files. This new and/or modified classes will be automatically recompiled to projects output directory.

This external builder will be executed during every project autobuild (configurable option).

The Kelp Deployer (if XMLC generator option is enabled for ANT rebuild target) also uses this task during its execution (configurable option from 'Enhydra Tools -> XML Compiler' main workbench menu dialog).

enhydra-ant dods

This project build action will start external (Enhydra or Enhydra Enterprise Server) 'enhydra-ant' executable in projects directory with purpose to perform ant build 'dods' target. This action will regenerate DODS java classes for actual application DOML file. This new and/or modified classes will be automatically recompiled to projects output directory.

This external builder will be executed during every manual project build (configurable option).

The Kelp Deployer (if DODS generator option is enabled for ANT rebuild target) also uses this task during its execution (configurable option from 'Enhydra Tools -> DODS Generator' main workbench menu dialog).

enhydra-ant rebuild

This project build action will start external (Enhydra or Enhydra Enterprise Server) 'enhydra-ant' executable in projects directory with purpose to perform ant build 'rebuild' target. This action will regenerate (first clean and then generate again) complete project output.

This external builder will be executed during every manual project build (configurable option).

The Kelp Deployer uses this task (exactly) during its execution.

Java Build Path

This is the place where you can administer 'Java build settings' of your new Eclipse-Enhydra Project.

  • Source folders on projects build path.

  • Required projects on the build path.

  • JARs and class directories on projects build path.

    NOTE: All initial entries are not contained in the projects file structure but they are externally referenced to your Enhydra or Enhydra Enterprise Server and JRE installation.

  • Build class path order and export entries (Exported entries are contributed to dependent projects)

  • Default output directory