Author: ks156
Date: 2009-05-26 13:29:57 +0200 (Tue, 26 May 2009)
New Revision: 4667

Modified:
   software_suite_v2/software/tools/attitunesStudio/trunk/src/main.java
Log:
* Removed the explicit option '--path='.
  The path of the attitune is specified as a direct argument of the command :
  - java -jar attitune_studio.jar -> starts att_studio with the default
    template
  - java -jar attitune_studio.jar PATH_TO_AN_ATTITUNE -> starts att_studio with
    the specified attitune file
* Added a protection to be sure the specified path is valid.


Modified: software_suite_v2/software/tools/attitunesStudio/trunk/src/main.java
===================================================================
--- software_suite_v2/software/tools/attitunesStudio/trunk/src/main.java        
2009-05-26 08:26:34 UTC (rev 4666)
+++ software_suite_v2/software/tools/attitunesStudio/trunk/src/main.java        
2009-05-26 11:29:57 UTC (rev 4667)
@@ -66,10 +66,10 @@
                        {
                                /* Parse each options and try to find '--path' 
*/
                                String arg = args[i];
-                       
-                               if(arg.contains("--path"))
+                               java.io.File file = new java.io.File(arg);
+                               if (file.isFile())
                                {
-                                       path = arg.substring(arg.indexOf("=") + 
1);
+                                       path = arg;
                                }
                        }
                }       


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to