struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <>
Subject RE: cvs commit: jakarta-struts/contrib/scaffold build.xml
Date Wed, 02 Jan 2002 15:22:25 GMT

> -----Original Message-----
> From: Ted Husted []
> Sent: 02 January 2002 14:12
> To: Struts Developers List
> Subject: Re: cvs commit: jakarta-struts/contrib/scaffold build.xml
> Vincent Massol wrote:
> > What do you mean by source ? Only the java files or the full tree,
> > including build, conf, etc ?
> Everything, just as it stands.
> > Well, it shows how to package a scaffold application and how to unit
> > test one which is not that bad after all ... :-)
> Sorry, didn't notice the unit tests. 

There aren't much now (it was more to show to implement them) but it is
the idea ...

> It just looked like the blank
> application with the scaffold.jar thrown int.
> > Hey, I'm not saying I'm right here ... ;-). I'm  trying to
> > the motivation behind packaging scaffold as a war ...
> >
> > I find it troubling to deliver a library as a WAR when what we want
> > deliver is actually a jar. However, it is also very important to
> > deliver a sample application for any library, which shows how to use
> > and a war fits nicely for this.
> I guess I'm thinking that the Scaffold "application" could be the
> documentation and unit tests, which would also serve as a sample
> application. To use Scaffold in their own application, they can just
> pull out the JAR, or download the JAR directly from distribution
> (As is being discussed on General.)
> We might also consider an alternative target in the build that created
> blank application, but with the unit tests (since every application
> should have unit tests!), that they could build, and then rename for
> their own application. Rather like the struts-blank, except that you
> just build and new one and rename it, rather than copy and rename.
> Perhaps there could be some settings in the build.xml that also
> customized some of the files for the new blank application?

That looks very much like the sample target or scaffold; it builds a
sample war containing unit tests, ... However, we could go also one more
step further, as I've been doing with Cactus : include a full sample
application with build process and directory structure. Thus is shows
not only how to code an application using the library but also to
integrate it in an automated build process. However, it is very suitable
for Cactus as it is a tool that must be integrated with your build
process (as I've done for Scaffold :-)) but probably less interesting
for a library like scaffold which has no specific relationship to a
build process ...


> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Building Java web applications with Struts.
> -- Tel +1 585 737-3463.
> -- Web
> --
> To unsubscribe, e-mail:   <mailto:struts-dev-
> For additional commands, e-mail: <mailto:struts-dev-

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message