For maven, I created the following goal:

<goal name="flattenTapestry">
        <echo>flattening tapestry files to WEB-INF</echo>
        <ant:move todir="${maven.build.dir}/${pom.artifactId}/WEB-INF"
flatten="true">
        <ant:fileset dir="${maven.build.dir}/${pom.artifactId}/tapestry"/>
        </ant:move>
</goal>

Then I called it as a postGoal of war:webapp.  It might be better as a pre
or post goal of java:compile, though.  This took everything in
webapp/tapestry folder and flattened it into webapp/WEB-INF.

-Steve

-----Original Message-----
From: Greg Cormier [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 03, 2006 9:09 AM
To: Tapestry users
Subject: ANT Build file to consolidate page/html files?

I remember a looong time ago I stumbled across a useful ANT build file.

Basically it would allow you to have any structure you wanted so you could
have

/WebRoot/sectionA/a.page
/WebRoot/sectionA/a.html
/WebRoot/sectionB/b1.page
/WebRoot/sectionB/b1.html
/WebRoot/sectionB/b2.page
/WebRoot/sectionB/b2.html
/WebRoot/sectionC/c.page
/WebRoot/sectionC/c.html


Then when you actually built your project using ANT, it would copy all of
those files to /WebRoot.

So while you're working on your project it's nice and organized, but when
you deploy you don't have the hassle of adding every new page you make to
your .application file.

Does anyone remember where that tutorial was, or know how to do it?

Thanks,
Greg

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

Reply via email to