now plugins are not shaded with log4j, so take 10 times less place (about 40k each)

This commit is contained in:
magenoxx 2010-11-05 14:20:29 +00:00
parent 80ce52bd24
commit c346276b0d
6 changed files with 11 additions and 13 deletions

Binary file not shown.

View file

@ -37,6 +37,11 @@
<artifactId>jspf-core</artifactId>
<version>0.9.1</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.9</version>
</dependency>
</dependencies>
<build>

View file

@ -31,6 +31,7 @@
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.9</version>
<scope>provided</scope>
</dependency>
</dependencies>

View file

@ -31,16 +31,16 @@ public class ThemePluginImpl implements ThemePlugin {
}
public String toString() {
return "[Theme plugin, version 0.1]";
return "[Theme plugin, version 0.2]";
}
public void apply(Map<String, JComponent> ui) {
log.info("Adding background...");
//log.info("Adding background...");
try {
BufferedImage background = ImageIO.read(this.getClass().getResourceAsStream("/green.jpg"));
BufferedImage background = ImageIO.read(this.getClass().getResourceAsStream("/dk_gray.jpg"));
if (background == null)
throw new FileNotFoundException("Couldn't find green.jpg in resources.");
throw new FileNotFoundException("Couldn't find dk_gray.jpg in resources.");
if (ui.containsKey("gamePanel") && ui.containsKey("jLayeredPane")) {
ImagePanel bgPanel = new ImagePanel(background, ImagePanel.TILED);
@ -62,7 +62,7 @@ public class ThemePluginImpl implements ThemePlugin {
return;
}
log.info("Done.");
//log.info("Done.");
}
private void unsetOpaque(JComponent c) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View file

@ -1,8 +0,0 @@
#default levels
log4j.rootLogger=debug, console
#console log
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%-5p [%d{yyyy-MM-dd HH:mm [ss:SSS]}] %C{1}[%t]: %m%n
log4j.appender.console.Threshold=DEBUG