Permalink
Browse files

Use <isset> instead of <available>

  • Loading branch information...
1 parent 7d47408 commit 69ff7544fe1880aa1c02388a90dae7db11b1a92f @cdujeu cdujeu committed Oct 8, 2016
Showing with 11 additions and 9 deletions.
  1. +11 −9 dist/phing/build-pydio.xml
@@ -577,8 +577,8 @@
</if>
<if>
<or>
- <available property="js-required"/>
- <available property="css-required"/>
+ <isset property="js-required"/>
+ <isset property="css-required"/>
</or>
<then>
<echo message="REBUILDING JS FOR PLUGIN ${plugin}"/>
@@ -592,18 +592,20 @@
<property name="grunt-target" value=""/>
<if>
<and>
- <available property="js-required"/>
- <available property="has-css-path"/>
- <not><available property="css-required"/></not>
+ <isset property="js-required"/>
+ <isset property="has-css-path"/>
+ <not><isset property="css-required"/></not>
</and>
<then>
+ <echo message=" --> Target type:js only"/>
<property name="grunt-target" value="type:js"/>
</then>
<elseif>
- <available property="css-required"/>
- <available property="has-js-path"/>
- <not><available property="js-required"/></not>
+ <isset property="css-required"/>
+ <isset property="has-js-path"/>
+ <not><isset property="js-required"/></not>
<then>
+ <echo message=" --> Target type:css only"/>
<property name="grunt-target" value="type:css"/>
</then>
</elseif>
@@ -645,7 +647,7 @@
<target name="grunt">
<if>
- <available property="grunt_target"/>
+ <isset property="grunt_target"/>
<then>
<property name="command" value="grunt ${grunt_target}"/>
</then>

0 comments on commit 69ff754

Please sign in to comment.