-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added sleep module for bioconda test
- Loading branch information
Showing
2 changed files
with
76 additions
and
0 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,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<documentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="documentation.xsd"> | ||
<!-- mandatory fields: author, category, updated, description --> | ||
<info> | ||
<!-- forename lastname --> | ||
<author>Michael Kluge</author> | ||
<!-- day the module was updated the last time --> | ||
<updated>2019-03-13</updated> | ||
<category>General</category> | ||
<description maxVersion="1" minVersion="1">pauses for a specified amount of time</description> | ||
<!-- ##### optional ##### --> | ||
<!-- website of the dependencies used in this module --> | ||
<website>https://www.gnu.org/software/coreutils/sleep</website> | ||
<!-- external dependencies required for that module --> | ||
<dependencies maxVersion="1" minVersion="1">GNU sleep</dependencies> | ||
</info> | ||
<!-- ##### optional ##### --> | ||
<!-- github usernames of users who should be able to commit changes to that module --> | ||
<maintainer> | ||
<username>klugem</username> | ||
</maintainer> | ||
<parameter> | ||
<!-- mandatory fields per parameter: name, type, description --> | ||
<!-- optional fields per parameter: restrictions, default, minOccurs, maxOccurs, minVersion, maxVersion --> | ||
<param maxOccurs="1" minOccurs="1" name="wait" type="string" restrictions="[0-9]+[smhd]{0,1}"> | ||
<description>non-negative number followed by an optional unit; the default is seconds; valid units: seconds (s), minutes(m), hours (h), days (d)</description> | ||
</param> | ||
</parameter> | ||
</documentation> |
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,47 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<x:schema xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" vc:minVersion="1.1" xmlns:xerces="http://xerces.apache.org"> | ||
|
||
<!-- definition of the task parameters --> | ||
<x:complexType name="sleepTaskParameterType"> | ||
<x:all> | ||
<x:element name="wait" type="paramWait_sleep" minOccurs="1" maxOccurs="1" /> | ||
</x:all> | ||
</x:complexType> | ||
|
||
<!-- change default attributes --> | ||
<x:complexType name="sleepTaskOverrideType"> | ||
<x:complexContent> | ||
<x:restriction base="baseAttributeTaskType"> | ||
<x:attribute name="binName" type="x:string" fixed="sleep" /> | ||
<x:attribute name="isWatchdogModule" type="x:boolean" default="false" /> | ||
<x:attribute ref="paramFormat" fixed="plain" /> | ||
<x:attribute ref="quoteFormat" fixed="unquoted" /> | ||
</x:restriction> | ||
</x:complexContent> | ||
</x:complexType> | ||
|
||
<!-- definition of final task --> | ||
<x:complexType name="sleepTaskType"> | ||
<x:complexContent> | ||
<x:extension base="sleepTaskOverrideType"> | ||
<x:all> | ||
<x:element name="parameter" type="sleepTaskParameterType" minOccurs="1" maxOccurs="1" /> | ||
<x:group ref="defaultTaskElements" /> | ||
</x:all> | ||
</x:extension> | ||
</x:complexContent> | ||
</x:complexType> | ||
|
||
<!-- make task definition availible via substitution group --> | ||
<x:element name="sleepTask" type="sleepTaskType" substitutionGroup="abstractTask" /> | ||
|
||
<!-- module specific parameter types --> | ||
<x:complexType name="paramWait_sleep"> | ||
<x:simpleContent> | ||
<x:restriction base="paramString"> | ||
<x:assertion test="matches($value, '(\$\{[A-Za-z_][A-Za-z_0-9]*\})|(\$\(.+\))|([\[\(\{](\$[A-Za-z_]+(,\s*){0,1}){0,1}([0-9]+(,\S*){0,1}){0,1}[\]\)\}])') or matches($value, '^[0-9]+[smhd]{0,1}$')" xerces:message="Parameter with name '{$tag}' must match [0-9]+[smhd]{0,1}." /> | ||
</x:restriction> | ||
</x:simpleContent> | ||
</x:complexType> | ||
|
||
</x:schema> |