[m2] run a bat file from within a custom plugin

2005-11-22 Thread Wim Deblauwe
Hi, I would like to run a bat file from my plugin. I know that this will make my plugin very unportable to other platforms, but I only need to run on windows. What would be the best way to do this? Since running a bat file from within a jar is not supported, I guess the best way is to extract

Re: [m2] run a bat file from within a custom plugin

2005-11-22 Thread Emmanuel Venisse
look at release:perform goal. Emmanuel Wim Deblauwe a écrit : Hi, I would like to run a bat file from my plugin. I know that this will make my plugin very unportable to other platforms, but I only need to run on windows. What would be the best way to do this? Since running a bat file from

Re: [m2] run a bat file from within a custom plugin

2005-11-22 Thread Wim Deblauwe
What do you mean? I see the use of the Commanline class, but it calls an executable that is on the PATH. I'm talking about running a bat file that is delivered with my plugin (in the plugin jar). 2005/11/22, Emmanuel Venisse [EMAIL PROTECTED]: look at release:perform goal. Emmanuel Wim

Re: [m2] run a bat file from within a custom plugin

2005-11-22 Thread Emmanuel Venisse
you need to extract your file first (perhaps with plexus-archiver) and then run your script with Commandline Wim Deblauwe a écrit : What do you mean? I see the use of the Commanline class, but it calls an executable that is on the PATH. I'm talking about running a bat file that is delivered

Re: [m2] run a bat file from within a custom plugin

2005-11-22 Thread Chris Berry
Hi Wim, I had to do something like this as well w/ the antrun Plugin. Ant expects to find a real File for build.xml, and won't extract it from JAR. So I simply used Ant to do all the work. You can ignore the part where I build the ant task. The pertinent part is shown below. BTW. you could even