Updated build in pom.xml to include classes that were removed for

minimize. This required a dummy clas setup as well in the Harmony
Server.
This commit is contained in:
Admin
2015-11-04 11:00:46 -06:00
parent 2e6944d840
commit 718ba5a5c2
2 changed files with 27 additions and 8 deletions

30
pom.xml
View File

@@ -5,7 +5,7 @@
<groupId>com.bwssystems.HABridge</groupId> <groupId>com.bwssystems.HABridge</groupId>
<artifactId>ha-bridge</artifactId> <artifactId>ha-bridge</artifactId>
<version>1.0.6</version> <version>1.0.7</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>HA Bridge</name> <name>HA Bridge</name>
@@ -80,11 +80,6 @@
<artifactId>smack-core</artifactId> <artifactId>smack-core</artifactId>
<version>4.0.7</version> <version>4.0.7</version>
</dependency> </dependency>
<dependency>
<groupId>org.igniterealtime.smack</groupId>
<artifactId>smack-debug</artifactId>
<version>4.0.7</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
@@ -126,11 +121,12 @@
<exclude>META-INF/*.RSA</exclude> <exclude>META-INF/*.RSA</exclude>
<exclude>META-INF/*.txt</exclude> <exclude>META-INF/*.txt</exclude>
<exclude>META-INF/maven/**</exclude> <exclude>META-INF/maven/**</exclude>
<exclude>META-INF/services/**</exclude>
<exclude>META-INF/DEPENDENCIES</exclude>
<exclude>about_files/**</exclude> <exclude>about_files/**</exclude>
</excludes> </excludes>
</filter> </filter>
<filter>
<artifact>*:*</artifact>
</filter>
<filter> <filter>
<artifact>org.slf4j:*</artifact> <artifact>org.slf4j:*</artifact>
<includes> <includes>
@@ -143,6 +139,24 @@
<include>**</include> <include>**</include>
</includes> </includes>
</filter> </filter>
<filter>
<artifact>xpp3:xpp3</artifact>
<includes>
<include>**</include>
</includes>
</filter>
<filter>
<artifact>org.igniterealtime.smack:*</artifact>
<includes>
<include>**</include>
</includes>
</filter>
<filter>
<artifact>com.github.bwssytems:harmony-java-client</artifact>
<includes>
<include>**</include>
</includes>
</filter>
</filters> </filters>
<transformers> <transformers>
<transformer <transformer

View File

@@ -15,6 +15,7 @@ import net.whistlingfish.harmony.ActivityChangeListener;
import net.whistlingfish.harmony.HarmonyClient; import net.whistlingfish.harmony.HarmonyClient;
import net.whistlingfish.harmony.HarmonyClientModule; import net.whistlingfish.harmony.HarmonyClientModule;
import net.whistlingfish.harmony.config.Activity; import net.whistlingfish.harmony.config.Activity;
import net.whistlingfish.harmony.protocol.OAReplyProvider;
public class HarmonyServer { public class HarmonyServer {
@Inject @Inject
@@ -22,12 +23,14 @@ public class HarmonyServer {
private HarmonyHandler myHarmony; private HarmonyHandler myHarmony;
private DevModeResponse devResponse; private DevModeResponse devResponse;
private OAReplyProvider dummyProvider;
private Logger log = LoggerFactory.getLogger(HarmonyServer.class); private Logger log = LoggerFactory.getLogger(HarmonyServer.class);
public HarmonyServer() { public HarmonyServer() {
super(); super();
myHarmony = null; myHarmony = null;
dummyProvider = null;
} }
public static HarmonyServer setup(BridgeSettings bridgeSettings) throws Exception { public static HarmonyServer setup(BridgeSettings bridgeSettings) throws Exception {
@@ -47,6 +50,8 @@ public class HarmonyServer {
private void execute(BridgeSettings mySettings) throws Exception { private void execute(BridgeSettings mySettings) throws Exception {
Boolean noopCalls = Boolean.parseBoolean(System.getProperty("noop.calls", "false")); Boolean noopCalls = Boolean.parseBoolean(System.getProperty("noop.calls", "false"));
String modeString = ""; String modeString = "";
if(dummyProvider != null)
log.debug("something is very wrong as dummyProvider is not null...");
if(mySettings.isDevMode()) if(mySettings.isDevMode())
modeString = " (development mode)"; modeString = " (development mode)";
if(noopCalls) if(noopCalls)