[ http://jira.codehaus.org/browse/MWEBSTART-19?page=comments#action_78313 ] Holger Brands commented on MWEBSTART-19: ----------------------------------------
I wonder if the functionality of the maven resources plugin could be reused internally to implement this. If it's not possible then the attached patch does the job I think. But I would change the order in which the properties are filled into the context: first the system properties then the project properties This would be more in line with the resources plugin... > [webstart] Getting maven variables in jnlp file > ----------------------------------------------- > > Key: MWEBSTART-19 > URL: http://jira.codehaus.org/browse/MWEBSTART-19 > Project: Maven 2.x Webstart Plugin > Issue Type: Improvement > Reporter: Hes Siemelink > Assigned To: Jerome Lacoste > Priority: Minor > Attachments: props.diff > > > I would like to put the version number of our application in the JNLP file. > Is it possible to reference Maven variables from the velocity template? I > would like to do something like > <?xml version="1.0" encoding="UTF-8"?> > <jnlp codebase="$$codebase"> > ... > <resources> > <property name="version" value="${project.version }"/> > </resources> > ... > </jnlp> > or > <property name="version" value="${maven.project.version }"/> > It would be great if this was possible! -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email