Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 69ff754

Browse files
committed
Use <isset> instead of <available>
1 parent 7d47408 commit 69ff754

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

dist/phing/build-pydio.xml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,8 @@
577577
</if>
578578
<if>
579579
<or>
580-
<available property="js-required"/>
581-
<available property="css-required"/>
580+
<isset property="js-required"/>
581+
<isset property="css-required"/>
582582
</or>
583583
<then>
584584
<echo message="REBUILDING JS FOR PLUGIN ${plugin}"/>
@@ -592,18 +592,20 @@
592592
<property name="grunt-target" value=""/>
593593
<if>
594594
<and>
595-
<available property="js-required"/>
596-
<available property="has-css-path"/>
597-
<not><available property="css-required"/></not>
595+
<isset property="js-required"/>
596+
<isset property="has-css-path"/>
597+
<not><isset property="css-required"/></not>
598598
</and>
599599
<then>
600+
<echo message=" --> Target type:js only"/>
600601
<property name="grunt-target" value="type:js"/>
601602
</then>
602603
<elseif>
603-
<available property="css-required"/>
604-
<available property="has-js-path"/>
605-
<not><available property="js-required"/></not>
604+
<isset property="css-required"/>
605+
<isset property="has-js-path"/>
606+
<not><isset property="js-required"/></not>
606607
<then>
608+
<echo message=" --> Target type:css only"/>
607609
<property name="grunt-target" value="type:css"/>
608610
</then>
609611
</elseif>
@@ -645,7 +647,7 @@
645647

646648
<target name="grunt">
647649
<if>
648-
<available property="grunt_target"/>
650+
<isset property="grunt_target"/>
649651
<then>
650652
<property name="command" value="grunt ${grunt_target}"/>
651653
</then>

0 commit comments

Comments
 (0)