Creating a WAR/EAR with current date and time

Hi All,

Sometime when we are building war/ear very frequently using ANT specially during product pre release days then it become very difficult to maintain which dist has been generated when. To track that we can add the details in the META-INF of the war/ear using ANT.

<jar destfile=”build/war_name.war”>
<zipfileset dir=”${dist}”/>
<attribute name=”Built-By” value=”Date-${DATE_TIME}- Vesrion-${build_version}”/>


R Vashi

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.