ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <>
Subject Re: Task to check that the layering and componentazing of an application is followed
Date Mon, 24 Sep 2001 10:41:45 GMT
Hi Emmanuel,

Do you mean a tool that will check that standard practices and patterns are followed ? Like
verifying (for example) that for any use case, there is a Struts Action class, ... If this
is the case, it is very difficult to write. However, such as tool might already exist. It
is called AspectJ (and there is an Ant task for it), It is an addition
to the java language and offer some additional syntax to capture what is called cross-cutting
aspects. With the current Java language it is very difficult to extract pattern rules and
define them explicitely somewhere. They are rather mixed in the different methods and there
is no way to express them.

AspectJ will let you define such patterns or behaviours. It can be used in several ways: as
a tool in the debugging phase of program to ensure that correct rules are followed. It can
also be used during production for modifying states. See the AspectJ tutorial.

It works by providing a compiler, which produces java code which is then compiled by javac.
All this is automated using an Ant task if you wish.

Have a look and I'm sure you'll be amazed at what you can do with it, as I have been. I have
not used it yet but plan to do so soon enough...

Hope it helps
  ----- Original Message ----- 
  From: Emmanuel Sciara 
  Sent: Monday, September 24, 2001 11:06 AM
  Subject: Task to check that the layering and componentazing of an application is followed


  Building an application by layers and components is now a practice widely used to help having
a better organised and more maintainable code.

  The trouble is, when working within teams of 5 and above, there does not seem to be a tool
(correct me if I am wrong) that will check that such layers and components are correctly build
and that the dependancies are followed.

  I am thinking about building such tool based around Ant, in form of a task or another suitable
form, if there is enough interest around.

  So does anybody think like me that this is worth it?


View raw message