[tuxdroid-svn] r4667 - software_suite_v2/software/tools/attitunesStudio/trunk/src
Status: Beta
Brought to you by:
ks156
|
From: ks156 <c2m...@c2...> - 2009-05-26 11:31:03
|
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;
}
}
}
|