maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BenTatham <bentat...@nanometrics.ca>
Subject RE: Ant Mojo Resources
Date Tue, 20 Nov 2007 16:15:37 GMT

Simple question in regard to this really old solution:
How do I get the plugin version number into the ant plugin's build.xml so I
don't have to remember to modify the build.xml every time I release?  Can
you use filtering on the ant file at plugin build time?  I would think that
would be tricky because of all the real ant properties.  Is the
${project.version} available inside the ant xml -- the ${project.version} of
the plugin that is.  

-Ben



Ian Springer wrote:
> 
> Pass ${settings.localRepository} as a param to your Ant mojo. Then unzip
> the file(s) you need from the plugin jar (e.g.
> ${settings.localRepository}/com/xyz/foo-m2-plugin/1.0/foo-m2-plugin-1.0.
> jar) to a temp dir. Ugly, I know, but it works  :-)
> 
> | -----Original Message-----
> | From: SlinnHawkins, Jon (ELS) [mailto:J.SlinnHawkins@elsevier.com] 
> | Sent: Thursday, October 26, 2006 8:49 AM
> | To: users@maven.apache.org
> | Subject: Ant Mojo Resources
> | 
> | 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
> | 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Ant-Mojo-Resources-tf2514145s177.html#a13859921
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message