You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Greg Cormier <Gr...@pwgsc.gc.ca> on 2006/04/03 18:08:49 UTC
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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: ANT Build file to consolidate page/html files?
Posted by Derick Fernando <de...@thelabllc.com>.
I think you mean the collect task at t-deli.com
http://t-deli.com/#collect
Greg Cormier wrote:
> 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: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
> __________ NOD32 1.1467 (20060402) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
>
--
.........................................
Derick Fernando
Lead Architect
derickf@thelabllc.com
http://www.thelabllc.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: ANT Build file to consolidate page/html files?
Posted by Steve Shucker <ss...@vmsinfo.com>.
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:Greg.L.Cormier@pwgsc.gc.ca]
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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org