Ok here goes. I am using a custom archetype to create
an AppFuse style project. We create a lot of small
projects in our organization and we want the directory
structure to be the same. There will be a view,
service, and model directory in every application.
These directories contain some basic base classes. So
when I run the archetype I would like the directory
structure to have a
${packageName}/services/SomeService.java file, a
${packageName}/view/SomeBackingBean.java file, and a
${packageName}/model/SomeModel.java file. 

>From all the examples that I have seen out there all
the archetypes are very simple and just dump a file
out  to the ${packageName}/App.java. 

I want to be able to do a little more with the
directory structure than just dump out the main
package. I would think that this is possible, but I
can't see how to do it. 

That help?





--- Alexandre Poitras <[EMAIL PROTECTED]>
wrote:

> I really don't get what you want. Could you explain
> more precisely
> 
> On 5/4/06, bryan hansen <[EMAIL PROTECTED]> wrote:
> > I am creating a custom archetype and am not seeing
> a
> > way to have folders carried throught the
> archetype. I
> > have a source file in the resources directory such
> as:
> >
> >
>
src/main/resources/archetype-resources/src/main/java/App.java
> >
> > When I run this through the archetype:create
> command
> > it will place this file under the package
> directory
> > correctly. src/main/java/com/mycompany/App.java
> >
> > I want to have some folders that get carried
> through
> > though such as:
> >
> >
>
src/main/resources/archetype-resources/src/main/java/service/AppService.java
> >
> > so that when I run the archetype:create command it
> > will be placed in a folder like this:
> >
> >
> src/main/java/com/mycompany/service/AppService.java
> >
> > The way it is working now by putting it under the
> > resources directory it is building out a directory
> > structure and duplicating the package name
> underneath
> > it.
> >
> src/main/java/service/com/mycompany/AppService.java
> >
> > Is it possible with the archetype to have it
> create
> > the directory structure and carry it through like
> I
> > described?
> >
> > Thanks,
> >
> > Bryan
> >
> > __________________________________________________
> > 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]
> >
> >
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__________________________________________________
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]

Reply via email to