Permalink
Please sign in to comment.
24
License
| @@ -0,0 +1,24 @@ | ||
| +Copyright (C) 2013-2015 Universidad Politécnica de Madrid (UPM) | ||
| +Some parts of this code are Copyright (C) 2013-2015 DEMANES | ||
| + | ||
| +Parts copyrighted by Universidad Politécnica de Madrid (UPM) are distributed | ||
| +under a dual license scheme: | ||
| + | ||
| +- For academic uses: Licensed under GNU Affero General Public License as | ||
| + published by the Free Software Foundation, either | ||
| + version 3 of the License, or (at your option) any | ||
| + later version. | ||
| + | ||
| + | ||
| +- For any other use: Licensed under the Apache License, Version 2.0. | ||
| + | ||
| +Parts copyrighted by DEMANES are distributed under the Apache License, Version 2.0. | ||
| + | ||
| +Unless required by applicable law or agreed to in writing, software | ||
| +distributed under the License is distributed on an "AS IS" BASIS, | ||
| +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| + | ||
| +Terms for GNU Affero General Public License version 3 are detailed in the file | ||
| +licenses/AGPL-3.0 | ||
| + | ||
| +Terms for Apache License version 2.0 are detailed in the file licenses/Apache-2.0 |
| @@ -0,0 +1,10 @@ | ||
| +# Properties file for a Sun Spot Application | ||
| +# | ||
| +# build.properties | ||
| +# | ||
| +# This file is the default location for user properties that over-ride the | ||
| +# defaults in ${sunspot.home}/default.properties. See that file for a full | ||
| +# listing of the properties that may be set. This file is minimal and contains | ||
| +# only those properties that a user would generally need to set right away. | ||
| +# | ||
| + |
110
build.xml
| @@ -0,0 +1,110 @@ | ||
| +<?xml version="1.0" encoding="UTF-8" standalone="no"?><project basedir="." default="help" name="PowerScaling@SunSPOT"> | ||
| + | ||
| +<!-- You may freely edit this file. See commented blocks below for --> | ||
| +<!-- some examples of how to customize the build. --> | ||
| + | ||
| + <!-- | ||
| + | ||
| + The master build file lives at: ${sunspot.home}/build.xml. | ||
| + | ||
| + If you do not have a Sun SPOT properties file for some reason, | ||
| + then you can set the sunspot.home property manually. | ||
| + | ||
| + <property name="sunspot.home" value="/opt/sunspot"/> | ||
| + | ||
| + The behavior of the build is also controled through properties. | ||
| + For example, to use a different source directory, you can set | ||
| + the property 'src.dir'. | ||
| + | ||
| + <property name="src.dir" value="mysrc"/> | ||
| + | ||
| + For a complete listing of properties that are used, and their | ||
| + explanations, see the file ${sunspot.home}/default.properties. | ||
| + | ||
| + --> | ||
| + | ||
| + <property name="user.properties.file" value="build.properties"/> | ||
| + <property file="${user.home}/.sunspot.properties"/> | ||
| + <import file="${sunspot.home}/build.xml"/> | ||
| + | ||
| + <!-- | ||
| + | ||
| + This file imports the master build file for compiling and deploying sunspot | ||
| + applications. This file provides hooks for the user build file, so that | ||
| + you can accomplish almost anything without having to rewrite any of the | ||
| + build procedures. However, if need be, you can just look at the imported | ||
| + build file to determine how exactly any step is accomplished. | ||
| + | ||
| + Of course, another useful way to find out exactly what is happening is to | ||
| + run the targets listed below with ant's 'verbose' flag (ant -v). This will | ||
| + display exactly what is happening at each step. | ||
| + | ||
| + Some important targets that are defined within the master build file are: | ||
| + (Do "ant help" to see the full list.) | ||
| + | ||
| + init: initialize and check all properties | ||
| + help: display useful a help message | ||
| + environment displays information about setting up your environment | ||
| + sdk-info displays information about the current SDK installation | ||
| + find-spots locate USB ports where SPOTs are connected | ||
| + info displays information about the configuration of a SPOT | ||
| + slots displays a list of the applications deployed on the SPOT | ||
| + | ||
| + clean: delete all compiled/generated files | ||
| + compile: compiles java source files to classes | ||
| + jar-app Create a jar for this application | ||
| + deploy deploy the application to a SPOT as an IMlet | ||
| + jar-deploy deploy an IMlet jar | ||
| + run connect to a device and watch the application | ||
| + debug-run configure the SPOT ro run the debug agent and then start the debug proxy | ||
| + debug-proxy-run start the proxy for the high-level debugger | ||
| + | ||
| + Some useful command line properties: | ||
| + | ||
| + -Dbasestation.addr=1234 set the address of the basestation | ||
| + -DremoteId=1234 set the target for remote run/deploy/debug-proxy-run | ||
| + -Dsquawk.startup.class=com.example.MyStartUp | ||
| + set an alternative startup class name | ||
| + -Dspotport=COM2 set the port name for communicating with the SPOT | ||
| + -Djar.file=example.jar set the jar file for jar-app, jar-deploy and make-host-jar | ||
| + -Dmidlet=2 select a midlet to run for selectapplication | ||
| + or deploy targets (defaults to 1) | ||
| + -Dutility.jars=utils.jar a classpath separator delimited list of jars to be | ||
| + included with the application | ||
| + | ||
| + There exist several targets which are by default empty and which can be | ||
| + used for execution of your tasks. These targets are usually executed | ||
| + before and after some main targets. They are defined as follows: | ||
| + | ||
| + For each target above (except help), | ||
| + | ||
| + -pre-<target>: called before the target | ||
| + -post-<target>: called after the target | ||
| + | ||
| + For example, inserting an echo statement after compilation could look like this: | ||
| + | ||
| + <target name="-post-compile"> | ||
| + <echo>Compile finished!</echo> | ||
| + </target> | ||
| + | ||
| + For more information on using ant, see http://ant.apache.org. | ||
| + | ||
| + --> | ||
| + | ||
| + <!-- | ||
| + Below is an example target to create Javadoc for your project. | ||
| + | ||
| + Note: you must manually edit the packagenames argument with | ||
| + the packages that you wish to create Javadoc for. | ||
| + --> | ||
| + | ||
| + <target depends="init" name="javadoc"> | ||
| + <delete dir="doc"/> | ||
| + <mkdir dir="doc"/> | ||
| + <javadoc author="true" destdir="doc" doctitle="Cargo Monitoring Pilot. DEMANES Project (1.0)" packagenames="eu.artemis.demanes.impl.SunSPOT.*" sourcepath="src" windowtitle="Cargo Monitoring Pilot. DEMANES Project (1.0)"> | ||
| + <classpath path="${sunspot.classpath}:${sunspot.bootclasspath}"/> | ||
| + <header><![CDATA[<b>DEMANES Power Scaling -- SPOT-side<br>v1.0</b>]]></header> | ||
| + </javadoc> | ||
| + </target> | ||
| + | ||
| +</project> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
0 comments on commit
68e0bc6