Author: remi
Date: 2008-11-26 20:48:27 +0100 (Wed, 26 Nov 2008)
New Revision: 2855

Added:
   software_suite_v2/software/cc_launcher/
   software_suite_v2/software/cc_launcher/trunk/
   software_suite_v2/software/cc_launcher/trunk/.classpath
   software_suite_v2/software/cc_launcher/trunk/.project
   software_suite_v2/software/cc_launcher/trunk/build.xml
   software_suite_v2/software/cc_launcher/trunk/libraries/
   
software_suite_v2/software/cc_launcher/trunk/libraries/tuxdroid-installer-paths.jar
   software_suite_v2/software/cc_launcher/trunk/src/
   software_suite_v2/software/cc_launcher/trunk/src/cc_launcher.java
Log:
* added a little java app to launch the control center and its splash screen 
with the relative paths.

Added: software_suite_v2/software/cc_launcher/trunk/.classpath
===================================================================
--- software_suite_v2/software/cc_launcher/trunk/.classpath                     
        (rev 0)
+++ software_suite_v2/software/cc_launcher/trunk/.classpath     2008-11-26 
19:48:27 UTC (rev 2855)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+       <classpathentry kind="src" path="src"/>
+       <classpathentry kind="con" 
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+    <classpathentry kind="lib" path="libraries/tuxdroid-installer-paths.jar"/>
+       <classpathentry kind="output" path="bin"/>
+</classpath>


Property changes on: software_suite_v2/software/cc_launcher/trunk/.classpath
___________________________________________________________________
Name: svn:keywords
   + Id

Added: software_suite_v2/software/cc_launcher/trunk/.project
===================================================================
--- software_suite_v2/software/cc_launcher/trunk/.project                       
        (rev 0)
+++ software_suite_v2/software/cc_launcher/trunk/.project       2008-11-26 
19:48:27 UTC (rev 2855)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>cc_launcher</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.jdt.core.javabuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.jdt.core.javanature</nature>
+       </natures>
+</projectDescription>


Property changes on: software_suite_v2/software/cc_launcher/trunk/.project
___________________________________________________________________
Name: svn:keywords
   + Id

Added: software_suite_v2/software/cc_launcher/trunk/build.xml
===================================================================
--- software_suite_v2/software/cc_launcher/trunk/build.xml                      
        (rev 0)
+++ software_suite_v2/software/cc_launcher/trunk/build.xml      2008-11-26 
19:48:27 UTC (rev 2855)
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+<project name="CC Launcher" default="finalize">
+       <property name="src" location="src/"/>
+       <property name="bin" location="tmp/"/>
+    <property name="libraries" location="libraries/"/>
+       <property name="targets" location="targets/"/>
+    
+    <target name="init" description="Initialization">
+        <echo message="Initialization"/>
+        <delete dir="${bin}" />
+               <mkdir dir="${bin}" />
+       <delete dir="${targets}" />
+       <mkdir dir="${targets}" />
+    </target>
+       
+       <target name="compil" depends="init" description="Compilation">
+        <echo message="Compilation"/>
+           <javac srcdir="${src}" destdir="${bin}">
+               <classpath>
+                       <pathelement path="${java.class.path}"/>
+                <pathelement 
location="${libraries}/tuxdroid-installer-paths.jar"/>
+               </classpath>
+           </javac>
+       </target>
+    
+    <target name="createJar" depends="compil" description="Create jar file">
+        <echo message="Create jar file"/>
+        <jar destfile="${targets}/cc_launcher.jar" basedir="${bin}">
+            <manifest>
+                               <attribute name="Manifest-Version" value="1.0" 
/>
+                               <attribute name="Specification-Version" 
value="1.0" />
+                               <attribute name="Class-Path" 
value="./tuxdroid-installer-paths.jar" />
+                               <attribute name="Specification-Title" value="CC 
Launcher" />
+                               <attribute name="Main-Class" 
value="cc_launcher" />
+                       </manifest>
+               </jar>
+    </target>
+    
+    <target name="copyDeps" depends="createJar" description="Copy 
dependencies">
+           <echo message="Copy dependencies"/>
+               <copy todir="${targets}">
+                       <fileset dir="${libraries}">
+                               <include name="**/*.jar" />
+                       </fileset>
+               </copy>
+       </target>
+    
+    <target name="finalize" depends="copyDeps" description="Finalization">
+        <echo message="Finalization"/>
+        <delete dir="${bin}" />
+    </target>
+
+</project>
\ No newline at end of file


Property changes on: software_suite_v2/software/cc_launcher/trunk/build.xml
___________________________________________________________________
Name: svn:keywords
   + Id

Added: 
software_suite_v2/software/cc_launcher/trunk/libraries/tuxdroid-installer-paths.jar
===================================================================
(Binary files differ)


Property changes on: 
software_suite_v2/software/cc_launcher/trunk/libraries/tuxdroid-installer-paths.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream
Name: svn:keywords
   + Id

Added: software_suite_v2/software/cc_launcher/trunk/src/cc_launcher.java
===================================================================
--- software_suite_v2/software/cc_launcher/trunk/src/cc_launcher.java           
                (rev 0)
+++ software_suite_v2/software/cc_launcher/trunk/src/cc_launcher.java   
2008-11-26 19:48:27 UTC (rev 2855)
@@ -0,0 +1,35 @@
+
+import java.io.File;
+import com.tuxdroid.path.InstallerPaths;
+
+public class cc_launcher
+{
+
+       /**
+        * @param args
+        */
+       public static void main(String[] args)
+       {
+               String ccJar = InstallerPaths.directoryControlCenter.getPath() 
+ File.separator
+                       + "controlCenter.jar";
+               
+               String cmd[] = new String[] {
+                       "java",
+                       String.format("-splash:%s", 
InstallerPaths.splashscreen.getPath()),
+                       "-jar",
+                       ccJar
+               };
+               
+               try
+               {
+                       Runtime.getRuntime().exec(cmd);
+               }
+               catch (Exception e)
+               {
+                       // Si ca marche pas, ben ca marche pas ...
+                       System.exit(1);
+               }
+               System.exit(0);
+       }
+
+}


Property changes on: 
software_suite_v2/software/cc_launcher/trunk/src/cc_launcher.java
___________________________________________________________________
Name: svn:keywords
   + Id


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to