Author: remi
Date: 2009-07-03 17:36:46 +0200 (Fri, 03 Jul 2009)
New Revision: 5037

Added:
   software_suite_v3/software/tool/tool-attitunes-studio/trunk/resources/
   
software_suite_v3/software/tool/tool-attitunes-studio/trunk/resources/help.wiki
   
software_suite_v3/software/tool/tool-attitunes-studio/trunk/resources/plugin.png
   
software_suite_v3/software/tool/tool-attitunes-studio/trunk/resources/plugin.pot
   
software_suite_v3/software/tool/tool-attitunes-studio/trunk/resources/plugin.xml
Modified:
   software_suite_v3/software/tool/tool-attitunes-studio/trunk/pom.xml
Log:
* Updated pom.xml in order to compile Attitunes studio as scp file.
* Added plugin resources

Modified: software_suite_v3/software/tool/tool-attitunes-studio/trunk/pom.xml
===================================================================
--- software_suite_v3/software/tool/tool-attitunes-studio/trunk/pom.xml 
2009-07-03 15:26:39 UTC (rev 5036)
+++ software_suite_v3/software/tool/tool-attitunes-studio/trunk/pom.xml 
2009-07-03 15:36:46 UTC (rev 5037)
@@ -2,7 +2,7 @@
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
     <modelVersion>4.0.0</modelVersion>
     <groupId>com.kysoh</groupId>
-    <artifactId>attitunes_studio</artifactId>
+    <artifactId>tool-attitunes-studio</artifactId>
     <packaging>jar</packaging>
     <version>0.0.2</version>
     <name>Attitunes Studio</name>
@@ -52,34 +52,84 @@
                <excludes>
                    <exclude>**/*.java</exclude>
                </excludes>
-
            </resource>
        </resources>
        <sourceDirectory>src</sourceDirectory>
        <plugins>
+        <!--This section copy the dependencies into ./libraries-->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
-               <artifactId>maven-jar-plugin</artifactId>
-               <configuration>
-                   <archive>
-                       <!--Set the manifest : mainclass and classpath-->
-                       <manifest>
-                           <mainClass>main</mainClass>
-                       </manifest>
-                       <manifestEntries>
-                           <Class-Path>./tuxdroid-java-api-0.0.3.jar 
./skinlf-6.7.jar ./smart-core-paths-0.0.1.jar</Class-Path>
-                       </manifestEntries>
-                   </archive>
-               </configuration>
+               <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 
plugin-->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
+               <artifactId>maven-antrun-plugin</artifactId>
+               <version>1.3</version>
+               <executions>
+                   
+                   <!--This section create the .scp 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}.scp">
+                        <zipfileset dir="." includes="resources/*" />
+                        <zipfileset dir="." includes="libraries/*" >
+                            <exclude name="libraries/tuxdroid-java-api*" />
+                            <exclude name="libraries/smart-core-paths*" />
+                        </zipfileset>
+                        <zipfileset dir="." includes="executables/*" />
+                    </zip>
+                </tasks>
+                       </configuration>
+                       <goals>
+                           <goal>run</goal>
+                       </goals>
+                   </execution>
+
+                   <!--This section clean the ./libraries and the SCP file 
during the 'clean' lifecycle-->
+                   <execution>
+                       <phase>clean</phase>
+                       <configuration>
+                           <tasks>
+                               <delete dir="./libraries"/>
+                               <delete 
file="./${project.artifactId}.scp"></delete>
+                           </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>
+    </plugins>
     </build>
 </project>

Added: 
software_suite_v3/software/tool/tool-attitunes-studio/trunk/resources/help.wiki
===================================================================
--- 
software_suite_v3/software/tool/tool-attitunes-studio/trunk/resources/help.wiki 
                            (rev 0)
+++ 
software_suite_v3/software/tool/tool-attitunes-studio/trunk/resources/help.wiki 
    2009-07-03 15:36:46 UTC (rev 5037)
@@ -0,0 +1,2 @@
+= Synopsis =
+Attitunes studio launcher.

Added: 
software_suite_v3/software/tool/tool-attitunes-studio/trunk/resources/plugin.png
===================================================================
(Binary files differ)


Property changes on: 
software_suite_v3/software/tool/tool-attitunes-studio/trunk/resources/plugin.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: 
software_suite_v3/software/tool/tool-attitunes-studio/trunk/resources/plugin.pot
===================================================================
--- 
software_suite_v3/software/tool/tool-attitunes-studio/trunk/resources/plugin.pot
                            (rev 0)
+++ 
software_suite_v3/software/tool/tool-attitunes-studio/trunk/resources/plugin.pot
    2009-07-03 15:36:46 UTC (rev 5037)
@@ -0,0 +1,11 @@
+msgid "Attitunes Studio"
+msgstr ""
+
+msgid "Attitunes studio launcher"
+msgstr ""
+
+msgid "Path of the attitune to edit"
+msgstr ""
+
+msgid "Start the tool"
+msgstr ""

Added: 
software_suite_v3/software/tool/tool-attitunes-studio/trunk/resources/plugin.xml
===================================================================
--- 
software_suite_v3/software/tool/tool-attitunes-studio/trunk/resources/plugin.xml
                            (rev 0)
+++ 
software_suite_v3/software/tool/tool-attitunes-studio/trunk/resources/plugin.xml
    2009-07-03 15:36:46 UTC (rev 5037)
@@ -0,0 +1,29 @@
+<plugin>
+       <interpreter
+               kind="java">
+               <executable>main</executable>
+       </interpreter>
+       <description>
+               <name>Attitunes Studio</name>
+        <ttsName>Attitunes Studio.</ttsName>
+               <description>Attitunes studio launcher</description>
+               <author>Rémi Jocaille</author>
+               <version>0.0.2</version>
+               <iconFile>resources/plugin.png</iconFile>
+               <uuid>548f7a9a-567d-773e-a0dd-102fe68a1b49</uuid>
+        <platform>all</platform>
+       </description>
+       <parameters>
+               <parameter
+                       name="path"
+                       description="Path of the attitune to edit"
+                       type="string"
+                       defaultValue="template.att" />
+       </parameters>
+       <commands>
+               <command
+                       name="run"
+                       description="Start the tool" />
+       </commands>
+    <tasks/>
+</plugin>


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

Reply via email to