| 85 | | <available file="${examples.absolute.dir}/docroot/yui" type="dir" property="yui.local.available"/> |
|---|
| 86 | | <if> |
|---|
| 87 | | <isset property="yui.local.use"/> |
|---|
| 88 | | <!-- use local version --> |
|---|
| 89 | | <then> |
|---|
| 90 | | <if> |
|---|
| 91 | | <equals arg1="${yui.local.use}" arg2="yes"/> |
|---|
| 92 | | <then> |
|---|
| 93 | | <if> |
|---|
| 94 | | <equals arg1="${yui.local.available}" arg2="yes"/> |
|---|
| 95 | | <then> |
|---|
| 96 | | <echo>YAHOO! User Interface library is installed.</echo> |
|---|
| 97 | | </then> |
|---|
| 98 | | <else> |
|---|
| 99 | | <echo level="error">[Error] YAHOO! User Interface library is *not* installed.</echo> |
|---|
| 100 | | <echo level="error"/> |
|---|
| 101 | | <echo level="error">Set the property "yui.local.use" in "build.properties" to "no" to use the online version.</echo> |
|---|
| 102 | | <echo level="error"/> |
|---|
| 103 | | <echo level="error">Or download the latest version of the YAHOO! User Interface library from http://developer.yahoo.com/yui</echo> |
|---|
| 104 | | <echo level="error">and place it into ${examples.absolute.dir}/yui.</echo> |
|---|
| 105 | | <echo level="error">For more information refer to ${examples.absolute.dir}/json-rpc/README.</echo> |
|---|
| 106 | | </else> |
|---|
| 107 | | </if> |
|---|
| 108 | | </then> |
|---|
| 109 | | <else> |
|---|
| 110 | | <echo>Using online version of the YAHOO! User Interface library, please make sure, you are connected to the Internet.</echo> |
|---|
| 111 | | </else> |
|---|
| 112 | | </if> |
|---|
| 113 | | </then> |
|---|
| 114 | | <else> |
|---|
| 115 | | <if> |
|---|
| 116 | | <equals arg1="${yui.local.available}" arg2="yes"/> |
|---|
| 117 | | <then> |
|---|
| 118 | | <echo>YAHOO! User Interface library is installed.</echo> |
|---|
| 119 | | <echo>Will use this version in examples.</echo> |
|---|
| 120 | | <append destFile="examples.properties" text="yui.local.use=yes${line.separator}"/> |
|---|
| 121 | | </then> |
|---|
| 122 | | <else> |
|---|
| 123 | | <echo>YAHOO! User Interface library is *not* installed.</echo> |
|---|
| 124 | | <input propertyname="yui.remote.use" promptChar="?" defaultValue="Y">Do you want to use the online version provided by YAHOO (Y/N)</input> |
|---|
| 125 | | <if> |
|---|
| 126 | | <or> |
|---|
| 127 | | <equals arg1="${yui.remote.use}" arg2="Y"/> |
|---|
| 128 | | <equals arg1="${yui.remote.use}" arg2="y"/> |
|---|
| 129 | | </or> |
|---|
| 130 | | <then> |
|---|
| 131 | | <append destFile="examples.properties" text="yui.local.use=no${line.separator}"/> |
|---|
| 132 | | </then> |
|---|
| 133 | | <else> |
|---|
| 134 | | <append destFile="examples.properties" text="yui.local.use=yes${line.separator}"/> |
|---|
| 135 | | </else> |
|---|
| 136 | | </if> |
|---|
| 137 | | </else> |
|---|
| 138 | | </if> |
|---|
| 139 | | </else> |
|---|
| 140 | | </if> |
|---|