Disable arduino and raspberry build files in samples

application-manager-new
charithag 9 years ago
parent e7db5a1d82
commit 7d44f2ae19

@ -413,7 +413,6 @@
<mkdir dir="target/wso2carbon-core-${carbon.kernel.version}/repository/resources/scripts"/> <mkdir dir="target/wso2carbon-core-${carbon.kernel.version}/repository/resources/scripts"/>
<!--Default sample--> <!--Default sample-->
<mkdir dir="target/wso2carbon-core-${carbon.kernel.version}/repository/resources/conf/iot"/>
<mkdir dir="target/wso2carbon-core-${carbon.kernel.version}/statistics"/> <mkdir dir="target/wso2carbon-core-${carbon.kernel.version}/statistics"/>
@ -431,12 +430,6 @@
<fileset dir="src/samples"/> <fileset dir="src/samples"/>
</copy> </copy>
<!--Default sample-->
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/conf/iot"
overwrite="true">
<fileset file="../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/iot-config.xml"/>
</copy>
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/resources/sketches" <copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/resources/sketches"
overwrite="true"> overwrite="true">
<fileset dir="src/sketches"/> <fileset dir="src/sketches"/>
@ -477,12 +470,20 @@
<goal>run</goal> <goal>run</goal>
</goals> </goals>
</execution> </execution>
<!--Default sample--> <!--Default sample-->
<execution> <execution>
<id>install_samples</id> <id>install_samples</id>
<phase>package</phase> <phase>package</phase>
<configuration> <configuration>
<tasks> <tasks>
<mkdir dir="target/wso2carbon-core-${carbon.kernel.version}/repository/resources/conf/iot"/>
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/conf/iot"
overwrite="true">
<fileset file="../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/iot-config.xml"/>
</copy>
<subant target="deploy"> <subant target="deploy">
<fileset dir="target/wso2carbon-core-${carbon.kernel.version}/samples/arduino" includes="build.xml"/> <fileset dir="target/wso2carbon-core-${carbon.kernel.version}/samples/arduino" includes="build.xml"/>
</subant> </subant>
@ -493,6 +494,8 @@
overwrite="true"> overwrite="true">
<fileset file="target/wso2carbon-core-${carbon.kernel.version}/repository/conf/iot/iot-config.xml"/> <fileset file="target/wso2carbon-core-${carbon.kernel.version}/repository/conf/iot/iot-config.xml"/>
</copy> </copy>
<move file="target/wso2carbon-core-${carbon.kernel.version}/samples/arduino/build.xml" toFile="target/wso2carbon-core-${carbon.kernel.version}/samples/arduino/build.xml.disable"/>
<move file="target/wso2carbon-core-${carbon.kernel.version}/samples/raspberrypi/build.xml" toFile="target/wso2carbon-core-${carbon.kernel.version}/samples/raspberrypi/build.xml.disable"/>
</tasks> </tasks>
</configuration> </configuration>
<goals> <goals>

Loading…
Cancel
Save