Author: ks156
Date: 2008-12-30 10:27:28 +0100 (Tue, 30 Dec 2008)
New Revision: 3369

Added:
   
software_suite_v2/software/gadgets/tuxdroid-gadget-feed/main_gadget/trunk/tuxdroid-gadget-feed/pom.xml
Removed:
   
software_suite_v2/software/gadgets/tuxdroid-gadget-feed/main_gadget/trunk/tuxdroid-gadget-feed/build.xml
   
software_suite_v2/software/gadgets/tuxdroid-gadget-feed/main_gadget/trunk/tuxdroid-gadget-feed/libraries/
   
software_suite_v2/software/gadgets/tuxdroid-gadget-feed/main_gadget/trunk/tuxdroid-gadget-feed/project.xml
   
software_suite_v2/software/gadgets/tuxdroid-gadget-feed/main_gadget/trunk/tuxdroid-gadget-feed/targets/
Modified:
   
software_suite_v2/software/gadgets/tuxdroid-gadget-feed/main_gadget/trunk/tuxdroid-gadget-feed/
Log:
* Removed the ant builder
* Added a maven pom file



Property changes on: 
software_suite_v2/software/gadgets/tuxdroid-gadget-feed/main_gadget/trunk/tuxdroid-gadget-feed
___________________________________________________________________
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-feed/main_gadget/trunk/tuxdroid-gadget-feed/build.xml
===================================================================
--- 
software_suite_v2/software/gadgets/tuxdroid-gadget-feed/main_gadget/trunk/tuxdroid-gadget-feed/build.xml
    2008-12-30 09:11:57 UTC (rev 3368)
+++ 
software_suite_v2/software/gadgets/tuxdroid-gadget-feed/main_gadget/trunk/tuxdroid-gadget-feed/build.xml
    2008-12-30 09:27:28 UTC (rev 3369)
@@ -1,12 +0,0 @@
-<project default="Package gadget" name="Gadget 'Feed'">
-       <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-feed/main_gadget/trunk/tuxdroid-gadget-feed/pom.xml
===================================================================
--- 
software_suite_v2/software/gadgets/tuxdroid-gadget-feed/main_gadget/trunk/tuxdroid-gadget-feed/pom.xml
                              (rev 0)
+++ 
software_suite_v2/software/gadgets/tuxdroid-gadget-feed/main_gadget/trunk/tuxdroid-gadget-feed/pom.xml
      2008-12-30 09:27:28 UTC (rev 3369)
@@ -0,0 +1,116 @@
+<project>
+    <!--General project informations-->
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>com.kysoh</groupId>
+    <artifactId>tuxdroid-gadget-feed</artifactId>
+    <packaging>jar</packaging>
+    <version>0.0.1</version>
+    <name>Feed 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>net.karmaLab</groupId>
+           <artifactId>karmalab-commons</artifactId>
+           <version>1.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-feed/main_gadget/trunk/tuxdroid-gadget-feed/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-feed/main_gadget/trunk/tuxdroid-gadget-feed/project.xml
===================================================================
--- 
software_suite_v2/software/gadgets/tuxdroid-gadget-feed/main_gadget/trunk/tuxdroid-gadget-feed/project.xml
  2008-12-30 09:11:57 UTC (rev 3368)
+++ 
software_suite_v2/software/gadgets/tuxdroid-gadget-feed/main_gadget/trunk/tuxdroid-gadget-feed/project.xml
  2008-12-30 09:27:28 UTC (rev 3369)
@@ -1,68 +0,0 @@
-<project>
-    <name>tuxdroid-gadget-java-samples</name>
-    <title>TuxDroid Gadget Feed</title>
-    <description>TuxDroid Gadget Feed</description>
-
-    <license>
-       <name>GPL</name>
-    </license>
-
-    <groupId>com.kysoh</groupId>
-    <artifactId>tuxdroid-gadget-feed</artifactId>
-    <version>0.1</version>
-
-    <dependencies>
-       <dependency>
-           <groupId>com.kysoh</groupId>
-           <artifactId>tuxdroid-gadget-java-kit</artifactId>
-           <version>0.0.1</version>
-       </dependency>
-       <dependency>
-           <id>karmalab-commons</id>
-           <groupId>net.karmaLab</groupId>
-           <artifactId>karmalab-commons</artifactId>
-           <version>1.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>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>Yoran Brault</name>
-           <organization>kysoh</organization>
-           <email>
-               softw...@_bad_karma-lab.net (remove _bad_ before sending
-               an email)
-           </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