Graham Leggett wrote:
> 
> On Thu, September 27, 2007 8:09 pm, Stefan Prange wrote:
>> 2. I want my EAR file named after a predefined pattern. It shall be name
>> like appname.ear_<timestamp>, e.g. "appname.ear_20070927". I tried to
>> achieve this with Maven before (with build/finalname) but with no
>> success.
>> ANT allows me to name the resulting EAR file whatever I like.
> 
> Is there a reason you want this particular pattern?
> 

Hi Graham,
yes there is.
Our operations team defined this convention. Their deploy script looks for
ear files that are named after this pattern. But the timestamp part after
the "appname.ear_" is completely arbitrary. It's meant to be a version
marker to distinguish different EAR files. The deploy script always picks
the EAR file with the most recent file date (i.e. the date which can be
updated by using "touch".)

I just created a separate Maven EAR module and also used the
build-number-plugin which Tim Kettler recommended.
The build-number-plugin now creates an EAR file name like
"appname.ear_20070928.ear", i.e. it still appends a surplus ".ear" suffix.
But since the version marker part of the EAR file's name is arbitrary, I can
live with this.

Thanks every one for helping me.

Bye, Stefan

-- 
View this message in context: 
http://www.nabble.com/maven-ant-tasks-2.0.7%3A-Hot-to-package-an-artifact--tf4527753s177.html#a12939367
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to