Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for missing documentation in test phase.

  • Loading branch information...
commit 1bde3b03c04f46399166347258544bf65296dc9a 1 parent f8a9639
@Raptor399 Raptor399 authored
View
5 src/main/java/net/pms/newgui/HelpTab.java
@@ -33,6 +33,8 @@
import javax.swing.event.HyperlinkEvent;
import javax.swing.event.HyperlinkListener;
+import net.pms.util.PropertiesUtil;
+
import com.jgoodies.forms.builder.PanelBuilder;
import com.jgoodies.forms.layout.CellConstraints;
import com.jgoodies.forms.layout.FormLayout;
@@ -68,7 +70,8 @@ public JComponent build() {
try {
// Read the HTML help file
- File file = new File("documentation/index.html");
+ String documentationDir = PropertiesUtil.getProjectProperties().get("project.documentation.dir");
+ File file = new File(documentationDir + "/index.html");
// Display the HTML help file in the editor
editorPane.setPage(file.toURI().toURL());
View
1  src/main/resources/project.properties
@@ -4,6 +4,7 @@ project.version=${project.version}
#project.renderers.dir=renderers
project.renderers.dir=renderers, src/main/external-resources/renderers
project.binaries.dir=
+project.documentation.dir=documentation
project.logback=logback.xml
project.logback.headless=logback.headless.xml
View
1  src/test/resources/project.properties
@@ -3,6 +3,7 @@ project.name=${project.name}
project.version=${project.version}
project.renderers.dir=src/main/external-resources/renderers
project.binaries=${project.binaries}
+project.documentation.dir=src/main/external-resources/documentation
project.logback=src/main/external-resources/logback.xml
project.logback.headless=src/main/external-resources/logback.headless.xml
Please sign in to comment.
Something went wrong with that request. Please try again.