Hi Mick,

For m2, in your pom.xml:

  ...
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>do-something</id>
            <phase>pick-a-phase-any-phase</phase>
            <configuration>
              <tasks>
               <exec
                 dir="${basedir}"
                 executable="${basedir}/src/main/sh/do-something.sh"
                 failonerror="true">
                 <arg line="arg1 arg2 arg3 arg4" />
               </exec>
               <!-- or whatever ant task you desire -->
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  ...

Cheers,
...andrew

Mick Knutson wrote:
> I have a batch file with 4 different parameters that I need to call from
> Maven.
> Can someone please give me an example of doing this?
> 
> 
> Thank You
> Mick Knutson
> 
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
> 
> HP Consulting Services (Walnut Creek, CA)
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

Reply via email to