Closed GoogleCodeExporter closed 9 years ago
Thanks for the Issue report.
Have you tried replacements:replacement as a workaround whilst I look into this?
There is an example in the UsageGuide (last example).
Original comment by baker.st...@gmail.com
on 21 Jul 2011 at 12:24
That's perfect! I have no idea how I missed that before.
I've not tried replacements:replacement with the exact text I had the bug with,
because I've since changed that, but I'm using it now for the replacements I
need to make and it looks much cleaner, e.g.:
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>maven-replacer-plugin</artifactId>
<version>1.3.8</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<ignoreMissingFile>false</ignoreMissingFile>
<file>target/${portletName}/WEB-INF/jsp/view.jsp</file>
<regex>false</regex>
<replacements>
<replacement>
<token>pid_</token>
<value><![CDATA[<portlet:namespace/>]]></value>
</replacement>
<replacement>
<token>rcp_</token>
<value><![CDATA[<%=request.getContextPath()%>]]></value>
</replacement>
<replacement>
<token>//replaceme2</token>
<value>
<![CDATA[<portlet:resourceURL escapeXml='false' id='get' var='getUrl'/><portlet:resourceURL escapeXml='false' id='update' var='updateUrl'/>]]></value>
</replacement>
<replacement>
<token><![CDATA[<!--replaceme1-->]]></token>
<value>
<![CDATA[<portlet:defineObjects/><portlet:actionURL var="actionURL" portletMode="view"/>]]></value>
</replacement>
</replacements>
</configuration>
</plugin>
Thanks for the tip!
Gary
Original comment by garyswea...@gmail.com
on 21 Jul 2011 at 1:56
No problem Gary.
Would you like me to close this Issue as there is a suitable workaround?
Original comment by baker.st...@gmail.com
on 22 Jul 2011 at 1:08
Thanks! Yes, please close this ticket. Thanks again.
Original comment by garyswea...@gmail.com
on 22 Jul 2011 at 2:31
Original issue reported on code.google.com by
garyswea...@gmail.com
on 20 Jul 2011 at 4:36