project template processing

From: Andrus (andru..bjectstyle.org)
Date: Tue Jun 25 2002 - 22:01:50 EDT

  • Next message: Andrus Adamchik: "[ANN] WOProject 1.0 alpha released"

    Emily,

    FYI: I just reorganized the way WOTask subclasses work in regards to
    setting up a template for a new project:

    - A template for each project type (or "format" as I called it) is handled
    by a subclass of ProjectFormat class.

    - Internally ProjectFormat works "the Ant way". Instead of regexp or manual
    token substitution it uses FilterSets.

    - Resulting template structure and contents would depend on the
    implementation of 3 abstract methods:
          public Iterator fileIterator()
          public String templateForTarget(String targetName)
          public FilterSetCollection filtersForTarget(String targetName)

    - Existing concrete implementations of ProjectFormat are FrameworkFormat
    and AppFormat. I will work on the later to create meaningful substitutions
    in the files.

    Let me know if you have any problems with this setup. Also I skipped a lot
    of unit tests, so we still need to write them.

    In other news, I added localization support suggested by Anjo Krank (very
    cool indeed). For details see the latest documentation from CVS (Web site
    is not updated till the new release).

    Andrus



    This archive was generated by hypermail 2.0.0 : Tue Jun 25 2002 - 22:01:25 EDT