You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Leif Mortenson <le...@silveregg.co.jp> on 2002/01/28 07:55:55 UTC
Examples directory for Excalibur
I was thinking about starting on an examples directory with the goal of
starting to provide a place where new (and long time) users can go to
find simple sample applications showing how to make use of the numerous
features in Excalibur.
To many people, having a simple example that they can build and run
quickly out of the box is more valuable than a stack of documentation.
Currently, many of the features are not yet documented and learning how
to use certain features can involve many hours searching through the
mailing list archives :-)
Here is what I propose. Create a directory called examples in
Excalibur's root directory. Then each example would be placed within
this directory as its own independent project. Each example would
contain its own build.xml file to keep things simple, and would build to
a target inside that directory. The build would make use of the standard
build tools included in the jakarta-avalon project and all avalon jars
would be referenced in their parent directories. So the examples would
require that Excalibur was first built.
I was going to take a crack at writing an example that shows how to work
with JdbcDataSources as there are so many questions about how they are
used on the list. Other examples that would be good to have initially
are showing how to configure logkit. Or simply loading a single hello
world component using configuration / roles.xml files and the
ComponentManager.
It might be useful to also have a common directory where jars used by
the examples could be placed (The hsqldb.jar, or mysql.jar files for
example).
One other option would be to create a new project called
jakarta-avalon-examples where these could be located. That would prevent
the jakarta-avalon-excalibur project for getting too cluttered.
Thoughts how this should be structured? Obviously, the first few should
also include documentation to get that going as a standard. :-) Using
the Cocoon based docs seems like the best way to do so...
Leif
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Examples directory for Excalibur
Posted by Peter Donald <pe...@apache.org>.
On Wed, 30 Jan 2002 00:03, Stephen McConnell wrote:
> *snip*
>
> > Well in the near future I had the following in mind. I need to
> > have certain components in excalibur distributable (is that a word?)
>
> distributable \Dis*trib"u*ta*ble\, a.
> Capable of being distributed.
> --Sir W. Jones.
> Source: Webster's Revised Unabridged Dictionary,
> © 1996, 1998 MICRA, Inc.
excellent! I love it when I make up words and they turn out to be real ones ;)
--
Cheers,
Pete
--------------------------------
These aren't the droids you're
looking for. Move along.
--------------------------------
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Examples directory for Excalibur
Posted by Stephen McConnell <mc...@osm.net>.
*snip*
> Well in the near future I had the following in mind. I need to
> have certain components in excalibur distributable (is that a word?)
distributable \Dis*trib"u*ta*ble\, a.
Capable of being distributed.
--Sir W. Jones.
Source: Webster's Revised Unabridged Dictionary,
© 1996, 1998 MICRA, Inc.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Examples directory for Excalibur
Posted by Peter Donald <pe...@apache.org>.
On Mon, 28 Jan 2002 17:55, Leif Mortenson wrote:
> I was going to take a crack at writing an example that shows how to work
> with JdbcDataSources as there are so many questions about how they are
> used on the list. Other examples that would be good to have initially
> are showing how to configure logkit. Or simply loading a single hello
> world component using configuration / roles.xml files and the
> ComponentManager.
That would be great. Theres definetly a high barrier of entry for some
components because they have no examples or documentation - some don't even
have javadocs ;)
> Thoughts how this should be structured? Obviously, the first few should
> also include documentation to get that going as a standard. :-) Using
> the Cocoon based docs seems like the best way to do so...
Well in the near future I had the following in mind. I need to have certain
components in excalibur distributable (is that a word?) separately. So if I
just want the CLI package I can just grab excalibur-cli-1.0.jar or whatever.
Theres a bunch of stuff I have at home I have got to commit up and theres a
bunch of stuff that I want to organize better and stabilize and bring into
excalibur. I wanted to move this to the commons project but that doesn't
really seem viable so I was going to create a separate hierarchy like
jakarta-avalon-excalibur\aut\cli\... <insert cli package here>
jakarta-avalon-excalibur\aut\io\... <insert io package here>
jakarta-avalon-excalibur\aut\tar\... <insert tar package here>
jakarta-avalon-excalibur\aut\naming\... <insert naming package here>
That way would be much easier to use any of these little components. I was
thinking of doing this mid-late feb but if you want to start something like
this now then that would be great. You could then put examples in the
respective directories such as
jakarta-avalon-excalibur\aut\jdbc\examples\example1
jakarta-avalon-excalibur\aut\jdbc\examples\example2
etc
This keeps the examples small and relevent to the component - nice and
focused and should make maintanence of the whole toolkit much easier.
Thoughts?
--
Cheers,
Pete
--------------------------------------------------
Logic: The art of being wrong with confidence...
--------------------------------------------------
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: datasource build failure
Posted by Stephen McConnell <mc...@apache.org>.
Committer-muscles flexed and fix applied :-)
Cheer, Steve.
> -----Original Message-----
> From: Peter Donald [mailto:peter@apache.org]
> Sent: Saturday, 02 February, 2002 12:16
> To: Avalon Developers List
> Subject: Re: datasource build failure
>
>
> Hi,
>
> perfect oportunity to flex your new committer-muscles and apply the fix ;)
>
> On Sat, 2 Feb 2002 22:16, Stephen McConnell wrote:
> > Current CVS of Excalibur/datasource is not building due to
> > some errors in the Jdbc3Connection.java source. ResultSetType
> > is spelt ResulSetType (missing 't') in three places.
> >
> > Cheers, Steve.
> >
> >
> > ==============================================================
> >
> > RCS file:
> >
> /home/cvspublic/jakarta-avalon-excalibur/src/java/org/apache/avalo
> n/excalib
> >u r/datasource/Jdbc3Connection.java,v
> > retrieving revision 1.10
> > diff -r1.10 Jdbc3Connection.java
> > 237c237
> > < public final Statement createStatement(int resulSetType,
> > ---
> >
> > > public final Statement createStatement(int resultSetType,
> >
> > 251c251
> > < int resulSetType,
> > ---
> >
> > > int resultSetType,
> >
> > 265c265
> > < int resulSetType,
> > ---
> >
> > > int resultSetType,
>
> --
> Cheers,
>
> Pete
>
> "The ability to quote is a serviceable substitute for wit." -- Maugham
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: datasource build failure
Posted by Peter Donald <pe...@apache.org>.
Hi,
perfect oportunity to flex your new committer-muscles and apply the fix ;)
On Sat, 2 Feb 2002 22:16, Stephen McConnell wrote:
> Current CVS of Excalibur/datasource is not building due to
> some errors in the Jdbc3Connection.java source. ResultSetType
> is spelt ResulSetType (missing 't') in three places.
>
> Cheers, Steve.
>
>
> ==============================================================
>
> RCS file:
> /home/cvspublic/jakarta-avalon-excalibur/src/java/org/apache/avalon/excalib
>u r/datasource/Jdbc3Connection.java,v
> retrieving revision 1.10
> diff -r1.10 Jdbc3Connection.java
> 237c237
> < public final Statement createStatement(int resulSetType,
> ---
>
> > public final Statement createStatement(int resultSetType,
>
> 251c251
> < int resulSetType,
> ---
>
> > int resultSetType,
>
> 265c265
> < int resulSetType,
> ---
>
> > int resultSetType,
--
Cheers,
Pete
"The ability to quote is a serviceable substitute for wit." -- Maugham
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
datasource build failure
Posted by Stephen McConnell <mc...@apache.org>.
Current CVS of Excalibur/datasource is not building due to
some errors in the Jdbc3Connection.java source. ResultSetType
is spelt ResulSetType (missing 't') in three places.
Cheers, Steve.
==============================================================
RCS file:
/home/cvspublic/jakarta-avalon-excalibur/src/java/org/apache/avalon/excalibu
r/datasource/Jdbc3Connection.java,v
retrieving revision 1.10
diff -r1.10 Jdbc3Connection.java
237c237
< public final Statement createStatement(int resulSetType,
---
> public final Statement createStatement(int resultSetType,
251c251
< int resulSetType,
---
> int resultSetType,
265c265
< int resulSetType,
---
> int resultSetType,
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Examples directory for Excalibur
Posted by Peter Donald <pe...@apache.org>.
On Wed, 30 Jan 2002 01:40, Leif Mortenson wrote:
> I am trying to understand this :-) Are you planning on restructuring
> existing packages into a buch on sub projects within the excalibur
> project?
possibly. Depends on how things go with the jakarta commons project. In about
a week I have a need to distribute single utility toolkits from excalibur
separately so if it can't be done in commons I will do it in Avalon.
> What does 'aut' stand for?
Avalon Utility Toolkit - really just an arbitrary name used to create another
directory. If you can think of a better name then that would be great.
> I was actually thinking that having a project whose sole purpose was to
> be a home for various examples would make it easier for new users to get
> their hands around Avalon. Each example will be completely independent
> and run "out of the box" without the user having to much. My goal was
> to be able to have people see a JdbcDataSource, or Logger example
> mentioned on the website. Be able to download the examples project and
> then have the example running on their machine where they can see it
> work all within 15min to an hour (plus download of course) :-)
kool. I would love to see the same. I guess I see it being of more advantage
if the examples only focus on a single component. Makes it much simpler to do.
> I saw a couple of drawbacks to placing the examples in the
> jakarta-avalon-excalibur project.
> 1) It would make the size of the project balloon and be harder to manage.
>
> 2) Having everything together would make the whole Avalon system harder
> to get your arms around. Both for developers and users.
Those are the two I guess I like least. Thats why if we do break down the
components down into single directories (like aut/cli, aut/jdbc etc) this
will be less of an issue. You will be able to include as many examples of the
different components without confusing people who dont want to look at the
component.
> I will upload an archive containing a draft of a new
> jakarta-avalon-examples project which includes a JdbcDataSource example
> application, in the morning.
kool - will look at it in a bit - I assume it has already come through by now
;)
> I think that I am missing what you want to do with the
> excalibur-cli-1.0.jar and other feature specific jars. But couldn't
> that already be done now by simply building the specific jars, including
> only certain packages from the source?
yep - but it is still more complex for us to maintain I think.
--
Cheers,
Pete
*-----------------------------------------------------*
| For those who refuse to understand, no explanation |
| will ever suffice. For those who refuse to believe, |
| no evidence will ever suffice. |
*-----------------------------------------------------*
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [VOTE] Release Excalibur (was Re: Examples directory for Excalibur)
Posted by Leif Mortenson <le...@silveregg.co.jp>.
+1 on Release.
I am pushing for the examples in their own package, so it wouldn't
affect the Excalibur release anyway :-)
Leif
Carsten Ziegeler wrote:
>
> On Wed, 30 Jan 2002 01:54, Berin Loritsch wrote:
>
>>I am all for examples on how to use Excalibur, but before we
>>
> continue with
>
>>this discussion, I need to know if there is anything that would block a
>>release.
>>
>>We really need to get a release out soon.
>>
>>All in favor: +1
>>
>
> +1
>
> Carsten
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: [VOTE] Release Excalibur (was Re: Examples directory for Excalibur)
Posted by Carsten Ziegeler <cz...@s-und-n.de>.
On Wed, 30 Jan 2002 01:54, Berin Loritsch wrote:
> I am all for examples on how to use Excalibur, but before we
continue with
> this discussion, I need to know if there is anything that would block a
> release.
>
> We really need to get a release out soon.
>
> All in favor: +1
+1
Carsten
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [VOTE] Release Excalibur (was Re: Examples directory for Excalibur)
Posted by Peter Donald <pe...@apache.org>.
On Wed, 30 Jan 2002 01:54, Berin Loritsch wrote:
> I am all for examples on how to use Excalibur, but before we continue with
> this discussion, I need to know if there is anything that would block a
> release.
>
> We really need to get a release out soon.
>
> All in favor: +1
+1
--
Cheers,
Pete
------------------------------------------------------
Mark Twain: "In the real world, the right thing never
happens in the right place at the right time. It is
the task of journalists and historians to rectify
this error."
------------------------------------------------------
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Examples directory for Excalibur
Posted by Leif Mortenson <le...@silveregg.co.jp>.
Peter Donald wrote:
>On Wed, 30 Jan 2002 11:45, Leif Mortenson wrote:
>
>>Leif Mortenson wrote:
>>
>>>I will upload an archive containing a draft of a new
>>>jakarta-avalon-examples project which includes a JdbcDataSource
>>>example application, in the morning.
>>>
>>Ok, here is the draft for the proposed jakarta-avalon-examples project.
>>
>
>kool. Im still not sure we need a new CVS for this just yet. Perhaps it would
>be best to just start an examples directory and when that gets too big we can
>always split off then.
>
Ok, that sounds good. I'll go ahead and start on that then.
Cheers,
Leif
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Examples directory for Excalibur
Posted by Peter Donald <pe...@apache.org>.
On Wed, 30 Jan 2002 11:45, Leif Mortenson wrote:
> Leif Mortenson wrote:
> > I will upload an archive containing a draft of a new
> > jakarta-avalon-examples project which includes a JdbcDataSource
> > example application, in the morning.
>
> Ok, here is the draft for the proposed jakarta-avalon-examples project.
kool. Im still not sure we need a new CVS for this just yet. Perhaps it would
be best to just start an examples directory and when that gets too big we can
always split off then.
> (Sorry this mail is so big. Someplace else files like this can be
> uploaded?)
If you want you could usually place it in your jakarta account - ie
http://cvs.apache.org/~leif/my.zip but Im generally to lazy to do that ;)
> I still have to get the documentation for the first example in, but I
> wanted to get some feedback on the general directory layout, and style
> of the example.
looks good so far ! ;)
--
Cheers,
Pete
The big mistake that men make is that when they turn thirteen or fourteen and
all of a sudden they've reached puberty, they believe that they like women.
Actually, you're just horny. It doesn't mean you like women any more at
twenty-one than you did at ten. --Jules Feiffer (cartoonist)
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Examples directory for Excalibur
Posted by Leif Mortenson <le...@silveregg.co.jp>.
Leif Mortenson wrote:
> I will upload an archive containing a draft of a new
> jakarta-avalon-examples project which includes a JdbcDataSource
> example application, in the morning.
Ok, here is the draft for the proposed jakarta-avalon-examples project.
(Sorry this mail is so big. Someplace else files like this can be
uploaded?)
I still have to get the documentation for the first example in, but I
wanted to get some feedback on the general directory layout, and style
of the example.
Cheers,
Leif
Re: [VOTE] Release Excalibur (was Re: Examples directory for Excalibur)
Posted by Leif Mortenson <le...@silveregg.co.jp>.
Berin Loritsch wrote:
> I am all for examples on how to use Excalibur, but before we continue with
> this discussion, I need to know if there is anything that would block a
> release.
>
> We really need to get a release out soon.
>
> All in favor: +1
>
>
> Leif, are you done with the DataSource code yet?
Yes, the Excalibur DataSource is done, I'm not aware of any other
outstanding problems with it.
>
> I am currently +1, if you vote in the negative, please let me know what
> needs
> to be fixed first.
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [VOTE] Release Excalibur (was Re: Examples directory for Excalibur)
Posted by Berin Loritsch <bl...@apache.org>.
Eung-ju Park wrote:
>
> +1.
> Is next version 4.1?
Yes.
--
"They that give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
- Benjamin Franklin
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [VOTE] Release Excalibur (was Re: Examples directory for Excalibur)
Posted by Eung-ju Park <co...@apache.org>.
----- Original Message -----
From: "Berin Loritsch" <bl...@apache.org>
To: "Avalon Developers List" <av...@jakarta.apache.org>
Sent: Tuesday, January 29, 2002 11:54 PM
Subject: [VOTE] Release Excalibur (was Re: Examples directory for Excalibur)
> I am all for examples on how to use Excalibur, but before we continue with
> this discussion, I need to know if there is anything that would block a
release.
>
> We really need to get a release out soon.
>
> All in favor: +1
>
>
> Leif, are you done with the DataSource code yet?
>
> I am currently +1, if you vote in the negative, please let me know what
needs
> to be fixed first.
+1.
Is next version 4.1?
>
> --
>
> "They that give up essential liberty to obtain a little temporary safety
> deserve neither liberty nor safety."
> - Benjamin Franklin
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
[VOTE] Release Excalibur (was Re: Examples directory for Excalibur)
Posted by Berin Loritsch <bl...@apache.org>.
I am all for examples on how to use Excalibur, but before we continue with
this discussion, I need to know if there is anything that would block a release.
We really need to get a release out soon.
All in favor: +1
Leif, are you done with the DataSource code yet?
I am currently +1, if you vote in the negative, please let me know what needs
to be fixed first.
--
"They that give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
- Benjamin Franklin
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Examples directory for Excalibur
Posted by Leif Mortenson <le...@silveregg.co.jp>.
Peter Donald wrote:
> On Mon, 28 Jan 2002 17:55, Leif Mortenson wrote:
>
>>I was going to take a crack at writing an example that shows how to work
>>with JdbcDataSources as there are so many questions about how they are
>>used on the list. Other examples that would be good to have initially
>>are showing how to configure logkit. Or simply loading a single hello
>>world component using configuration / roles.xml files and the
>>ComponentManager.
>>
>
> That would be great. Theres definetly a high barrier of entry for some
> components because they have no examples or documentation - some
don't > even have javadocs ;)
>
>
>>Thoughts how this should be structured? Obviously, the first few should
>>also include documentation to get that going as a standard. :-) Using
>>the Cocoon based docs seems like the best way to do so...
>>
>
> Well in the near future I had the following in mind. I need to have
> certain components in excalibur distributable (is that a word?)
> separately. So if I just want the CLI package I can just grab
> excalibur-cli-1.0.jar or whatever.
> Theres a bunch of stuff I have at home I have got to commit up and
> theres a bunch of stuff that I want to organize better and stabilize
> and bring into excalibur. I wanted to move this to the commons project
> but that doesn't really seem viable so I was going to create a
> separate hierarchy like
>
> jakarta-avalon-excalibur\aut\cli\... <insert cli package here>
> jakarta-avalon-excalibur\aut\io\... <insert io package here>
> jakarta-avalon-excalibur\aut\tar\... <insert tar package here>
> jakarta-avalon-excalibur\aut\naming\... <insert naming package here>
>
> That way would be much easier to use any of these little components. I
> was thinking of doing this mid-late feb but if you want to start
> something like this now then that would be great. You could then put
> examples in the respective directories such as
>
> jakarta-avalon-excalibur\aut\jdbc\examples\example1
> jakarta-avalon-excalibur\aut\jdbc\examples\example2
> etc
>
> This keeps the examples small and relevent to the component - nice and
> focused and should make maintanence of the whole toolkit much easier.
I am trying to understand this :-) Are you planning on restructuring
existing packages into a buch on sub projects within the excalibur
project? What does 'aut' stand for?
I was actually thinking that having a project whose sole purpose was to
be a home for various examples would make it easier for new users to get
their hands around Avalon. Each example will be completely independent
and run "out of the box" without the user having to much. My goal was
to be able to have people see a JdbcDataSource, or Logger example
mentioned on the website. Be able to download the examples project and
then have the example running on their machine where they can see it
work all within 15min to an hour (plus download of course) :-)
I saw a couple of drawbacks to placing the examples in the
jakarta-avalon-excalibur project.
1) It would make the size of the project balloon and be harder to manage.
2) Having everything together would make the whole Avalon system harder
to get your arms around. Both for developers and users.
3) Most users of Avalon will hopefully not ever need to see the
sourcecode for avalon-framework.jar, avalon-excalibur.jar or
avalon-scratchpad.jar. I think that if a new user HAS TO go in and look
at the source code before they can get their program running, then that
is a failure on the documentation side.
4) At some point one goal that I think would be good to aim for is to be
able to have a user distributions of Framework and Excalibur that just
contains the jars, javadocs and documentation. The users would be able
to download the examples distribution, or the source distribution
optionally. (Of course users will always be able to see the raw CVS if
they want)
I will upload an archive containing a draft of a new
jakarta-avalon-examples project which includes a JdbcDataSource example
application, in the morning.
I think that I am missing what you want to do with the
excalibur-cli-1.0.jar and other feature specific jars. But couldn't
that already be done now by simply building the specific jars, including
only certain packages from the source?
Peter Donald wrote:
> On Mon, 28 Jan 2002 18:30, Leif Mortenson wrote:
>
>>One option that I was thinking of was to have an examples wide build.xml
>>file in the root which contains an init-jars task. This task could be
>>called by the various examples' builds. Its job would be to look for the
>>required jars and copy them into a build directory within the
>>jakarta-avalon-examples project. It would first copy the files from the
>>tools/ext directory, then try copying them from the various build
>>directories. By doing this, the examples would always have an up to date
>>copy of the jars to work with.
>>
>
> Personally I would prefer that there is an ant.properties or build.properties
> file that contains the mapping between the name of jar and the location of
> the jar. They could have defaults that used either the jars in the tools/ext
> directory or they could use newly created jars. So you end up with
>
> framework.jar=../../jakarta-avalon/tools/ext/avalon-framework.jar
> excalibur-cli.jar=../../jakarta-avalon/tools/ext/excalibur-cli.jar
> excalibur-naming.jar=../../jakarta-avalon/tools/ext/excalibur-naming.jar
>
> etc.
>
> See the project.properties file in phoenix CVS for an example.
Where the jars come from is kind of a fine point that can be worked out
once the main structure is set up.
>>2)
>>In addition to the init task, the project build.xml file would have a
>>docs task which would look for src/documentation directories in each of
>>the example applications and then build a common documentation set. This
>>documentation set could then be added to the jakarta-avalon-site
>>directory for inclusion in the Avalon website.
>
> +1
>
> Works for me ;)
>
Take a look at the draft project when I upload it in the morning.
(I don't have it on this computer :-)
Cheers,
Leif
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Examples directory for Excalibur
Posted by Stephen McConnell <mc...@osm.net>.
> -----Original Message-----
> From: Peter Donald [mailto:peter@apache.org]
> Sent: Tuesday, 29 January, 2002 14:00
> To: Avalon Developers List
> Subject: Re: Examples directory for Excalibur
>
>
> On Mon, 28 Jan 2002 18:30, Leif Mortenson wrote:
> > One option that I was thinking of was to have an examples wide build.xml
> > file in the root which contains an init-jars task. This task could be
> > called by the various examples' builds. Its job would be to look for the
> > required jars and copy them into a build directory within the
> > jakarta-avalon-examples project. It would first copy the files from the
> > tools/ext directory, then try copying them from the various build
> > directories. By doing this, the examples would always have an up to date
> > copy of the jars to work with.
>
> Personally I would prefer that there is an ant.properties or
> build.properties
> file that contains the mapping between the name of jar and the
> location of
> the jar. They could have defaults that used either the jars in
> the tools/ext
> directory or they could use newly created jars. So you end up with
>
> framework.jar=../../jakarta-avalon/tools/ext/avalon-framework.jar
> excalibur-cli.jar=../../jakarta-avalon/tools/ext/excalibur-cli.jar
> excalibur-naming.jar=../../jakarta-avalon/tools/ext/excalibur-naming.jar
>
> etc.
>
> See the project.properties file in phoenix CVS for an example.
>
> > 2)
> > In addition to the init task, the project build.xml file would have a
> > docs task which would look for src/documentation directories in each of
> > the example applications and then build a common documentation set. This
> > documentation set could then be added to the jakarta-avalon-site
> > directory for inclusion in the Avalon website.
>
> +1
>
> Works for me ;)
Anything that makes sample deployment easier (a.k.a. less effort) for new
entrants warrants active support.
+1
Cheers, Steve.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Examples directory for Excalibur
Posted by Peter Donald <pe...@apache.org>.
On Mon, 28 Jan 2002 18:30, Leif Mortenson wrote:
> One option that I was thinking of was to have an examples wide build.xml
> file in the root which contains an init-jars task. This task could be
> called by the various examples' builds. Its job would be to look for the
> required jars and copy them into a build directory within the
> jakarta-avalon-examples project. It would first copy the files from the
> tools/ext directory, then try copying them from the various build
> directories. By doing this, the examples would always have an up to date
> copy of the jars to work with.
Personally I would prefer that there is an ant.properties or build.properties
file that contains the mapping between the name of jar and the location of
the jar. They could have defaults that used either the jars in the tools/ext
directory or they could use newly created jars. So you end up with
framework.jar=../../jakarta-avalon/tools/ext/avalon-framework.jar
excalibur-cli.jar=../../jakarta-avalon/tools/ext/excalibur-cli.jar
excalibur-naming.jar=../../jakarta-avalon/tools/ext/excalibur-naming.jar
etc.
See the project.properties file in phoenix CVS for an example.
> 2)
> In addition to the init task, the project build.xml file would have a
> docs task which would look for src/documentation directories in each of
> the example applications and then build a common documentation set. This
> documentation set could then be added to the jakarta-avalon-site
> directory for inclusion in the Avalon website.
+1
Works for me ;)
--
Cheers,
Pete
------------------------------------------------------------
I just got lost in thought... It was unfamiliar territory.
------------------------------------------------------------
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Examples directory for Excalibur
Posted by Leif Mortenson <le...@silveregg.co.jp>.
A couple more issues:
After thinking more about it, I think the examples project would be the
best way to go.
1)
In the build files, which avalon jars should the examples be using? It
would be easy to point the example's build.xml files at the
avalon-framework.jar, avalong-excalibur.jar and logkit.jar in the
jakarta-avalon/tools/ext directory, but those are not always up to date.
If I make the build use the jars in the various project's build/lib
directories then they are up to date, but the user would have to have
the various projects checked out and built to be able to run the examples.
One option that I was thinking of was to have an examples wide build.xml
file in the root which contains an init-jars task. This task could be
called by the various examples' builds. Its job would be to look for the
required jars and copy them into a build directory within the
jakarta-avalon-examples project. It would first copy the files from the
tools/ext directory, then try copying them from the various build
directories. By doing this, the examples would always have an up to date
copy of the jars to work with.
2)
In addition to the init task, the project build.xml file would have a
docs task which would look for src/documentation directories in each of
the example applications and then build a common documentation set. This
documentation set could then be added to the jakarta-avalon-site
directory for inclusion in the Avalon website.
Leif
Leif Mortenson wrote:
>I was thinking about starting on an examples directory with the goal of
>starting to provide a place where new (and long time) users can go to
>find simple sample applications showing how to make use of the numerous
>features in Excalibur.
>
>To many people, having a simple example that they can build and run
>quickly out of the box is more valuable than a stack of documentation.
>Currently, many of the features are not yet documented and learning how
>to use certain features can involve many hours searching through the
>mailing list archives :-)
>
>Here is what I propose. Create a directory called examples in
>Excalibur's root directory. Then each example would be placed within
>this directory as its own independent project. Each example would
>contain its own build.xml file to keep things simple, and would build to
>a target inside that directory. The build would make use of the standard
>build tools included in the jakarta-avalon project and all avalon jars
>would be referenced in their parent directories. So the examples would
>require that Excalibur was first built.
>
>I was going to take a crack at writing an example that shows how to work
>with JdbcDataSources as there are so many questions about how they are
>used on the list. Other examples that would be good to have initially
>are showing how to configure logkit. Or simply loading a single hello
>world component using configuration / roles.xml files and the
>ComponentManager.
>
>It might be useful to also have a common directory where jars used by
>the examples could be placed (The hsqldb.jar, or mysql.jar files for
>example).
>
>
>One other option would be to create a new project called
>jakarta-avalon-examples where these could be located. That would prevent
>the jakarta-avalon-excalibur project for getting too cluttered.
>
>Thoughts how this should be structured? Obviously, the first few should
>also include documentation to get that going as a standard. :-) Using
>the Cocoon based docs seems like the best way to do so...
>
>Leif
>
>
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>