Question
During developing an IntelliJ IDEA plugin, when the chang-log becomes bigger and bigger, and it is in the fileplugin.xml. How can it be split into a separate file and put under the resource folder?
Take below as an example:
<change-notes><![CDATA[
Add change notes here.<br>
<em>most HTML tags may be used</em>
]]>
</change-notes>
Answer
Put it in another file like plugin_changelog.xml.
- Edit file
plugin.xml, remove the originalchange-notesdeclaration and change it to axi:includedirective:
<idea-plugin xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="plugin_changelog.xml" xpointer="xpointer(/idea-plugin/*)"/>
...
- Create a new file
plugin_changelog.xmlin the same folder asplugin.xml, and the content should be like this:
<idea-plugin>
<change-notes><![CDATA[
Add change notes here.<br>
<em>most HTML tags may be used</em>
]]>
</change-notes>
</idea-plugin>
Now it will work.
Comments
0 comments
Please sign in to leave a comment.