<archetype>
   <id>tapestry-simple</id>
   <resources>
       <resource>.classpath</resource>
       <resource>.project</resource>
       <resource>src/main/webapp/WEB-INF/web.xml</resource>
       <resource>src/main/webapp/WEB-INF/Start.html</resource>
       <resource>src/main/resources/log4j.properties</resource>
       <resource>src/test/java/PLACEHOLDER</resource>
       <resource>src/test/resources/PLACEHOLDER</resource>
   </resources>
   <sources>
       <source>src/main/java/pages/Start.java</source>
       <source>src/main/java/services/AppModule.java</source>
   </sources>
</archetype>

<source> appears to work with -DpackageName=x.y.z to place the various
Java places in the right place under src/main/java.

But I can't find the equivalent for a resource file.

On 3/3/07, Manos Batsis <[EMAIL PROTECTED]> wrote:
Howard Lewis Ship wrote:
> I'm trying to create a archetype where some of my Java source files
> have related resources.  Thus, if I have a Java source as
> src/main/java/pages/Start.java, I would like to have a companion
> src/main/resources/pages/Start.properties.
>
> In the generated application, these would both be qualified with the
> package name, ex: src/main/java/org/example/myapp/pages/Start.java and
> src/main/resources/org/example/myapp/pages/Start.properties.
>
> The .java file is no problem, but I haven't found how to do the
> related resource.

Err, i cant really answer your question but can you please tip me on how
to do this for the java files at least? I asked the question some time
ago [1], maybe my terminology probably stopped people from passing an
answer.

I was thinking to go the antrun route and work something out there, in
any case if a solution is available it would be of great help.

[1]
http://www.nabble.com/Arbitary-directory-package-names-with-archetype:create--t3285139s177.html

Many thanks in advance,

Manos

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




--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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

Reply via email to