-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mvn-ize build and upgrade to log4j 2
- Loading branch information
Showing
18 changed files
with
3,890 additions
and
3,816 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>com.lightstreamer</groupId> | ||
<artifactId>example-LeapMotion-adapter-java</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>example-LeapMotion-adapter-java</name> | ||
<url>http://maven.apache.org</url> | ||
|
||
<properties> | ||
<maven.compiler.target>1.8</maven.compiler.target> | ||
<maven.compiler.source>1.8</maven.compiler.source> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<build> | ||
<sourceDirectory>src</sourceDirectory> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.1</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>exec-maven-plugin</artifactId> | ||
<version>1.2.1</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>java</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<mainClass>com.lightstreamer.adapters.LeapMotionDemo.LeapMotionMetaDataAdapter</mainClass> | ||
</configuration> | ||
</plugin> | ||
|
||
</plugins> | ||
</build> | ||
|
||
<repositories> | ||
<repository> | ||
<id>Twitter</id> | ||
<name>Twitter repository</name> | ||
<url>https://maven.twttr.com/</url> | ||
</repository> | ||
<repository> | ||
<id>Anahata</id> | ||
<name>Anahata Repository</name> | ||
<url>http://repo.anahata.uno/artifactory/anahata-public/</url> | ||
</repository> | ||
|
||
</repositories> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.13.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.lightstreamer</groupId> | ||
<artifactId>ls-adapter-inprocess</artifactId> | ||
<version>7.3.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.logging.log4j</groupId> | ||
<artifactId>log4j-core</artifactId> | ||
<version>2.13.3</version> | ||
</dependency> | ||
<!-- https://mvnrepository.com/artifact/javax.jnlp/jnlp --> | ||
<dependency> | ||
<groupId>javax.jnlp</groupId> | ||
<artifactId>jnlp</artifactId> | ||
<version>7.0</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
106 changes: 53 additions & 53 deletions
106
...er/adapters/LeapMotionDemo/Constants.java → ...er/adapters/LeapMotionDemo/Constants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,53 @@ | ||
/* | ||
Copyright (c) Lightstreamer Srl | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
package com.lightstreamer.adapters.LeapMotionDemo; | ||
|
||
public class Constants { | ||
|
||
public static String USER_SUBSCRIPTION = "user_"; | ||
public static String ROOMPOSITION_SUBSCRIPTION = "roompos_"; | ||
public static String ROOMCHATLIST_SUBSCRIPTION = "roomchatlist_"; | ||
|
||
public static String SPLIT_CHAR_REG = "\\|"; | ||
public static String SPLIT_CHAR = "|"; | ||
|
||
public static final String LOGGER_CAT = "LS_demos_Logger.LeapDemo.adapters"; | ||
public static final String CHAT_CAT = "LS_demos_Logger.LeapDemo.chat"; | ||
public static final String WORLD_CAT = "LS_demos_Logger.LeapDemo.world"; | ||
|
||
public static final String USER_ID = "USER_ID"; | ||
|
||
public static final String NICK_MESSAGE = "nick|"; | ||
public static final String STATUS_MESSAGE = "status|"; | ||
public static final String VOID_STATUS_ID = "0"; | ||
public static final String ENTER_ROOM = "enter|"; | ||
public static final String EXIT_ROOM = "leave|"; | ||
|
||
public static final String GRAB_MESSAGE = "grab|"; | ||
public static final String RELEASE_MESSAGE = "release|"; | ||
public static final String MOVE_MESSAGE = "move|"; | ||
|
||
public static final int BASE_RATE = 10; | ||
public static final int FRAME_INTERVAL = 50; | ||
|
||
|
||
public static String getVal(String original, String type) { | ||
if(original.indexOf(type) == 0) { | ||
return original.substring(type.length()); | ||
} | ||
return null; | ||
} | ||
} | ||
/* | ||
Copyright (c) Lightstreamer Srl | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
package com.lightstreamer.adapters.LeapMotionDemo; | ||
|
||
public class Constants { | ||
|
||
public static String USER_SUBSCRIPTION = "user_"; | ||
public static String ROOMPOSITION_SUBSCRIPTION = "roompos_"; | ||
public static String ROOMCHATLIST_SUBSCRIPTION = "roomchatlist_"; | ||
|
||
public static String SPLIT_CHAR_REG = "\\|"; | ||
public static String SPLIT_CHAR = "|"; | ||
|
||
public static final String LOGGER_CAT = "LS_demos_Logger.LeapDemo.adapters"; | ||
public static final String CHAT_CAT = "LS_demos_Logger.LeapDemo.chat"; | ||
public static final String WORLD_CAT = "LS_demos_Logger.LeapDemo.world"; | ||
|
||
public static final String USER_ID = "USER_ID"; | ||
|
||
public static final String NICK_MESSAGE = "nick|"; | ||
public static final String STATUS_MESSAGE = "status|"; | ||
public static final String VOID_STATUS_ID = "0"; | ||
public static final String ENTER_ROOM = "enter|"; | ||
public static final String EXIT_ROOM = "leave|"; | ||
|
||
public static final String GRAB_MESSAGE = "grab|"; | ||
public static final String RELEASE_MESSAGE = "release|"; | ||
public static final String MOVE_MESSAGE = "move|"; | ||
|
||
public static final int BASE_RATE = 10; | ||
public static final int FRAME_INTERVAL = 50; | ||
|
||
|
||
public static String getVal(String original, String type) { | ||
if(original.indexOf(type) == 0) { | ||
return original.substring(type.length()); | ||
} | ||
return null; | ||
} | ||
} |
Oops, something went wrong.