Use Ant's exec tag in the postGoal, e.g. <postGoal name="java:compile"> <exec executable="HelloWorld.bat"> </exec> </postGoal>
Works for me -- dIon Gillard, Multitask Consulting Work: http://www.multitask.com.au Developers: http://adslgateway.multitask.com.au/developers "Wiley Jacobs" <[EMAIL PROTECTED]> wrote on 25/09/2002 08:03:58 AM: > I am very impressed with Maven, this is a very useful tool, I am > almost have my war file ready to go but I'm having a small issue; > > I am having a problem running a postgoal. I have made the task > simple so we can narrow it down quicker. I want it to run a command > line program after it runs the Java:compile goal. I have done this: > > <postGoal name="java:compile"> > HelloWorld.bat > </postGoal> > > The HelloWorld.bat is in the maven_home directory and I can run it > from any location on my computer. > > HelloWorld contains this text: > > start notepad > > I am unable to run this or any other batch file while using the > postGoal tag. I can see it say "HelloWorld.bat" in the dos box as > it runs through, although nothing happens. > > Could someone please assist? > > Thank you, > > Wiley -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
