Set to build firealarm virtual agent from source in git

application-manager-new
charithag 9 years ago
parent f8dca4dd8f
commit a73cf7213d

@ -62,7 +62,19 @@
</exec> </exec>
</target> </target>
<target name="deploy" depends="create-db,build"> <target name="build-agent">
<echo message="Downloading agent source...." />
<exec dir="." executable="sh">
<arg line="-c 'svn checkout https://github.com/wso2-incubator/iot-server-agents/trunk/FireAlarmVirtualAgent'" />
</exec>
<echo message="building agent from source" />
<exec dir="FireAlarmVirtualAgent" executable="sh">
<arg line="-c 'mvn clean install'" />
</exec>
<copy file="FireAlarmVirtualAgent/target/wso2-firealarm-virtual-agent.jar" todir="sketch"/>
</target>
<target name="deploy" depends="create-db,build-agent,build">
<copy toDir="${target.sketch.dir}/${sample_type}"> <copy toDir="${target.sketch.dir}/${sample_type}">
<fileset dir="sketch"/> <fileset dir="sketch"/>
</copy> </copy>

@ -1,2 +1,2 @@
templates=deviceConfig.properties templates=deviceConfig.properties
zipfilename=FireAlarmAgent.zip zipfilename=FireAlarmVirtualAgent.zip

@ -34,7 +34,7 @@ while true; do
done done
java -jar firealarm-virtual-agent-1.0-SNAPSHOT-jar-with-dependencies.jar java -jar wso2-firealarm-virtual-agent.jar
#while true; do #while true; do
# read -p "Do you wish to run 'apt-get update' and continue? [Yes/No] " yn # read -p "Do you wish to run 'apt-get update' and continue? [Yes/No] " yn

Loading…
Cancel
Save