Subsonic-->Libresonic regex

master
Eugene E. Kashpureff Jr 8 years ago
parent 8cd951f9a7
commit 745969264a
  1. 16
      libresonic-assembly/pom.xml
  2. 12
      libresonic-assembly/src/main/assembly/src.xml
  3. 14
      libresonic-assembly/src/main/assembly/standalone.xml
  4. 4
      libresonic-assembly/src/main/assembly/war.xml
  5. 12
      libresonic-booter/pom.xml
  6. 10
      libresonic-booter/src/main/java/net/sourceforge/libresonic/booter/Main.java
  7. 34
      libresonic-booter/src/main/java/net/sourceforge/libresonic/booter/agent/LibresonicAgent.java
  8. 26
      libresonic-booter/src/main/java/net/sourceforge/libresonic/booter/agent/LibresonicFrame.java
  9. 12
      libresonic-booter/src/main/java/net/sourceforge/libresonic/booter/agent/LibresonicListener.java
  10. 64
      libresonic-booter/src/main/java/net/sourceforge/libresonic/booter/agent/SettingsPanel.java
  11. 26
      libresonic-booter/src/main/java/net/sourceforge/libresonic/booter/agent/StatusPanel.java
  12. 34
      libresonic-booter/src/main/java/net/sourceforge/libresonic/booter/agent/TrayController.java
  13. 2
      libresonic-booter/src/main/java/net/sourceforge/libresonic/booter/deployer/DeploymentStatus.java
  14. 82
      libresonic-booter/src/main/java/net/sourceforge/libresonic/booter/deployer/LibresonicDeployer.java
  15. 17
      libresonic-booter/src/main/java/net/sourceforge/libresonic/booter/deployer/LibresonicDeployerService.java
  16. 22
      libresonic-booter/src/main/java/net/sourceforge/libresonic/booter/mac/LibresonicController.java
  17. 18
      libresonic-booter/src/main/java/net/sourceforge/libresonic/booter/mac/LibresonicFrame.java
  18. 12
      libresonic-booter/src/main/java/net/sourceforge/libresonic/booter/mac/StatusPanel.java
  19. 2
      libresonic-booter/src/main/resources/META-INF/MANIFEST.MF
  20. 12
      libresonic-booter/src/main/resources/applicationContext-agent.xml
  21. 6
      libresonic-booter/src/main/resources/applicationContext-deployer.xml
  22. 6
      libresonic-booter/src/main/resources/applicationContext-mac.xml
  23. 0
      libresonic-booter/src/main/resources/images/libresonic-16.png
  24. 0
      libresonic-booter/src/main/resources/images/libresonic-21.png
  25. 0
      libresonic-booter/src/main/resources/images/libresonic-32.png
  26. 0
      libresonic-booter/src/main/resources/images/libresonic-512.png
  27. 0
      libresonic-booter/src/main/resources/images/libresonic-started-16.png
  28. 0
      libresonic-booter/src/main/resources/images/libresonic-stopped-16.png
  29. BIN
      libresonic-booter/src/main/resources/libresonic.keystore
  30. 10
      libresonic-booter/src/main/resources/web-jetty.xml
  31. 24
      libresonic-booter/src/main/script/libresonic.bat
  32. 60
      libresonic-booter/src/main/script/libresonic.sh
  33. 32
      libresonic-installer-debian/pom.xml
  34. 1
      libresonic-installer-debian/src/DEBIAN/conffiles
  35. 8
      libresonic-installer-debian/src/DEBIAN/control
  36. 16
      libresonic-installer-debian/src/DEBIAN/postinst
  37. 4
      libresonic-installer-debian/src/DEBIAN/postrm
  38. 15
      libresonic-installer-debian/src/DEBIAN/preinst
  39. 8
      libresonic-installer-debian/src/DEBIAN/prerm
  40. 12
      libresonic-installer-debian/src/etc/default/libresonic
  41. 24
      libresonic-installer-debian/src/etc/init.d/libresonic
  42. 56
      libresonic-installer-mac/pom.xml
  43. 0
      libresonic-installer-mac/src/libresonic.icns
  44. 16
      libresonic-installer-mac/src/libresonic.pkgproj
  45. 0
      libresonic-installer-mac/src/libresonic.png
  46. 4
      libresonic-installer-mac/src/postinstall.sh
  47. 2
      libresonic-installer-mac/src/preinstall.sh
  48. 44
      libresonic-installer-rpm/pom.xml
  49. 24
      libresonic-installer-rpm/src/etc/init.d/libresonic
  50. 12
      libresonic-installer-rpm/src/etc/sysconfig/libresonic
  51. 78
      libresonic-installer-rpm/src/libresonic.spec
  52. 34
      libresonic-installer-windows/pom.xml
  53. 0
      libresonic-installer-windows/src/main/exe4j/libresonic-16.ico
  54. 0
      libresonic-installer-windows/src/main/exe4j/libresonic-agent-elevated.exe.vmoptions
  55. 8
      libresonic-installer-windows/src/main/exe4j/libresonic-agent-elevated.exe4j
  56. 0
      libresonic-installer-windows/src/main/exe4j/libresonic-agent.exe.vmoptions
  57. 8
      libresonic-installer-windows/src/main/exe4j/libresonic-agent.exe4j
  58. 6
      libresonic-installer-windows/src/main/exe4j/libresonic-service.exe.vmoptions
  59. 8
      libresonic-installer-windows/src/main/exe4j/libresonic-service.exe4j
  60. 0
      libresonic-installer-windows/src/main/nsis/jre-8u31-windows-i586-iftw.exe
  61. 213
      libresonic-installer-windows/src/main/nsis/libresonic.nsi
  62. 10
      libresonic-main/Getting Started.html
  63. 0
      libresonic-main/LICENSE.TXT
  64. 26
      libresonic-main/dreamplug.txt
  65. 4
      libresonic-main/libresonic-main.iml
  66. 22
      libresonic-main/pom.xml
  67. 0
      libresonic-main/src/main/java/org/json/CDL.java
  68. 0
      libresonic-main/src/main/java/org/json/Cookie.java
  69. 0
      libresonic-main/src/main/java/org/json/CookieList.java
  70. 0
      libresonic-main/src/main/java/org/json/HTTP.java
  71. 0
      libresonic-main/src/main/java/org/json/HTTPTokener.java
  72. 0
      libresonic-main/src/main/java/org/json/JSONArray.java
  73. 0
      libresonic-main/src/main/java/org/json/JSONException.java
  74. 0
      libresonic-main/src/main/java/org/json/JSONML.java
  75. 0
      libresonic-main/src/main/java/org/json/JSONObject.java
  76. 0
      libresonic-main/src/main/java/org/json/JSONString.java
  77. 0
      libresonic-main/src/main/java/org/json/JSONStringer.java
  78. 0
      libresonic-main/src/main/java/org/json/JSONTokener.java
  79. 0
      libresonic-main/src/main/java/org/json/JSONWriter.java
  80. 0
      libresonic-main/src/main/java/org/json/XML.java
  81. 0
      libresonic-main/src/main/java/org/json/XMLTokener.java
  82. 24
      libresonic-main/src/main/java/org/libresonic/player/Logger.java
  83. 12
      libresonic-main/src/main/java/org/libresonic/player/ajax/ArtistInfo.java
  84. 16
      libresonic-main/src/main/java/org/libresonic/player/ajax/ChatService.java
  85. 10
      libresonic-main/src/main/java/org/libresonic/player/ajax/CoverArtInfo.java
  86. 20
      libresonic-main/src/main/java/org/libresonic/player/ajax/CoverArtService.java
  87. 10
      libresonic-main/src/main/java/org/libresonic/player/ajax/LyricsInfo.java
  88. 14
      libresonic-main/src/main/java/org/libresonic/player/ajax/LyricsService.java
  89. 30
      libresonic-main/src/main/java/org/libresonic/player/ajax/MultiService.java
  90. 10
      libresonic-main/src/main/java/org/libresonic/player/ajax/NetworkStatus.java
  91. 10
      libresonic-main/src/main/java/org/libresonic/player/ajax/NowPlayingInfo.java
  92. 32
      libresonic-main/src/main/java/org/libresonic/player/ajax/NowPlayingService.java
  93. 12
      libresonic-main/src/main/java/org/libresonic/player/ajax/PlayQueueInfo.java
  94. 60
      libresonic-main/src/main/java/org/libresonic/player/ajax/PlayQueueService.java
  95. 14
      libresonic-main/src/main/java/org/libresonic/player/ajax/PlaylistInfo.java
  96. 42
      libresonic-main/src/main/java/org/libresonic/player/ajax/PlaylistService.java
  97. 10
      libresonic-main/src/main/java/org/libresonic/player/ajax/ScanInfo.java
  98. 10
      libresonic-main/src/main/java/org/libresonic/player/ajax/SimilarArtist.java
  99. 18
      libresonic-main/src/main/java/org/libresonic/player/ajax/StarService.java
  100. 22
      libresonic-main/src/main/java/org/libresonic/player/ajax/TagService.java
  101. Some files were not shown because too many files have changed in this diff Show More

@ -2,21 +2,21 @@
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>net.sourceforge.subsonic</groupId>
<artifactId>subsonic-assembly</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic-assembly</artifactId>
<packaging>pom</packaging>
<name>Subsonic Assembly</name>
<name>Libresonic Assembly</name>
<parent>
<groupId>net.sourceforge.subsonic</groupId>
<artifactId>subsonic</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic</artifactId>
<version>6.0.1</version>
</parent>
<dependencies>
<dependency>
<groupId>net.sourceforge.subsonic</groupId>
<artifactId>subsonic-main</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic-main</artifactId>
<version>${project.version}</version>
<type>war</type>
</dependency>
@ -24,7 +24,7 @@
</dependencies>
<build>
<finalName>subsonic-${project.version}</finalName>
<finalName>libresonic-${project.version}</finalName>
<plugins>
<!-- Configuration of assembly plugin for creating the distributions. -->

