I thought there was already a model generated with modello in trunk?

Certainly a good idea to move these out of the code, though.

We're interested - just let us know what you propose before doing it :)

- Brett

On 26/06/2006 1:27 PM, Ole Ersoy wrote:
Hey Guys,

Just looking over some of the code, and noticed this
in DefaultArchetype.

    private static final String
DEFAULT_TEST_RESOURCE_DIR = "/src/test/resources";

    private static final String
DEFAULT_TEST_SOURCE_DIR = "/src/test/java";

    private static final String DEFAULT_RESOURCE_DIR =
"/src/main/resources";

    private static final String DEFAULT_SOURCE_DIR =
"/src/main/java";

I thought I'd suggest putting these defaults in the
xml schema, and then generating the model using
eclipse emf, that way the defaults are built into the
model and the code that emf generates.

It generates very elegant code (Interface,
Implementation, Factories, etc.) and whenever the xml
schema changes/the maven model changes, all the
changes  it's just a few clicks and the model is
updated.

I'd be glad to help with this refactoring if there is
any interest.

Cheers,
- Ole

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Brett Porter <[EMAIL PROTECTED]>
Apache Maven - http://maven.apache.org/
Better Builds with Maven - http://library.mergere.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to