mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
reorganize resource files
This commit is contained in:
@@ -104,7 +104,7 @@ public class Presenter implements IPlugInPort {
|
|||||||
// Read the latest version from the local update.xml file
|
// Read the latest version from the local update.xml file
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
URL resource = Presenter.class.getClassLoader().getResource("org/diylc/presenter/update.xml");
|
URL resource = Presenter.class.getResource("update.xml");
|
||||||
if (resource != null) {
|
if (resource != null) {
|
||||||
BufferedInputStream in = new BufferedInputStream(resource.openStream());
|
BufferedInputStream in = new BufferedInputStream(resource.openStream());
|
||||||
XStream xStream = new XStream(new DomDriver());
|
XStream xStream = new XStream(new DomDriver());
|
||||||
@@ -131,7 +131,7 @@ public class Presenter implements IPlugInPort {
|
|||||||
private static Map<String, List<Template>> defaultVariantMap = null;
|
private static Map<String, List<Template>> defaultVariantMap = null;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
URL resource = Presenter.class.getClassLoader().getResource("org/diylc/presenter/variants.xml");
|
URL resource = Presenter.class.getResource("variants.xml");
|
||||||
if (resource != null) {
|
if (resource != null) {
|
||||||
BufferedInputStream in = new BufferedInputStream(resource.openStream());
|
BufferedInputStream in = new BufferedInputStream(resource.openStream());
|
||||||
XStream xStream = new XStream(new DomDriver());
|
XStream xStream = new XStream(new DomDriver());
|
||||||
|
|||||||
@@ -2701,7 +2701,7 @@
|
|||||||
<versionNumber>
|
<versionNumber>
|
||||||
<major>4</major>
|
<major>4</major>
|
||||||
<minor>0</minor>
|
<minor>0</minor>
|
||||||
<build>0</build>
|
<build>1</build>
|
||||||
</versionNumber>
|
</versionNumber>
|
||||||
<releaseDate>2019-03-24 00:00:00.000 CET</releaseDate>
|
<releaseDate>2019-03-24 00:00:00.000 CET</releaseDate>
|
||||||
<name></name>
|
<name></name>
|
||||||
|
|||||||
Binary file not shown.
@@ -149,6 +149,8 @@
|
|||||||
</zip>
|
</zip>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="full" depends="win,mac"/>
|
||||||
|
|
||||||
<target name="javadoc">
|
<target name="javadoc">
|
||||||
<javadoc access="public" author="true" classpathref="class.path" destdir="doc" nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false" notree="false" source="1.6" splitindex="true" use="true" version="true">
|
<javadoc access="public" author="true" classpathref="class.path" destdir="doc" nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false" notree="false" source="1.6" splitindex="true" use="true" version="true">
|
||||||
<fileset dir="${src.dir}">
|
<fileset dir="${src.dir}">
|
||||||
|
|||||||
@@ -14,10 +14,6 @@ AlwaysShowDirOnReadyPage=yes
|
|||||||
[Files]
|
[Files]
|
||||||
Source: "diylc.exe"; DestDir: "{app}"
|
Source: "diylc.exe"; DestDir: "{app}"
|
||||||
Source: "diylc.l4j.ini"; DestDir: "{app}"
|
Source: "diylc.l4j.ini"; DestDir: "{app}"
|
||||||
Source: "update.xml"; DestDir: "{app}"
|
|
||||||
Source: "variants.xml"; DestDir: "{app}"
|
|
||||||
Source: "config.properties"; DestDir: "{app}"
|
|
||||||
Source: "splash.png"; DestDir: "{app}"
|
|
||||||
Source: "diylc.ico"; DestDir: "{app}"
|
Source: "diylc.ico"; DestDir: "{app}"
|
||||||
Source: "build\jar\diylc.jar"; DestDir: "{app}"
|
Source: "build\jar\diylc.jar"; DestDir: "{app}"
|
||||||
Source: "build\jar\lib\*"; DestDir: "{app}\lib"
|
Source: "build\jar\lib\*"; DestDir: "{app}\lib"
|
||||||
|
|||||||
Binary file not shown.
@@ -61,7 +61,15 @@ public class DIYLCStarter {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
// Initialize splash screen
|
// Initialize splash screen
|
||||||
final SplashScreen splash = SplashScreen.getSplashScreen();
|
final SplashScreen splash = SplashScreen.getSplashScreen();
|
||||||
|
URL splashUrl = Presenter.class.getClassLoader().getResource("org/diylc/splash.png");
|
||||||
|
if (splash != null) {
|
||||||
|
try {
|
||||||
|
splash.setImageURL(splashUrl);
|
||||||
new DIYLCSplash(splash).start();
|
new DIYLCSplash(splash).start();
|
||||||
|
} catch (NullPointerException | IllegalStateException | IOException e1) {
|
||||||
|
LOG.error("Could not initialize splash screen", e1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
URL url = DIYLCStarter.class.getResource("log4j.properties");
|
URL url = DIYLCStarter.class.getResource("log4j.properties");
|
||||||
Properties properties = new Properties();
|
Properties properties = new Properties();
|
||||||
@@ -148,7 +156,7 @@ public class DIYLCStarter {
|
|||||||
properties = new Properties();
|
properties = new Properties();
|
||||||
try {
|
try {
|
||||||
LOG.info("Injecting default properties.");
|
LOG.info("Injecting default properties.");
|
||||||
URL resource = Presenter.class.getClassLoader().getResource("config.properties");
|
URL resource = Presenter.class.getResource("config.properties");
|
||||||
if (resource != null) {
|
if (resource != null) {
|
||||||
properties.load(resource.openStream());
|
properties.load(resource.openStream());
|
||||||
PropertyInjector.injectProperties(properties);
|
PropertyInjector.injectProperties(properties);
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -442,7 +442,7 @@ public class MainFrame extends JFrame implements ISwingUI {
|
|||||||
fileName = "Untitled";
|
fileName = "Untitled";
|
||||||
}
|
}
|
||||||
String modified = (Boolean) params[1] ? " (modified)" : "";
|
String modified = (Boolean) params[1] ? " (modified)" : "";
|
||||||
setTitle(String.format("DIYLC G3 version %s.%s - %s %s", plugInPort.getCurrentVersionNumber().getMinor(),
|
setTitle(String.format("DIYLC G4 version %s.%s - %s %s", plugInPort.getCurrentVersionNumber().getMinor(),
|
||||||
plugInPort.getCurrentVersionNumber().getBuild(), fileName, modified));
|
plugInPort.getCurrentVersionNumber().getBuild(), fileName, modified));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user