@ -22,7 +22,7 @@
</fileSet>
<fileSet>
<directory>../subsonic-main</directory>
<directory>../libresonic-main</directory>
<includes>
<include>src/**</include>
<include>pom.xml</include>
@ -31,25 +31,25 @@
<include>README.TXT</include>
<include>Getting Started.html</include>
</includes>
<outputDirectory>subsonic-main</outputDirectory>
<outputDirectory>libresonic-main</outputDirectory>
</fileSet>
<fileSet>
<directory>../subsonic-rest-api</directory>
<directory>../libresonic-rest-api</directory>
<includes>
<include>src/**</include>
<include>pom.xml</include>
</includes>
<outputDirectory>subsonic-rest-api</outputDirectory>
<outputDirectory>libresonic-rest-api</outputDirectory>
</fileSet>
<fileSet>
<directory>../subsonic-sonos-api</directory>
<directory>../libresonic-sonos-api</directory>
<includes>
<include>src/**</include>
<include>pom.xml</include>
</includes>
<outputDirectory>subsonic-sonos-api</outputDirectory>
<outputDirectory>libresonic-sonos-api</outputDirectory>
</fileSet>
</fileSets>

@ -8,7 +8,7 @@
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>../subsonic-main</directory>
<directory>../libresonic-main</directory>
<outputDirectory/>
<includes>
<include>README.TXT</include>
@ -17,25 +17,25 @@
</includes>
</fileSet>
<fileSet>
<directory>../subsonic-main/target</directory>
<directory>../libresonic-main/target</directory>
<outputDirectory/>
<includes>
<include>*.war</include>
</includes>
</fileSet>
<fileSet>
<directory>../subsonic-booter/target</directory>
<directory>../libresonic-booter/target</directory>
<outputDirectory/>
<includes>
<include>subsonic-booter-jar-with-dependencies.jar</include>
<include>libresonic-booter-jar-with-dependencies.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>../subsonic-booter/src/main/script</directory>
<directory>../libresonic-booter/src/main/script</directory>
<outputDirectory/>
<includes>
<include>subsonic.sh</include>
<include>subsonic.bat</include>
<include>libresonic.sh</include>
<include>libresonic.bat</include>
</includes>
<fileMode>0777</fileMode>
</fileSet>

@ -8,7 +8,7 @@
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>../subsonic-main</directory>
<directory>../libresonic-main</directory>
<outputDirectory></outputDirectory>
<includes>
<include>README.TXT</include>
@ -17,7 +17,7 @@
</includes>
</fileSet>
<fileSet>
<directory>../subsonic-main/target</directory>
<directory>../libresonic-main/target</directory>
<outputDirectory></outputDirectory>
<includes>
<include>*.war</include>

@ -2,13 +2,13 @@
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>net.sourceforge.subsonic</groupId>
<artifactId>subsonic-booter</artifactId>
<name>Subsonic Booter</name>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic-booter</artifactId>
<name>Libresonic Booter</name>
<parent>
<groupId>net.sourceforge.subsonic</groupId>
<artifactId>subsonic</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic</artifactId>
<version>6.0.1</version>
</parent>
@ -68,7 +68,7 @@
</dependencies>
<build>
<finalName>subsonic-booter</finalName>
<finalName>libresonic-booter</finalName>
<plugins>
<plugin>

@ -1,4 +1,4 @@
package net.sourceforge.subsonic.booter;
package org.libresonic.player.booter;
import java.util.Arrays;
import java.util.List;
@ -7,11 +7,11 @@ import javax.swing.JOptionPane;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import net.sourceforge.subsonic.booter.agent.SettingsPanel;
import net.sourceforge.subsonic.booter.agent.SubsonicAgent;
import org.libresonic.player.booter.agent.SettingsPanel;
import org.libresonic.player.booter.agent.LibresonicAgent;
/**
* Application entry point for Subsonic booter.
* Application entry point for Libresonic booter.
* <p/>
* Use command line argument "-agent" to start the Windows service monitoring agent,
* or "-mac" to start the Mac version of the deployer.
@ -25,7 +25,7 @@ public class Main {
if ("-agent".equals(contextName)) {
SubsonicAgent agent = (SubsonicAgent) context.getBean("agent");
LibresonicAgent agent = (LibresonicAgent) context.getBean("agent");
SettingsPanel settingsPanel = (SettingsPanel) context.getBean("settingsPanel");
agent.setElevated(args.contains("-elevated"));

@ -1,4 +1,4 @@
package net.sourceforge.subsonic.booter.agent;
package org.libresonic.player.booter.agent;
import java.awt.Desktop;
import java.net.URI;
@ -16,35 +16,35 @@ import org.apache.commons.io.IOUtils;
import com.jgoodies.looks.plastic.PlasticXPLookAndFeel;
import net.sourceforge.subsonic.booter.deployer.DeploymentStatus;
import net.sourceforge.subsonic.booter.deployer.SubsonicDeployerService;
import org.libresonic.player.booter.deployer.DeploymentStatus;
import org.libresonic.player.booter.deployer.LibresonicDeployerService;
/**
* Responsible for deploying the Subsonic web app in
* Responsible for deploying the Libresonic web app in
* the embedded Jetty container.
*
* @author Sindre Mehus
*/
public class SubsonicAgent {
public class LibresonicAgent {
private final List<SubsonicListener> listeners = new ArrayList<SubsonicListener>();
private final List<LibresonicListener> listeners = new ArrayList<LibresonicListener>();
private final TrayController trayController;
private SubsonicFrame frame;
private final SubsonicDeployerService service;
private LibresonicFrame frame;
private final LibresonicDeployerService service;
private static final int POLL_INTERVAL_DEPLOYMENT_INFO_SECONDS = 5;
private static final int POLL_INTERVAL_SERVICE_STATUS_SECONDS = 5;
private String url;
private boolean serviceStatusPollingEnabled;
private boolean elevated;
public SubsonicAgent(SubsonicDeployerService service) {
public LibresonicAgent(LibresonicDeployerService service) {
this.service = service;
setLookAndFeel();
trayController = new TrayController(this);
startPolling();
}
public void setFrame(SubsonicFrame frame) {
public void setFrame(LibresonicFrame frame) {
this.frame = frame;
}
@ -85,7 +85,7 @@ public class SubsonicAgent {
}
private String getServiceStatus() throws Exception {
Process process = Runtime.getRuntime().exec("subsonic-service.exe -status");
Process process = Runtime.getRuntime().exec("libresonic-service.exe -status");
return IOUtils.toString(process.getInputStream());
}
@ -95,7 +95,7 @@ public class SubsonicAgent {
public void startOrStopService(boolean start) {
try {
String cmd = "subsonic-service.exe " + (start ? "-start" : "-stop");
String cmd = "libresonic-service.exe " + (start ? "-start" : "-stop");
System.err.println("Executing: " + cmd);
Runtime.getRuntime().exec(cmd);
@ -114,7 +114,7 @@ public class SubsonicAgent {
List<String> command = new ArrayList<String>();
command.add("cmd");
command.add("/c");
command.add("subsonic-agent-elevated.exe");
command.add("libresonic-agent-elevated.exe");
command.addAll(Arrays.asList(args));
ProcessBuilder builder = new ProcessBuilder();
@ -123,7 +123,7 @@ public class SubsonicAgent {
builder.start();
System.exit(0);
} catch (Exception x) {
JOptionPane.showMessageDialog(frame, "Failed to elevate Subsonic Control Panel. " + x, "Error", JOptionPane.WARNING_MESSAGE);
JOptionPane.showMessageDialog(frame, "Failed to elevate Libresonic Control Panel. " + x, "Error", JOptionPane.WARNING_MESSAGE);
x.printStackTrace();
}
}
@ -154,7 +154,7 @@ public class SubsonicAgent {
}
}
public void addListener(SubsonicListener listener) {
public void addListener(LibresonicListener listener) {
listeners.add(listener);
}
@ -163,13 +163,13 @@ public class SubsonicAgent {
url = status.getURL();
}
for (SubsonicListener listener : listeners) {
for (LibresonicListener listener : listeners) {
listener.notifyDeploymentStatus(status);
}
}
private void notifyServiceStatus(String status) {
for (SubsonicListener listener : listeners) {
for (LibresonicListener listener : listeners) {
listener.notifyServiceStatus(status);
}
}

@ -1,8 +1,8 @@
package net.sourceforge.subsonic.booter.agent;
package org.libresonic.player.booter.agent;
import com.jgoodies.forms.factories.Borders;
import com.jgoodies.forms.factories.ButtonBarFactory;
import net.sourceforge.subsonic.booter.Main;
import org.libresonic.player.booter.Main;
import javax.swing.*;
import java.awt.*;
@ -17,18 +17,18 @@ import java.util.Arrays;
*
* @author Sindre Mehus
*/
public class SubsonicFrame extends JFrame {
public class LibresonicFrame extends JFrame {
private final SubsonicAgent subsonicAgent;
private final LibresonicAgent libresonicAgent;
private final StatusPanel statusPanel;
private final SettingsPanel settingsPanel;
private JTabbedPane tabbedPane;
private JButton closeButton;
public SubsonicFrame(SubsonicAgent subsonicAgent, StatusPanel statusPanel, SettingsPanel settingsPanel) {
super("Subsonic Control Panel");
this.subsonicAgent = subsonicAgent;
public LibresonicFrame(LibresonicAgent libresonicAgent, StatusPanel statusPanel, SettingsPanel settingsPanel) {
super("Libresonic Control Panel");
this.libresonicAgent = libresonicAgent;
this.statusPanel = statusPanel;
this.settingsPanel = settingsPanel;
createComponents();
@ -43,18 +43,18 @@ public class SubsonicFrame extends JFrame {
private void setupIcons() {
Toolkit toolkit = Toolkit.getDefaultToolkit();
// Window.setIconImages() was added in Java 1.6. Since Subsonic only requires 1.5, we
// Window.setIconImages() was added in Java 1.6. Since Libresonic only requires 1.5, we
// use reflection to invoke it.
try {
Method method = Window.class.getMethod("setIconImages", java.util.List.class);
java.util.List<Image> images = Arrays.asList(
toolkit.createImage(Main.class.getResource("/images/subsonic-16.png")),
toolkit.createImage(Main.class.getResource("/images/subsonic-32.png")),
toolkit.createImage(Main.class.getResource("/images/subsonic-512.png")));
toolkit.createImage(Main.class.getResource("/images/libresonic-16.png")),
toolkit.createImage(Main.class.getResource("/images/libresonic-32.png")),
toolkit.createImage(Main.class.getResource("/images/libresonic-512.png")));
method.invoke(this, images);
} catch (Throwable x) {
// Fallback to old method.
setIconImage(toolkit.createImage(Main.class.getResource("/images/subsonic-32.png")));
setIconImage(toolkit.createImage(Main.class.getResource("/images/libresonic-32.png")));
}
}
@ -92,7 +92,7 @@ public class SubsonicFrame extends JFrame {
@Override
public void setVisible(boolean b) {
super.setVisible(b);
subsonicAgent.setServiceStatusPollingEnabled(b);
libresonicAgent.setServiceStatusPollingEnabled(b);
}
public void showStatusPanel() {

@ -1,17 +1,17 @@
package net.sourceforge.subsonic.booter.agent;
package org.libresonic.player.booter.agent;
import net.sourceforge.subsonic.booter.deployer.DeploymentStatus;
import org.libresonic.player.booter.deployer.DeploymentStatus;
/**
* Callback interface implemented by GUI classes that wants to be notified when
* the state of the Subsonic deployment changes.
* the state of the Libresonic deployment changes.
*
* @author Sindre Mehus
*/
public interface SubsonicListener {
public interface LibresonicListener {
/**
* Invoked when new information about the Subsonic deployment is available.
* Invoked when new information about the Libresonic deployment is available.
*
* @param deploymentStatus The new deployment status, or <code>null</code> if an
* error occurred while retrieving the status.
@ -19,7 +19,7 @@ public interface SubsonicListener {
void notifyDeploymentStatus(DeploymentStatus deploymentStatus);
/**
* Invoked when new information about the Subsonic Windows service is available.
* Invoked when new information about the Libresonic Windows service is available.
*
* @param serviceStatus The new service status, or <code>null</code> if an
* error occurred while retrieving the status.

@ -1,11 +1,11 @@
package net.sourceforge.subsonic.booter.agent;
package org.libresonic.player.booter.agent;
import com.jgoodies.forms.builder.DefaultFormBuilder;
import com.jgoodies.forms.factories.Borders;
import com.jgoodies.forms.factories.ButtonBarFactory;
import com.jgoodies.forms.layout.FormLayout;
import net.sourceforge.subsonic.booter.deployer.DeploymentStatus;
import net.sourceforge.subsonic.booter.deployer.SubsonicDeployer;
import org.libresonic.player.booter.deployer.DeploymentStatus;
import org.libresonic.player.booter.deployer.LibresonicDeployer;
import javax.swing.*;
import java.awt.*;
@ -29,15 +29,15 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Panel displaying the settings of the Subsonic service.
* Panel displaying the settings of the Libresonic service.
*
* @author Sindre Mehus
*/
public class SettingsPanel extends JPanel implements SubsonicListener {
public class SettingsPanel extends JPanel implements LibresonicListener {
private static final Format INTEGER_FORMAT = new DecimalFormat("0", DecimalFormatSymbols.getInstance(Locale.UK));
private final SubsonicAgent subsonicAgent;
private final LibresonicAgent libresonicAgent;
private JFormattedTextField portTextField;
private JCheckBox httpsPortCheckBox;
private JFormattedTextField httpsPortTextField;
@ -45,14 +45,14 @@ public class SettingsPanel extends JPanel implements SubsonicListener {
private JFormattedTextField memoryTextField;
private JButton defaultButton;
private JButton saveButton;
public SettingsPanel(SubsonicAgent subsonicAgent) {
this.subsonicAgent = subsonicAgent;
public SettingsPanel(LibresonicAgent libresonicAgent) {
this.libresonicAgent = libresonicAgent;
createComponents();
configureComponents();
layoutComponents();
addBehaviour();
readValues();
subsonicAgent.addListener(this);
libresonicAgent.addListener(this);
}
public void readValues() {
@ -68,21 +68,21 @@ public class SettingsPanel extends JPanel implements SubsonicListener {
private int getHttpsPortFromOptionsFile() {
try {
String s = grep("-Dsubsonic.httpsPort=(\\d+)");
String s = grep("-Dlibresonic.httpsPort=(\\d+)");
return Integer.parseInt(s);
} catch (Exception x) {
x.printStackTrace();
return SubsonicDeployer.DEFAULT_HTTPS_PORT;
return LibresonicDeployer.DEFAULT_HTTPS_PORT;
}
}
private int getPortFromOptionsFile() {
try {
String s = grep("-Dsubsonic.port=(\\d+)");
String s = grep("-Dlibresonic.port=(\\d+)");
return Integer.parseInt(s);
} catch (Exception x) {
x.printStackTrace();
return SubsonicDeployer.DEFAULT_PORT;
return LibresonicDeployer.DEFAULT_PORT;
}
}
@ -92,20 +92,20 @@ public class SettingsPanel extends JPanel implements SubsonicListener {
return Integer.parseInt(s);
} catch (Exception x) {
x.printStackTrace();
return SubsonicDeployer.DEFAULT_MEMORY_LIMIT;
return LibresonicDeployer.DEFAULT_MEMORY_LIMIT;
}
}
private String getContextPathFromOptionsFile() {
try {
String s = grep("-Dsubsonic.contextPath=(.*)");
String s = grep("-Dlibresonic.contextPath=(.*)");
if (s == null) {
throw new NullPointerException();
}
return s;
} catch (Exception x) {
x.printStackTrace();
return SubsonicDeployer.DEFAULT_CONTEXT_PATH;
return LibresonicDeployer.DEFAULT_CONTEXT_PATH;
}
}
@ -122,7 +122,7 @@ public class SettingsPanel extends JPanel implements SubsonicListener {
private void configureComponents() {
contextPathComboBox.setEditable(true);
contextPathComboBox.addItem("/");
contextPathComboBox.addItem("/subsonic");
contextPathComboBox.addItem("/libresonic");
contextPathComboBox.addItem("/music");
}
@ -145,7 +145,7 @@ public class SettingsPanel extends JPanel implements SubsonicListener {
saveButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
try {
subsonicAgent.checkElevation("-settings", getMemoryLimit() + "," + getPort() + "," + getHttpsPort() + "," + getContextPath());
libresonicAgent.checkElevation("-settings", getMemoryLimit() + "," + getPort() + "," + getHttpsPort() + "," + getContextPath());
saveSettings(getMemoryLimit(), getPort(), getHttpsPort(), getContextPath());
} catch (Exception x) {
JOptionPane.showMessageDialog(SettingsPanel.this, x.getMessage(), "Error", JOptionPane.WARNING_MESSAGE);
@ -155,12 +155,12 @@ public class SettingsPanel extends JPanel implements SubsonicListener {
defaultButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
portTextField.setValue(SubsonicDeployer.DEFAULT_PORT);
portTextField.setValue(LibresonicDeployer.DEFAULT_PORT);
httpsPortTextField.setValue(4443);
httpsPortTextField.setEnabled(false);
httpsPortCheckBox.setSelected(false);
memoryTextField.setValue(SubsonicDeployer.DEFAULT_MEMORY_LIMIT);
contextPathComboBox.setSelectedItem(SubsonicDeployer.DEFAULT_CONTEXT_PATH);
memoryTextField.setValue(LibresonicDeployer.DEFAULT_MEMORY_LIMIT);
contextPathComboBox.setSelectedItem(LibresonicDeployer.DEFAULT_CONTEXT_PATH);
}
});
@ -237,14 +237,14 @@ public class SettingsPanel extends JPanel implements SubsonicListener {
if (line.startsWith("-Xmx")) {
newLines.add("-Xmx" + memoryLimit + "m");
memoryLimitAdded = true;
} else if (line.startsWith("-Dsubsonic.port=")) {
newLines.add("-Dsubsonic.port=" + port);
} else if (line.startsWith("-Dlibresonic.port=")) {
newLines.add("-Dlibresonic.port=" + port);
portAdded = true;
} else if (line.startsWith("-Dsubsonic.httpsPort=")) {
newLines.add("-Dsubsonic.httpsPort=" + httpsPort);
} else if (line.startsWith("-Dlibresonic.httpsPort=")) {
newLines.add("-Dlibresonic.httpsPort=" + httpsPort);
httpsPortAdded = true;
} else if (line.startsWith("-Dsubsonic.contextPath=")) {
newLines.add("-Dsubsonic.contextPath=" + contextPath);
} else if (line.startsWith("-Dlibresonic.contextPath=")) {
newLines.add("-Dlibresonic.contextPath=" + contextPath);
contextPathAdded = true;
} else {
newLines.add(line);
@ -255,25 +255,25 @@ public class SettingsPanel extends JPanel implements SubsonicListener {
newLines.add("-Xmx" + memoryLimit + "m");
}
if (!portAdded) {
newLines.add("-Dsubsonic.port=" + port);
newLines.add("-Dlibresonic.port=" + port);
}
if (!httpsPortAdded) {
newLines.add("-Dsubsonic.httpsPort=" + httpsPort);
newLines.add("-Dlibresonic.httpsPort=" + httpsPort);
}
if (!contextPathAdded) {
newLines.add("-Dsubsonic.contextPath=" + contextPath);
newLines.add("-Dlibresonic.contextPath=" + contextPath);
}
writeLines(file, newLines);
JOptionPane.showMessageDialog(SettingsPanel.this,
"Please restart Subsonic for the new settings to take effect.",
"Please restart Libresonic for the new settings to take effect.",
"Settings changed", JOptionPane.INFORMATION_MESSAGE);
}
private File getOptionsFile() throws SettingsException {
File file = new File("subsonic-service.exe.vmoptions");
File file = new File("libresonic-service.exe.vmoptions");
if (!file.isFile() || !file.exists()) {
throw new SettingsException("File " + file.getAbsolutePath() + " not found.");
}

@ -1,10 +1,10 @@
package net.sourceforge.subsonic.booter.agent;
package org.libresonic.player.booter.agent;
import com.jgoodies.forms.builder.DefaultFormBuilder;
import com.jgoodies.forms.factories.Borders;
import com.jgoodies.forms.factories.ButtonBarFactory;
import com.jgoodies.forms.layout.FormLayout;
import net.sourceforge.subsonic.booter.deployer.DeploymentStatus;
import org.libresonic.player.booter.deployer.DeploymentStatus;
import javax.swing.*;
import java.awt.*;
@ -14,15 +14,15 @@ import java.text.DateFormat;
import java.util.Locale;
/**
* Panel displaying the status of the Subsonic service.
* Panel displaying the status of the Libresonic service.
*
* @author Sindre Mehus
*/
public class StatusPanel extends JPanel implements SubsonicListener {
public class StatusPanel extends JPanel implements LibresonicListener {
private static final DateFormat DATE_FORMAT = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM, Locale.US);
private final SubsonicAgent subsonicAgent;
private final LibresonicAgent libresonicAgent;
private JTextField statusTextField;
private JTextField startedTextField;
@ -32,13 +32,13 @@ public class StatusPanel extends JPanel implements SubsonicListener {
private JButton stopButton;
private JButton urlButton;
public StatusPanel(SubsonicAgent subsonicAgent) {
this.subsonicAgent = subsonicAgent;
public StatusPanel(LibresonicAgent libresonicAgent) {
this.libresonicAgent = libresonicAgent;
createComponents();
configureComponents();
layoutComponents();
addBehaviour();
subsonicAgent.addListener(this);
libresonicAgent.addListener(this);
}
private void createComponents() {
@ -86,19 +86,19 @@ public class StatusPanel extends JPanel implements SubsonicListener {
private void addBehaviour() {
urlButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
subsonicAgent.openBrowser();
libresonicAgent.openBrowser();
}
});
startButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
subsonicAgent.checkElevation("-start");
subsonicAgent.startOrStopService(true);
libresonicAgent.checkElevation("-start");
libresonicAgent.startOrStopService(true);
}
});
stopButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
subsonicAgent.checkElevation("-stop");
subsonicAgent.startOrStopService(false);
libresonicAgent.checkElevation("-stop");
libresonicAgent.startOrStopService(false);
}
});
}

@ -1,4 +1,4 @@
package net.sourceforge.subsonic.booter.agent;
package org.libresonic.player.booter.agent;
import java.awt.Image;
import java.awt.MenuItem;
@ -12,16 +12,16 @@ import java.net.URL;
import javax.swing.AbstractAction;
import javax.swing.Action;
import net.sourceforge.subsonic.booter.deployer.DeploymentStatus;
import org.libresonic.player.booter.deployer.DeploymentStatus;
/**
* Controls the Subsonic tray icon.
* Controls the Libresonic tray icon.
*
* @author Sindre Mehus
*/
public class TrayController implements SubsonicListener {
public class TrayController implements LibresonicListener {
private final SubsonicAgent subsonicAgent;
private final LibresonicAgent libresonicAgent;
private TrayIcon trayIcon;
private Action openAction;
@ -30,48 +30,48 @@ public class TrayController implements SubsonicListener {
private Image startedImage;
private Image stoppedImage;
public TrayController(SubsonicAgent subsonicAgent) {
this.subsonicAgent = subsonicAgent;
public TrayController(LibresonicAgent libresonicAgent) {
this.libresonicAgent = libresonicAgent;
try {
createActions();
createComponents();
addBehaviour();
installComponents();
subsonicAgent.addListener(this);
libresonicAgent.addListener(this);
} catch (Throwable x) {
System.err.println("Disabling tray support.");
}
}
public void showMessage() {
trayIcon.displayMessage("Subsonic", "Subsonic is now running. Click this balloon to get started.",
trayIcon.displayMessage("Libresonic", "Libresonic is now running. Click this balloon to get started.",
TrayIcon.MessageType.INFO);
}
private void createActions() {
openAction = new AbstractAction("Open Subsonic in Browser") {
openAction = new AbstractAction("Open Libresonic in Browser") {
public void actionPerformed(ActionEvent e) {
subsonicAgent.openBrowser();
libresonicAgent.openBrowser();
}
};
controlPanelAction = new AbstractAction("Subsonic Control Panel") {
controlPanelAction = new AbstractAction("Libresonic Control Panel") {
public void actionPerformed(ActionEvent e) {
subsonicAgent.showStatusPanel();
libresonicAgent.showStatusPanel();
}
};
hideAction = new AbstractAction("Hide Tray Icon") {
public void actionPerformed(ActionEvent e) {
subsonicAgent.exit();
libresonicAgent.exit();
}
};
}
private void createComponents() {
startedImage = createImage("/images/subsonic-started-16.png");
stoppedImage = createImage("/images/subsonic-stopped-16.png");
startedImage = createImage("/images/libresonic-started-16.png");
stoppedImage = createImage("/images/libresonic-stopped-16.png");
PopupMenu menu = new PopupMenu();
menu.add(createMenuItem(openAction));
@ -79,7 +79,7 @@ public class TrayController implements SubsonicListener {
menu.addSeparator();
menu.add(createMenuItem(hideAction));
trayIcon = new TrayIcon(stoppedImage, "Subsonic Music Streamer", menu);
trayIcon = new TrayIcon(stoppedImage, "Libresonic Music Streamer", menu);
}
private Image createImage(String resourceName) {

@ -1,4 +1,4 @@
package net.sourceforge.subsonic.booter.deployer;
package org.libresonic.player.booter.deployer;
import java.util.Date;
import java.io.Serializable;

@ -1,4 +1,4 @@
package net.sourceforge.subsonic.booter.deployer;
package org.libresonic.player.booter.deployer;
import java.io.File;
import java.io.FileInputStream;
@ -20,42 +20,42 @@ import org.mortbay.jetty.security.SslSocketConnector;
import org.mortbay.jetty.webapp.WebAppContext;
/**
* Responsible for deploying the Subsonic web app in
* Responsible for deploying the Libresonic web app in
* the embedded Jetty container.
* <p/>
* The following system properties may be used to customize the behaviour:
* <ul>
* <li><code>subsonic.contextPath</code> - The context path at which Subsonic is deployed. Default "/".</li>
* <li><code>subsonic.port</code> - The port Subsonic will listen to. Default 4040.</li>
* <li><code>subsonic.httpsPort</code> - The port Subsonic will listen to for HTTPS. Default 0, which disables HTTPS.</li>
* <li><code>subsonic.war</code> - Subsonic WAR file, or exploded directory. Default "subsonic.war".</li>
* <li><code>subsonic.createLinkFile</code> - If set to "true", a Subsonic.url file is created in the working directory.</li>
* <li><code>subsonic.ssl.keystore</code> - Path to an alternate SSL keystore.</li>
* <li><code>subsonic.ssl.password</code> - Password of the alternate SSL keystore.</li>
* <li><code>libresonic.contextPath</code> - The context path at which Libresonic is deployed. Default "/".</li>
* <li><code>libresonic.port</code> - The port Libresonic will listen to. Default 4040.</li>
* <li><code>libresonic.httpsPort</code> - The port Libresonic will listen to for HTTPS. Default 0, which disables HTTPS.</li>
* <li><code>libresonic.war</code> - Libresonic WAR file, or exploded directory. Default "libresonic.war".</li>
* <li><code>libresonic.createLinkFile</code> - If set to "true", a Libresonic.url file is created in the working directory.</li>
* <li><code>libresonic.ssl.keystore</code> - Path to an alternate SSL keystore.</li>
* <li><code>libresonic.ssl.password</code> - Password of the alternate SSL keystore.</li>
* </ul>
*
* @author Sindre Mehus
*/
public class SubsonicDeployer implements SubsonicDeployerService {
public class LibresonicDeployer implements LibresonicDeployerService {
public static final String DEFAULT_HOST = "0.0.0.0";
public static final int DEFAULT_PORT = 4040;
public static final int DEFAULT_HTTPS_PORT = 0;
public static final int DEFAULT_MEMORY_LIMIT = 150;
public static final String DEFAULT_CONTEXT_PATH = "/";
public static final String DEFAULT_WAR = "subsonic.war";
public static final String DEFAULT_WAR = "libresonic.war";
private static final int MAX_IDLE_TIME_MILLIS = 7 * 24 * 60 * 60 * 1000; // One week.
private static final int HEADER_BUFFER_SIZE = 64 * 1024;
// Subsonic home directory.
private static final File SUBSONIC_HOME_WINDOWS = new File("c:/subsonic");
private static final File SUBSONIC_HOME_OTHER = new File("/var/subsonic");
// Libresonic home directory.
private static final File SUBSONIC_HOME_WINDOWS = new File("c:/libresonic");
private static final File SUBSONIC_HOME_OTHER = new File("/var/libresonic");
private Throwable exception;
private File subsonicHome;
private File libresonicHome;
private final Date startTime;
public SubsonicDeployer() {
public LibresonicDeployer() {
// Enable shutdown hook for Ehcache.
System.setProperty("net.sf.ehcache.enableShutdownHook", "true");
@ -66,16 +66,16 @@ public class SubsonicDeployer implements SubsonicDeployerService {
}
private void createLinkFile() {
if ("true".equals(System.getProperty("subsonic.createLinkFile"))) {
if ("true".equals(System.getProperty("libresonic.createLinkFile"))) {
Writer writer = null;
try {
writer = new FileWriter("subsonic.url");
writer = new FileWriter("libresonic.url");
writer.append("[InternetShortcut]");
writer.append(System.getProperty("line.separator"));
writer.append("URL=").append(getUrl());
writer.flush();
} catch (Throwable x) {
System.err.println("Failed to create subsonic.url.");
System.err.println("Failed to create libresonic.url.");
x.printStackTrace();
} finally {
if (writer != null) {
@ -108,8 +108,8 @@ public class SubsonicDeployer implements SubsonicDeployerService {
sslConnector.setHeaderBufferSize(HEADER_BUFFER_SIZE);
sslConnector.setHost(getHost());
sslConnector.setPort(getHttpsPort());
sslConnector.setKeystore(System.getProperty("subsonic.ssl.keystore", getClass().getResource("/subsonic.keystore").toExternalForm()));
sslConnector.setPassword(System.getProperty("subsonic.ssl.password", "subsonic"));
sslConnector.setKeystore(System.getProperty("libresonic.ssl.keystore", getClass().getResource("/libresonic.keystore").toExternalForm()));
sslConnector.setPassword(System.getProperty("libresonic.ssl.password", "libresonic"));
server.addConnector(sslConnector);
}
@ -134,7 +134,7 @@ public class SubsonicDeployer implements SubsonicDeployerService {
server.addHandler(context);
server.start();
System.err.println("Subsonic running on: " + getUrl());
System.err.println("Libresonic running on: " + getUrl());
if (isHttpsEnabled()) {
System.err.println(" and: " + getHttpsUrl());
}
@ -155,8 +155,8 @@ public class SubsonicDeployer implements SubsonicDeployerService {
}
private File getJettyDirectory() {
File dir = new File(getSubsonicHome(), "jetty");
String buildNumber = getSubsonicBuildNumber();
File dir = new File(getLibresonicHome(), "jetty");
String buildNumber = getLibresonicBuildNumber();
if (buildNumber != null) {
dir = new File(dir, buildNumber);
}
@ -169,7 +169,7 @@ public class SubsonicDeployer implements SubsonicDeployerService {
return dir;
}
private String getSubsonicBuildNumber() {
private String getLibresonicBuildNumber() {
File war = new File(getWar());
InputStream in = null;
try {
@ -194,12 +194,12 @@ public class SubsonicDeployer implements SubsonicDeployerService {
}
private String getContextPath() {
return System.getProperty("subsonic.contextPath", DEFAULT_CONTEXT_PATH);
return System.getProperty("libresonic.contextPath", DEFAULT_CONTEXT_PATH);
}
private String getWar() {
String war = System.getProperty("subsonic.war");
String war = System.getProperty("libresonic.war");
if (war == null) {
war = DEFAULT_WAR;
}
@ -215,19 +215,19 @@ public class SubsonicDeployer implements SubsonicDeployerService {
}
private String getHost() {
return System.getProperty("subsonic.host", DEFAULT_HOST);
return System.getProperty("libresonic.host", DEFAULT_HOST);
}
private int getPort() {
int port = DEFAULT_PORT;
String portString = System.getProperty("subsonic.port");
String portString = System.getProperty("libresonic.port");
if (portString != null) {
port = Integer.parseInt(portString);
}
// Also set it so that the webapp can read it.
System.setProperty("subsonic.port", String.valueOf(port));
System.setProperty("libresonic.port", String.valueOf(port));
return port;
}
@ -235,13 +235,13 @@ public class SubsonicDeployer implements SubsonicDeployerService {
private int getHttpsPort() {
int port = DEFAULT_HTTPS_PORT;
String portString = System.getProperty("subsonic.httpsPort");
String portString = System.getProperty("libresonic.httpsPort");
if (portString != null) {
port = Integer.parseInt(portString);
}
// Also set it so that the webapp can read it.
System.setProperty("subsonic.httpsPort", String.valueOf(port));
System.setProperty("libresonic.httpsPort", String.valueOf(port));
return port;
}
@ -293,20 +293,20 @@ public class SubsonicDeployer implements SubsonicDeployerService {
}
/**
* Returns the Subsonic home directory.
* Returns the Libresonic home directory.
*
* @return The Subsonic home directory, if it exists.
* @return The Libresonic home directory, if it exists.
* @throws RuntimeException If directory doesn't exist.
*/
private File getSubsonicHome() {
private File getLibresonicHome() {
if (subsonicHome != null) {
return subsonicHome;
if (libresonicHome != null) {
return libresonicHome;
}
File home;
String overrideHome = System.getProperty("subsonic.home");
String overrideHome = System.getProperty("libresonic.home");
if (overrideHome != null) {
home = new File(overrideHome);
} else {
@ -318,15 +318,15 @@ public class SubsonicDeployer implements SubsonicDeployerService {
if (!home.exists() || !home.isDirectory()) {
boolean success = home.mkdirs();
if (success) {
subsonicHome = home;
libresonicHome = home;
} else {
String message = "The directory " + home + " does not exist. Please create it and make it writable. " +
"(You can override the directory location by specifying -Dsubsonic.home=... when " +
"(You can override the directory location by specifying -Dlibresonic.home=... when " +
"starting the servlet container.)";
System.err.println("ERROR: " + message);
}
} else {
subsonicHome = home;
libresonicHome = home;
}
return home;

@ -0,0 +1,17 @@
package org.libresonic.player.booter.deployer;
/**
* RMI interface implemented by the Libresonic deployer and used by the agent.
*
* @author Sindre Mehus
*/
public interface LibresonicDeployerService {
/**
* Returns information about the Libresonic deployment, such
* as URL, memory consumption, start time etc.
*
* @return Deployment information.
*/
DeploymentStatus getDeploymentInfo();
}

@ -1,6 +1,6 @@
package net.sourceforge.subsonic.booter.mac;
package org.libresonic.player.booter.mac;
import net.sourceforge.subsonic.booter.deployer.SubsonicDeployerService;
import org.libresonic.player.booter.deployer.LibresonicDeployerService;
import javax.swing.*;
import java.awt.*;
@ -13,15 +13,15 @@ import java.net.URI;
*
* @author Sindre Mehus
*/
public class SubsonicController {
public class LibresonicController {
private final SubsonicDeployerService deployer;
private final SubsonicFrame frame;
private final LibresonicDeployerService deployer;
private final LibresonicFrame frame;
private Action openAction;
private Action controlPanelAction;
private Action quitAction;
public SubsonicController(SubsonicDeployerService deployer, SubsonicFrame frame) {
public LibresonicController(LibresonicDeployerService deployer, LibresonicFrame frame) {
this.deployer = deployer;
this.frame = frame;
createActions();
@ -29,20 +29,20 @@ public class SubsonicController {
}
private void createActions() {
openAction = new AbstractAction("Open Subsonic Web Page") {
openAction = new AbstractAction("Open Libresonic Web Page") {
public void actionPerformed(ActionEvent e) {
openBrowser();
}
};
controlPanelAction = new AbstractAction("Subsonic Control Panel") {
controlPanelAction = new AbstractAction("Libresonic Control Panel") {
public void actionPerformed(ActionEvent e) {
frame.setActive(false);
frame.setActive(true);
}
};
quitAction = new AbstractAction("Quit Subsonic") {
quitAction = new AbstractAction("Quit Libresonic") {
public void actionPerformed(ActionEvent e) {
System.exit(0);
}
@ -56,9 +56,9 @@ public class SubsonicController {
menu.addSeparator();
menu.add(createMenuItem(quitAction));
URL url = getClass().getResource("/images/subsonic-21.png");
URL url = getClass().getResource("/images/libresonic-21.png");
Image image = Toolkit.getDefaultToolkit().createImage(url);
TrayIcon trayIcon = new TrayIcon(image, "Subsonic Music Streamer", menu);
TrayIcon trayIcon = new TrayIcon(image, "Libresonic Music Streamer", menu);
trayIcon.setImageAutoSize(false);
try {

@ -1,9 +1,9 @@
package net.sourceforge.subsonic.booter.mac;
package org.libresonic.player.booter.mac;
import com.jgoodies.forms.factories.Borders;
import com.jgoodies.forms.factories.ButtonBarFactory;
import net.sourceforge.subsonic.booter.Main;
import net.sourceforge.subsonic.booter.deployer.SubsonicDeployerService;
import org.libresonic.player.booter.Main;
import org.libresonic.player.booter.deployer.LibresonicDeployerService;
import javax.swing.*;
import java.awt.*;
@ -12,25 +12,25 @@ import java.awt.event.ActionListener;
import java.net.URL;
/**
* Frame with Subsonic status. Used on Mac installs.
* Frame with Libresonic status. Used on Mac installs.
*
* @author Sindre Mehus
*/
public class SubsonicFrame extends JFrame {
public class LibresonicFrame extends JFrame {
private final SubsonicDeployerService deployer;
private final LibresonicDeployerService deployer;
private StatusPanel statusPanel;
private JButton hideButton;
private JButton exitButton;
public SubsonicFrame(SubsonicDeployerService deployer) {
super("Subsonic");
public LibresonicFrame(LibresonicDeployerService deployer) {
super("Libresonic");
this.deployer = deployer;
createComponents();
layoutComponents();
addBehaviour();
URL url = Main.class.getResource("/images/subsonic-512.png");
URL url = Main.class.getResource("/images/libresonic-512.png");
setIconImage(Toolkit.getDefaultToolkit().createImage(url));
}

@ -1,4 +1,4 @@
package net.sourceforge.subsonic.booter.mac;
package org.libresonic.player.booter.mac;
import java.awt.Color;
import java.awt.Desktop;
@ -19,11 +19,11 @@ import com.jgoodies.forms.builder.DefaultFormBuilder;
import com.jgoodies.forms.factories.Borders;
import com.jgoodies.forms.layout.FormLayout;
import net.sourceforge.subsonic.booter.deployer.DeploymentStatus;
import net.sourceforge.subsonic.booter.deployer.SubsonicDeployerService;
import org.libresonic.player.booter.deployer.DeploymentStatus;
import org.libresonic.player.booter.deployer.LibresonicDeployerService;
/**
* Panel displaying the status of the Subsonic service.
* Panel displaying the status of the Libresonic service.
*
* @author Sindre Mehus
*/
@ -31,14 +31,14 @@ public class StatusPanel extends JPanel {
private static final DateFormat DATE_FORMAT = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM, Locale.US);
private final SubsonicDeployerService deployer;
private final LibresonicDeployerService deployer;
private JTextField startedTextField;
private JTextField memoryTextField;
private JTextArea errorTextField;
private JButton urlButton;
public StatusPanel(SubsonicDeployerService deployer) {
public StatusPanel(LibresonicDeployerService deployer) {
this.deployer = deployer;
createComponents();
configureComponents();

@ -0,0 +1,2 @@
Manifest-Version: 1.0
Main-Class: org.libresonic.player.booter.Main

@ -5,28 +5,28 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<bean id="service" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
<property name="serviceUrl" value="rmi://localhost:9412/SubsonicDeployerService"/>
<property name="serviceInterface" value="net.sourceforge.subsonic.booter.deployer.SubsonicDeployerService"/>
<property name="serviceUrl" value="rmi://localhost:9412/LibresonicDeployerService"/>
<property name="serviceInterface" value="org.libresonic.player.booter.deployer.LibresonicDeployerService"/>
<property name="lookupStubOnStartup" value="false"/>
<property name="refreshStubOnConnectFailure" value="true"/>
</bean>
<bean id="agent" class="net.sourceforge.subsonic.booter.agent.SubsonicAgent">
<bean id="agent" class="org.libresonic.player.booter.agent.LibresonicAgent">
<constructor-arg ref="service"/>
<property name="frame" ref="frame"/>
</bean>
<bean id="frame" class="net.sourceforge.subsonic.booter.agent.SubsonicFrame">
<bean id="frame" class="org.libresonic.player.booter.agent.LibresonicFrame">
<constructor-arg ref="agent"/>
<constructor-arg ref="statusPanel"/>
<constructor-arg ref="settingsPanel"/>
</bean>
<bean id="settingsPanel" class="net.sourceforge.subsonic.booter.agent.SettingsPanel">
<bean id="settingsPanel" class="org.libresonic.player.booter.agent.SettingsPanel">
<constructor-arg ref="agent"/>
</bean>
<bean id="statusPanel" class="net.sourceforge.subsonic.booter.agent.StatusPanel">
<bean id="statusPanel" class="org.libresonic.player.booter.agent.StatusPanel">
<constructor-arg ref="agent"/>
</bean>

@ -4,12 +4,12 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<bean id="service" class="net.sourceforge.subsonic.booter.deployer.SubsonicDeployer"/>
<bean id="service" class="org.libresonic.player.booter.deployer.LibresonicDeployer"/>
<bean class="org.springframework.remoting.rmi.RmiServiceExporter">
<property name="serviceName" value="SubsonicDeployerService"/>
<property name="serviceName" value="LibresonicDeployerService"/>
<property name="service" ref="service"/>
<property name="serviceInterface" value="net.sourceforge.subsonic.booter.deployer.SubsonicDeployerService"/>
<property name="serviceInterface" value="org.libresonic.player.booter.deployer.LibresonicDeployerService"/>
<property name="registryPort" value="9412"/>
</bean>
</beans>

@ -4,13 +4,13 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<bean id="deployer" class="net.sourceforge.subsonic.booter.deployer.SubsonicDeployer"/>
<bean id="deployer" class="org.libresonic.player.booter.deployer.LibresonicDeployer"/>
<bean id="frame" class="net.sourceforge.subsonic.booter.mac.SubsonicFrame">
<bean id="frame" class="org.libresonic.player.booter.mac.LibresonicFrame">
<constructor-arg ref="deployer"/>
</bean>
<bean id="controller" class="net.sourceforge.subsonic.booter.mac.SubsonicController">
<bean id="controller" class="org.libresonic.player.booter.mac.LibresonicController">
<constructor-arg ref="deployer"/>
<constructor-arg ref="frame"/>
</bean>

@ -1,24 +1,24 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
~ This file is part of Subsonic.
~ This file is part of Libresonic.
~
~ Subsonic is free software: you can redistribute it and/or modify
~ Libresonic is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ Subsonic is distributed in the hope that it will be useful,
~ Libresonic is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
~ along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
~
~ Copyright 2014 (C) Sindre Mehus
-->
<web-app id="subsonic" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
<web-app id="libresonic" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

@ -0,0 +1,24 @@
@echo off
REM The directory where Libresonic will create files. Make sure it is writable.
set SUBSONIC_HOME=c:\libresonic
REM The host name or IP address on which to bind Libresonic. Only relevant if you have
REM multiple network interfaces and want to make Libresonic available on only one of them.
REM The default value 0.0.0.0 will bind Libresonic to all available network interfaces.
set SUBSONIC_HOST=0.0.0.0
REM The port on which Libresonic will listen for incoming HTTP traffic.
set SUBSONIC_PORT=4040
REM The port on which Libresonic will listen for incoming HTTPS traffic (0 to disable).
set SUBSONIC_HTTPS_PORT=0
REM The context path (i.e., the last part of the Libresonic URL). Typically "/" or "/libresonic".
set SUBSONIC_CONTEXT_PATH=/
REM The memory limit (max Java heap size) in megabytes.
set MAX_MEMORY=150
java -Xmx%MAX_MEMORY%m -Dlibresonic.home=%SUBSONIC_HOME% -Dlibresonic.host=%SUBSONIC_HOST% -Dlibresonic.port=%SUBSONIC_PORT% -Dlibresonic.httpsPort=%SUBSONIC_HTTPS_PORT% -Dlibresonic.contextPath=%SUBSONIC_CONTEXT_PATH% -jar libresonic-booter-jar-with-dependencies.jar

@ -1,12 +1,12 @@
#!/bin/sh
###################################################################################
# Shell script for starting Subsonic. See http://subsonic.org.
# Shell script for starting Libresonic. See http://libresonic.org.
#
# Author: Sindre Mehus
###################################################################################
SUBSONIC_HOME=/var/subsonic
SUBSONIC_HOME=/var/libresonic
SUBSONIC_HOST=0.0.0.0
SUBSONIC_PORT=4040
SUBSONIC_HTTPS_PORT=0
@ -20,30 +20,30 @@ SUBSONIC_DEFAULT_PLAYLIST_FOLDER=/var/playlists
quiet=0
usage() {
echo "Usage: subsonic.sh [options]"
echo "Usage: libresonic.sh [options]"
echo " --help This small usage guide."
echo " --home=DIR The directory where Subsonic will create files."
echo " Make sure it is writable. Default: /var/subsonic"
echo " --host=HOST The host name or IP address on which to bind Subsonic."
echo " --home=DIR The directory where Libresonic will create files."
echo " Make sure it is writable. Default: /var/libresonic"
echo " --host=HOST The host name or IP address on which to bind Libresonic."
echo " Only relevant if you have multiple network interfaces and want"
echo " to make Subsonic available on only one of them. The default value"
echo " will bind Subsonic to all available network interfaces. Default: 0.0.0.0"
echo " --port=PORT The port on which Subsonic will listen for"
echo " to make Libresonic available on only one of them. The default value"
echo " will bind Libresonic to all available network interfaces. Default: 0.0.0.0"
echo " --port=PORT The port on which Libresonic will listen for"
echo " incoming HTTP traffic. Default: 4040"
echo " --https-port=PORT The port on which Subsonic will listen for"
echo " --https-port=PORT The port on which Libresonic will listen for"
echo " incoming HTTPS traffic. Default: 0 (disabled)"
echo " --context-path=PATH The context path, i.e., the last part of the Subsonic"
echo " URL. Typically '/' or '/subsonic'. Default '/'"
echo " --context-path=PATH The context path, i.e., the last part of the Libresonic"
echo " URL. Typically '/' or '/libresonic'. Default '/'"
echo " --max-memory=MB The memory limit (max Java heap size) in megabytes."
echo " Default: 100"
echo " --pidfile=PIDFILE Write PID to this file. Default not created."
echo " --quiet Don't print anything to standard out. Default false."
echo " --default-music-folder=DIR Configure Subsonic to use this folder for music. This option "
echo " only has effect the first time Subsonic is started. Default '/var/music'"
echo " --default-podcast-folder=DIR Configure Subsonic to use this folder for Podcasts. This option "
echo " only has effect the first time Subsonic is started. Default '/var/music/Podcast'"
echo " --default-playlist-folder=DIR Configure Subsonic to use this folder for playlists. This option "
echo " only has effect the first time Subsonic is started. Default '/var/playlists'"
echo " --default-music-folder=DIR Configure Libresonic to use this folder for music. This option "
echo " only has effect the first time Libresonic is started. Default '/var/music'"
echo " --default-podcast-folder=DIR Configure Libresonic to use this folder for Podcasts. This option "
echo " only has effect the first time Libresonic is started. Default '/var/music/Podcast'"
echo " --default-playlist-folder=DIR Configure Libresonic to use this folder for playlists. This option "
echo " only has effect the first time Libresonic is started. Default '/var/playlists'"
exit 1
}
@ -100,9 +100,9 @@ if [ -e "${JAVA_HOME}" ]
JAVA=${JAVA_HOME}/bin/java
fi
# Create Subsonic home directory.
# Create Libresonic home directory.
mkdir -p ${SUBSONIC_HOME}
LOG=${SUBSONIC_HOME}/subsonic_sh.log
LOG=${SUBSONIC_HOME}/libresonic_sh.log
rm -f ${LOG}
cd $(dirname $0)
@ -111,17 +111,17 @@ if [ -L $0 ] && ([ -e /bin/readlink ] || [ -e /usr/bin/readlink ]); then
fi
${JAVA} -Xmx${SUBSONIC_MAX_MEMORY}m \
-Dsubsonic.home=${SUBSONIC_HOME} \
-Dsubsonic.host=${SUBSONIC_HOST} \
-Dsubsonic.port=${SUBSONIC_PORT} \
-Dsubsonic.httpsPort=${SUBSONIC_HTTPS_PORT} \
-Dsubsonic.contextPath=${SUBSONIC_CONTEXT_PATH} \
-Dsubsonic.defaultMusicFolder=${SUBSONIC_DEFAULT_MUSIC_FOLDER} \
-Dsubsonic.defaultPodcastFolder=${SUBSONIC_DEFAULT_PODCAST_FOLDER} \
-Dsubsonic.defaultPlaylistFolder=${SUBSONIC_DEFAULT_PLAYLIST_FOLDER} \
-Dlibresonic.home=${SUBSONIC_HOME} \
-Dlibresonic.host=${SUBSONIC_HOST} \
-Dlibresonic.port=${SUBSONIC_PORT} \
-Dlibresonic.httpsPort=${SUBSONIC_HTTPS_PORT} \
-Dlibresonic.contextPath=${SUBSONIC_CONTEXT_PATH} \
-Dlibresonic.defaultMusicFolder=${SUBSONIC_DEFAULT_MUSIC_FOLDER} \
-Dlibresonic.defaultPodcastFolder=${SUBSONIC_DEFAULT_PODCAST_FOLDER} \
-Dlibresonic.defaultPlaylistFolder=${SUBSONIC_DEFAULT_PLAYLIST_FOLDER} \
-Djava.awt.headless=true \
-verbose:gc \
-jar subsonic-booter-jar-with-dependencies.jar > ${LOG} 2>&1 &
-jar libresonic-booter-jar-with-dependencies.jar > ${LOG} 2>&1 &
# Write pid to pidfile if it is defined.
if [ $SUBSONIC_PIDFILE ]; then
@ -129,6 +129,6 @@ if [ $SUBSONIC_PIDFILE ]; then
fi
if [ $quiet = 0 ]; then
echo Started Subsonic [PID $!, ${LOG}]
echo Started Libresonic [PID $!, ${LOG}]
fi

@ -2,14 +2,14 @@
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>net.sourceforge.subsonic</groupId>
<artifactId>subsonic-installer-debian</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic-installer-debian</artifactId>
<packaging>pom</packaging>
<name>Subsonic Installer for Debian</name>
<name>Libresonic Installer for Debian</name>
<parent>
<groupId>net.sourceforge.subsonic</groupId>
<artifactId>subsonic</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic</artifactId>
<version>6.0.1</version>
</parent>
@ -41,11 +41,11 @@
</filterset>
</copy>
<copy file="../subsonic-booter/src/main/script/subsonic.sh" todir="${project.build.directory}/deb/usr/share/subsonic"/>
<copy file="../subsonic-booter/target/subsonic-booter-jar-with-dependencies.jar" todir="${project.build.directory}/deb/usr/share/subsonic"/>
<copy file="../subsonic-main/target/subsonic.war" todir="${project.build.directory}/deb/usr/share/subsonic"/>
<copy file="../subsonic-transcode/linux/ffmpeg" todir="${project.build.directory}/deb/var/subsonic/transcode"/>
<copy file="../subsonic-transcode/linux/lame" todir="${project.build.directory}/deb/var/subsonic/transcode"/>
<copy file="../libresonic-booter/src/main/script/libresonic.sh" todir="${project.build.directory}/deb/usr/share/libresonic"/>
<copy file="../libresonic-booter/target/libresonic-booter-jar-with-dependencies.jar" todir="${project.build.directory}/deb/usr/share/libresonic"/>
<copy file="../libresonic-main/target/libresonic.war" todir="${project.build.directory}/deb/usr/share/libresonic"/>
<copy file="../libresonic-transcode/linux/ffmpeg" todir="${project.build.directory}/deb/var/libresonic/transcode"/>
<copy file="../libresonic-transcode/linux/lame" todir="${project.build.directory}/deb/var/libresonic/transcode"/>
<exec executable="chmod">
<arg value="oug+x"/>
@ -53,10 +53,10 @@
<arg value="${project.build.directory}/deb/DEBIAN/postinst"/>
<arg value="${project.build.directory}/deb/DEBIAN/prerm"/>
<arg value="${project.build.directory}/deb/DEBIAN/postrm"/>
<arg value="${project.build.directory}/deb/usr/share/subsonic/subsonic.sh"/>
<arg value="${project.build.directory}/deb/etc/init.d/subsonic"/>
<arg value="${project.build.directory}/deb/var/subsonic/transcode/ffmpeg"/>
<arg value="${project.build.directory}/deb/var/subsonic/transcode/lame"/>
<arg value="${project.build.directory}/deb/usr/share/libresonic/libresonic.sh"/>
<arg value="${project.build.directory}/deb/etc/init.d/libresonic"/>
<arg value="${project.build.directory}/deb/var/libresonic/transcode/ffmpeg"/>
<arg value="${project.build.directory}/deb/var/libresonic/transcode/lame"/>
</exec>
<exec executable="sleep">
<arg value="2"/>
@ -65,10 +65,10 @@
<arg value="dpkg"/>
<arg value="--build"/>
<arg value="${project.build.directory}/deb"/>
<arg value="${project.build.directory}/subsonic-${project.version}.deb"/>
<arg value="${project.build.directory}/libresonic-${project.version}.deb"/>
</exec>
<exec executable="lintian">
<arg value="${project.build.directory}/subsonic-${project.version}.deb"/>
<arg value="${project.build.directory}/libresonic-${project.version}.deb"/>
</exec>
</target>
</configuration>

@ -0,0 +1 @@
/etc/default/libresonic

@ -1,4 +1,4 @@
Package: subsonic
Package: libresonic
Version: @VERSION@
Section: Multimedia
Priority: optional
@ -6,13 +6,13 @@ Recommends: ffmpeg
Architecture: all
Maintainer: Sindre Mehus <sindre@activeobjects.no>
Description: A web-based music streamer, jukebox and Podcast receiver
Subsonic is a web-based music streamer, jukebox and Podcast receiver,
Libresonic is a web-based music streamer, jukebox and Podcast receiver,
providing access to your music collection wherever you are. Use it
to share your music with friends, or to listen to your music while away
from home.
.
Apps for Android, iPhone and Windows Phone are also available.
.
Java 1.6 or higher is required to run Subsonic.
Java 1.6 or higher is required to run Libresonic.
.
Subsonic can be found at http://subsonic.org
Libresonic can be found at http://libresonic.org

@ -0,0 +1,16 @@
#! /bin/sh
set -e
ln -sf /usr/share/libresonic/libresonic.sh /usr/bin/libresonic
chmod 750 /var/libresonic
# Clear jetty cache.
rm -rf /var/libresonic/jetty
# Configure Libresonic service.
update-rc.d libresonic defaults 99
# Start Libresonic service.
invoke-rc.d libresonic start

@ -3,7 +3,7 @@
set -e
# Remove symlink.
rm -f /usr/bin/subsonic
rm -f /usr/bin/libresonic
# Remove startup scripts.
update-rc.d -f subsonic remove
update-rc.d -f libresonic remove

@ -0,0 +1,15 @@
#! /bin/sh
set -e
# Stop Libresonic service.
if [ -e /etc/init.d/libresonic ]; then
invoke-rc.d libresonic stop
fi
# Backup database.
if [ -e /var/libresonic/db ]; then
rm -rf /var/libresonic/db.backup
cp -R /var/libresonic/db /var/libresonic/db.backup
fi

@ -0,0 +1,8 @@
#! /bin/sh
set -e
# Stop Libresonic service.
if [ -e /etc/init.d/libresonic ]; then
invoke-rc.d libresonic stop
fi

@ -1,14 +1,14 @@
#
# This is the configuration file for the Subsonic service
# (/etc/init.d/subsonic)
# This is the configuration file for the Libresonic service
# (/etc/init.d/libresonic)
#
# To change the startup parameters of Subsonic, modify
# To change the startup parameters of Libresonic, modify
# the SUBSONIC_ARGS variable below.
#
# Type "/usr/share/subsonic/subsonic.sh --help" on the command line to read an
# Type "/usr/share/libresonic/libresonic.sh --help" on the command line to read an
# explanation of the different options.
#
# For example, to specify that Subsonic should use port 80 (for http)
# For example, to specify that Libresonic should use port 80 (for http)
# and 443 (for https), and use a Java memory heap size of 200 MB, use
# the following:
#
@ -17,7 +17,7 @@
SUBSONIC_ARGS="--max-memory=150"
# The user which should run the Subsonic process. Default "root".
# The user which should run the Libresonic process. Default "root".
# Note that non-root users are by default not allowed to use ports
# below 1024. Also make sure to grant the user write permissions in
# the music directories, otherwise changing album art and tags will fail.

@ -1,25 +1,25 @@
#! /bin/sh
### BEGIN INIT INFO
# Provides: subsonic
# Provides: libresonic
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Subsonic daemon
# Description: Starts the Subsonic daemon. Subsonic is a web-based
# Short-Description: Libresonic daemon
# Description: Starts the Libresonic daemon. Libresonic is a web-based
# music streamer, jukebox and Podcast receiver.
# See http://subsonic.org for more details.
# See http://libresonic.org for more details.
### END INIT INFO
# Author: Sindre Mehus <sindre@activeobjects.no>
# To change the startup parameters of Subsonic, modify the service
# configuration file /etc/default/subsonic rather than this file.
[ -r /etc/default/subsonic ] && . /etc/default/subsonic
# To change the startup parameters of Libresonic, modify the service
# configuration file /etc/default/libresonic rather than this file.
[ -r /etc/default/libresonic ] && . /etc/default/libresonic
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Subsonic Daemon"
NAME=subsonic
DESC="Libresonic Daemon"
NAME=libresonic
PIDFILE=/var/run/$NAME.pid
DAEMON=/usr/bin/$NAME
DAEMON_ARGS="--pidfile=$PIDFILE $SUBSONIC_ARGS"
@ -31,7 +31,7 @@ SCRIPTNAME=/etc/init.d/$NAME
# Run as root if SUBSONIC_USER is not set.
[ "$SUBSONIC_USER" = "" ] && SUBSONIC_USER=root
# Make sure Subsonic is started with system locale
# Make sure Libresonic is started with system locale
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG
@ -62,8 +62,8 @@ do_start()
touch $PIDFILE
chown $SUBSONIC_USER $PIDFILE
[ -e /var/subsonic ] && chown -R $SUBSONIC_USER /var/subsonic
[ -e /tmp/subsonic ] && chown -R $SUBSONIC_USER /tmp/subsonic
[ -e /var/libresonic ] && chown -R $SUBSONIC_USER /var/libresonic
[ -e /tmp/libresonic ] && chown -R $SUBSONIC_USER /tmp/libresonic
start-stop-daemon --start -c $SUBSONIC_USER --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_ARGS || return 2
}

@ -2,29 +2,29 @@
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>net.sourceforge.subsonic</groupId>
<artifactId>subsonic-installer-mac</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic-installer-mac</artifactId>
<packaging>pom</packaging>
<name>Subsonic Installer for Mac</name>
<name>Libresonic Installer for Mac</name>
<parent>
<groupId>net.sourceforge.subsonic</groupId>
<artifactId>subsonic</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic</artifactId>
<version>6.0.1</version>
</parent>
<dependencies>
<dependency>
<groupId>net.sourceforge.subsonic</groupId>
<artifactId>subsonic-main</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic-main</artifactId>
<version>${project.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>net.sourceforge.subsonic</groupId>
<artifactId>subsonic-booter</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic-booter</artifactId>
<version>${project.version}</version>
</dependency>
@ -52,41 +52,41 @@
<mkdir dir="${project.build.directory}"/>
<appbundler outputdirectory="target"
name="Subsonic"
displayname="Subsonic"
icon="src/subsonic.icns"
identifier="net.sourceforge.subsonic"
name="Libresonic"
displayname="Libresonic"
icon="src/libresonic.icns"
identifier="org.libresonic.player"
shortversion="${project.version}"
mainclassname="net.sourceforge.subsonic.booter.Main">
mainclassname="org.libresonic.player.booter.Main">
<runtime dir="${env.JAVA_HOME}"/>
<classpath dir="..">
<include name="subsonic-booter/target/subsonic-booter-jar-with-dependencies.jar"/>
<include name="subsonic-main/target/subsonic.war"/>
<include name="libresonic-booter/target/libresonic-booter-jar-with-dependencies.jar"/>
<include name="libresonic-main/target/libresonic.war"/>
</classpath>
<option value="-Dsubsonic.war=$APP_ROOT/Contents/Java/subsonic.war"/>
<option value="-Dsubsonic.home=/Library/Application Support/Subsonic"/>
<option value="-Dsubsonic.defaultMusicFolder=/Users/Shared/Music/iTunes/iTunes Media"/>
<option value="-Dsubsonic.defaultPodcastFolder=/Users/Shared/Podcasts"/>
<option value="-Dsubsonic.defaultPlaylistFolder=/Users/Shared/Playlists"/>
<option value="-Dsubsonic.port=4040"/>
<option value="-Dsubsonic.httpsPort=0"/>
<option value="-Dsubsonic.contextPath=/"/>
<option value="-Dlibresonic.war=$APP_ROOT/Contents/Java/libresonic.war"/>
<option value="-Dlibresonic.home=/Library/Application Support/Libresonic"/>
<option value="-Dlibresonic.defaultMusicFolder=/Users/Shared/Music/iTunes/iTunes Media"/>
<option value="-Dlibresonic.defaultPodcastFolder=/Users/Shared/Podcasts"/>
<option value="-Dlibresonic.defaultPlaylistFolder=/Users/Shared/Playlists"/>
<option value="-Dlibresonic.port=4040"/>
<option value="-Dlibresonic.httpsPort=0"/>
<option value="-Dlibresonic.contextPath=/"/>
<option value="-Dapple.awt.UIElement=true"/>
<option value="-Xmx150m"/>
<argument value="-mac"/>
</appbundler>
<!--Requires installation of Packages, see http://s.sudre.free.fr/Software/Packages/about.html or subsonic-tools-->
<!--Requires installation of Packages, see http://s.sudre.free.fr/Software/Packages/about.html or libresonic-tools-->
<exec executable="/usr/local/bin/packagesbuild">
<arg value="-v"/>
<arg value="${project.basedir}/src/subsonic.pkgproj"/>
<arg value="${project.basedir}/src/libresonic.pkgproj"/>
</exec>
<exec executable="/usr/bin/productsign">
<arg value="--sign"/>
<arg value="Sindre Mehus"/>
<arg value="${project.build.directory}/subsonic.pkg"/>
<arg value="${project.build.directory}/subsonic-${project.version}.pkg"/>
<arg value="${project.build.directory}/libresonic.pkg"/>
<arg value="${project.build.directory}/libresonic-${project.version}.pkg"/>
</exec>
</target>
</configuration>

@ -22,7 +22,7 @@
<key>GID</key>
<integer>80</integer>
<key>PATH</key>
<string>../target/Subsonic.app</string>
<string>../target/Libresonic.app</string>
<key>PATH_TYPE</key>
<integer>1</integer>
<key>PERMISSIONS</key>
@ -80,7 +80,7 @@
<key>GID</key>
<integer>80</integer>
<key>PATH</key>
<string>../../subsonic-transcode/mac/ffmpeg</string>
<string>../../libresonic-transcode/mac/ffmpeg</string>
<key>PATH_TYPE</key>
<integer>1</integer>
<key>PERMISSIONS</key>
@ -108,7 +108,7 @@
<key>GID</key>
<integer>80</integer>
<key>PATH</key>
<string>Subsonic</string>
<string>Libresonic</string>
<key>PATH_TYPE</key>
<integer>0</integer>
<key>PERMISSIONS</key>
@ -546,9 +546,9 @@
<key>CONCLUSION_ACTION</key>
<integer>0</integer>
<key>IDENTIFIER</key>
<string>net.sourceforge.subsonic</string>
<string>org.libresonic.player</string>
<key>NAME</key>
<string>subsonic</string>
<string>libresonic</string>
<key>OVERWRITE_PERMISSIONS</key>
<false/>
<key>VERSION</key>
@ -586,7 +586,7 @@
<key>BACKGROUND_PATH</key>
<dict>
<key>PATH</key>
<string>subsonic.png</string>
<string>libresonic.png</string>
<key>PATH_TYPE</key>
<integer>1</integer>
</dict>
@ -672,7 +672,7 @@
<key>LANGUAGE</key>
<string>English</string>
<key>VALUE</key>
<string>Subsonic</string>
<string>Libresonic</string>
</dict>
</array>
</dict>
@ -872,7 +872,7 @@
</dict>
</array>
<key>NAME</key>
<string>subsonic</string>
<string>libresonic</string>
</dict>
</dict>
<key>TYPE</key>

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

@ -1,6 +1,6 @@
#!/bin/bash
SUBSONIC_HOME="/Library/Application Support/Subsonic"
SUBSONIC_HOME="/Library/Application Support/Libresonic"
chmod oug+rwx "$SUBSONIC_HOME"
chown root:admin "$SUBSONIC_HOME"
@ -10,4 +10,4 @@ chown root:admin "$SUBSONIC_HOME/transcode"
rm -rf "$SUBSONIC_HOME/jetty"
echo Subsonic installation done
echo Libresonic installation done

@ -1,6 +1,6 @@
#!/bin/bash
SUBSONIC_HOME="/Library/Application Support/Subsonic"
SUBSONIC_HOME="/Library/Application Support/Libresonic"
# Backup database.

@ -2,14 +2,14 @@
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>net.sourceforge.subsonic</groupId>
<artifactId>subsonic-installer-rpm</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic-installer-rpm</artifactId>
<packaging>pom</packaging>
<name>Subsonic Installer for RPM</name>
<name>Libresonic Installer for RPM</name>
<parent>
<groupId>net.sourceforge.subsonic</groupId>
<artifactId>subsonic</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic</artifactId>
<version>6.0.1</version>
</parent>
@ -52,7 +52,7 @@
<target>
<echo>Creating RPM package...</echo>
<copy file="${basedir}/src/subsonic.spec"
<copy file="${basedir}/src/libresonic.spec"
todir="${project.build.directory}/rpm/SPECS">
<filterset>
<filter token="VERSION" value="${project.version}"/>
@ -61,7 +61,7 @@
</copy>
<!--Remove ".beta" suffix from version tag.-->
<replace file="${project.build.directory}/rpm/SPECS/subsonic.spec">
<replace file="${project.build.directory}/rpm/SPECS/libresonic.spec">
<replacetoken>.beta1</replacetoken>
<replacetoken>.beta2</replacetoken>
<replacetoken>.beta3</replacetoken>
@ -70,20 +70,20 @@
<mkdir dir="${project.build.directory}/rpm/RPMS/i386"/>
<copy file="${basedir}/src/etc/init.d/subsonic"
<copy file="${basedir}/src/etc/init.d/libresonic"
todir="${project.build.directory}/rpm/buildroot/etc/init.d"/>
<copy file="${basedir}/src/etc/sysconfig/subsonic"
<copy file="${basedir}/src/etc/sysconfig/libresonic"
todir="${project.build.directory}/rpm/buildroot/etc/sysconfig"/>
<copy file="../subsonic-booter/src/main/script/subsonic.sh"
todir="${project.build.directory}/rpm/buildroot/usr/share/subsonic"/>
<copy file="../subsonic-booter/target/subsonic-booter-jar-with-dependencies.jar"
todir="${project.build.directory}/rpm/buildroot/usr/share/subsonic"/>
<copy file="../subsonic-main/target/subsonic.war"
todir="${project.build.directory}/rpm/buildroot/usr/share/subsonic"/>
<copy file="../subsonic-transcode/linux/ffmpeg"
todir="${project.build.directory}/rpm/buildroot/var/subsonic/transcode"/>
<copy file="../subsonic-transcode/linux/lame"
todir="${project.build.directory}/rpm/buildroot/var/subsonic/transcode"/>
<copy file="../libresonic-booter/src/main/script/libresonic.sh"
todir="${project.build.directory}/rpm/buildroot/usr/share/libresonic"/>
<copy file="../libresonic-booter/target/libresonic-booter-jar-with-dependencies.jar"
todir="${project.build.directory}/rpm/buildroot/usr/share/libresonic"/>
<copy file="../libresonic-main/target/libresonic.war"
todir="${project.build.directory}/rpm/buildroot/usr/share/libresonic"/>
<copy file="../libresonic-transcode/linux/ffmpeg"
todir="${project.build.directory}/rpm/buildroot/var/libresonic/transcode"/>
<copy file="../libresonic-transcode/linux/lame"
todir="${project.build.directory}/rpm/buildroot/var/libresonic/transcode"/>
<exec executable="rpmbuild">
<arg value="-bb"/>
@ -93,17 +93,17 @@
<arg value="_topdir ${project.build.directory}/rpm"/>
<arg value="--target"/>
<arg value="i386"/>
<arg value="${project.build.directory}/rpm/SPECS/subsonic.spec"/>
<arg value="${project.build.directory}/rpm/SPECS/libresonic.spec"/>
</exec>
<copy tofile="${project.build.directory}/subsonic-${project.version}.rpm">
<copy tofile="${project.build.directory}/libresonic-${project.version}.rpm">
<fileset dir="${project.build.directory}/rpm/RPMS/i386">
<include name="*.rpm"/>
</fileset>
</copy>
<exec executable="rpmlint">
<arg value="${project.build.directory}/subsonic-${project.version}.rpm"/>
<arg value="${project.build.directory}/libresonic-${project.version}.rpm"/>
</exec>
</target>
</configuration>

@ -1,30 +1,30 @@
#!/bin/bash
#
# subsonic This shell script takes care of starting and stopping Subsonic
# libresonic This shell script takes care of starting and stopping Libresonic
#
# chkconfig: - 80 20
#
### BEGIN INIT INFO
# Provides: subsonic
# Provides: libresonic
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Subsonic daemon
# Description: Starts the Subsonic daemon. Subsonic is a web-based
# Short-Description: Libresonic daemon
# Description: Starts the Libresonic daemon. Libresonic is a web-based
# music streamer, jukebox and Podcast receiver.
# See http://subsonic.org for more details.
# See http://libresonic.org for more details.
### END INIT INFO
# Author: Sindre Mehus <sindre@activeobjects.no>
# To change the startup parameters of Subsonic, modify the service
# configuration file /etc/sysconfig/subsonic rather than this file.
[ -r /etc/sysconfig/subsonic ] && . /etc/sysconfig/subsonic
# To change the startup parameters of Libresonic, modify the service
# configuration file /etc/sysconfig/libresonic rather than this file.
[ -r /etc/sysconfig/libresonic ] && . /etc/sysconfig/libresonic
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Subsonic Daemon"
NAME=subsonic
DESC="Libresonic Daemon"
NAME=libresonic
PIDFILE=/var/run/$NAME.pid
LOCKFILE=/var/lock/subsys/$NAME
DAEMON=/usr/bin/$NAME
@ -54,8 +54,8 @@ do_start()
touch $PIDFILE
chown $SUBSONIC_USER $PIDFILE
[ -e /var/subsonic ] && chown -R $SUBSONIC_USER /var/subsonic
[ -e /tmp/subsonic ] && chown -R $SUBSONIC_USER /tmp/subsonic
[ -e /var/libresonic ] && chown -R $SUBSONIC_USER /var/libresonic
[ -e /tmp/libresonic ] && chown -R $SUBSONIC_USER /tmp/libresonic
echo $"Starting $NAME ..."
su -c "$DAEMON $DAEMON_ARGS" $SUBSONIC_USER

@ -1,14 +1,14 @@
#
# This is the configuration file for the Subsonic service
# (/etc/init.d/subsonic)
# This is the configuration file for the Libresonic service
# (/etc/init.d/libresonic)
#
# To change the startup parameters of Subsonic, modify
# To change the startup parameters of Libresonic, modify
# the SUBSONIC_ARGS variable below.
#
# Type "/usr/share/subsonic/subsonic.sh --help" on the command line to read an
# Type "/usr/share/libresonic/libresonic.sh --help" on the command line to read an
# explanation of the different options.
#
# For example, to specify that Subsonic should use port 80 (for http)
# For example, to specify that Libresonic should use port 80 (for http)
# and 443 (for https), and use a Java memory heap size of 200 MB, use
# the following:
#
@ -17,7 +17,7 @@
SUBSONIC_ARGS="--max-memory=150"
# The user which should run the Subsonic process. Default "root".
# The user which should run the Libresonic process. Default "root".
# Note that non-root users are by default not allowed to use ports
# below 1024. Also make sure to grant the user write permissions in
# the music directories, otherwise changing album art and tags will fail.

@ -0,0 +1,78 @@
Name: libresonic
Version: @VERSION@
Release: @BUILD_NUMBER@
Summary: A web-based music streamer, jukebox and Podcast receiver
Group: Applications/Multimedia
License: GPLv3
URL: http://libresonic.org
%description
Libresonic is a web-based music streamer, jukebox and Podcast receiver,
providing access to your music collection wherever you are. Use it
to share your music with friends, or to listen to your music while away
from home.
Apps for Android, iPhone and Windows Phone are also available.
Java 1.6 or higher is required to run Libresonic.
Libresonic can be found at http://libresonic.org
%files
%defattr(644,root,root,755)
/usr/share/libresonic/libresonic-booter-jar-with-dependencies.jar
/usr/share/libresonic/libresonic.war
%attr(755,root,root) /usr/share/libresonic/libresonic.sh
%attr(755,root,root) /etc/init.d/libresonic
%attr(755,root,root) /var/libresonic/transcode/ffmpeg
%attr(755,root,root) /var/libresonic/transcode/lame
%config(noreplace) /etc/sysconfig/libresonic
%pre
# Stop Libresonic service.
if [ -e /etc/init.d/libresonic ]; then
service libresonic stop
fi
# Backup database.
if [ -e /var/libresonic/db ]; then
rm -rf /var/libresonic/db.backup
cp -R /var/libresonic/db /var/libresonic/db.backup
fi
exit 0
%post
ln -sf /usr/share/libresonic/libresonic.sh /usr/bin/libresonic
chmod 750 /var/libresonic
# Clear jetty cache.
rm -rf /var/libresonic/jetty
# For SELinux: Set security context
chcon -t java_exec_t /etc/init.d/libresonic 2>/dev/null
# Configure and start Libresonic service.
chkconfig --add libresonic
service libresonic start
exit 0
%preun
# Only do it if uninstalling, not upgrading.
if [ $1 = 0 ] ; then
# Stop the service.
[ -e /etc/init.d/libresonic ] && service libresonic stop
# Remove symlink.
rm -f /usr/bin/libresonic
# Remove startup scripts.
chkconfig --del libresonic
fi
exit 0

@ -2,14 +2,14 @@
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>net.sourceforge.subsonic</groupId>
<artifactId>subsonic-installer-windows</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic-installer-windows</artifactId>
<packaging>pom</packaging>
<name>Subsonic Installer for Windows</name>
<name>Libresonic Installer for Windows</name>
<parent>
<groupId>net.sourceforge.subsonic</groupId>
<artifactId>subsonic</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic</artifactId>
<version>6.0.1</version>
</parent>
@ -21,15 +21,15 @@
<dependencies>
<dependency>
<groupId>net.sourceforge.subsonic</groupId>
<artifactId>subsonic-main</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic-main</artifactId>
<version>${project.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>net.sourceforge.subsonic</groupId>
<artifactId>subsonic-booter</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic-booter</artifactId>
<version>${project.version}</version>
</dependency>
@ -56,20 +56,20 @@
<configuration>
<target>
<echo>Compiling exe4j...</echo>
<copy file="${basedir}/src/main/exe4j/subsonic-agent.exe.vmoptions" todir="${project.build.directory}"/>
<copy file="${basedir}/src/main/exe4j/subsonic-agent-elevated.exe.vmoptions" todir="${project.build.directory}"/>
<copy file="${basedir}/src/main/exe4j/subsonic-service.exe.vmoptions" todir="${project.build.directory}"/>
<copy file="${basedir}/src/main/exe4j/libresonic-agent.exe.vmoptions" todir="${project.build.directory}"/>
<copy file="${basedir}/src/main/exe4j/libresonic-agent-elevated.exe.vmoptions" todir="${project.build.directory}"/>
<copy file="${basedir}/src/main/exe4j/libresonic-service.exe.vmoptions" todir="${project.build.directory}"/>
<exec executable="${exe4j.home}/bin/exe4jc">
<arg value="--license=L-SINDRE_MEHUS#14926715500010001-1ty7dbe11l10ll#140"/>
</exec>
<exec executable="${exe4j.home}/bin/exe4jc">
<arg value="${basedir}/src/main/exe4j/subsonic-agent.exe4j"/>
<arg value="${basedir}/src/main/exe4j/libresonic-agent.exe4j"/>
</exec>
<exec executable="${exe4j.home}/bin/exe4jc">
<arg value="${basedir}/src/main/exe4j/subsonic-agent-elevated.exe4j"/>
<arg value="${basedir}/src/main/exe4j/libresonic-agent-elevated.exe4j"/>
</exec>
<exec executable="${exe4j.home}/bin/exe4jc">
<arg value="${basedir}/src/main/exe4j/subsonic-service.exe4j"/>
<arg value="${basedir}/src/main/exe4j/libresonic-service.exe4j"/>
</exec>
</target>
</configuration>
@ -86,8 +86,8 @@
<echo>Compiling NSIS script...</echo>
<mkdir dir="${project.build.directory}"/>
<exec executable="${nsis.home}/makensis">
<arg value="${basedir}/src/main/nsis/subsonic.nsi"/>
<arg value="-XOutFile ${project.build.directory}/subsonic-${project.version}-setup.exe"/>
<arg value="${basedir}/src/main/nsis/libresonic.nsi"/>
<arg value="-XOutFile ${project.build.directory}/libresonic-${project.version}-setup.exe"/>
</exec>
</target>
</configuration>

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<exe4j version="4.4.4" transformSequenceNumber="1">
<directoryPresets config="." />
<application name="Subsonic" distributionSourceDir="../../../target">
<application name="Libresonic" distributionSourceDir="../../../target">
<languages>
<principalLanguage id="en" customLocalizationFile="" />
</languages>
</application>
<executable name="subsonic-agent-elevated" type="1" iconSet="true" iconFile="subsonic-16.ico" executableDir="" redirectStderr="true" stderrFile="log/subsonic-agent.log" stderrMode="overwrite" redirectStdout="false" stdoutFile="output.log" stdoutMode="overwrite" failOnStderrOutput="true" executableMode="1" changeWorkingDirectory="true" workingDirectory="." singleInstance="false" serviceStartType="2" serviceDependencies="" serviceDescription="Subsonic Music Streamer (http://subsonic.org)" jreLocation="" executionLevel="requireAdministrator" checkConsoleParameter="false" globalSingleInstance="false" amd64="false">
<executable name="libresonic-agent-elevated" type="1" iconSet="true" iconFile="libresonic-16.ico" executableDir="" redirectStderr="true" stderrFile="log/libresonic-agent.log" stderrMode="overwrite" redirectStdout="false" stdoutFile="output.log" stdoutMode="overwrite" failOnStderrOutput="true" executableMode="1" changeWorkingDirectory="true" workingDirectory="." singleInstance="false" serviceStartType="2" serviceDependencies="" serviceDescription="Libresonic Music Streamer (http://libresonic.org)" jreLocation="" executionLevel="requireAdministrator" checkConsoleParameter="false" globalSingleInstance="false" amd64="false">
<messageSet>
<message id="NoJvmFound" text="Java was not found on your system. Please download Java from www.java.com." />
</messageSet>
@ -18,14 +18,14 @@
<versionLine x="0" y="0" text="" font="Arial" fontSize="8" fontColor="0,0,0" fontWeight="500" />
</text>
</splashScreen>
<java mainClass="net.sourceforge.subsonic.booter.Main" vmParameters="" arguments="-agent -elevated" allowVMPassthroughParameters="true" preferredVM="" bundleRuntime="true" minVersion="1.6" maxVersion="" allowBetaVM="true" jdkOnly="false">
<java mainClass="org.libresonic.player.booter.Main" vmParameters="" arguments="-agent -elevated" allowVMPassthroughParameters="true" preferredVM="" bundleRuntime="true" minVersion="1.6" maxVersion="" allowBetaVM="true" jdkOnly="false">
<searchSequence>
<registry />
<envVar name="JAVA_HOME" />
<envVar name="JDK_HOME" />
</searchSequence>
<classPath>
<archive location="./subsonic-booter-jar-with-dependencies.jar" failOnError="false" />
<archive location="./libresonic-booter-jar-with-dependencies.jar" failOnError="false" />
</classPath>
<nativeLibraryDirectories />
</java>

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<exe4j version="4.5.1" transformSequenceNumber="1">
<directoryPresets config="." />
<application name="Subsonic" distributionSourceDir="../../../target">
<application name="Libresonic" distributionSourceDir="../../../target">
<languages>
<principalLanguage id="en" customLocalizationFile="" />
</languages>
</application>
<executable name="subsonic-agent" type="1" iconSet="true" iconFile="subsonic-16.ico" executableDir="" redirectStderr="true" stderrFile="log/subsonic-agent.log" stderrMode="overwrite" redirectStdout="false" stdoutFile="output.log" stdoutMode="overwrite" failOnStderrOutput="true" executableMode="1" changeWorkingDirectory="true" workingDirectory="." singleInstance="false" serviceStartType="2" serviceDependencies="" serviceDescription="Subsonic Music Streamer (http://subsonic.org)" jreLocation="" executionLevel="asInvoker" checkConsoleParameter="false" globalSingleInstance="false" amd64="false">
<executable name="libresonic-agent" type="1" iconSet="true" iconFile="libresonic-16.ico" executableDir="" redirectStderr="true" stderrFile="log/libresonic-agent.log" stderrMode="overwrite" redirectStdout="false" stdoutFile="output.log" stdoutMode="overwrite" failOnStderrOutput="true" executableMode="1" changeWorkingDirectory="true" workingDirectory="." singleInstance="false" serviceStartType="2" serviceDependencies="" serviceDescription="Libresonic Music Streamer (http://libresonic.org)" jreLocation="" executionLevel="asInvoker" checkConsoleParameter="false" globalSingleInstance="false" amd64="false">
<messageSet>
<message id="NoJvmFound" text="Java was not found on your system. Please download Java (32-bit version) from java.com." />
<message id="JvmInPath" text="Java was not found on your system. Please download Java (32-bit version) from java.com." />
@ -24,14 +24,14 @@
<versionLine x="0" y="0" text="" font="Arial" fontSize="8" fontColor="0,0,0" fontWeight="500" />
</text>
</splashScreen>
<java mainClass="net.sourceforge.subsonic.booter.Main" vmParameters="" arguments="-agent" allowVMPassthroughParameters="true" preferredVM="" bundleRuntime="true" minVersion="1.6" maxVersion="" allowBetaVM="true" jdkOnly="false">
<java mainClass="org.libresonic.player.booter.Main" vmParameters="" arguments="-agent" allowVMPassthroughParameters="true" preferredVM="" bundleRuntime="true" minVersion="1.6" maxVersion="" allowBetaVM="true" jdkOnly="false">
<searchSequence>
<registry />
<envVar name="JAVA_HOME" />
<envVar name="JDK_HOME" />
</searchSequence>
<classPath>
<archive location="./subsonic-booter-jar-with-dependencies.jar" failOnError="false" />
<archive location="./libresonic-booter-jar-with-dependencies.jar" failOnError="false" />
</classPath>
<nativeLibraryDirectories />
</java>

@ -0,0 +1,6 @@
-Xmx150m
-verbose:gc
-Dlibresonic.host=0.0.0.0
-Dlibresonic.port=4040
-Dlibresonic.httpsPort=0
-Dlibresonic.contextPath=/

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<exe4j version="4.5.1" transformSequenceNumber="1">
<directoryPresets config="." />
<application name="Subsonic" distributionSourceDir="../../../target">
<application name="Libresonic" distributionSourceDir="../../../target">
<languages>
<principalLanguage id="en" customLocalizationFile="" />
</languages>
</application>
<executable name="subsonic-service" type="1" iconSet="true" iconFile="subsonic-16.ico" executableDir="" redirectStderr="true" stderrFile="log/subsonic-service.log" stderrMode="overwrite" redirectStdout="false" stdoutFile="output.log" stdoutMode="overwrite" failOnStderrOutput="true" executableMode="3" changeWorkingDirectory="true" workingDirectory="." singleInstance="true" serviceStartType="2" serviceDependencies="" serviceDescription="Subsonic Music Streamer (http://subsonic.org)" jreLocation="" executionLevel="asInvoker" checkConsoleParameter="false" globalSingleInstance="false" amd64="false">
<executable name="libresonic-service" type="1" iconSet="true" iconFile="libresonic-16.ico" executableDir="" redirectStderr="true" stderrFile="log/libresonic-service.log" stderrMode="overwrite" redirectStdout="false" stdoutFile="output.log" stdoutMode="overwrite" failOnStderrOutput="true" executableMode="3" changeWorkingDirectory="true" workingDirectory="." singleInstance="true" serviceStartType="2" serviceDependencies="" serviceDescription="Libresonic Music Streamer (http://libresonic.org)" jreLocation="" executionLevel="asInvoker" checkConsoleParameter="false" globalSingleInstance="false" amd64="false">
<messageSet>
<message id="NoJvmFound" text="Java was not found on your system. Please download Java (32-bit version) from java.com." />
<message id="JvmInPath" text="Java was not found on your system. Please download Java (32-bit version) from java.com." />
@ -24,14 +24,14 @@
<versionLine x="0" y="0" text="" font="Arial" fontSize="8" fontColor="0,0,0" fontWeight="500" />
</text>
</splashScreen>
<java mainClass="net.sourceforge.subsonic.booter.Main" vmParameters="-Dsubsonic.createLinkFile=true -Dsubsonic.windowsInstall=true" arguments="" allowVMPassthroughParameters="true" preferredVM="" bundleRuntime="true" minVersion="1.5" maxVersion="" allowBetaVM="true" jdkOnly="false">
<java mainClass="org.libresonic.player.booter.Main" vmParameters="-Dlibresonic.createLinkFile=true -Dlibresonic.windowsInstall=true" arguments="" allowVMPassthroughParameters="true" preferredVM="" bundleRuntime="true" minVersion="1.5" maxVersion="" allowBetaVM="true" jdkOnly="false">
<searchSequence>
<registry />
<envVar name="JAVA_HOME" />
<envVar name="JDK_HOME" />
</searchSequence>
<classPath>
<archive location="./subsonic-booter-jar-with-dependencies.jar" failOnError="false" />
<archive location="./libresonic-booter-jar-with-dependencies.jar" failOnError="false" />
</classPath>
<nativeLibraryDirectories />
</java>

@ -0,0 +1,213 @@
# libresonic.nsi
!include "WordFunc.nsh"
!include "MUI.nsh"
!insertmacro VersionCompare
# The name of the installer
Name "Libresonic"
# The default installation directory
InstallDir $PROGRAMFILES\Libresonic
# Registry key to check for directory (so if you install again, it will
# overwrite the old one automatically)
InstallDirRegKey HKLM "Software\Libresonic" "Install_Dir"
#--------------------------------
#Interface Configuration
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Header\orange.bmp"
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\Getting Started.html"
!define MUI_FINISHPAGE_SHOWREADME_TEXT "View Getting Started document"
#--------------------------------
# Pages
# This page checks for JRE
Page custom CheckInstalledJRE
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
# Languages
!insertmacro MUI_LANGUAGE "English"
Section "Libresonic"
SectionIn RO
# Install for all users
SetShellVarContext "all"
# Take backup of existing libresonic-service.exe.vmoptions
CopyFiles /SILENT $INSTDIR\libresonic-service.exe.vmoptions $TEMP\libresonic-service.exe.vmoptions
# Silently uninstall existing version.
ExecWait '"$INSTDIR\uninstall.exe" /S _?=$INSTDIR'
# Remove previous Jetty temp directory.
RMDir /r "c:\libresonic\jetty"
# Backup database.
RMDir /r "c:\libresonic\db.backup"
CreateDirectory "c:\libresonic\db.backup"
CopyFiles /SILENT "c:\libresonic\db\*" "c:\libresonic\db.backup"
# Set output path to the installation directory.
SetOutPath $INSTDIR
# Write files.
File ..\..\..\target\libresonic-agent.exe
File ..\..\..\target\libresonic-agent.exe.vmoptions
File ..\..\..\target\libresonic-agent-elevated.exe
File ..\..\..\target\libresonic-agent-elevated.exe.vmoptions
File ..\..\..\target\libresonic-service.exe
File ..\..\..\target\libresonic-service.exe.vmoptions
File ..\..\..\..\libresonic-booter\target\libresonic-booter-jar-with-dependencies.jar
File ..\..\..\..\libresonic-main\README.TXT
File ..\..\..\..\libresonic-main\LICENSE.TXT
File "..\..\..\..\libresonic-main\Getting Started.html"
File ..\..\..\..\libresonic-main\target\libresonic.war
File ..\..\..\..\libresonic-main\target\classes\version.txt
File ..\..\..\..\libresonic-main\target\classes\build_number.txt
# Write the installation path into the registry
WriteRegStr HKLM SOFTWARE\Libresonic "Install_Dir" "$INSTDIR"
# Write the uninstall keys for Windows
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Libresonic" "DisplayName" "Libresonic"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Libresonic" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Libresonic" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Libresonic" "NoRepair" 1
WriteUninstaller "uninstall.exe"
# Restore libresonic-service.exe.vmoptions
CopyFiles /SILENT $TEMP\libresonic-service.exe.vmoptions $INSTDIR\libresonic-service.exe.vmoptions
Delete $TEMP\libresonic-service.exe.vmoptions
# Write transcoding pack files.
SetOutPath "c:\libresonic\transcode"
File ..\..\..\..\libresonic-transcode\windows\*.*
# Add Windows Firewall exception.
# (Requires NSIS plugin found on http://nsis.sourceforge.net/NSIS_Simple_Firewall_Plugin to be installed
# as NSIS_HOME/Plugins/SimpleFC.dll)
SimpleFC::AdvAddRule "Libresonic Service (TCP)" "" "6" "1" "1" "7" "1" "$INSTDIR\libresonic-service.exe" "" "" "Libresonic" "" "" "" ""
SimpleFC::AdvAddRule "Libresonic Service (UDP)" "" "17" "1" "1" "7" "1" "$INSTDIR\libresonic-service.exe" "" "" "Libresonic" "" "" "" ""
SimpleFC::AdvAddRule "Libresonic Agent (TCP)" "" "6" "1" "1" "7" "1" "$INSTDIR\libresonic-agent.exe" "" "" "Libresonic" "" "" "" ""
SimpleFC::AdvAddRule "Libresonic Agent (UDP)" "" "17" "1" "1" "7" "1" "$INSTDIR\libresonic-agent.exe" "" "" "Libresonic" "" "" "" ""
SimpleFC::AdvAddRule "Libresonic Agent Elevated (TCP)" "" "6" "1" "1" "7" "1" "$INSTDIR\libresonic-agent-elevated.exe" "" "" "Libresonic" "" "" "" ""
SimpleFC::AdvAddRule "Libresonic Agent Elevated (UDP)" "" "17" "1" "1" "7" "1" "$INSTDIR\libresonic-agent-elevated.exe" "" "" "Libresonic" "" "" "" ""
# Install and start service.
ExecWait '"$INSTDIR\libresonic-service.exe" -install'
ExecWait '"$INSTDIR\libresonic-service.exe" -start'
# Start agent.
Exec '"$INSTDIR\libresonic-agent-elevated.exe" -balloon'
SectionEnd
Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\Libresonic"
CreateShortCut "$SMPROGRAMS\Libresonic\Open Libresonic.lnk" "$INSTDIR\libresonic.url" "" "$INSTDIR\libresonic-agent.exe" 0
CreateShortCut "$SMPROGRAMS\Libresonic\Libresonic Tray Icon.lnk" "$INSTDIR\libresonic-agent.exe" "-balloon" "$INSTDIR\libresonic-agent.exe" 0
CreateShortCut "$SMPROGRAMS\Libresonic\Start Libresonic Service.lnk" "$INSTDIR\libresonic-service.exe" "-start" "$INSTDIR\libresonic-service.exe" 0
CreateShortCut "$SMPROGRAMS\Libresonic\Stop Libresonic Service.lnk" "$INSTDIR\libresonic-service.exe" "-stop" "$INSTDIR\libresonic-service.exe" 0
CreateShortCut "$SMPROGRAMS\Libresonic\Uninstall Libresonic.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\Libresonic\Getting Started.lnk" "$INSTDIR\Getting Started.html" "" "$INSTDIR\Getting Started.html" 0
CreateShortCut "$SMSTARTUP\Libresonic.lnk" "$INSTDIR\libresonic-agent.exe" "" "$INSTDIR\libresonic-agent.exe" 0
SectionEnd
# Uninstaller
Section "Uninstall"
# Uninstall for all users
SetShellVarContext "all"
# Stop and uninstall service if present.
ExecWait '"$INSTDIR\libresonic-service.exe" -stop'
ExecWait '"$INSTDIR\libresonic-service.exe" -uninstall'
# Stop agent by killing it.
# (Requires NSIS plugin found on http://nsis.sourceforge.net/Processes_plug-in to be installed
# as NSIS_HOME/Plugins/Processes.dll)
Processes::KillProcess "libresonic-agent"
Processes::KillProcess "libresonic-agent-elevated"
Processes::KillProcess "ffmpeg"
# Remove registry keys
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Libresonic"
DeleteRegKey HKLM SOFTWARE\Libresonic
# Remove files.
Delete "$SMSTARTUP\Libresonic.lnk"
RMDir /r "$SMPROGRAMS\Libresonic"
Delete "$INSTDIR\build_number.txt"
Delete "$INSTDIR\elevate.exe"
Delete "$INSTDIR\Getting Started.html"
Delete "$INSTDIR\LICENSE.TXT"
Delete "$INSTDIR\README.TXT"
Delete "$INSTDIR\libresonic.url"
Delete "$INSTDIR\libresonic.war"
Delete "$INSTDIR\libresonic-agent.exe"
Delete "$INSTDIR\libresonic-agent.exe.vmoptions"
Delete "$INSTDIR\libresonic-agent-elevated.exe"
Delete "$INSTDIR\libresonic-agent-elevated.exe.vmoptions"
Delete "$INSTDIR\libresonic-booter-jar-with-dependencies.jar"
Delete "$INSTDIR\libresonic-service.exe"
Delete "$INSTDIR\libresonic-service.exe.vmoptions"
Delete "$INSTDIR\uninstall.exe"
Delete "$INSTDIR\version.txt"
RMDir /r "$INSTDIR\log"
RMDir "$INSTDIR"
# Remove Windows Firewall exception.
# (Requires NSIS plugin found on http://nsis.sourceforge.net/NSIS_Simple_Firewall_Plugin to be installed
# as NSIS_HOME/Plugins/SimpleFC.dll)
SimpleFC::AdvRemoveRule "Libresonic Service (TCP)"
SimpleFC::AdvRemoveRule "Libresonic Service (UDP)"
SimpleFC::AdvRemoveRule "Libresonic Agent (TCP)"
SimpleFC::AdvRemoveRule "Libresonic Agent (UDP)"
SimpleFC::AdvRemoveRule "Libresonic Agent Elevated (TCP)"
SimpleFC::AdvRemoveRule "Libresonic Agent Elevated (UDP)"
SectionEnd
Function CheckInstalledJRE
# Read the value from the registry into the $0 register
ReadRegStr $0 HKLM "SOFTWARE\JavaSoft\Java Runtime Environment" CurrentVersion
# Check JRE version. At least 1.6 is required.
# $1=0 Versions are equal
# $1=1 Installed version is newer
# $1=2 Installed version is older (or non-existent)
${VersionCompare} $0 "1.6" $1
IntCmp $1 2 InstallJRE 0 0
Return
InstallJRE:
# Launch Java web installer.
MessageBox MB_OK "Java was not found and will now be installed."
File /oname=$TEMP\jre-setup.exe jre-8u31-windows-i586-iftw.exe
ExecWait '"$TEMP\jre-setup.exe"' $0
Delete "$TEMP\jre-setup.exe"
FunctionEnd

@ -0,0 +1,10 @@
<html>
<head>
<meta http-equiv="refresh" content="0;URL=http://libresonic.org/pages/getting-started.jsp">
</head>
<body>
</body>
</html>

@ -84,19 +84,19 @@ java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.2) (6b18-1.8.2-4ubuntu1~9.04.1)
OpenJDK Zero VM (build 14.0-b16, mixed mode)
root@ubuntu:/tmp# dpkg -i subsonic-4.4.deb
Selecting previously deselected package subsonic.
root@ubuntu:/tmp# dpkg -i libresonic-4.4.deb
Selecting previously deselected package libresonic.
(Reading database ... 21622 files and directories currently installed.)
Unpacking subsonic (from subsonic-4.4.deb) ...
Setting up subsonic (4.4) ...
Adding system startup for /etc/init.d/subsonic ...
/etc/rc0.d/K99subsonic -> ../init.d/subsonic
/etc/rc1.d/K99subsonic -> ../init.d/subsonic
/etc/rc6.d/K99subsonic -> ../init.d/subsonic
/etc/rc2.d/S99subsonic -> ../init.d/subsonic
/etc/rc3.d/S99subsonic -> ../init.d/subsonic
/etc/rc4.d/S99subsonic -> ../init.d/subsonic
/etc/rc5.d/S99subsonic -> ../init.d/subsonic
Started Subsonic [PID 2596, /var/subsonic/subsonic_sh.log]
Unpacking libresonic (from libresonic-4.4.deb) ...
Setting up libresonic (4.4) ...
Adding system startup for /etc/init.d/libresonic ...
/etc/rc0.d/K99libresonic -> ../init.d/libresonic
/etc/rc1.d/K99libresonic -> ../init.d/libresonic
/etc/rc6.d/K99libresonic -> ../init.d/libresonic
/etc/rc2.d/S99libresonic -> ../init.d/libresonic
/etc/rc3.d/S99libresonic -> ../init.d/libresonic
/etc/rc4.d/S99libresonic -> ../init.d/libresonic
/etc/rc5.d/S99libresonic -> ../init.d/libresonic
Started Libresonic [PID 2596, /var/libresonic/libresonic_sh.log]
http://192.168.0.100:4040

@ -27,8 +27,8 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="subsonic-rest-api" />
<orderEntry type="module" module-name="subsonic-sonos-api" />
<orderEntry type="module" module-name="libresonic-rest-api" />
<orderEntry type="module" module-name="libresonic-sonos-api" />
<orderEntry type="library" name="Maven: org.springframework:spring:2.5.6" level="project" />
<orderEntry type="library" name="Maven: commons-logging:commons-logging:1.1.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-webmvc:2.5.6" level="project" />

@ -2,13 +2,13 @@
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>net.sourceforge.subsonic</groupId>
<artifactId>subsonic-main</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic-main</artifactId>
<packaging>war</packaging>
<name>Subsonic Main</name>
<name>Libresonic Main</name>
<parent>
<groupId>net.sourceforge.subsonic</groupId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic</artifactId>
<version>6.0.1</version>
</parent>
@ -16,14 +16,14 @@
<dependencies>
<dependency>
<groupId>net.sourceforge.subsonic</groupId>
<artifactId>subsonic-rest-api</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic-rest-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>net.sourceforge.subsonic</groupId>
<artifactId>subsonic-sonos-api</artifactId>
<groupId>org.libresonic.player</groupId>
<artifactId>libresonic-sonos-api</artifactId>
<version>${project.version}</version>
</dependency>
@ -382,7 +382,7 @@
</profiles>
<build>
<finalName>subsonic</finalName>
<finalName>libresonic</finalName>
<plugins>
<plugin>
@ -393,8 +393,8 @@
<configuration>
<target>
<tstamp/>
<copy file="${basedir}/src/main/resources/net/sourceforge/subsonic/i18n/ResourceBundle_en.properties"
tofile="${project.build.directory}/classes/net/sourceforge/subsonic/i18n/ResourceBundle.properties"/>
<copy file="${basedir}/src/main/resources/org.libresonic.player/i18n/ResourceBundle_en.properties"
tofile="${project.build.directory}/classes/org.libresonic.player/i18n/ResourceBundle.properties"/>
<echo file="${project.build.directory}/classes/build_number.txt">${buildNumber}</echo>
<echo file="${project.build.directory}/classes/build_date.txt">${DSTAMP}</echo>
<echo file="${project.build.directory}/classes/version.txt">${project.version}</echo>

@ -1,26 +1,26 @@
/*
This file is part of Subsonic.
This file is part of Libresonic.
Subsonic is free software: you can redistribute it and/or modify
Libresonic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Subsonic is distributed in the hope that it will be useful,
Libresonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
Copyright 2009 (C) Sindre Mehus
*/
package net.sourceforge.subsonic;
package org.libresonic.player;
import net.sourceforge.subsonic.domain.Version;
import net.sourceforge.subsonic.service.*;
import net.sourceforge.subsonic.util.*;
import org.libresonic.player.domain.Version;
import org.libresonic.player.service.*;
import org.libresonic.player.util.*;
import org.apache.commons.lang.exception.*;
import java.io.*;
@ -28,7 +28,7 @@ import java.text.*;
import java.util.*;
/**
* Logger implementation which logs to SUBSONIC_HOME/subsonic.log.
* Logger implementation which logs to SUBSONIC_HOME/libresonic.log.
* <br/>
* Note: Third party logging libraries (such as log4j and Commons logging) are intentionally not
* used. These libraries causes a lot of headache when deploying to some application servers
@ -167,7 +167,7 @@ public class Logger {
try {
getPrintWriter().println(entry);
} catch (IOException x) {
System.err.println("Failed to write to subsonic.log. " + x);
System.err.println("Failed to write to libresonic.log. " + x);
}
entries.add(entry);
}
@ -180,8 +180,8 @@ public class Logger {
}
public static File getLogFile() {
File subsonicHome = SettingsService.getSubsonicHome();
return new File(subsonicHome, "subsonic.log");
File libresonicHome = SettingsService.getLibresonicHome();
return new File(libresonicHome, "libresonic.log");
}
/**

@ -1,27 +1,27 @@
/*
* This file is part of Subsonic.
* This file is part of Libresonic.
*
* Subsonic is free software: you can redistribute it and/or modify
* Libresonic is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Subsonic is distributed in the hope that it will be useful,
* Libresonic is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
* along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
*
* Copyright 2014 (C) Sindre Mehus
*/
package net.sourceforge.subsonic.ajax;
package org.libresonic.player.ajax;
import java.util.List;
import net.sourceforge.subsonic.domain.ArtistBio;
import org.libresonic.player.domain.ArtistBio;
/**
* @author Sindre Mehus

@ -1,26 +1,26 @@
/*
This file is part of Subsonic.
This file is part of Libresonic.
Subsonic is free software: you can redistribute it and/or modify
Libresonic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Subsonic is distributed in the hope that it will be useful,
Libresonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
Copyright 2009 (C) Sindre Mehus
*/
package net.sourceforge.subsonic.ajax;
package org.libresonic.player.ajax;
import net.sourceforge.subsonic.Logger;
import net.sourceforge.subsonic.service.SecurityService;
import net.sourceforge.subsonic.util.BoundedList;
import org.libresonic.player.Logger;
import org.libresonic.player.service.SecurityService;
import org.libresonic.player.util.BoundedList;
import org.apache.commons.lang.StringUtils;
import org.directwebremoting.WebContext;
import org.directwebremoting.WebContextFactory;

@ -1,22 +1,22 @@
/*
This file is part of Subsonic.
This file is part of Libresonic.
Subsonic is free software: you can redistribute it and/or modify
Libresonic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Subsonic is distributed in the hope that it will be useful,
Libresonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
Copyright 2009 (C) Sindre Mehus
*/
package net.sourceforge.subsonic.ajax;
package org.libresonic.player.ajax;
/**
* Contains info about cover art images for an album.

@ -1,22 +1,22 @@
/*
This file is part of Subsonic.
This file is part of Libresonic.
Subsonic is free software: you can redistribute it and/or modify
Libresonic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Subsonic is distributed in the hope that it will be useful,
Libresonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
Copyright 2009 (C) Sindre Mehus
*/
package net.sourceforge.subsonic.ajax;
package org.libresonic.player.ajax;
import java.io.File;
import java.io.FileOutputStream;
@ -30,11 +30,11 @@ import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.params.HttpConnectionParams;
import net.sourceforge.subsonic.Logger;
import net.sourceforge.subsonic.domain.MediaFile;
import net.sourceforge.subsonic.service.MediaFileService;
import net.sourceforge.subsonic.service.SecurityService;
import net.sourceforge.subsonic.util.StringUtil;
import org.libresonic.player.Logger;
import org.libresonic.player.domain.MediaFile;
import org.libresonic.player.service.MediaFileService;
import org.libresonic.player.service.SecurityService;
import org.libresonic.player.util.StringUtil;
/**
* Provides AJAX-enabled services for changing cover art images.

@ -1,22 +1,22 @@
/*
This file is part of Subsonic.
This file is part of Libresonic.
Subsonic is free software: you can redistribute it and/or modify
Libresonic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Subsonic is distributed in the hope that it will be useful,
Libresonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
Copyright 2009 (C) Sindre Mehus
*/
package net.sourceforge.subsonic.ajax;
package org.libresonic.player.ajax;
/**
* Contains lyrics info for a song.

@ -1,22 +1,22 @@
/*
This file is part of Subsonic.
This file is part of Libresonic.
Subsonic is free software: you can redistribute it and/or modify
Libresonic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Subsonic is distributed in the hope that it will be useful,
Libresonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
Copyright 2009 (C) Sindre Mehus
*/
package net.sourceforge.subsonic.ajax;
package org.libresonic.player.ajax;
import java.io.IOException;
import java.io.StringReader;
@ -34,8 +34,8 @@ import org.jdom.Element;
import org.jdom.Namespace;
import org.jdom.input.SAXBuilder;
import net.sourceforge.subsonic.Logger;
import net.sourceforge.subsonic.util.StringUtil;
import org.libresonic.player.Logger;
import org.libresonic.player.util.StringUtil;
/**
* Provides AJAX-enabled services for retrieving song lyrics from chartlyrics.com.

@ -1,22 +1,22 @@
/*
This file is part of Subsonic.
This file is part of Libresonic.
Subsonic is free software: you can redistribute it and/or modify
Libresonic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Subsonic is distributed in the hope that it will be useful,
Libresonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
Copyright 2009 (C) Sindre Mehus
*/
package net.sourceforge.subsonic.ajax;
package org.libresonic.player.ajax;
import java.util.ArrayList;
import java.util.Arrays;
@ -27,16 +27,16 @@ import javax.servlet.http.HttpServletRequest;
import org.directwebremoting.WebContextFactory;
import net.sourceforge.subsonic.Logger;
import net.sourceforge.subsonic.domain.ArtistBio;
import net.sourceforge.subsonic.domain.MediaFile;
import net.sourceforge.subsonic.domain.MusicFolder;
import net.sourceforge.subsonic.domain.UserSettings;
import net.sourceforge.subsonic.service.LastFmService;
import net.sourceforge.subsonic.service.MediaFileService;
import net.sourceforge.subsonic.service.NetworkService;
import net.sourceforge.subsonic.service.SecurityService;
import net.sourceforge.subsonic.service.SettingsService;
import org.libresonic.player.Logger;
import org.libresonic.player.domain.ArtistBio;
import org.libresonic.player.domain.MediaFile;
import org.libresonic.player.domain.MusicFolder;
import org.libresonic.player.domain.UserSettings;
import org.libresonic.player.service.LastFmService;
import org.libresonic.player.service.MediaFileService;
import org.libresonic.player.service.NetworkService;
import org.libresonic.player.service.SecurityService;
import org.libresonic.player.service.SettingsService;
/**
* Provides miscellaneous AJAX-enabled services.

@ -1,22 +1,22 @@
/*
This file is part of Subsonic.
This file is part of Libresonic.
Subsonic is free software: you can redistribute it and/or modify
Libresonic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Subsonic is distributed in the hope that it will be useful,
Libresonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
Copyright 2009 (C) Sindre Mehus
*/
package net.sourceforge.subsonic.ajax;
package org.libresonic.player.ajax;
import java.util.Date;

@ -1,22 +1,22 @@
/*
This file is part of Subsonic.
This file is part of Libresonic.
Subsonic is free software: you can redistribute it and/or modify
Libresonic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Subsonic is distributed in the hope that it will be useful,
Libresonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
Copyright 2009 (C) Sindre Mehus
*/
package net.sourceforge.subsonic.ajax;
package org.libresonic.player.ajax;
/**
* Details about what a user is currently listening to.

@ -1,22 +1,22 @@
/*
This file is part of Subsonic.
This file is part of Libresonic.
Subsonic is free software: you can redistribute it and/or modify
Libresonic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Subsonic is distributed in the hope that it will be useful,
Libresonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
Copyright 2009 (C) Sindre Mehus
*/
package net.sourceforge.subsonic.ajax;
package org.libresonic.player.ajax;
import java.io.File;
import java.util.ArrayList;
@ -29,17 +29,17 @@ import org.apache.commons.lang.StringUtils;
import org.directwebremoting.WebContext;
import org.directwebremoting.WebContextFactory;
import net.sourceforge.subsonic.Logger;
import net.sourceforge.subsonic.domain.AvatarScheme;
import net.sourceforge.subsonic.domain.MediaFile;
import net.sourceforge.subsonic.domain.PlayStatus;
import net.sourceforge.subsonic.domain.Player;
import net.sourceforge.subsonic.domain.UserSettings;
import net.sourceforge.subsonic.service.MediaScannerService;
import net.sourceforge.subsonic.service.PlayerService;
import net.sourceforge.subsonic.service.SettingsService;
import net.sourceforge.subsonic.service.StatusService;
import net.sourceforge.subsonic.util.StringUtil;
import org.libresonic.player.Logger;
import org.libresonic.player.domain.AvatarScheme;
import org.libresonic.player.domain.MediaFile;
import org.libresonic.player.domain.PlayStatus;
import org.libresonic.player.domain.Player;
import org.libresonic.player.domain.UserSettings;
import org.libresonic.player.service.MediaScannerService;
import org.libresonic.player.service.PlayerService;
import org.libresonic.player.service.SettingsService;
import org.libresonic.player.service.StatusService;
import org.libresonic.player.util.StringUtil;
/**
* Provides AJAX-enabled services for retrieving the currently playing file and directory.

@ -1,26 +1,26 @@
/*
This file is part of Subsonic.
This file is part of Libresonic.
Subsonic is free software: you can redistribute it and/or modify
Libresonic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Subsonic is distributed in the hope that it will be useful,
Libresonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
Copyright 2009 (C) Sindre Mehus
*/
package net.sourceforge.subsonic.ajax;
package org.libresonic.player.ajax;
import java.util.List;
import net.sourceforge.subsonic.util.StringUtil;
import org.libresonic.player.util.StringUtil;
/**
* The playlist of a player.

@ -1,22 +1,22 @@
/*
This file is part of Subsonic.
This file is part of Libresonic.
Subsonic is free software: you can redistribute it and/or modify
Libresonic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Subsonic is distributed in the hope that it will be useful,
Libresonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
Copyright 2009 (C) Sindre Mehus
*/
package net.sourceforge.subsonic.ajax;
package org.libresonic.player.ajax;
import java.util.ArrayList;
import java.util.Arrays;
@ -35,29 +35,29 @@ import org.springframework.web.servlet.support.RequestContextUtils;
import com.google.common.base.Function;
import com.google.common.collect.Lists;
import net.sourceforge.subsonic.dao.MediaFileDao;
import net.sourceforge.subsonic.dao.PlayQueueDao;
import net.sourceforge.subsonic.domain.MediaFile;
import net.sourceforge.subsonic.domain.MusicFolder;
import net.sourceforge.subsonic.domain.PlayQueue;
import net.sourceforge.subsonic.domain.Player;
import net.sourceforge.subsonic.domain.PodcastEpisode;
import net.sourceforge.subsonic.domain.PodcastStatus;
import net.sourceforge.subsonic.domain.SavedPlayQueue;
import net.sourceforge.subsonic.domain.UrlRedirectType;
import net.sourceforge.subsonic.domain.UserSettings;
import net.sourceforge.subsonic.service.JukeboxService;
import net.sourceforge.subsonic.service.LastFmService;
import net.sourceforge.subsonic.service.MediaFileService;
import net.sourceforge.subsonic.service.PlayerService;
import net.sourceforge.subsonic.service.PlaylistService;
import net.sourceforge.subsonic.service.PodcastService;
import net.sourceforge.subsonic.service.RatingService;
import net.sourceforge.subsonic.service.SearchService;
import net.sourceforge.subsonic.service.SecurityService;
import net.sourceforge.subsonic.service.SettingsService;
import net.sourceforge.subsonic.service.TranscodingService;
import net.sourceforge.subsonic.util.StringUtil;
import org.libresonic.player.dao.MediaFileDao;
import org.libresonic.player.dao.PlayQueueDao;
import org.libresonic.player.domain.MediaFile;
import org.libresonic.player.domain.MusicFolder;
import org.libresonic.player.domain.PlayQueue;
import org.libresonic.player.domain.Player;
import org.libresonic.player.domain.PodcastEpisode;
import org.libresonic.player.domain.PodcastStatus;
import org.libresonic.player.domain.SavedPlayQueue;
import org.libresonic.player.domain.UrlRedirectType;
import org.libresonic.player.domain.UserSettings;
import org.libresonic.player.service.JukeboxService;
import org.libresonic.player.service.LastFmService;
import org.libresonic.player.service.MediaFileService;
import org.libresonic.player.service.PlayerService;
import org.libresonic.player.service.PlaylistService;
import org.libresonic.player.service.PodcastService;
import org.libresonic.player.service.RatingService;
import org.libresonic.player.service.SearchService;
import org.libresonic.player.service.SecurityService;
import org.libresonic.player.service.SettingsService;
import org.libresonic.player.service.TranscodingService;
import org.libresonic.player.util.StringUtil;
/**
* Provides AJAX-enabled services for manipulating the play queue of a player.
@ -78,7 +78,7 @@ public class PlayQueueService {
private SearchService searchService;
private RatingService ratingService;
private PodcastService podcastService;
private net.sourceforge.subsonic.service.PlaylistService playlistService;
private org.libresonic.player.service.PlaylistService playlistService;
private MediaFileDao mediaFileDao;
private PlayQueueDao playQueueDao;
@ -141,7 +141,7 @@ public class PlayQueueService {
List<Integer> ids = MediaFile.toIdList(playQueue.getFiles());
Integer currentId = currentSongIndex == -1 ? null : playQueue.getFile(currentSongIndex).getId();
SavedPlayQueue savedPlayQueue = new SavedPlayQueue(null, username, ids, currentId, positionMillis, new Date(), "Subsonic");
SavedPlayQueue savedPlayQueue = new SavedPlayQueue(null, username, ids, currentId, positionMillis, new Date(), "Libresonic");
playQueueDao.savePlayQueue(savedPlayQueue);
}

@ -1,27 +1,27 @@
/*
This file is part of Subsonic.
This file is part of Libresonic.
Subsonic is free software: you can redistribute it and/or modify
Libresonic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Subsonic is distributed in the hope that it will be useful,
Libresonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
Copyright 2009 (C) Sindre Mehus
*/
package net.sourceforge.subsonic.ajax;
package org.libresonic.player.ajax;
import java.util.List;
import net.sourceforge.subsonic.domain.MediaFile;
import net.sourceforge.subsonic.domain.Playlist;
import org.libresonic.player.domain.MediaFile;
import org.libresonic.player.domain.Playlist;
/**
* The playlist of a player.

@ -1,33 +1,33 @@
/*
This file is part of Subsonic.
This file is part of Libresonic.
Subsonic is free software: you can redistribute it and/or modify
Libresonic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Subsonic is distributed in the hope that it will be useful,
Libresonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
Copyright 2009 (C) Sindre Mehus
*/
package net.sourceforge.subsonic.ajax;
import net.sourceforge.subsonic.dao.MediaFileDao;
import net.sourceforge.subsonic.domain.MediaFile;
import net.sourceforge.subsonic.domain.MusicFolder;
import net.sourceforge.subsonic.domain.Player;
import net.sourceforge.subsonic.domain.Playlist;
import net.sourceforge.subsonic.i18n.SubsonicLocaleResolver;
import net.sourceforge.subsonic.service.MediaFileService;
import net.sourceforge.subsonic.service.PlayerService;
import net.sourceforge.subsonic.service.SecurityService;
import net.sourceforge.subsonic.service.SettingsService;
package org.libresonic.player.ajax;
import org.libresonic.player.dao.MediaFileDao;
import org.libresonic.player.domain.MediaFile;
import org.libresonic.player.domain.MusicFolder;
import org.libresonic.player.domain.Player;
import org.libresonic.player.domain.Playlist;
import org.libresonic.player.i18n.LibresonicLocaleResolver;
import org.libresonic.player.service.MediaFileService;
import org.libresonic.player.service.PlayerService;
import org.libresonic.player.service.SecurityService;
import org.libresonic.player.service.SettingsService;
import org.directwebremoting.WebContextFactory;
import javax.servlet.http.HttpServletRequest;
@ -50,11 +50,11 @@ public class PlaylistService {
private MediaFileService mediaFileService;
private SecurityService securityService;
private net.sourceforge.subsonic.service.PlaylistService playlistService;
private org.libresonic.player.service.PlaylistService playlistService;
private MediaFileDao mediaFileDao;
private SettingsService settingsService;
private PlayerService playerService;
private SubsonicLocaleResolver localeResolver;
private LibresonicLocaleResolver localeResolver;
public List<Playlist> getReadablePlaylists() {
HttpServletRequest request = WebContextFactory.get().getHttpServletRequest();
@ -139,7 +139,7 @@ public class PlaylistService {
playlist.setChanged(now);
playlist.setShared(false);
ResourceBundle bundle = ResourceBundle.getBundle("net.sourceforge.subsonic.i18n.ResourceBundle", locale);
ResourceBundle bundle = ResourceBundle.getBundle("org.libresonic.player.i18n.ResourceBundle", locale);
playlist.setName(bundle.getString("top.starred") + " " + dateFormat.format(now));
playlistService.createPlaylist(playlist);
@ -236,7 +236,7 @@ public class PlaylistService {
return getPlaylist(id);
}
public void setPlaylistService(net.sourceforge.subsonic.service.PlaylistService playlistService) {
public void setPlaylistService(org.libresonic.player.service.PlaylistService playlistService) {
this.playlistService = playlistService;
}
@ -260,7 +260,7 @@ public class PlaylistService {
this.playerService = playerService;
}
public void setLocaleResolver(SubsonicLocaleResolver localeResolver) {
public void setLocaleResolver(LibresonicLocaleResolver localeResolver) {
this.localeResolver = localeResolver;
}
}

@ -1,22 +1,22 @@
/*
This file is part of Subsonic.
This file is part of Libresonic.
Subsonic is free software: you can redistribute it and/or modify
Libresonic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Subsonic is distributed in the hope that it will be useful,
Libresonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
Copyright 2009 (C) Sindre Mehus
*/
package net.sourceforge.subsonic.ajax;
package org.libresonic.player.ajax;
/**
* Media folder scanning status.

@ -1,22 +1,22 @@
/*
* This file is part of Subsonic.
* This file is part of Libresonic.
*
* Subsonic is free software: you can redistribute it and/or modify
* Libresonic is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Subsonic is distributed in the hope that it will be useful,
* Libresonic is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
* along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
*
* Copyright 2014 (C) Sindre Mehus
*/
package net.sourceforge.subsonic.ajax;
package org.libresonic.player.ajax;
/**
* Contains info about a similar artist.

@ -1,27 +1,27 @@
/*
This file is part of Subsonic.
This file is part of Libresonic.
Subsonic is free software: you can redistribute it and/or modify
Libresonic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Subsonic is distributed in the hope that it will be useful,
Libresonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
Copyright 2009 (C) Sindre Mehus
*/
package net.sourceforge.subsonic.ajax;
package org.libresonic.player.ajax;
import net.sourceforge.subsonic.Logger;
import net.sourceforge.subsonic.dao.MediaFileDao;
import net.sourceforge.subsonic.domain.User;
import net.sourceforge.subsonic.service.SecurityService;
import org.libresonic.player.Logger;
import org.libresonic.player.dao.MediaFileDao;
import org.libresonic.player.domain.User;
import org.libresonic.player.service.SecurityService;
import org.directwebremoting.WebContext;
import org.directwebremoting.WebContextFactory;

@ -1,33 +1,33 @@
/*
This file is part of Subsonic.
This file is part of Libresonic.
Subsonic is free software: you can redistribute it and/or modify
Libresonic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Subsonic is distributed in the hope that it will be useful,
Libresonic is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Subsonic. If not, see <http://www.gnu.org/licenses/>.
along with Libresonic. If not, see <http://www.gnu.org/licenses/>.
Copyright 2009 (C) Sindre Mehus
*/
package net.sourceforge.subsonic.ajax;
package org.libresonic.player.ajax;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang.ObjectUtils;
import org.apache.commons.lang.StringUtils;
import net.sourceforge.subsonic.Logger;
import net.sourceforge.subsonic.domain.MediaFile;
import net.sourceforge.subsonic.service.MediaFileService;
import net.sourceforge.subsonic.service.metadata.MetaData;
import net.sourceforge.subsonic.service.metadata.MetaDataParser;
import net.sourceforge.subsonic.service.metadata.MetaDataParserFactory;
import org.libresonic.player.Logger;
import org.libresonic.player.domain.MediaFile;
import org.libresonic.player.service.MediaFileService;
import org.libresonic.player.service.metadata.MetaData;
import org.libresonic.player.service.metadata.MetaDataParser;
import org.libresonic.player.service.metadata.MetaDataParserFactory;
/**
* Provides AJAX-enabled services for editing tags in music files.

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save