ReportServer: update package name and configure Maven to generate a META-INF file with the main class name included.

This commit is contained in:
Keir Nellyer 2016-02-02 22:28:18 +00:00
parent a51c579f74
commit a8f9c91534
7 changed files with 24 additions and 11 deletions

View File

@ -51,8 +51,8 @@ public class SnapshotPublisher
}
private static final String URL_PREFIX = "http://file.mineplex.com/chatsnap/view.php?identifier=";
public static final String CHANNEL_DEPLOY = "chatsnap:deploy";
public static final String CHANNEL_DESTROY = "chatsnap:destroy";
public static final String CHANNEL_DEPLOY = "reportserver:deploy";
public static final String CHANNEL_DESTROY = "reportserver:destroy";
private JavaPlugin _plugin;
private JedisPool _jedisPool;

View File

@ -43,4 +43,20 @@
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Main-Class>mineplex.reportserver.ReportServer</Main-Class>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,3 +0,0 @@
Manifest-Version: 1.0
Main-Class: mineplex.chatsnap.ReportServer

View File

@ -1,4 +1,4 @@
package mineplex.chatsnap;
package mineplex.reportserver;
import java.io.File;
import java.io.FileFilter;

View File

@ -1,4 +1,4 @@
package mineplex.chatsnap;
package mineplex.reportserver;
import java.io.BufferedReader;
import java.io.File;

View File

@ -1,4 +1,4 @@
package mineplex.chatsnap;
package mineplex.reportserver;
import java.util.logging.Level;
import java.util.logging.Logger;

View File

@ -1,4 +1,4 @@
package mineplex.chatsnap;
package mineplex.reportserver;
import java.io.File;
import java.util.concurrent.Executors;
@ -25,8 +25,8 @@ import redis.clients.jedis.JedisPool;
*/
public class ReportServer
{
public static final String CHANNEL_DEPLOY = "chatsnap:deploy";
public static final String CHANNEL_DESTROY = "chatsnap:destroy";
public static final String CHANNEL_DEPLOY = "reportserver:deploy";
public static final String CHANNEL_DESTROY = "reportserver:destroy";
private static final String[] CHANNELS = new String[]{CHANNEL_DEPLOY, CHANNEL_DESTROY};