Author: remi
Date: 2009-04-10 16:27:51 +0200 (Fri, 10 Apr 2009)
New Revision: 4483

Modified:
   
softwares_suite_v3/community/gadget/tuxdroid-gadget-clock/trunk/tuxdroid-gadget-clock/pom.xml
   
softwares_suite_v3/community/gadget/tuxdroid-gadget-clock/trunk/tuxdroid-gadget-clock/resources/gadget.xml
   
softwares_suite_v3/community/gadget/tuxdroid-gadget-clock/trunk/tuxdroid-gadget-clock/sources/net/karmaLab/tuxDroid/gadgets/ClockGadget.java
Log:
* adapted the gadget to perfectly run in the python framework.
* this gadget only have the "run" command.
* bumped to 1.2

Modified: 
softwares_suite_v3/community/gadget/tuxdroid-gadget-clock/trunk/tuxdroid-gadget-clock/pom.xml
===================================================================
--- 
softwares_suite_v3/community/gadget/tuxdroid-gadget-clock/trunk/tuxdroid-gadget-clock/pom.xml
       2009-04-10 14:13:19 UTC (rev 4482)
+++ 
softwares_suite_v3/community/gadget/tuxdroid-gadget-clock/trunk/tuxdroid-gadget-clock/pom.xml
       2009-04-10 14:27:51 UTC (rev 4483)
@@ -4,7 +4,7 @@
     <groupId>com.kysoh</groupId>
     <artifactId>tuxdroid-gadget-clock</artifactId>
     <packaging>jar</packaging>
-    <version>1.1</version>
+    <version>1.2</version>
     <name>Clock gadget for Tux Droid</name>
     <url>http://www.tuxisalive.com</url>
     
@@ -13,7 +13,7 @@
        <dependency>
            <groupId>com.kysoh</groupId>
            <artifactId>tuxdroid-gadget-java-kit</artifactId>
-           <version>0.0.1</version>
+           <version>0.0.2</version>
        </dependency>
     </dependencies>
     
@@ -70,10 +70,14 @@
                                <copy 
file="${project.build.directory}/${project.artifactId}-${project.version}.jar"
                                    todir="./libraries" />
                                <zip destfile="./${project.artifactId}.tgf">
-                                   <zipfileset dir="." includes="resources/*" 
/>
-                                   <zipfileset dir="." includes="libraries/*" 
/>
-                                   <zipfileset dir="." 
includes="executables/*" />
-                               </zip>
+                    <zipfileset dir="." includes="resources/*" />
+                    <zipfileset dir="." includes="libraries/*" >
+                        <exclude name="libraries/tuxdroid-gadget-java-kit*" />
+                        <exclude name="libraries/karmalab-commons*" />
+                        <exclude name="libraries/tuxdroid-java-api*" />
+                    </zipfileset>
+                    <zipfileset dir="." includes="executables/*" />
+                </zip>
                            </tasks>
                        </configuration>
                        <goals>

Modified: 
softwares_suite_v3/community/gadget/tuxdroid-gadget-clock/trunk/tuxdroid-gadget-clock/resources/gadget.xml
===================================================================
--- 
softwares_suite_v3/community/gadget/tuxdroid-gadget-clock/trunk/tuxdroid-gadget-clock/resources/gadget.xml
  2009-04-10 14:13:19 UTC (rev 4482)
+++ 
softwares_suite_v3/community/gadget/tuxdroid-gadget-clock/trunk/tuxdroid-gadget-clock/resources/gadget.xml
  2009-04-10 14:27:51 UTC (rev 4483)
@@ -7,7 +7,7 @@
                <name>Clock Gadget</name>
                <description>This gadget gives you the time</description>
                <author>Yoran Brault</author>
-               <version>1.1</version>
+               <version>1.2</version>
                <iconFile>resources/gadget.png</iconFile>
                <executionMode>command</executionMode>
                <uuid>8349ed52-572d-4c3f-a7b8-05c2a8aec2c0</uuid>
@@ -16,8 +16,5 @@
                <command
                        name="run"
                        description="Check the time" />
-               <command
-                       name="check"
-                       description="Check the time" />
        </commands>
 </gadget>

Modified: 
softwares_suite_v3/community/gadget/tuxdroid-gadget-clock/trunk/tuxdroid-gadget-clock/sources/net/karmaLab/tuxDroid/gadgets/ClockGadget.java
===================================================================
--- 
softwares_suite_v3/community/gadget/tuxdroid-gadget-clock/trunk/tuxdroid-gadget-clock/sources/net/karmaLab/tuxDroid/gadgets/ClockGadget.java
        2009-04-10 14:13:19 UTC (rev 4482)
+++ 
softwares_suite_v3/community/gadget/tuxdroid-gadget-clock/trunk/tuxdroid-gadget-clock/sources/net/karmaLab/tuxDroid/gadgets/ClockGadget.java
        2009-04-10 14:27:51 UTC (rev 4483)
@@ -33,7 +33,7 @@
 
        /**
         * Main gadget access point.
-        * 
+        *
         * @param args
         *            commands
         * @throws Exception
@@ -47,14 +47,14 @@
 
        @Override
        public void start() {
-               if (getCommand().equals("check")) {
-                       check();
+               if (getCommand().equals("run")) {
+                       run();
                }
-               else if (getCommand().equals("run")) {
+               else {
                        run();
                }
        }
-       
+
        private void run() {
                calendar.setTime(new Date());
                int h = calendar.get(Calendar.HOUR_OF_DAY);
@@ -65,9 +65,8 @@
                        throwMessage("Current time is {0} hours.", h);
                }
        }
-       
-       private void check() {
-               run();
-       }
 
+    @Override
+    public void onGadgetStop() {
+    }
 }


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to