You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Peter Lynch <pe...@mindspring.com> on 2002/12/03 12:34:40 UTC

Read in a file pre/post maven.bat

With a few more 'options' being added to maven.bat recently,
I think it would be a good idea to allow a script to be called pre/post exec of
the maven.bat

For example, I could add the following lines to maven.bat

:preExec
if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"


and at the end...

:postExec
if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_post.bat"

Ant does this as well, and I think it could be useful.

Are there opinions?

-Peter


Re: Read in a file pre/post maven.bat

Posted by Peter Lynch <pe...@mindspring.com>.
----- Original Message ----- 
From: "Peter Lynch" <pe...@mindspring.com>
To: <tu...@jakarta.apache.org>
Sent: Tuesday, December 03, 2002 3:34 AM
Subject: Read in a file pre/post maven.bat

> :postExec
> if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_post.bat"
> 

Ooops, I meant:

:postExec
if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"


-Peter