Most example can be run with maven, we don't need to let all the Camel
examples can be run with ANT.
BTW, it could be great for the ant guys, if we can provide an ant task
to work as camel:run plugin.
Here is my +1.
On 7/8/11 4:24 PM, Claus Ibsen wrote:
Hi
We have 34 examples in the Camel kit. And frankly to keep most of them
updated to work and run with Apache Ant is a p*** in the ****.
I would like to discuss if we should consider reducing the number of
examples that can run with Ant?
The current pain points
- Keep Ant examples up to date is manual labor
- Some examples dont currently work as documented in README.txt file
- End user will have to manually download 3rd party libraries such as
Spring, ActiveMQ, Hibernate etc.
- End user will have to set environment variables for home, eg
ACTIVEMQ_HOME, ASPECTJ_HOME, HIBERNATE_HOME etc.
- Some examples have migrated and uses OpenJPA with Maven instead of
Hibernate, and thus running with Maven vs. Ant diverts.
I suggest that we remove ANT support for the more complicated examples
where you need to download many different 3rd party projects and
whatnot.
We may want to keep it on a few simpler examples that we know can be supported.
Sidebar
======
Now that we talk about examples. I would like to add a very simple
hello world examples as well.
Something we can use in the getting started guide, so people who
download the .zip / .tar can follow a guide.
And run the hello world example and see that Camel is up and running quickly.
For example it could be based on the maven archetype that creates a
sample project (that example which moves files using a Content Based
Router).
Then we could have this example supported by Ant and Maven.
=====
Any thoughts?
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang