Results 1 to 5 of 5

Thread: Ant task

  1. #1
    Join Date
    Aug 2004
    Posts
    107

    Default Ant task

    Is it possible to extract the necessary logic from the Spring IDE plugin to create an ant task to validate the applicationContext files?

    Dino

  2. #2
    Join Date
    Aug 2004
    Location
    Frankfurt/Main, Germany
    Posts
    253

    Default Re: Ant task

    Quote Originally Posted by hucmuc
    Is it possible to extract the necessary logic from the Spring IDE plugin to create an ant task to validate the applicationContext files?
    Sure, it's possible.

    Spring IDE's beans model and the corresponding parser is (mostly) independent from Eclipse. It's only dependent on Eclipse's IFile /IResource interfaces.

    The beans config validator (which checks the aforementioned model) has more dependencies to Eclipse (mainly the Java type checking stuff provided by Eclipse's Java tooling). This has to be reimplemented with the stuff from "java.beans.*".

    So only a few validations are usable at-is outside of Eclipse (bean references checks).

    Are you volunteering?

    Cheers,
    Torsten

  3. #3
    Join Date
    Aug 2004
    Posts
    107

    Default Re: Ant task

    Maybe.

    Which packages should I be looking at?
    What is the main entry point for the validation?

    Dino

  4. #4
    Join Date
    Aug 2004
    Location
    Frankfurt/Main, Germany
    Posts
    253

    Default Re: Ant task

    Quote Originally Posted by hucmuc
    Which packages should I be looking at?
    Take a look into the plugin "org.springframework.ide.eclipse.beans.core".
    Here the whole validator is defined in the class "org.springframework.ide.eclipse.beans.core.intern al.model.BeansConfigValidator".

    Quote Originally Posted by hucmuc
    What is the main entry point for the validation?
    The main entry point is "BeansConfigValidator.validate()".

    Good luck :-)

    Cheers,
    Torsten

  5. #5
    Join Date
    Aug 2004
    Location
    New York
    Posts
    168

    Default

    Has any work been done in this space?

    The biggest Spring complaint I hear from developers is the lack of build time validation of the application context. The Spring IDE is a huge help but we cannot plug this into the automated build. Aside from that many of our developers use IntelliJ.

    Thanks.

    Karl
    Karl Baum
    weblog: www.jroller.com/page/kbaum

Similar Threads

  1. ApplicationContext in Ant Task.
    By stibrian in forum Container
    Replies: 11
    Last Post: Oct 23rd, 2008, 12:52 PM
  2. Spring jBPM - Task Assignment
    By msegvich in forum Spring-Modules
    Replies: 10
    Last Post: Jan 27th, 2006, 01:31 PM
  3. bat file for invoking beandoc ant task
    By ctassoni in forum Container
    Replies: 1
    Last Post: Aug 27th, 2005, 02:51 AM
  4. Replies: 3
    Last Post: Jun 18th, 2005, 01:04 PM
  5. Replies: 2
    Last Post: Sep 2nd, 2004, 02:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •