667481 members! Sign up to stay informed.

Sponsored Links


Resources

Enterprise Java
Research Library

Get Java white papers, product information, case studies and webcasts

News News News Messages: 8 Messages: 8 Messages: 8 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

Ant Utility For Build Analysis

Posted by: David Green on July 06, 2007 DIGG
Wondering why your Ant build is slow? Is your continuous integration server taking too long to produce your project builds? This project may help.

This project includes a small number of classes for use with Ant that can help you to analyze your build in a non-intrusive manner.

How it works:

Ant provides some great facilities for customization. One of them is the org.apache.tools.ant.BuildListener . By implementing a build listener, you can get detailed information about the build without changing your build scripts. This utility contains a build listener that gathers and accumulates timing metrics for your build, and produces a report. The report can be visually inspected, or loaded into a spreadsheet since it's in CSV format.

See https://antutility.dev.java.net/ for more details.

Threaded replies

·  Ant Utility For Build Analysis by David Green on Fri Jul 06 10:58:23 EDT 2007
  ·  Ant > JUnit > Hibernate by William Louth on Fri Jul 06 16:22:04 EDT 2007
  ·  Is anyone using Ant anymore ? by Nicolas Modrzyk on Mon Jul 09 00:12:31 EDT 2007
    ·  Re: Is anyone using Ant anymore ? by michele michele on Mon Jul 09 06:34:35 EDT 2007
      ·  Re: Is anyone using Ant anymore ? by Andy Gavin on Mon Jul 09 07:14:51 EDT 2007
        ·  I use Ant but I tend to agree its use of XML is crap by Gili T. on Mon Jul 09 14:07:51 EDT 2007
  ·  Nice tool by Peter Mularien on Tue Jul 10 10:45:05 EDT 2007
    ·  Re: Nice tool by David Green on Tue Jul 10 13:12:51 EDT 2007
  ·  JUnit Testing with Hibernate by Sylvan Sam on Fri May 15 02:32:57 EDT 2009
  Message #236005 Post reply Post reply Post reply Go to top Go to top Go to top

Ant > JUnit > Hibernate

Posted by: William Louth on July 06, 2007 in response to Message #235897
A very, very long time ago I added an extension to JXInsight that performs this and integrates the data with measurement data obtained from other extensions involved. The following article shows the profiling of ant tasks, junit tests cases as well as trace and transaction of Hibenate runtime. There is even tracing across processes and the data collected includes: CPU time, clock time, wait time, GC time, thread monitoring blocking time,.... Certainly enough information to understand any complex Ant build environment.

http://www.jinspired.com/products/jxinsight/antjunittracing.html

Today it would be even possible to profile and perform transaction analysis of a Ant build.xml containing JUnit/TestNG test cases calling over the wire (RMI, CORBA) to EJBs and then via JDBC to the database from within the JXInsight management console. Merge the snapshots from each process and you have distributed trace and transaction analysis!!! You can then perform some offline asserts on the actual execution behavior.

All cool on paper and it does work but to be honest in practice most developers have very little incentive to be that diligent.

regards,

William Louth
JXInsight Product Architect
JINSPIRED

"Performance monitoring and problem management for Java EE, SOA and Grid Computing"
http://www.jinspired.com

  Message #236069 Post reply Post reply Post reply Go to top Go to top Go to top

Is anyone using Ant anymore ?

Posted by: Nicolas Modrzyk on July 09, 2007 in response to Message #235897
with all the time wasted trying to get the xml junk to do anything anything that taking gigabytes in the SCM ?
I am definitely in favor of tools like Buildr that can help me do an if or a for statement in less than 30 lines of xml junk.

If the tool is taking time to write, time to execute, time to profile ... I think it's worth looking into alternatives.

  Message #236080 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Is anyone using Ant anymore ?

Posted by: michele michele on July 09, 2007 in response to Message #236069
All world is using Ant!

  Message #236082 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Is anyone using Ant anymore ?

Posted by: Andy Gavin on July 09, 2007 in response to Message #236080
That's rhetorical. Hands up who's using buildr.

  Message #236109 Post reply Post reply Post reply Go to top Go to top Go to top

I use Ant but I tend to agree its use of XML is crap

Posted by: Gili T. on July 09, 2007 in response to Message #236082
XML is not meant for human consumption, least of all configuration files. Just my 2 cents.

  Message #236147 Post reply Post reply Post reply Go to top Go to top Go to top

Nice tool

Posted by: Peter Mularien on July 10, 2007 in response to Message #235897
This is pretty nifty, David. Nice job!

Had any thoughts about integrating the output into a CI tool such as CruiseControl?

  Message #236161 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Nice tool

Posted by: David Green on July 10, 2007 in response to Message #236147
This is pretty nifty, David. Nice job!

Had any thoughts about integrating the output into a CI tool such as CruiseControl?


Thanks, Peter. The intent was simple and non-intrusive.

As far as CI integration, that's a great idea. No plans yet -- but it could be done. Perhaps the easiest thing to do would be to output the results as XML and provide a stylesheet that converts it to a nice HTML report. The CI build could then copy the report to the published artifacts folder. Thoughts?

  Message #308841 Post reply Post reply Post reply Go to top Go to top Go to top

JUnit Testing with Hibernate

Posted by: Sylvan Sam on May 15, 2009 in response to Message #235897
A method under test uses Hibernate to query the database. Hence the test case prepares data by inserting them into the table.

For eg let us say feature A works with emp table and is developed and tested.
Now for feature B, a new column is added to the same emp table, Although feature A does not depend on this column all test cases of feature A needs to updated now.
This is turning out to be a costly issue.

Is there is a better way to do this ?

New content on TheServerSide.comNew content on TheServerSide.comNew content on TheServerSide.com

Dependency Injection in Java EE 6 - Part 1

Reza Rahman explores the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6. (November 2, Article)

SAML: It's Not just for Web services

SAML is an XML-based standard for exchanging authentication and authorization data between security domains. The single most important problem that SAML was created to solve is the Web browser Single Sign-On problem. Many organizations are debating whether to stay with version 1.1 or move to 2.0. This article makes observations about both options. (September 28, Article)

Programming is Also Teaching Your Team

Joe Ottinger takes a look at how people learn, and applies it to the practice of programming. He notes that understanding how people learn is an essential part of working in a programming team. (September 22, Article)

Can Java EE Deliver The Asynchronous Web?

Stephen Maryka gave us an article about the Asynchronous Web and posed a number of questions that get examined like an approach to delivering Asynchronous Web capabilities through extensions to existing Java EE technologies. (July 14, Article)

JSF Flex

JavaServer Faces Flex goal is to provide users capability in creating standard Flex components, part of flexSDK which is open sourced through MPL license, as normal JSF components. This article by Ji Hoon Kim will provide an overview of creating a simple multilingual JSF page consisting of JSF Flex tags. (June 29, Article)

The Rules of SOA - A Road to a Successful SOA Implementation

In this session Jeff explores the key characteristics of successful SOA projects. He covers some of the patterns, and anti-patterns, tool sets, and strategies that he himself learned the hard way. Last, he provides a strategy and blueprint for achieving a high likelihood of success in your SOA project. (June 23, Tech Talk)

Ari Zilka Talks About Terracotta 3.1

Ari Zilka, CTO of Terracotta, Inc., talks about the new features in Terracotta 3.1, announced during JavaOne and available now. (June 15, Tech Talk)

Enterprise Application Integration, and Spring

In this Tech Talk, Josh Long explores an integration challenge using Spring Integration and walks through the implementation, employing and expanding on the basic patterns of Enterprise Application Integration to tie together components into a function integration solution, and then demonstrates how Spring Integration helps address the integration requirements. (June 15, Tech Talk)

Google Web Toolkit: An Introduction

In this Tech Talk, David Geary teaches you: The basics of Google Web Toolkit; How to implement Ajax-enabled applications in Java; Internationalization; Hooking into the browser history mechanism; Remote procedure calls. (June 4, Tech Talk)

Just Enough Early Architecture to Guide Development

Jon Kern discusses the best architecture/technical solutions and ensure that they are repeated by all developers. By tackling the architecture up-front in a serial manner, subsequent parallel development will be much more manageable and predictable. (May 28, Tech Talk)

Productive Programmer: On the Lam from the Furniture Police

This keynote describes the frustrations of modern knowledge workers in their quest to actually get some work done, and solutions for how to guard yourself against all those distractions. Neal Ford talks about environments, coding, acceleration, automation, and avoiding repetition as ways to defeat the misguided attempts to sap your ability to produce good work. (May 26, Tech Talk)

Auto-Scaling Your Existing Web Application

Gil demonstrates how new, aggressive uses of already abundant compute capacity by common applications offer competitive value for application designers. (May 21, Tech Talk)

Automating Hibernate Mapping and Queries For Java Web Development

Chris Keene introduces WaveMaker as a new way to automate the ability to generate Hibernate classes in order to more quickly bring OR mapping into an application. (May 19, Article)

Auto-Scaling Your Existing Web Application

In this session Nati Shalom demonstrates how to take a standard Java EE web application and scale it out or down dynamically without changes to the application code. Seeing as most web applications are over-provisioned to meet infrequent peak loads, this is a dramatic change because it enables growing your application as needed, when needed, without paying for unutilized resources. (May 19, Tech Talk)

Free Book PDF Download: Mastering EJB Third Edition

Mastering EJB was one of the original and most influential EJB books in the industry. Mastering EJB III now returns with two new expert co-authors, updated for EJB 2.1 and 30% new chapters including security, integration, best practices, open source, and more.
(Book PDF Download)

Application Server Matrix

The Application Server Matrix is a detailed listing of J2EE vendors and their application server products, with information on latest version numbers, J2EE spec support and licensing, pricing, platform support, and links to product downloads and reviews.
(Application Server Comparison Matrix)

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
Java Solutions
All Content Copyright ©2007 TheServerSide Privacy Policy
Site Map