Author: ks156
Date: 2008-12-30 09:53:51 +0100 (Tue, 30 Dec 2008)
New Revision: 3360

Added:
   
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/pom.xml
Removed:
   
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/build.xml
   
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/libraries/
   
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/project.xml
Modified:
   
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/
Log:
* Replaced the ant builder by a maven POM to compile this gadget.
  The compilation is done with the command : mvn clean package



Property changes on: 
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget
___________________________________________________________________
Name: svn:externals
   - builder 
http://svn.tuxisalive.com/software_suite_v2/software/tuxdroid-gadget-framework/trunk/tuxdroid-gadget-framework/builder


Deleted: 
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/build.xml
===================================================================
--- 
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/build.xml
      2008-12-30 08:50:44 UTC (rev 3359)
+++ 
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/build.xml
      2008-12-30 08:53:51 UTC (rev 3360)
@@ -1,14 +0,0 @@
-<project default="Package gadget" name="Gadget 'Google Weather'">
-       <import file="./builder/build.xml" />
-       <target name="Package gadget" depends="Create JAR file">
-               <mkdir dir="../tuxdroid-gadget-tester/gadgets" />
-               <zip 
destfile="../tuxdroid-gadget-tester/gadgets/${project.artifactId}.tgf">
-                       <zipfileset dir="." includes="resources/*" />
-                       <zipfileset dir="." includes="libraries/*" />
-                       <zipfileset dir="." includes="executables/*" />
-                       <zipfileset dir="targets/build"
-                                   
includes="${project.artifactId}-${project.version}.jar"
-                                   
fullpath="libraries/${project.artifactId}-${project.version}.jar" />
-               </zip>
-       </target>
-</project>
\ No newline at end of file

Added: 
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/pom.xml
===================================================================
--- 
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/pom.xml
                                (rev 0)
+++ 
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/pom.xml
        2008-12-30 08:53:51 UTC (rev 3360)
@@ -0,0 +1,116 @@
+<project>
+    <!--General project informations-->
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>com.kysoh</groupId>
+    <artifactId>tuxdroid-gadget-skype</artifactId>
+    <packaging>jar</packaging>
+    <version>0.0.1</version>
+    <name>Skype gadget for Tux Droid</name>
+    <url>http://www.tuxisalive.com</url>
+    
+    <!--Dependency list-->
+    <dependencies>
+       <dependency>
+           <groupId>com.kysoh</groupId>
+           <artifactId>tuxdroid-gadget-java-kit</artifactId>
+           <version>0.0.1</version>
+       </dependency>
+       <dependency>
+           <groupId>com.tuxisalive</groupId>
+           <artifactId>tuxdroid-java-api</artifactId>
+           <version>0.0.2</version>
+       </dependency>
+    </dependencies>
+    
+    <!--Repository list-->
+    <repositories>
+       <repository>
+           <id>kysoh</id>
+           <name>Kysoh Repository</name>
+           <layout>default</layout>
+           <url>http://ftp.kysoh.com/maven2</url>
+           <snapshots>
+               <enabled>false</enabled>
+           </snapshots>
+       </repository>
+    </repositories>
+
+    <!--Build process-->
+    <build>
+        <sourceDirectory>sources</sourceDirectory>
+       <plugins>
+
+           <!--This section copy the dependencies into ./libraries-->
+           <plugin>
+               <groupId>org.apache.maven.plugins</groupId>
+               <artifactId>maven-dependency-plugin</artifactId>
+               <executions>
+                   <execution>
+                       <id>copy-dependencies</id>
+                       <phase>package</phase>
+                       <goals>
+                           <goal>copy-dependencies</goal>
+                       </goals>
+                       <configuration>
+                           <outputDirectory>./libraries</outputDirectory>
+                       </configuration>
+                   </execution>
+               </executions>
+           </plugin>
+
+           <!--This plugin run small ant scripts to pack and clean the gadget 
-->
+           <plugin>
+               <groupId>org.apache.maven.plugins</groupId>
+               <artifactId>maven-antrun-plugin</artifactId>
+               <version>1.3</version>
+               <executions>
+                   
+                   <!--This section create the .tgf file during the package 
lifecycle-->
+                   <execution>
+                       <phase>package</phase>
+                       <id>package</id>
+                       <configuration>
+                           <tasks>
+                               <mkdir dir="./libraries"/>
+                               <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>
+                           </tasks>
+                       </configuration>
+                       <goals>
+                           <goal>run</goal>
+                       </goals>
+                   </execution>
+
+                   <!--This section clean the ./libraries and the TGF file 
during the 'clean' lifecycle-->
+                   <execution>
+                       <phase>clean</phase>
+                       <configuration>
+                           <tasks>
+                               <delete dir="./libraries"/>
+                               <delete file="./${project.artifactId}.tgf"/>
+                           </tasks>
+                       </configuration>
+                       <goals>
+                           <goal>run</goal>
+                       </goals>
+                   </execution>
+               </executions>
+           </plugin>
+
+           <!--This plugin compile the project-->
+           <plugin>
+               <groupId>org.apache.maven.plugins</groupId>
+               <artifactId>maven-compiler-plugin</artifactId>
+               <configuration>
+                   <source>1.6</source>
+                   <target>1.6</target>
+               </configuration>
+           </plugin>
+       </plugins>
+    </build>
+</project>


