Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added blockfor task to grammar #924

Merged
merged 1 commit into from
May 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions etc/phing-grammar.rng
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
<ref name="attrib"/>
<ref name="available"/>
<ref name="basename"/>
<ref name="blockfor"/>
<ref name="chmod"/>
<ref name="chown"/>
<ref name="condition"/>
Expand Down Expand Up @@ -1166,6 +1167,56 @@
</element>
</define>

<define name="blockfor">
<element name="blockfor">
<interleave>
<attribute name="maxwait">
<data type="int"/>
</attribute>
<optional>
<attribute name="maxwaitunit" a:defaultValue="millisecond">
<choice>
<value>week</value>
<value>day</value>
<value>hour</value>
<value>minute</value>
<value>second</value>
<value>millisecond</value>
</choice>
</attribute>
</optional>
<attribute name="checkevery">
<data type="int"/>
</attribute>
<optional>
<attribute name="checkeveryunit" a:defaultValue="millisecond">
<choice>
<value>week</value>
<value>day</value>
<value>hour</value>
<value>minute</value>
<value>second</value>
<value>millisecond</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="timeoutproperty"/>
</optional>
</interleave>
<zeroOrMore>
<ref name="not"/>
<ref name="equals"/>
<ref name="or"/>
<ref name="and"/>
<ref name="isfalse"/>
<ref name="istrue"/>
<ref name="isset"/>
<ref name="contains_cond"/>
</zeroOrMore>
</element>
</define>

<define name="chmod">
<element name="chmod">
<interleave>
Expand Down