Commit e2bfd647 e2bfd6475c25410d8b6b2f16baaa1f6739226ac4 by root

save

1 parent 8a68abe2
Showing 75 changed files with 499 additions and 190 deletions
......@@ -145,40 +145,33 @@
</dependency>
<dependency>
<groupId>org.emercit</groupId>
<artifactId>ethmanager</artifactId>
<version>1.3</version>
<groupId>org.emercit</groupId>
<artifactId>ethmanager</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>org.emercit</groupId>
<artifactId>dnsmanager</artifactId>
<version>1.8</version>
<groupId>org.emercit</groupId>
<artifactId>dnsmanager</artifactId>
<version>1.11</version>
</dependency>
<dependency>
<groupId>org.emercit</groupId>
<artifactId>proxymanager</artifactId>
<version>1.5</version>
<groupId>org.emercit</groupId>
<artifactId>proxymanager</artifactId>
<version>1.11</version>
</dependency>
<dependency>
<groupId>org.emercit</groupId>
<artifactId>remoteservers</artifactId>
<version>1.3</version>
<groupId>org.emercit</groupId>
<artifactId>remoteservers</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>org.emercit</groupId>
<artifactId>pckutils</artifactId>
<version>1.0</version>
<groupId>org.emercit</groupId>
<artifactId>pckutils</artifactId>
<version>1.5</version>
</dependency>
<dependency>
......@@ -187,36 +180,27 @@
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.emercit</groupId>
<artifactId>gsmmanager</artifactId>
<version>1.0</version>
<version>1.5</version>
</dependency>
<dependency>
<groupId>org.emercit</groupId>
<artifactId>xmldbmanager</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>org.emercit</groupId>
<artifactId>projecttools</artifactId>
<version>1.5</version>
</dependency>
</dependencies>
<repositories>
<!-- For testing against latest Spring snapshots -->
<repository>
......
caf9454105e3cbc4ac0b60987090a733
\ No newline at end of file
2ea0b4dad83432842310705dd4c0e3fdbadf9c26
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.emercit</groupId>
<artifactId>dnsmanager</artifactId>
<version>1.10</version>
</project>
ad9eb8fb8152e02706c5107474f1aa59
\ No newline at end of file
ead1074571e63ded55814f78d973ef125d7a4901
\ No newline at end of file
90734e5f904dba36844baf21b38a5480
\ No newline at end of file
692c23945ca97fc63163d562102f5f3605a85fdc
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.emercit</groupId>
<artifactId>dnsmanager</artifactId>
<version>1.11</version>
</project>
10834c90f5a134ed9049c5c5110a52ff
\ No newline at end of file
d980691e392605e05efc354fa3d97e0176d8e7b7
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>org.emercit</groupId>
<artifactId>dnsmanager</artifactId>
<versioning>
<release>1.11</release>
<versions>
<version>1.10</version>
<version>1.11</version>
</versions>
<lastUpdated>20150728122954</lastUpdated>
</versioning>
</metadata>
cb505f81b58d404ebed1c46305618a9c
\ No newline at end of file
ac94d91e75c7e6c954681bc1a95f6f14952eeb2d
\ No newline at end of file
4c351e7edbf051e9df3ec3699da1605d
\ No newline at end of file
3876f90aa045e45d7e9c0a8ad35bfddd907fe663
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.emercit</groupId>
<artifactId>gsmmanager</artifactId>
<version>1.5</version>
</project>
514a3d035547f0629266cb8a4a0ddc15
\ No newline at end of file
de2047aee213538b5b379d3dd17f3ab5bc86a9c7
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>org.emercit</groupId>
<artifactId>gsmmanager</artifactId>
<versioning>
<release>1.5</release>
<versions>
<version>1.5</version>
</versions>
<lastUpdated>20150728083123</lastUpdated>
</versioning>
</metadata>
afd859b5cb72dfbbfb1db8b441d68eae
\ No newline at end of file
a0d7234f16a583466f250762f3c712f442d4f7a7
\ No newline at end of file
d64c197c668b6f7b072b593553c50735
\ No newline at end of file
0c2e88c4fb46bfd97edfaeed0454364c07528659
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.emercit</groupId>
<artifactId>proxymanager</artifactId>
<version>1.10</version>
</project>
8bc0271759b8abdd341a9e4ff8ccaf55
\ No newline at end of file
d106165f1cbcc4d8c049c1de6628eb991a857be3
\ No newline at end of file
5348b5b0ea92ce2f36391f3a95de3e66
\ No newline at end of file
6bb3f471a75406a054b0757cc2f5774d1533220e
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.emercit</groupId>
<artifactId>proxymanager</artifactId>
<version>1.11</version>
</project>
ef6b28a8e81af7e6c5fba92ebe2cf1b5
\ No newline at end of file
178dfbe38a2fa2bbbf3afba5b11a40a56e67c5cb
\ No newline at end of file
......@@ -3,10 +3,12 @@
<groupId>org.emercit</groupId>
<artifactId>proxymanager</artifactId>
<versioning>
<release>1.5</release>
<release>1.11</release>
<versions>
<version>1.5</version>
<version>1.10</version>
<version>1.11</version>
</versions>
<lastUpdated>20150728070304</lastUpdated>
<lastUpdated>20150728095355</lastUpdated>
</versioning>
</metadata>
......
3e946c3bdf4df4bbde5990393ce07047
\ No newline at end of file
22824bfe808ddc373155c767f21f6677
\ No newline at end of file
......
63cad08c472ebec8fd91bceac61f91e698ce1be3
\ No newline at end of file
6fc48f7cc97f2cf9198016ec761aa317d39bdddc
\ No newline at end of file
......
748e75354f1f427487dce16e6fbbf39b
\ No newline at end of file
724c3667292c53a7bb0f16b0bff190877e27e7ba
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.emercit</groupId>
<artifactId>remoteservers</artifactId>
<version>1.5</version>
</project>
f47a1a9d847758a0909f9c1f01d5c998
\ No newline at end of file
ffe0046a88071dbdd7b423bc96262cc10b0afb00
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>org.emercit</groupId>
<artifactId>remoteservers</artifactId>
<versioning>
<release>1.5</release>
<versions>
<version>1.5</version>
</versions>
<lastUpdated>20150728073111</lastUpdated>
</versioning>
</metadata>
a18179a5d0b03b4895433c0762186c1d
\ No newline at end of file
c6b68d1e4f8761bc395df22af34d5d5381d6f3ab
\ No newline at end of file
......@@ -69,14 +69,14 @@ public class ProxyController {
ProxyBean db=new ProxyBean();
db.setId(d.getId());
//db.setId(d.getId());
db.setProtocol(d.getProtocol());
db.setHost(d.getHost());
db.setPort(d.getPort());
db.setLogin(d.getLogin());
db.setPass(d.getPass());
db.setEnabled(d.getEnabled());
db.setAuth(d.getAuth());
// db.setAuth(d.getAuth());
dbs.add(db);
......
......@@ -12,11 +12,11 @@ public enum GSMService {
public GSMBean getGsm() {
return gsm.getGSMInfo();
return gsm.get();
}
public boolean Update(GSMBean m) {
return gsm.setGsmModem(m);
return gsm.set(m);
}
}
\ No newline at end of file
......
......@@ -8,22 +8,26 @@ import java.util.Vector;
import org.emercit.proxymanager.model.ProxyBean;
import org.emercit.proxymanager.service.ProxyLinux;
import org.emercit.proxymanager.service.ProxyDBImpl;
import org.emercit.xmldbmanager.service.Db;
import org.emercit.projecttools.constants.Paths;
public enum ProxyService {
INSTANCE;
private ProxyLinux proxylinux=new ProxyLinux();
private ProxyLinux proxy=new ProxyLinux();
private Db db=new Db(Paths.BEAN_PROXY);
private ProxyDBImpl proxydb=new ProxyDBImpl();
private Vector<String> vStr;
private Vector<ProxyBean> vPb;
public Vector<ProxyBean> getAllProxyBean() {
return proxydb.selectDb();
return (Vector<ProxyBean> )db.select();
}
......@@ -31,8 +35,8 @@ public enum ProxyService {
public boolean Upd(Vector<ProxyBean> beans) {
return proxylinux.Config(beans);
// proxy.Config(beans);
return true;
}
}
......
......@@ -8,7 +8,7 @@ import java.util.Vector;
import org.emercit.remoteservers.model.RemoteServerBean;
import org.emercit.remoteserver.service.RemoteServerDB;
import org.emercit.remoteserver.service.RemSrv;
......@@ -16,20 +16,20 @@ public enum RemoteServerManager {
INSTANCE;
private RemoteServerDB store=new RemoteServerDB();
private RemSrv store=new RemSrv();
private Vector<RemoteServerBean> beans;
public Vector<RemoteServerBean> getAll() {
return store.SelectServers();
return store.get();
}
public RemoteServerBean getByType(String type) {
beans=store.SelectServers();
beans=store.get();
for (RemoteServerBean b:beans) {
......@@ -44,7 +44,7 @@ public enum RemoteServerManager {
public boolean Update(RemoteServerBean b) {
beans=store.SelectServers();
beans=store.get();
for (RemoteServerBean bean:beans) {
......@@ -56,7 +56,7 @@ public enum RemoteServerManager {
bean.setIp(b.getIp());
bean.setPort(b.getPort());
return store.Update(beans);
return store.set(beans);
}
......
......@@ -12,12 +12,12 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
......
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.5
org.eclipse.jdt.core.compiler.source=1.7
......
......@@ -14,6 +14,28 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java-version>1.7</java-version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<executable>${env.JAVA_HOME_7}/bin/javac</executable>
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
......@@ -40,11 +62,51 @@
<artifactId>json-io</artifactId>
<version>4.0.0</version>
</dependency>
</dependencies>
<dependency>
<groupId>org.emercit</groupId>
<artifactId>projecttools</artifactId>
<version>1.5</version>
</dependency>
</dependencies>
<repositories>
<!--other repositories if any-->
<repository>
<id>project.local</id>
<name>project</name>
<url>file:/root/git/hardwareconfig/DevTools/repo</url>
</repository>
</repositories>
</project>
......
......@@ -70,7 +70,7 @@
<groupId>org.emercit</groupId>
<artifactId>projecttools</artifactId>
<version>1.5</version>
</dependency>
</dependency>
</dependencies>
......
......@@ -32,7 +32,6 @@ public class ProxyLinux {
private ProxyBean pmp;
private boolean checkProrocol(String value) {
if (value.equals("http")|| value.equals("ftp") || value.equals("https")) {
......@@ -43,7 +42,7 @@ public class ProxyLinux {
}
private void Config(Vector<ProxyBean> pbs) {
public void Config(Vector<ProxyBean> pbs) {
try {
File file = new File("/etc/environment");
......
package org.emercit.proxymanager.service;
public class ProxyService {
}
......@@ -12,12 +12,12 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
......
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.5
org.eclipse.jdt.core.compiler.source=1.7
......
......@@ -13,6 +13,27 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<executable>${env.JAVA_HOME_7}/bin/javac</executable>
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
......@@ -43,9 +64,30 @@
<version>4.0.0</version>
</dependency>
<dependency>
<groupId>org.emercit</groupId>
<artifactId>xmldbmanager</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>org.emercit</groupId>
<artifactId>projecttools</artifactId>
<version>1.5</version>
</dependency>
</dependencies>
<repositories>
<!--other repositories if any-->
<repository>
<id>project.local</id>
<name>project</name>
<url>file:/root/git/hardwareconfig/DevTools/repo</url>
</repository>
</repositories>
</project>
......
......@@ -5,14 +5,14 @@ import java.util.Vector;
import org.emercit.remoteservers.model.RemoteServerBean;
public interface IRemoteServerDB {
public interface IRemSrv {
public Vector<RemoteServerBean> SelectServers();
public Vector<RemoteServerBean> get();
public boolean Update(Vector<RemoteServerBean> beans);
public boolean set(Vector<RemoteServerBean> beans);
public boolean CreateDB();
public void init();
}
......
package org.emercit.remoteserver.service;
import java.util.Vector;
import java.beans.XMLEncoder;
import java.beans.XMLDecoder;
import java.io.BufferedOutputStream;
import java.io.BufferedInputStream;
import java.io.FileOutputStream;
import java.io.FileInputStream;
import org.apache.log4j.Logger;
import org.emercit.remoteserver.service.IRemSrv;
import org.emercit.remoteservers.model.RemoteServerBean;
import org.emercit.xmldbmanager.service.Db;
import org.emercit.projecttools.constants.Paths;
public class RemSrv implements IRemSrv {
private static final Logger log = Logger.getLogger(RemSrv.class);
private Db db=new Db(Paths.BEAN_REMOTESERVER);
public boolean set(Vector<RemoteServerBean> beans) {
return db.create(beans);
}
public Vector<RemoteServerBean> get() {
return (Vector<RemoteServerBean>)db.select();
}
public void init() {
Vector<RemoteServerBean> beans=new Vector<RemoteServerBean>();
RemoteServerBean rsb=new RemoteServerBean();
rsb.setId(1);
rsb.setIp("127.0.0.1");
rsb.setPort(80);
rsb.setName("");
rsb.setType("szs");
rsb.setTitle("");
beans.add(rsb);
set(beans);
}
}
package org.emercit.remoteserver.service;
import java.util.Vector;
import java.beans.XMLEncoder;
import java.beans.XMLDecoder;
import java.io.BufferedOutputStream;
import java.io.BufferedInputStream;
import java.io.FileOutputStream;
import java.io.FileInputStream;
import org.apache.log4j.Logger;
import org.emercit.remoteserver.service.IRemoteServerDB;
import org.emercit.remoteservers.model.RemoteServerBean;
public class RemoteServerDB implements IRemoteServerDB {
private static final Logger log = Logger.getLogger(RemoteServerDB.class);
public boolean Update(Vector<RemoteServerBean> beans) {
boolean result=true;
try {
FileOutputStream fos = new FileOutputStream("/opt/devtools/beans/RemoteServerBeans.xml");
BufferedOutputStream bos = new BufferedOutputStream(fos);
XMLEncoder xmlEncoder = new XMLEncoder(bos);
xmlEncoder.writeObject(beans);
xmlEncoder.close();
}catch(Exception e) {
log.error(e.getMessage());
result=false;
}
return result;
}
public Vector<RemoteServerBean> SelectServers() {
Vector<RemoteServerBean> result=new Vector<RemoteServerBean>();
try {
XMLDecoder d = new XMLDecoder(
new BufferedInputStream(
new FileInputStream("/opt/devtools/beans/RemoteServerBeans.xml")));
result=(Vector<RemoteServerBean>)d.readObject();
d.close();
}catch(Exception e) {
log.error(e.getMessage());
result=null;
}
return result;
}
public boolean CreateDB() {
boolean result=true;
try {
Vector<RemoteServerBean> beans=new Vector<RemoteServerBean>();
RemoteServerBean rsb=new RemoteServerBean();
rsb.setId(1);
rsb.setIp("127.0.0.1");
rsb.setPort(80);
rsb.setName("");
rsb.setType("szs");
rsb.setTitle("");
beans.add(rsb);
FileOutputStream fos = new FileOutputStream("/opt/devtools/beans/RemoteServerBeans.xml");
BufferedOutputStream bos = new BufferedOutputStream(fos);
XMLEncoder xmlEncoder = new XMLEncoder(bos);
xmlEncoder.writeObject(beans);
xmlEncoder.close();
}catch(Exception e) {
log.error(e.getMessage());
result=false;
}
return result;
}
}
package org.emercit.remoteservers;
import org.emercit.remoteserver.service.RemoteServerDB;
import org.emercit.remoteserver.service.RemSrv;
public class App
{
public static void main( String[] args )
{
RemoteServerDB sv=new RemoteServerDB();
sv.CreateDB();
RemSrv sv=new RemSrv();
sv.init();
}
}
......
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ServiceManager</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/test/java=UTF-8
encoding/<project>=UTF-8
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.5
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
<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>org.emercit</groupId>
<artifactId>ServiceManager</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>ServiceManager</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
package org.emercit.servicemanager;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
package org.emercit.servicemanager;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest( String testName )
{
super( testName );
}
/**
* @return the suite of tests being tested
*/
public static Test suite()
{
return new TestSuite( AppTest.class );
}
/**
* Rigourous Test :-)
*/
public void testApp()
{
assertTrue( true );
}
}