Skip to content

Commit

Permalink
Rename XSLT files: prefix "to_*" instead of "transform_*"
Browse files Browse the repository at this point in the history
  • Loading branch information
howlger committed May 1, 2022
1 parent fc1f6c6 commit afb1317
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@
2. For each extension do the following:
1. Download "package.json" and convert it to XML
2. Based on "package.json.xml" and "info.xml",
get all required files and information (transform_to_extension_build.xsl)
get all required files and information (to_extension_build.xsl)
3. Create snippets for artifacts to generate:
- snippet for plugin.xml (transform_to_plugin_snippet.xsl)
- snippet for about.html (transform_to_about_html_snippet.xsl)
- snippet for info.html (transform_to_info_html_snippet.xsl)
- snippet for info.md (transform_to_info_md_snippet.xsl)
- snippet for plugin.xml (to_plugin_snippet.xsl)
- snippet for about.html (to_about_html_snippet.xsl)
- snippet for info.html (to_info_html_snippet.xsl)
- snippet for info.md (to_info_md_snippet.xsl)
3. Generate the artifacts by joining the snippets -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -127,7 +127,7 @@
encoding="UTF-8">
<filterchain refid="json-to-xml"/>
</copy>
<xslt style="${project.basedir}/../transform_to_extension_build.xsl"
<xslt style="${project.basedir}/../to_extension_build.xsl"
in="${project.build.directory}/generated_temp/@{extension}/package.json.xml"
out="${project.build.directory}/generated_temp/@{extension}/build.xml">
<param name="extension" expression="@{extension}"/>
Expand All @@ -140,7 +140,7 @@
<fileset file="${project.build.directory}/generated_temp/@{extension}/build.xml"/>
<property name="extension" value="@{extension}"/>
</subant>
<xslt style="${project.basedir}/../transform_to_plugin_snippet.xsl"
<xslt style="${project.basedir}/../to_plugin_snippet.xsl"
in="${project.build.directory}/generated_temp/@{extension}/package.json.xml"
out="${project.build.directory}/generated_temp/@{extension}/plugin_snippet.xml">
<param name="extension" expression="@{extension}"/>
Expand All @@ -158,7 +158,7 @@
</tokenfilter>
</filterchain>
</loadresource>
<xslt style="${project.basedir}/../transform_to_about_html_snippet.xsl"
<xslt style="${project.basedir}/../to_about_html_snippet.xsl"
in="${project.build.directory}/generated_temp/@{extension}/package.json.xml"
out="${project.build.directory}/generated_temp/@{extension}/about_html_snippet.html">
<param name="extension" expression="@{extension}"/>
Expand All @@ -168,15 +168,15 @@
<param name="temp-dir"
expression="${project.build.directory}/generated_temp/@{extension}/"/>
</xslt>
<xslt style="${project.basedir}/../transform_to_info_html_snippet.xsl"
<xslt style="${project.basedir}/../to_info_html_snippet.xsl"
in="${project.build.directory}/generated_temp/@{extension}/package.json.xml"
out="${project.build.directory}/generated_temp/@{extension}/info_html_snippet.html">
<param name="extension" expression="@{extension}"/>
<param name="info-file" expression="${project.basedir}/../info.xml"/>
<param name="temp-dir"
expression="${project.build.directory}/generated_temp/@{extension}/"/>
</xslt>
<xslt style="${project.basedir}/../transform_to_info_md_snippet.xsl"
<xslt style="${project.basedir}/../to_info_md_snippet.xsl"
in="${project.build.directory}/generated_temp/@{extension}/package.json.xml"
out="${project.build.directory}/generated_temp/@{extension}/info_md_snippet.md">
<param name="extension" expression="@{extension}"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common" exclude-result-prefixes="exsl">
<xsl:import href="transform_commons.xsl"/>
<xsl:import href="to_commons.xsl"/>
<xsl:output method="html" omit-xml-declaration="yes" indent="yes"/>

<!-- parameters -->
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="transform_commons.xsl"/>
<xsl:import href="to_commons.xsl"/>
<xsl:output method="xml" indent="yes"/>

<!-- parameters -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common" exclude-result-prefixes="exsl">
<xsl:import href="transform_commons.xsl"/>
<xsl:import href="to_commons.xsl"/>
<xsl:output method="html" omit-xml-declaration="yes" indent="yes"/>

<!-- parameters -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common" exclude-result-prefixes="exsl">
<xsl:import href="transform_commons.xsl"/>
<xsl:import href="to_commons.xsl"/>
<xsl:output method="text"/>

<!-- parameters -->
Expand Down
2 changes: 1 addition & 1 deletion transform_to_plugin_snippet.xsl → to_plugin_snippet.xsl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common" exclude-result-prefixes="exsl">
<xsl:import href="transform_commons.xsl"/>
<xsl:import href="to_commons.xsl"/>
<xsl:output method="xml" indent="yes"/>

<!-- parameters -->
Expand Down

0 comments on commit afb1317

Please sign in to comment.