-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alex Jitianu
committed
Aug 18, 2017
1 parent
415c08d
commit 7e89a1a
Showing
11 changed files
with
219 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
<!-- This is an assembly file used for all the sample plugins. --> | ||
|
||
<assembly | ||
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> | ||
<id>framework</id> | ||
<formats> | ||
<format>zip</format> | ||
</formats> | ||
|
||
<fileSets> | ||
<fileSet> | ||
<directory>frameworks/xspec</directory> | ||
<outputDirectory>/</outputDirectory> | ||
<includes> | ||
<include>**/*</include> | ||
</includes> | ||
</fileSet> | ||
</fileSets> | ||
|
||
|
||
</assembly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:functx="http://www.functx.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
exclude-result-prefixes="xs" version="2.0"> | ||
|
||
<doc xmlns="http://www.oxygenxml.com/ns/doc/xsl"> | ||
<desc>The <b>functx:escape-for-regex</b> function escapes a string that you wish to be taken | ||
literally rather than treated like a regular expression. This is useful when, for | ||
example, you are calling the built-in fn:replace function and you want any periods or | ||
parentheses to be treated like literal characters rather than regex special characters. | ||
From: <a href="http://www.xsltfunctions.com/xsl/functx_escape-for-regex.html" | ||
>http://www.xsltfunctions.com/xsl/functx_escape-for-regex.html</a></desc> | ||
</doc> | ||
<xsl:function name="functx:escape-for-regex" as="xs:string"> | ||
<xsl:param name="arg" as="xs:string?"/> | ||
|
||
<xsl:sequence | ||
select=" | ||
replace($arg, | ||
'(\.|\[|\]|\\|\||\-|\^|\$|\?|\*|\+|\{|\}|\(|\))','\\$1') | ||
" | ||
/> | ||
</xsl:function> | ||
|
||
|
||
<doc xmlns="http://www.oxygenxml.com/ns/doc/xsl"> | ||
<desc>Escapes regexes in a list of phrases.</desc> | ||
</doc> | ||
<xsl:template match="phrases"> | ||
<phrases> | ||
<xsl:apply-templates select="phrase"/> | ||
</phrases> | ||
</xsl:template> | ||
|
||
<doc xmlns="http://www.oxygenxml.com/ns/doc/xsl"> | ||
<desc>Escaped the regexp from a phrase and marks the altered phrases with a <b>status</b> | ||
attribute. <p><b>Note:</b> The template has an intentional error in evaluating the value | ||
of attribute *status*. This error will be caught in an XSLT Unit Test.</p> | ||
</desc> | ||
</doc> | ||
<xsl:template match="phrase"> | ||
<xsl:variable name="escaped-text" select="functx:escape-for-regex(.)"/> | ||
<phrase status="{if (. = $escaped-text) then 'changed' else 'same'}"> | ||
<xsl:value-of select="functx:escape-for-regex(.)"/> | ||
</phrase> | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
if [[ ! -z ${TRAVIS_TAG} ]] | ||
then mvn versions:set -DnewVersion="${TRAVIS_TAG}"; | ||
echo "The tag is -------------------------------- ${TRAVIS_TAG}"; | ||
fi |
Oops, something went wrong.