i seems that what you're asking for is not a maven plugin as a workaround you can 'wrap' your plugin code into an installer jar (using either Antigen or Ant-installer) http://java-source.net/open-source/installer-generators
we could provide a more effective solution if you could share batch file code Martin Gainty ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Subject: RE: Ant Mojo Resources > Date: Mon, 5 Oct 2009 12:33:28 -0400 > From: [email protected] > To: [email protected] > > As far as I know, Windows has no facility for executing batch scripts > (or anything else for that matter) which are inside a JAR file. So, what > you'll need to do is copy the script to a temp directory and execute it > from there. I'm not sure how you'd do this with Ant. In a Java-based > Mojo, you could call getResourceAsStream() to get an InputStream and the > copy the bytes to the temp file. > > Justin > > -----Original Message----- > From: yoyomohan [mailto:[email protected]] > Sent: Sunday, October 04, 2009 2:02 PM > To: [email protected] > Subject: Re: Ant Mojo Resources > > > Hi jslinnha, > > I'm stuck in the same problem .pls. can you share the solution for > the problem 'calling scripts from custom ant plugin jar file' only. > Thanks in advance..... > > > jslinnha wrote: > > > > Hi All, > > > > I have created an Ant based plugin that need to call a windows batch > > file. The batch file is in the plugin projects resources folder and > > thus in the plugin jar. How can I access this resource path/ batch > > file using the <exec> ant task ? > > > > Thanks > > > > Jon > > > > > > -- > View this message in context: > http://www.nabble.com/Ant-Mojo-Resources-tp7011696p25740443.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > 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] > _________________________________________________________________ Hotmail: Trusted email with Microsoft’s powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141664/direct/01/
