|
[
vmassol
]
09:52, Thursday, 25 December 2008
After 2 years of non activity I'm starting to blog again. I've moved this blog to a new location. It's now created and hosted on the XWiki platform which is the project I've been working on for the past 2 years and I wanted to eat my own dog food. It's also much easier to contribute content and do fancy stuff thanks to the power of XWiki. I hope to see you there! Note: I'm keeping the old content here.
[
vmassol
]
10:25, Wednesday, 19 December 2007
Jason Hunter was kind enough to set up a Markmail site for XWiki. Markmail is a mailing list archiving tool with a powerful search feature. What sets it apart from other such tool IMO is the UI and speed/quality of search. I especially like the ability to see who's sending the most mails to a list and the nice syntax coloring display of emails (in addition to the thread view). Another nice feature is that emails are indexed a few seconds after they have been received by the list (compared to several hours with other tools). I love it :)
[
vmassol
]
09:40, Wednesday, 24 October 2007
I was invited to speak about the XWiki platform at the Valtech Days 2007. It was a very interesting event, focused on Agility. I presented XWiki a bit differently than what we are used to. Whereas XWiki was an Enterprise Wiki not long ago, it's really now a development platform for writing collaborative web applications (and more specifically applications focused on content). The presentation focused on the platform and what type of applications it's possible to build on top of it. My slides are available online.
[
vmassol
]
00:19, Saturday, 6 October 2007
Ludovic and I are in the Silicon Valley between the 6th of October to the 12th of October 2007. We've been kindly invited by Google for the Google Summer of Code Mentor Summit (Thanks Google!) and we're taking that occasion to spend some time in the valley to meet the maximum number of people and talk about wikis and XWiki. If you're interested to meet up register on the Facebook event. We have also organized a joint XWiki and Maven tech meetup on the 9th of October, at Terracotta. Indeed Terracotta has been extermely kind not only to lend us a room but also to cater for some pizzas and snacks :) Thanks Terraccotta! The address is: Terracotta Inc. 650 Townsend St. Suite 325 San Francisco, CA 94103 USA +1 415 738 4059 Jason Van Zyl, creator of Maven will be there too! I hope to see a lot of you there!
[
vmassol
]
18:53, Saturday, 5 May 2007
My friend Jason Van Zyl has started Sonatype, a new company focused on Maven for the Enterprise and providing support, training and consulting for Maven. He's been joined by several talented Maven committers (John Casey, Kenney Westerhof, Andrew Williams, Eric Redmond and Eirik Bjørsnøs) which make their team one of the most knowledgable team on the Maven topic on the planet. Knowing Jason's generosity and dedication to Maven you can be sure that this is the best possible move for the Maven project and it's great for the Maven ecosystem at large. As a proof, Sonatype has already delivered a great (and free) Maven book. I'm also happy to report that XWiki (the company and open source project I work for) is a Sonatype Partner. I'd love to see Maven products built on top of XWiki. I think XWiki's flexibility makes it an ideal platform for building those products and at the same time empowering them with collaborative features. In the near future I'll work closely with Jason and his team to integrate XWiki and Maven and hopefully we'll see some cool things out of this. Well done guys and long live Sonatype!
[
vmassol
]
17:10, Sunday, 17 December 2006
Mid December 2006 I was invited by the CRIM thanks to Vincent Siveton (Maven committer) to give a presentation on how to implement Quality on projects with Maven2. Jason Van Zyl was also there and he talked and gave demonstrations of Maven2, Continuum and Archiva. The conference was very well organized and the training room was superb. Thanks Vincent for setting this up. I've made my slides available here.
[
vmassol
]
21:27, Tuesday, 12 December 2006
I'm happy to announce that I'm joining XPertNet in the role of CTO. XPertNet is the company behind the open source XWiki product. I'm extremely excited on several accounts:
I'm now off to Javapolis 2006 where I'll be manning the XWiki booth with Ludovic and Guillaume. Come and say hello to us!
[
vmassol
]
21:30, Thursday, 27 July 2006
I'm a bit late to report on this but we've have had a very nice Maven Day in Paris in early July 2006, co-organized by Application-Servers.com and the OSSGTP (Parisian open sourcer group). Thanks to Improve for sponsoring the event! We were lucky to have Jason Van Zyl talk about new Maven2 stuff and especially the Repository Manager and the maven.org development platform. Emmanuel Venisse has done a presentation on Continuum, Fabrice Bellingard has presented a return of experience of implementing Maven in a large company and I have done a quick presentation of new quality features in Maven2. See Jean-Laurent's blog entry for more details.
[
vmassol
]
08:19, Tuesday, 18 July 2006
It would be nice if there were a tool that could verify that you have correctly added This tool could be based on Clirr or JDiff for example. It would also have an option to fail the build if there are new methods without a Do you know if such a tool exists?
[
vmassol
]
13:52, Monday, 17 July 2006
The experience that I'm relating here is part of an exploratory refactoring that I'm currently doing on the Cargo code base. Till now we were using Java File objects for representing J2EE archives or container installation and configuration directories. This is ok but it makes unit testing a little bit complex when it comes to unit testing File operations. The reason is that you need to define a location on your local file system where you're going to read/write files to, clean up the files, etc. Here's a method we had (it expands a JAR file):
Here's how I've transformed the method by removing all
The interesting part comes now. Because it was a bit hard to create a unit test for the original
Notice the use of the "ram:" URI scheme. This one of the many filesystems supported by VFS and it means that all file operations will happen in a virtual file system in memory.
Also note that VFS doesn't currently support creating Zip files so we're using the JDK's The other nice thing is that by introducing VFS to this
[
vmassol
]
09:54, Thursday, 13 July 2006
(Updated 2006-07-14: Added section on discovering modules and added disclaimer at the end) IntelliJ IDEA has revolutioned the IDE landscape by adding "intelligence" to IDEs. A few days ago I did a thought experiment by asking myself the following question "how feasible would it be to build a project without knowing any meta-data about it?". In other words, is it possible for a build tool to be intelligent enough to build a project without build files nor POMs. Said differently, is it possible to figure out a project's POM automatically? Let's review some required typical meta-data information and see how they could be guessed. Source locationsIt is possible to guess where sources are by looking for Note: An interesting thing here is that to be intelligent we'd need the help of the community to add new rules to the discovery process. For example imagine that a new testing framework appears; we'd need to add it to the Test Discovery Rules. Thus, this type of intelligent build system would need to rely a lot on the community and thus would need to get its data from an online repository that could be edited by the community. DependenciesHow do we detect project dependencies? One relatively way is to parse the sources that we have found above and find all external imports. Then query ibiblio to find matching package names (this information is present in Maven POMs on ibiblio). Now for guessing the version, there's no easy magic. A first approach would be to get the latest released version of the dependencies we've found. Project typeProject types can easily be guessed by looking at some files. For example if a SCMSCM can easily be guessed by looking for special files on the filesystem of the project. For example we would look for DevelopersOnce we got the SCM URL we can then query the SCM to get the list of all developers. Project nameThe project name could be the name of the top level directory and the version could be set arbitrarily to 1.0. Actually we could even check ibiblio to see if the project is already on ibiblio, get the latest version there and increase the minor number by one as a first order guess. Another strategy would be to query the SCM and look for tags and deduce existing versions by parsing those tags (there are some usual conventions for naming tags so it should be possible to make a good guess). Modules and artifactsDiscovering the different modules of a project is probably one of the hardest thing to do. If you look at different projects in the wild I believe there are not that many directory structures out there. Maybe 10-15. Thus it should be possible to register knowledge of these structures and let the tool discover which ones matches the closest with the project at hand. This would also allow to deduce the different artifacts that have to be generated. Of course it won't be perfect as there are projects which generate several artifacts and which may be in the same module. Again it's a question of doing 80% of the job and leaving 20% to be done manually. Additional informationOf course, the information found above are just guesses. In most cases they could be correct but of course we would need to offer a way for the user to edit them and to add any missing information. ConclusionI believe it should be possible to create such an intelligent meta-build project which could be used to generate files for one of the existing build system such as Maven, Ant, etc. For example it could create an internal POM file on which Maven could then be executed to produce the build results. At a minimum such a tool could be used to convert existing projects to Maven. I wonder how intelligent it could be but I guess it could go pretty far. Disclaimer: Of course, such a tool would be bad from a conventions stand point. One of the great strength of Maven has been to standardize the directory structure of projects. I can go to any Maven project and I know exactly where stuff will, what will be generated, etc. Are there other information which you think could be guessed automatically? Can you think of better algorithms to guess some of the information shown above?
[
vmassol
]
10:05, Thursday, 27 April 2006
Our Maven2 is book is officially out. Here's the marketing pitch:
I hope this book will help boost Maven2's adoption.
[
vmassol
]
15:52, Sunday, 23 April 2006
I was invited to the Microsoft Technology Summit 2006 (MTS06). The conference happened in Seattle, in Microsoft campus at Redmond. This year there were 40 people all luminaries selected from communities competing with MS technologies (Open Source, PHP, Java, etc). MS offices in different countries proposed several candidates which were then reviewed. I heard there were several criteria (having written 2 books, having a web site with more than so many visits per day, working on so many open source projects within known communities, etc). In my case, I was proposed by Steve Sfartz from MS France, along with 3 other frenchmen: Didier Girard of application-servers.com fame, and Romain Bourdon and Cyril Pierre de Geyer from PHP France, AFUP and contributors to PHP open source projects. All expenses were paid by MS. There were 2 main goals for this conference:
I applaud MS for having the foresight (and the money) to do this. It takes some vision and courage to set this up and allow everyone to blog freely about it. Here are the topics we were shown during these 3 days:
What was the outcome? Was it effective? It was certainly good to be invited (many thanks to Steve for that). The presentations were of mixed quality and I felt that the topics were too broad. There were some that were of interest to me but lots of others were not in my area of expertise/interest. I've also felt that there were not enough participation to meet the original goal defined by MS. I'd like to believe Microsoft was serious about the feedback we gave them but I'm not sure how much I can believe this... The reason I have some doubt is because the sessions were not meant to gather feedback but rather to explain how things are done at Microsoft. If the goal of this conference is to get feedback then I think the format of the presentations could be much improved. Here are some ideas for next year (in case there's a MTS07):
Note that I have received an email from MS pointing to survey where MS is asking for feedback. I'd still prefer giving the feedback during the conference and directly to the concerned people but with a way of ensuring that this feedback will be tracked (whether it is used or not doesn't matter that much, what's important to me is that it is considered and that I know of the outcome). All in all a very good week and in addition were had some nice treats: a welcome basket of eatable goodies and ... a one-year MSDN subscription! Now that's very nice and I'm pretty sure last year's participant must be jealous by now ;-). BTW, on this topic of presents, there were some real disapointments when MS announced that we would have a 120$ voucher to buy stuff at the MS company store ... and when we later learned that this voucher was only the right to spend up to 120$ at the store! I'd suggest to remove this next year as most around me (including me) have found this more negative than positive. Of course the announcement of the MSDN subscription the day after helped a lot overcome this negative feeling ;-). We're too spoiled for sure... Once more, thanks Steve and Microsoft for this very nice week!
[
vmassol
]
14:20, Friday, 21 April 2006
Dion Almaer has interviewed me during JavaPolis 2005:
"During this Vincent Massol interview you'll receive more information on the status, philosophy and strenghts of Maven 2.0. "What were the shortcomings in Maven 1 and how do we now write maven 2 plugins ?" are just a few questions Dion Almaer asked. Other topics discussed are Continuum, Cargo and Agile outsourcing and offshoring... check it out." The video is available here.
[
vmassol
]
07:20, Saturday, 1 April 2006
I'm changing job and leaving Pivolis for Microsoft! I would never have believed this possible a month ago... It appears that Microsoft is serious about Java and Open Source after all. They contacted me for my work on Maven. As a matter of fact, their own MSBuild system is not working as well as they would have liked and they are interested in reusing Maven as a build scaffolding and develop numerous Java and .Net plugins on top of it and integrate it all in the next version of Visual Studio (which will sport lots of new features for Java development too). This is all part of their new 2007 plans for implementing Software Factories. I can't tell you much more at this stage. The best news is that I won't be working alone on this as they are setting up a full scale Java Team. Yeah that rocks! Some friends from our Open source group in Paris have also been recruited (check Ludovic's , Jeremi's , Didier's and Francois's blogs). I'll be blogging more about it, stay tuned... Update (3rd April 2006): Of course this was an April's fool. However there's some truth in it. I'm indeed going to Redmond the week of the 10th of April. Microsoft is inviting 70 people using competing technologies from all over the world. The idea seems to be twofolds: Microsoft will present what they are working on and we are expected to critique/provide feedback on what they're doing compared to what we are doing using our technologies. Sounds pretty fun. It seems this is something similar to the event that Matt Raible attended (more here, here and here). I'll blog more on this when I know more.
[
vmassol
]
10:07, Friday, 17 March 2006
Current wikis are great. However when used as development wikis I have found some limitations which are hampering their use. Please note that my experience is based on using Confluence and XWiki and other wikis may support some of the features mentioned below. Here's my top wishlist for development wikis and for Confluence and XWiki in particular:
I have quite a few other suggestions for improvements but I feel those are the major ones when it comes to using a wiki as a project development wiki. Let's hope wiki vendors are listening... :-). Are these also on your wish list?
[
vmassol
]
12:09, Thursday, 16 February 2006
I've been asking myself the following 2 questions for about 5 years now: am I good at managing an open source project and making it successful? How can I improve? I guess it depends on the definiton of "successful". My definition of a successful OSS project is:
If we go by point 1, I think that the main 2 projects I have started (Cactus and Cargo) are not doing too bad. Cargo is still new but it seems to be on track and its user base is growing very quickly. However on points 2 and 3, I'm not so sure I'm doing well. Mind you, Cargo has quite a lot of committers (growing every week!) and they're all doing a great job. I'm just thinking about the level beyond (look at the activity on the Maven project, Spring or other projects as an example of what I mean). Cactus is a bit different as it's now a mature project, so let's focus on Cargo. Of course it could be that these project domains are narrow and thus do not interest lots of developers. This is probably true but I don't think this is the only issue. I have the feeling that some of the reasons could be:
On the other hand, I feel that not doing any one of these points will hamper Cargo's user adoption... Or maybe I'm completely wrong on all points above and this is just me fantasizing! I'm really interested to know what you think and if this is something other OSS committers/contributors have noticed too. I've given the example of Cargo but really this is a general discussion on how to best manage an OSS project.
[
vmassol
]
13:48, Sunday, 12 February 2006
I see 2 use cases where ensuring binary compatibility is a must:
Enforcing binary compatibility in the buildThe automated build is a nice place to enforce binary compatibility as the build is something executed by the indiviudal developers before checking-in and it's also executed by the continuous integration build. Thus any binary incompatibility can be quickly discovered. Or course this doesn't replace tests which can also help discover breakages. However the problem is that with all the nice refactoring IDEs we have now, it's easy to refactor the tests at the same time as the code and thus introducing a binary incompatibility is not always noticed. A good strategy to discover an incompatibility is to compare the current code with the latest released code. This is what Clirr is doing. Clirr currently sports an Ant and Maven1 integration. The good news is that there's a Maven2 plugin in the work (more on that when it's released). However using a tool is only good if there's a strategy behind it. Strategy for using ClirrHere is what I believe can be done to automate binary compatibility checks in the build:
Note: On the Cargo project we've tried to do this, even though there's still room for lots of improvement. Actually our main issue on Cargo is not detecting binary incompatibilites but rather deciding to release a 1.0 version which would mean that from then forward we would aways look for a deprecation solution rather than break binary compatibility. We've always pushed back this 1.0 release because our API has been changing quite frequently but we're now nearing a 1.0 version. When that comes we'll turn Clirr on to fail the build upon breakage. I'll let you know how it goes...
[
vmassol
]
08:55, Saturday, 21 January 2006
I'm currently writing my third book and I'm starting to notice a pattern. Whenever I write a book about a tool/framework to which I have access to the sources, the code ends up being better. The way I work goes like this: I start writing about a topic. If it's taking too long to explain it, I consider that something is wrong about the code. I modify the source code so that the document I'm writing has the minimal required size to explain the topic. The good thing with a book is that what you're explaining has to be simple and not convulted which leads to this nice effect of improving usability of your code. I get a bit of the same result when I write project documentation but not to the same level. This is probably simply because writing a book is a more involved process, you dedicate more time to it and thus you want it to be as perfect as possible (and thus as readable as possible). I guess nothing here is new. This is all about having a user of your code. Tests are "users" of your code and thus leads to better design. I guess documentation can also be a "user" of the code and thus help improving it. If you're writing some framework/tool, consider writing a book for it and if you're diligent in your writing your code will end up being better! As an added benefit your users will love you... :-)
[
vmassol
]
21:05, Tuesday, 10 January 2006
Cargo is a container-manipulation library that allows configuring, starting and stopping containers. It also deploys modules to those containers. Version 0.7 has been released last week along with version 0.1 of a Maven2 plugin. The nice thing about Cargo is that it provides a uniform API across all containers and it has several end user APIs: a Java API, Ant tasks, a Maven 1 plugin, a Maven 2 plugin, a Netbeans plugin, an IntelliJ IDEA plugin, etc. You can use any of those extensions with all the supported containers. I'd like to quickly demonstrate how to use the new Maven 2 plugin on 2 use cases (more samples can be found here):
Deploying a WAR and starting Tomcat 5.xCreate a Maven 2 project and put the following configuration in your
To generate your WAR, start Tomcat and deploy the WAR in it, simply type:
Orion 2.0.5 will then be automatically downloaded and installed the first time you run your build. Inplace webapp development with JettyLet's imagine you're using the same project as above but this time you'd like to start Jetty and make it point to your webapp directory (i.e.
Then open a shell prompt and type If you're interesting in learning more, check the documentation and join us on the Cargo mailing lists.
[
vmassol
]
19:09, Friday, 16 December 2005
I'm just back from Javapolis 2005. I had the pleasure to present Maven 2.0. I was lucky to be presenting in Room 1 (the big one) and it was well packed. Here are the questions I asked the audience last year:
This year when I asked the audience who is using Maven 1, I got about 30%-35% hands raised. Wow! This is a huge boost from the 3%-5% of last year! There were also about 5% people already using Maven 2 so that's great too. It seems Maven's adoption is well on its way Thanks everyone for the warm welcome during the presentation. Enjoy the slides while waiting for Javapolis to broadcast the videos.
[
vmassol
]
18:30, Friday, 4 November 2005
Amazon has released a beta of the Mechanical Turk. It allows a program to programatically ask a question to a human and wait for the answer. Here's an example (copied from Google Blogoscoped):
This is really like the Matrix except that the humans get paid a little bit of money (but in the end that's close to getting fed) and it's other humans that controlling the programs... until we have web services using other web services using the Mechanical Turk. Then who's controlling who is going to be hard to decide :-) Source: Google Blogoscoped.
[
vmassol
]
18:49, Wednesday, 26 October 2005
I'm working on automating a J2EE build using Maven 2 and I'm in need of a Maven 2 plugin to do the following:
The ideal situation would be to find an existing Java framework that would already perform all or some of those steps. Then I could easily create a Maven 2 plugin wrapping it. So far I haven't been able to find such a tool. If you know any please suggest them! Here's what I have found so far below. Please note that I have probably made mistakes while filling this table and I'd be happy to be corrected...
Again, let me know if you know some tools that are not listed here. If no such tool exist, an idea I have would be to add support for databases in Cargo. Indeed Cargo is meant for manipulating any kind of containers. It happens that the first type of container we've implemented are J2EE containers but it should work for any other type and the interfaces should remain the same. WDYT?
[
vmassol
]
15:55, Thursday, 6 October 2005
Dear friends, This is a sad moment. Our friend and colleague Nicolas Chalumeau has departed this world on the 4th of October at the age of 27. The Apache Software Foundation would like to express its condolences to Nicolas' family and friends. Nicolas had been developing open source software at Apache for several years. He was participating in several projects including Jakarta Cactus and Apache Maven. But even more importantly than helping those projects, what made Nicolas stand apart was his kindness and his generosity. He was always open to discussion and was constantly helping others. On the Cactus project he was regularly the first to answer questions from newcomers trying to use Cactus. Recently he had taken up the important task of helping migrate Cactus to use Cargo and he had been working diligently towards that task. Actually Nicolas had been doing such a great job on the Cactus project that the Cactus committers had unanimously voted him in to become a committer. Nicolas was voted an Apache committer on the 1st of August 2005. I had several discussions with Nicolas about this new role and he was extremely happy to be part of the Apache Foundation. Nicolas, we'll miss you, but the work you have done for the community will be remembered forever and will live on. All our thoughts and good wishes are with you and your loved ones. -Vincent on behalf of the Apache community (we have also created a special farewell page for Nicolas on the Cactus website).
[
vmassol
]
16:25, Wednesday, 28 September 2005
ResultsThe Google Summer of Code is now over. I've had the pleasure of being a mentor for Codehaus. More specifically I've mentored the following projects:
Learnings
Parting wordsThe SOC was good. It has boosted the open source community quite remarkably (even though it has also probably put some strain on it...). Out of all the students I've mentored I think 2 or 3 of them (out of 6 initially) will continue to work on the open source project they've participated to. That's a 30%-50% ratio and I'm very happy about it. Thanks Google for making this happen!
[
vmassol
]
08:56, Thursday, 15 September 2005
Javazone 2005 was good. It's getting more international every year but there's still a lot of Norwegian speaking there, which was a bit difficult to understand from time to time... Oh well, I had Jerome Lacoste translating for me whenever needed. Thanks Jerome. It also gave me the opportunity to learn "Hey alle semmon" ("hi everybody") and Jeff Genenger woke up his audience on thursday morning with a "I'm a loud-mouthed american, don't listen to me I don't know anything" in Norwegian! :-) I have presented From Maven 1 to Maven 2 which went well. There were about 60-70 people in the room, all Maven 1 users (to be expected for such a talk) and a few (about 5) Maven 2 users. Update 2005-09-28: Kito has blogged about JavaZone 2005 and has uploaded some nice pictures.
[
vmassol
]
18:19, Wednesday, 13 July 2005
I've just tried today Copernic Desktop Search (CDS). I've been using Yahoo Desktop Search (YDS) for several months now and I'm very happy with it. It has some issues though like it's putting my laptop on its knees when it performs indexing, it has no Windows taskbar integration, etc. I wanted to see how CDS fared against YDS. Here are my findings after one day of using CDS. Please note that this is definitely not long enough to have a definitive opinion on the topic but I thought I'd still share what I've learnt today. General opinionCDS is a very good desktop search. I was very impressed. It seemed perfect at first and then slowly I started finding some little flaws compared to YDS. Still it is extremely good. It has all the features you'll find in YDS and Google Desktop Search (GDS). Pros of CDS vs YDS
Cons of CDS vs YDS
Some minor details:
ConclusionIf only it could have a better view layout and be faster to display results it would be perfect. Its killer features are really its CPU-friendly indexing for me and the immediate availability of new resources in searches. I've just noticed that YDS has released verson 1.2beta yesterday and I'm installing it. For now, I'll still keep using YDS which is still my favorite. YMMV.
[
vmassol
]
11:02, Sunday, 19 June 2005
I've just finished writing a White Paper for Pivolis, my company. It's on the topic of Agile Offshore Software Development and it explains how to perform collaborative software development when teams are distributed. It's a return of experience from the two main offshore development projects I have been on for the past 3.5 years. It addresses different types of concern: from culture to communications to technical infrastructure to development practices. Now just before you rush to it, you should know that it's written in French. I'm really sorry about that. I would have much preferred to write it in English but Pivolis' first market is currently France. I hope you'll enjoy it. Note: On the Pivolis web site, don't click on the English flag. The English version of the site is not yet up to date and you won't find the White Paper there.
[
vmassol
]
15:26, Monday, 23 May 2005
Enjoy!
[
vmassol
]
10:48, Sunday, 1 May 2005
Cargo 0.5 has been released yesterday. One novelty is the Maven plugin. You can now start and stop a variety of containers using this plugin. This should come very handy for all of you wishing to perform integration or functional testing with Maven. The containers that are currently supported are: Resin 2.x, Resin 3.x, Tomcat 3.x, Tomcat 4.x, Tomcat 5.x, Orion 1.x, Orion 2.x, Jetty 4.x, jo! 1.x, OC4J 9.x and WebLogic 8.x. For example, imagine that you have some integration tests in your project's test directory and that you need, say, Tomcat 5.0.30 to run
them. You'll need to start the Tomcat container before the
You'll need to provide Cargo configuration data in your
Alternatively you can ask the plugin to automatically download and install Tomcat for you (it'll download it only once), by specifying:
As you may have noticed, in our example above we've reused the existing Maven Test plugin which looks for test sources in If there's a strong demand, we may consider adding a Please note that there's also an alternative which is to start the Container directly from your unit tests. If you find Cargo interesting, please come and help us on the Cargo mailing lists. There are lots of different ways you can help: trying Cargo on containers, implementing new containers (for example, JBoss, JOnas, WebSphere, etc), discussing new ideas, letting us know what new features you'd love to see, etc.
[
vmassol
]
10:36, Sunday, 1 May 2005
The Cargo team is pleased to announce the release of Cargo 0.5. The major changes from Cargo 0.4 to 0.5 are:
Detailed release notes are available on the download page. Here's an example of how to use Cargo from Java:
Here's an example using the provided Ant tasks:
And here's an example using the Maven plugin:
Enjoy!
[
vmassol
]
15:22, Saturday, 30 April 2005
Clirr is one of these tools that would deserve to be known better. I have mentioned it several times in other posts but it's really the first time I get to use it in real. It rocks! I'm about to release Cargo 0.5 and I wanted to get an exact list of the API modifications we have done compared to version 0.4. Here's the kind of output Clirr gives (the full output is available here):
Even though we're using JIRA with an Iteration-Driven Development strategy (IDD) it was still a very interesting exercise to verify that we had not missed any issue by running Clirr on the source code. In addition, it provides a more detailed view of what exactly has changed in term of API which our JIRA report does not provide. The next step would be to use it to fail our build whenever someone introduces a public API break. It would be quite easy for us because we've cleanly separated non-public API from public APIs by using internal packages (see the Cactus API design rule to see what it means). Of course sometimes, you want to voluntariy add a breaking change. That's legitimate but it has to be controlled. The strategy would be to have the build fail and then if the change is voluntary to exclude it from Clirr. Well done Lars!
[
vmassol
]
16:29, Thursday, 7 April 2005
Where is Ant heading in the future? I would be very interested to learn more about this. I've been using Ant for several years now and I've always been a happy user. However these days, I'm no longer using much the XML scripting side of Ant but I'm using heavily the Ant Java API; what I'm interested in are the Java Ant tasks. I think this is really where the value of Ant is. All those years of implementing the base building block for a portable OS Java API have created a very useful Task set. I think every Java application that needs to do copying, deleting a directory, spawning a Java application, etc should use these tasks. There's no point in reinventing the wheel! For example, you may think that deleting a directory is simple. But it's not so easy. Have a look at the Delete Ant task source code. You'll find portion of code like this one:
Would you have thought about this? Probably not and you would have been right not to as this only happens in some rare occasions. But when one of your users reports it, it's going to be darn difficult to identify and fix. Personally I'd rather depend on a stable and well tested library rather than recode it myself. The problem is that the Ant tasks are a bit too much linked to the execution engine (the XML scripting engine). For example reusing an Ant tasks requires you to create a Project object. This in turn drags loggers, the Ant classloader (in some cases) and possibly other objects. I know it's possible to use Ant from Java (I've been doing it for a long time now) but I'd love it be even easier to do so. Instead of writing:
I'd like to be able to write:
I don't want to see the get/setLocation, get/setTaskName(), get/setDescription() and in general all methods from Task.java. What I'd love to see is Ant moving in the direction of providing completely reusable Tasks that have 0% dependencies on the Ant engine. This means that loggers, classloaders would be passed to the Ant task by the program who uses it. I'd like to see Ant provide 2 distributable jars: one containing the XML scripting engine only and one containing all the pure java beans Ant tasks that can be reused in any Java application. I'd like to see Ant separate into 2 subprojects: one for the XML scripting engine (let's call it engine) and one for the Ant tasks (let's call it tasks). The reason for the 2 projects is to ensure there's no dependency in the direction tasks->engine. I'd like to see Maven2 use those completely reusable Ant tasks instead of recreating them (this is a wish I'm addressing to both projects, not just Ant! :-)). I'd like to see those Ant tasks being a JSR and incorporated in a future version of the JDK, thus providing a higher level API that the best classes from the JDK. Is that where Ant is heading today? |