forked from community/device-mgt-plugins
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
2.2 KiB
58 lines
2.2 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project name="create-sample-sensor-capps" default="zip" basedir=".">
|
|
|
|
<property name="project-name" value="${ant.project.name}"/>
|
|
<property name="target-dir" value="../org.wso2.carbon.device.mgt.iot.androidsense.feature/src/main/resources/carbonapps"/>
|
|
|
|
<property name="GPS_dir" value="GPS"/>
|
|
<property name="Light_dir" value="Light"/>
|
|
<property name="Battery_dir" value="Battery"/>
|
|
<property name="Magnetic_dir" value="Magnetic"/>
|
|
<property name="Accelerometer_dir" value="Accelerometer"/>
|
|
<property name="Gravity_dir" value="Gravity"/>
|
|
<property name="Gyroscope_dir" value="Gyroscope"/>
|
|
<property name="Proximity_dir" value="Proximity"/>
|
|
<property name="Pressure_dir" value="Pressure"/>
|
|
<property name="Rotation_dir" value="Rotation"/>
|
|
|
|
<target name="clean">
|
|
<delete>
|
|
<fileset dir="${target-dir}" includes="**/*.*"/>
|
|
</delete>
|
|
</target>
|
|
|
|
<target name="zip" depends="clean">
|
|
<mkdir dir="${target-dir}"/>
|
|
<zip destfile="${target-dir}/${GPS_dir}.car">
|
|
<zipfileset dir="${GPS_dir}"/>
|
|
</zip>
|
|
<zip destfile="${target-dir}/${Light_dir}.car">
|
|
<zipfileset dir="${Light_dir}"/>
|
|
</zip>
|
|
<zip destfile="${target-dir}/${Battery_dir}.car">
|
|
<zipfileset dir="${Battery_dir}"/>
|
|
</zip>
|
|
<zip destfile="${target-dir}/${Magnetic_dir}.car">
|
|
<zipfileset dir="${Magnetic_dir}"/>
|
|
</zip>
|
|
<zip destfile="${target-dir}/${Accelerometer_dir}.car">
|
|
<zipfileset dir="${Accelerometer_dir}"/>
|
|
</zip>
|
|
<zip destfile="${target-dir}/${Gravity_dir}.car">
|
|
<zipfileset dir="${Gravity_dir}"/>
|
|
</zip>
|
|
<zip destfile="${target-dir}/${Gyroscope_dir}.car">
|
|
<zipfileset dir="${Gyroscope_dir}"/>
|
|
</zip>
|
|
<zip destfile="${target-dir}/${Pressure_dir}.car">
|
|
<zipfileset dir="${Pressure_dir}"/>
|
|
</zip>
|
|
<zip destfile="${target-dir}/${Rotation_dir}.car">
|
|
<zipfileset dir="${Rotation_dir}"/>
|
|
</zip>
|
|
<zip destfile="${target-dir}/${Proximity_dir}.car">
|
|
<zipfileset dir="${Proximity_dir}"/>
|
|
</zip>
|
|
</target>
|
|
</project>
|