[pkg-java] r7899 - in trunk/jsymphonic/debian: . manpages patches

fourmond at alioth.debian.org fourmond at alioth.debian.org
Thu Jan 29 19:41:11 UTC 2009


Author: fourmond
Date: 2009-01-29 19:41:11 +0000 (Thu, 29 Jan 2009)
New Revision: 7899

Added:
   trunk/jsymphonic/debian/patches/
   trunk/jsymphonic/debian/patches/00list
   trunk/jsymphonic/debian/patches/10-config-file.dpatch
Modified:
   trunk/jsymphonic/debian/changelog
   trunk/jsymphonic/debian/control
   trunk/jsymphonic/debian/manpages/jsymphonic.1
   trunk/jsymphonic/debian/rules
Log:
[jsymphonic] Patch to save the settings in a hidden file in the users home directory

Modified: trunk/jsymphonic/debian/changelog
===================================================================
--- trunk/jsymphonic/debian/changelog	2009-01-29 17:16:11 UTC (rev 7898)
+++ trunk/jsymphonic/debian/changelog	2009-01-29 19:41:11 UTC (rev 7899)
@@ -3,8 +3,10 @@
   * Adapted debian/get-svn-source to the newer SVN structure
   * Switching to a SVN export, as the -sources.zip file is not complete.
   * Updated debian/build.xml to copy resources.
+  * debian/patches/10-config-file.dpatch to put config and log files as 
+    hidden files in $HOME
 
- -- Vincent Fourmond <fourmond at debian.org>  Thu, 29 Jan 2009 18:08:08 +0100
+ -- Vincent Fourmond <fourmond at debian.org>  Thu, 29 Jan 2009 20:21:02 +0100
 
 jsymphonic (0.3.0alpha1-1) experimental; urgency=low
 

Modified: trunk/jsymphonic/debian/control
===================================================================
--- trunk/jsymphonic/debian/control	2009-01-29 17:16:11 UTC (rev 7898)
+++ trunk/jsymphonic/debian/control	2009-01-29 19:41:11 UTC (rev 7899)
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
 Uploaders: Vincent Fourmond <fourmond at debian.org>
-Build-Depends: cdbs, debhelper (>= 7), ant
+Build-Depends: cdbs, debhelper (>= 7), ant, dpatch
 Build-Depends-Indep: openjdk-6-jdk
 Standards-Version: 3.8.0
 Homepage: http://sourceforge.net/projects/symphonic/

Modified: trunk/jsymphonic/debian/manpages/jsymphonic.1
===================================================================
--- trunk/jsymphonic/debian/manpages/jsymphonic.1	2009-01-29 17:16:11 UTC (rev 7898)
+++ trunk/jsymphonic/debian/manpages/jsymphonic.1	2009-01-29 19:41:11 UTC (rev 7899)
@@ -12,7 +12,9 @@
 .SH DESCRIPTION
 
 .B jsymphonic
-manages files stored on MP3 player plugged onto the computer. 
+manages files stored on a Sony MP3 player plugged onto the computer.
+
+.B Important note:
 .I The MP3 player should be mounted first !
 You might want to use 
 .BR pmount (1)
@@ -23,9 +25,12 @@
 .B jsymphonic
 will ask you in which directory the MP3 player is mounted. This
 directory should not change, or you will need to configure it again.
+If 
 .B jsymphonic
-prompts for a new directory by default if it cannot find the music
-player at its usual location.
+complains that it cannot find the OMGAUDIO folder, it means that
+either the music player is not mounted, either the path of the player
+has not been set yet. If that is the case, set it using the
+JSymphonic/Properties menu item.
 
 .SH JAVA-WRAPPERS NOTE
 

Added: trunk/jsymphonic/debian/patches/00list
===================================================================
--- trunk/jsymphonic/debian/patches/00list	                        (rev 0)
+++ trunk/jsymphonic/debian/patches/00list	2009-01-29 19:41:11 UTC (rev 7899)
@@ -0,0 +1 @@
+10-config-file
\ No newline at end of file

Added: trunk/jsymphonic/debian/patches/10-config-file.dpatch
===================================================================
--- trunk/jsymphonic/debian/patches/10-config-file.dpatch	                        (rev 0)
+++ trunk/jsymphonic/debian/patches/10-config-file.dpatch	2009-01-29 19:41:11 UTC (rev 7899)
@@ -0,0 +1,35 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10-config-file.dpatch by  <fourmond at debian.org>
+##
+## DP: Fix log file and configuration files to end up as hidden files
+## DP: in $HOME
+
+ at DPATCH@
+diff -urNad jsymphonic-0.3.0alpha1+svn252~/src/org/danizmax/jsymphonic/gui/JSymphonicWindow.java jsymphonic-0.3.0alpha1+svn252/src/org/danizmax/jsymphonic/gui/JSymphonicWindow.java
+--- jsymphonic-0.3.0alpha1+svn252~/src/org/danizmax/jsymphonic/gui/JSymphonicWindow.java	2009-01-20 12:38:13.000000000 +0100
++++ jsymphonic-0.3.0alpha1+svn252/src/org/danizmax/jsymphonic/gui/JSymphonicWindow.java	2009-01-29 20:19:37.000000000 +0100
+@@ -52,11 +52,11 @@
+  */
+ public class JSymphonicWindow extends javax.swing.JFrame {
+     private static Logger logger = Logger.getLogger("org.danizmax.jsymphonic.gui");
+-    private static String configFile = "JSymphonic.xml";
++    private static String configFile;
+     private static FileHandler fileLogHandler;
+     
+     //Log file settings
+-    private static String logFileName= "JSymphonic.log";
++    private static String logFileName;
+     private static int byteSizeLimit = 1000000; 
+     private static int numOfLogFiles = 1;
+     private static boolean append = true;
+@@ -82,6 +82,10 @@
+     
+     /** Creates new form JSymphonicWindow */
+     public JSymphonicWindow() {
++	// First thing, we setup log file and config file locations
++	configFile = System.getProperty("user.home") + "/" + ".jsymphonic.xml";
++	logFileName = System.getProperty("user.home") + "/" + ".jsymphonic.log";
++
+         logger.setLevel(Level.ALL);
+         //config file has to be loaded before anything!!!
+         //lgui = new Log2Gui(logTextArea);   


Property changes on: trunk/jsymphonic/debian/patches/10-config-file.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Modified: trunk/jsymphonic/debian/rules
===================================================================
--- trunk/jsymphonic/debian/rules	2009-01-29 17:16:11 UTC (rev 7898)
+++ trunk/jsymphonic/debian/rules	2009-01-29 19:41:11 UTC (rev 7899)
@@ -10,7 +10,7 @@
 
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/ant.mk
-# include /usr/share/cdbs/1/rules/dpatch.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
 
 JAVA_HOME_DIRS       := /usr/lib/jvm/java-6-openjdk
 ANT_HOME             := /usr/share/ant




More information about the pkg-java-commits mailing list