|
72 | 72 | </condition>
|
73 | 73 |
|
74 | 74 | <property name="ARDUINO-BUILDER-VERSION" value="1.0.0-beta9" />
|
75 |
| - <property name="LIB-VERSION-FIRMATA" value="2.4.4" /> |
| 75 | + |
76 | 76 | <property name="LIB-VERSION-TEMBOO" value="1.1.3" />
|
77 |
| - <property name="LIB-VERSION-BRIDGE" value="1.0.7" /> |
78 |
| - <property name="LIB-VERSION-ROBOT_CONTROL" value="1.0.2" /> |
79 |
| - <property name="LIB-VERSION-ROBOT_MOTOR" value="1.0.2" /> |
80 |
| - <property name="LIB-VERSION-ROBOTIRREMOTE" value="1.0.2" /> |
81 |
| - <property name="LIB-VERSION-SPACEBREWYUN" value="1.0.0" /> |
82 | 77 |
|
83 | 78 | <!-- Libraries required for running arduino -->
|
84 | 79 | <fileset dir=".." id="runtime.jars">
|
|
192 | 187 | <exclude name="**/USBHost/**"/>
|
193 | 188 | </fileset>
|
194 | 189 | </copy>
|
195 |
| - <antcall target="unzip"> |
196 |
| - <param name="archive_file" value="Firmata-${LIB-VERSION-FIRMATA}.zip" /> |
197 |
| - <param name="archive_url" value="https://github.com/arduino-libraries/Firmata/archive/v${LIB-VERSION-FIRMATA}.zip" /> |
198 |
| - <param name="final_folder" value="${target.path}/libraries/Firmata-${LIB-VERSION-FIRMATA}" /> |
199 |
| - <param name="dest_folder" value="${target.path}/libraries" /> |
200 |
| - </antcall> |
201 |
| - <move file="${target.path}/libraries/Firmata-${LIB-VERSION-FIRMATA}" tofile="${target.path}/libraries/Firmata" /> |
202 | 190 |
|
203 |
| - <antcall target="unzip"> |
204 |
| - <param name="archive_file" value="Temboo-${LIB-VERSION-TEMBOO}.zip" /> |
205 |
| - <param name="archive_url" value="https://github.com/temboo/Temboo/archive/${LIB-VERSION-TEMBOO}.zip" /> |
206 |
| - <param name="final_folder" value="${target.path}/libraries/Temboo-${LIB-VERSION-TEMBOO}" /> |
207 |
| - <param name="dest_folder" value="${target.path}/libraries" /> |
| 191 | + <antcall target="download-library"> |
| 192 | + <param name="name" value="Firmata"/> |
| 193 | + <param name="version" value="2.4.4"/> |
208 | 194 | </antcall>
|
209 |
| - <move file="${target.path}/libraries/Temboo-${LIB-VERSION-TEMBOO}" tofile="${target.path}/libraries/Temboo" /> |
210 |
| - |
211 |
| - <antcall target="unzip"> |
212 |
| - <param name="archive_file" value="Bridge-${LIB-VERSION-BRIDGE}.zip" /> |
213 |
| - <param name="archive_url" value="https://github.com/arduino-libraries/Bridge/archive/${LIB-VERSION-BRIDGE}.zip" /> |
214 |
| - <param name="final_folder" value="${target.path}/libraries/Bridge-${LIB-VERSION-BRIDGE}" /> |
215 |
| - <param name="dest_folder" value="${target.path}/libraries" /> |
| 195 | + <antcall target="download-library"> |
| 196 | + <param name="name" value="Bridge"/> |
| 197 | + <param name="version" value="1.0.7"/> |
216 | 198 | </antcall>
|
217 |
| - <move file="${target.path}/libraries/Bridge-${LIB-VERSION-BRIDGE}" tofile="${target.path}/libraries/Bridge" /> |
218 |
| - |
219 |
| - <antcall target="unzip"> |
220 |
| - <param name="archive_file" value="Robot_Control-${LIB-VERSION-ROBOT_CONTROL}.zip" /> |
221 |
| - <param name="archive_url" value="https://github.com/arduino-libraries/Robot_Control/archive/${LIB-VERSION-ROBOT_CONTROL}.zip" /> |
222 |
| - <param name="final_folder" value="${target.path}/libraries/Robot_Control-${LIB-VERSION-ROBOT_CONTROL}" /> |
223 |
| - <param name="dest_folder" value="${target.path}/libraries" /> |
| 199 | + <antcall target="download-library"> |
| 200 | + <param name="name" value="Robot_Control"/> |
| 201 | + <param name="version" value="1.0.2"/> |
224 | 202 | </antcall>
|
225 |
| - <move file="${target.path}/libraries/Robot_Control-${LIB-VERSION-ROBOT_CONTROL}" tofile="${target.path}/libraries/Robot_Control" /> |
226 |
| - |
227 |
| - <antcall target="unzip"> |
228 |
| - <param name="archive_file" value="Robot_Motor-${LIB-VERSION-ROBOT_MOTOR}.zip" /> |
229 |
| - <param name="archive_url" value="https://github.com/arduino-libraries/Robot_Motor/archive/${LIB-VERSION-ROBOT_MOTOR}.zip" /> |
230 |
| - <param name="final_folder" value="${target.path}/libraries/Robot_Motor-${LIB-VERSION-ROBOT_MOTOR}" /> |
231 |
| - <param name="dest_folder" value="${target.path}/libraries" /> |
| 203 | + <antcall target="download-library"> |
| 204 | + <param name="name" value="Robot_Motor"/> |
| 205 | + <param name="version" value="1.0.2"/> |
| 206 | + </antcall> |
| 207 | + <antcall target="download-library"> |
| 208 | + <param name="name" value="RobotIRremote"/> |
| 209 | + <param name="version" value="1.0.2"/> |
| 210 | + </antcall> |
| 211 | + <antcall target="download-library"> |
| 212 | + <param name="name" value="SpacebrewYun"/> |
| 213 | + <param name="version" value="1.0.0"/> |
232 | 214 | </antcall>
|
233 |
| - <move file="${target.path}/libraries/Robot_Motor-${LIB-VERSION-ROBOT_MOTOR}" tofile="${target.path}/libraries/Robot_Motor" /> |
234 | 215 |
|
235 | 216 | <antcall target="unzip">
|
236 |
| - <param name="archive_file" value="RobotIRremote-${LIB-VERSION-ROBOTIRREMOTE}.zip" /> |
237 |
| - <param name="archive_url" value="https://github.com/arduino-libraries/RobotIRremote/archive/${LIB-VERSION-ROBOTIRREMOTE}.zip" /> |
238 |
| - <param name="final_folder" value="${target.path}/libraries/RobotIRremote-${LIB-VERSION-ROBOTIRREMOTE}" /> |
| 217 | + <param name="archive_file" value="Temboo-${LIB-VERSION-TEMBOO}.zip" /> |
| 218 | + <param name="archive_url" value="https://github.com/temboo/Temboo/archive/${LIB-VERSION-TEMBOO}.zip" /> |
| 219 | + <param name="final_folder" value="${target.path}/libraries/Temboo-${LIB-VERSION-TEMBOO}" /> |
239 | 220 | <param name="dest_folder" value="${target.path}/libraries" />
|
240 | 221 | </antcall>
|
241 |
| - <move file="${target.path}/libraries/RobotIRremote-${LIB-VERSION-ROBOTIRREMOTE}" tofile="${target.path}/libraries/RobotIRremote" /> |
| 222 | + <move file="${target.path}/libraries/Temboo-${LIB-VERSION-TEMBOO}" tofile="${target.path}/libraries/Temboo" /> |
| 223 | + </target> |
242 | 224 |
|
| 225 | + <target name="download-library"> |
243 | 226 | <antcall target="unzip">
|
244 |
| - <param name="archive_file" value="SpacebrewYun-${LIB-VERSION-SPACEBREWYUN}.zip" /> |
245 |
| - <param name="archive_url" value="https://github.com/arduino-libraries/SpacebrewYun/archive/${LIB-VERSION-SPACEBREWYUN}.zip" /> |
246 |
| - <param name="final_folder" value="${target.path}/libraries/SpacebrewYun-${LIB-VERSION-SPACEBREWYUN}" /> |
| 227 | + <param name="archive_file" value="${name}-${version}.zip" /> |
| 228 | + <param name="archive_url" value="https://github.com/arduino-libraries/${name}/archive/${version}.zip" /> |
| 229 | + <param name="final_folder" value="${target.path}/libraries/${name}-${version}" /> |
247 | 230 | <param name="dest_folder" value="${target.path}/libraries" />
|
248 | 231 | </antcall>
|
249 |
| - <move file="${target.path}/libraries/SpacebrewYun-${LIB-VERSION-SPACEBREWYUN}" tofile="${target.path}/libraries/SpacebrewYun" /> |
| 232 | + <move file="${target.path}/libraries/${name}-${version}" tofile="${target.path}/libraries/${name}" /> |
250 | 233 | </target>
|
251 | 234 |
|
252 | 235 | <!-- copy hardware folder -->
|
|
0 commit comments