With m1, you could do this:

<goal name="guarded-execution">
  <!-- create the file here -->
  <j:catch var="ex">
    <attainGoal name="${goal}" />
  </j:catch>
  <!-- delete the file here -->
  <j:if test="${ex != null}">
    <ant:fail>${ex}</ant:fail>
  </j:if>
</goal>

then run, for example

maven -Dgoal=jar:jar guarded-execution


On 11/18/05, Vov@ Sadovyy <[EMAIL PROTECTED]> wrote:
> Hi colleagues,
>
> Maybe it is a simple question and everybody knows it but… I got a task to
> indicate that build is already started. It is needed to refuse parallel
> launch by other users before completion of previous process. My first
> thought was to create a property stored in file (or even dummy file in the
> filesystem) as indicator of started build and clean-up it on finish. But if
> build fails the script does not reach the finish and indicator still exists.
> It seems it is not the right solution.
>
> So my questions to gurus: how to check that build process is going now?
>
> P.S. I'm using M1.
>
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar - get it now!
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to