Property changes on: 
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/pom.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Deleted: 
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/project.xml
===================================================================
--- 
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/project.xml
    2008-12-30 08:50:44 UTC (rev 3359)
+++ 
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/project.xml
    2008-12-30 08:53:51 UTC (rev 3360)
@@ -1,84 +0,0 @@
-<project>
-       <name>tuxdroid-gadget-skype</name>
-       <title>TuxDroid Gadget Skype</title>
-       <description>TuxDroid Gadget Skype</description>
-
-       <license>
-               <name>GPL</name>
-       </license>
-
-       <groupId>com.kysoh</groupId>
-       <artifactId>tuxdroid-skype-gadget</artifactId>
-       <version>0.1</version>
-
-       <dependencies>
-               <dependency>
-                       <groupId>com.kysoh</groupId>
-                       <artifactId>tuxdroid-gadget-java-kit</artifactId>
-                       <version>0.0.1</version>
-               </dependency>
-               <dependency>
-                       <groupId>com.tuxisalive</groupId>
-                       <artifactId>tuxdroid-java-api</artifactId>
-                       <version>0.0.2</version>
-               </dependency>
-       </dependencies>
-       <repositories>
-               <repository>
-                       <id>central</id>
-                       <name>Maven Repository Switchboard</name>
-                       <layout>default</layout>
-                       <url>http://repo1.maven.org/maven2</url>
-                       <snapshots>
-                               <enabled>false</enabled>
-                       </snapshots>
-               </repository>
-               <repository>
-                       <id>karma-lab</id>
-                       <name>KarmaLab Repository Switchboard</name>
-                       <layout>default</layout>
-                       
<url>http://artisan.karma-lab.net/software/repository</url>
-                       <snapshots>
-                               <enabled>false</enabled>
-                       </snapshots>
-               </repository>
-               <repository>
-                       <id>kysoh</id>
-                       <name>Kysoh Repository</name>
-                       <layout>default</layout>
-                       <url>http://ftp.kysoh.com/maven2</url>
-                       <snapshots>
-                               <enabled>false</enabled>
-                       </snapshots>
-               </repository>
-               <repository>
-                       <id>kysoh</id>
-                       <name>Kysoh Repository</name>
-                       <layout>default</layout>
-                       <url>http://ftp.kysoh.com/maven2</url>
-                       <snapshots>
-                               <enabled>false</enabled>
-                       </snapshots>
-               </repository>
-       </repositories>
-       <developers>
-               <developer>
-                       <name>Kysoh</name>
-                       <organization>kysoh</organization>
-                       <email>
-                           [email protected]
-                       </email>
-                       <organizationUrl>http://www.kysoh.com/</organizationUrl>
-               </developer>
-       </developers>
-
-       <releases>
-               <release date="03/06/2008" version="0.1">
-                       <changes>
-                               <change kind="creation">
-                                       <description>First version</description>
-                               </change>
-                       </changes>
-               </release>
-       </releases>
-</project>


------------------------------------------------------------------------------
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to