On Tue, Jul 17, 2007 at 02:42:22PM -0700, Max Stepanenko spake thus:
> I would like to wrap my release:prepare and release:perform in some sort of
> a script (ant??), so that there is this magical button that someone can
> press to prepare and release our software. That said, release:perform,
> requires some user input (versions). Is there anyway to avoid/streamline
> this? 

You could probably do this using expect(1), which is tailor-made for
automating program interaction. Check out:

    http://expect.nist.gov/

The 'autoexpect' program (linked to from the page at the above URL)
could generate the code to get you most of the way there.


> What is the common approach to problem, is writing an ant script that
> will call release:prepare and release:perform w the arguments of my choice a
> good approach?
> 
> Regards,
> Max

I don't know how common it is, but I have all kinds of scripts that
invoke maven in various ways. Others may suggest you try to do this from
within maven...

-Al

-- 
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
::
Alan D. Salewski
Software Developer
Health Market Science, Inc.
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
:: 

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

Reply via email to