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}”/>
<manifest>
<attribute name=”Built-By” value=”Date-${DATE_TIME}- Vesrion-${build_version}”/>
</manifest>
</jar>

Thanks

R Vashi

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s