Skip to content

Commit b6e0a71

Browse files
MKostiukMKostiuk
MKostiuk
authored and
MKostiuk
committed
Initial commit
0 parents  commit b6e0a71

14 files changed

+381
-0
lines changed

.gitignore

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### JetBrains template
3+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
4+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
5+
6+
# User-specific stuff:
7+
.idea/**/workspace.xml
8+
.idea/**/tasks.xml
9+
.idea/dictionaries
10+
11+
# Sensitive or high-churn files:
12+
.idea/**/dataSources/
13+
.idea/**/dataSources.ids
14+
.idea/**/dataSources.xml
15+
.idea/**/dataSources.local.xml
16+
.idea/**/sqlDataSources.xml
17+
.idea/**/dynamic.xml
18+
.idea/**/uiDesigner.xml
19+
20+
# Gradle:
21+
.idea/**/gradle.xml
22+
.idea/**/libraries
23+
24+
# Mongo Explorer plugin:
25+
.idea/**/mongoSettings.xml
26+
27+
## File-based project format:
28+
*.iws
29+
30+
## Plugin-specific files:
31+
32+
# IntelliJ
33+
/out/
34+
35+
# mpeltonen/sbt-idea plugin
36+
.idea_modules/
37+
38+
# JIRA plugin
39+
atlassian-ide-plugin.xml
40+
41+
# Crashlytics plugin (for Android Studio and IntelliJ)
42+
com_crashlytics_export_strings.xml
43+
crashlytics.properties
44+
crashlytics-build.properties
45+
fabric.properties
46+
47+
/.idea/

Java_Arduino_Adapter.iml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
4+
<output url="file://$MODULE_DIR$/target/classes" />
5+
<output-test url="file://$MODULE_DIR$/target/test-classes" />
6+
<content url="file://$MODULE_DIR$">
7+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
8+
<excludeFolder url="file://$MODULE_DIR$/target" />
9+
</content>
10+
<orderEntry type="inheritedJdk" />
11+
<orderEntry type="sourceFolder" forTests="false" />
12+
<orderEntry type="library" name="Maven: org.fourthline.cling:cling-core:2.1.0" level="project" />
13+
<orderEntry type="library" name="Maven: org.seamless:seamless-util:1.1.1" level="project" />
14+
<orderEntry type="library" name="Maven: org.seamless:seamless-http:1.1.1" level="project" />
15+
<orderEntry type="library" name="Maven: org.seamless:seamless-xml:1.1.1" level="project" />
16+
<orderEntry type="library" name="Maven: junit:junit:4.12" level="project" />
17+
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
18+
<orderEntry type="library" name="Maven: org.mockito:mockito-all:1.9.5" level="project" />
19+
</component>
20+
</module>

pom.xml

+148
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<groupId>com.irit</groupId>
6+
<artifactId>Java_Arduino_Adapter</artifactId>
7+
<version>1.0-SNAPSHOT</version>
8+
<packaging>jar</packaging>
9+
10+
<name>Java_Arduino_Adapter</name>
11+
<url>http://maven.apache.org</url>
12+
13+
<properties>
14+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15+
</properties>
16+
17+
<build>
18+
<sourceDirectory>src</sourceDirectory>
19+
<resources>
20+
<resource>
21+
<directory>src</directory>
22+
<excludes>
23+
<exclude>**/*.java</exclude>
24+
</excludes>
25+
</resource>
26+
</resources>
27+
<plugins>
28+
<plugin>
29+
<artifactId>maven-compiler-plugin</artifactId>
30+
<version>3.5.1</version>
31+
<configuration>
32+
<source>1.8</source>
33+
<target>1.8</target>
34+
</configuration>
35+
</plugin>
36+
<plugin>
37+
<groupId>org.apache.maven.plugins</groupId>
38+
<artifactId>maven-assembly-plugin</artifactId>
39+
<executions>
40+
<execution>
41+
<id>executable</id>
42+
<phase>package</phase>
43+
<goals>
44+
<goal>single</goal>
45+
</goals>
46+
<configuration>
47+
<descriptors>
48+
<descriptor>${basedir}/src/com/irit/assembly/jar.xml</descriptor>
49+
</descriptors>
50+
<archive>
51+
<manifest>
52+
<mainClass>com.irit.main.App</mainClass>
53+
</manifest>
54+
</archive>
55+
</configuration>
56+
</execution>
57+
</executions>
58+
</plugin>
59+
</plugins>
60+
</build>
61+
<repositories>
62+
<repository>
63+
<id>4thline.org-repo</id>
64+
<url>http://4thline.org/m2</url>
65+
<snapshots>
66+
<enabled>false</enabled>
67+
</snapshots>
68+
</repository>
69+
</repositories>
70+
<dependencies>
71+
<dependency>
72+
<groupId>org.fourthline.cling</groupId>
73+
<artifactId>cling-core</artifactId>
74+
<version>2.1.0</version>
75+
</dependency>
76+
77+
<dependency>
78+
<groupId>junit</groupId>
79+
<artifactId>junit</artifactId>
80+
<version>4.12</version>
81+
</dependency>
82+
83+
<dependency>
84+
<groupId>org.mockito</groupId>
85+
<artifactId>mockito-all</artifactId>
86+
<version>1.9.5</version>
87+
</dependency>
88+
89+
</dependencies>
90+
91+
92+
<profiles>
93+
<profile>
94+
<id>windows</id>
95+
<activation>
96+
<activeByDefault>false</activeByDefault>
97+
</activation>
98+
<build>
99+
<plugins>
100+
<plugin>
101+
<artifactId>maven-assembly-plugin</artifactId>
102+
<executions>
103+
<execution>
104+
<id>zip</id>
105+
<phase>install</phase>
106+
<goals>
107+
<goal>single</goal>
108+
</goals>
109+
<configuration>
110+
<descriptors>
111+
<descriptor>${basedir}/src/com/irit/assembly/zip.xml</descriptor>
112+
</descriptors>
113+
</configuration>
114+
</execution>
115+
</executions>
116+
</plugin>
117+
</plugins>
118+
</build>
119+
</profile>
120+
<profile>
121+
<id>linux</id>
122+
<activation>
123+
<activeByDefault>false</activeByDefault>
124+
</activation>
125+
<build>
126+
<plugins>
127+
<plugin>
128+
<artifactId>maven-assembly-plugin</artifactId>
129+
<executions>
130+
<execution>
131+
<id>tar-gz</id>
132+
<phase>install</phase>
133+
<goals>
134+
<goal>single</goal>
135+
</goals>
136+
<configuration>
137+
<descriptors>
138+
<descriptor>${basedir}/src/com/irit/assembly/sh.xml</descriptor>
139+
</descriptors>
140+
</configuration>
141+
</execution>
142+
</executions>
143+
</plugin>
144+
</plugins>
145+
</build>
146+
</profile>
147+
</profiles>
148+
</project>
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
2+
<id>executable</id>
3+
<formats>
4+
<format>jar</format>
5+
</formats>
6+
<includeBaseDirectory>false</includeBaseDirectory>
7+
<dependencySets>
8+
<dependencySet>
9+
<!-- décompresse les dépendances avant de les inclure dans le jar exécutable -->
10+
<unpack>true</unpack>
11+
<scope>runtime</scope>
12+
<useProjectArtifact>false</useProjectArtifact>
13+
</dependencySet>
14+
</dependencySets>
15+
<fileSets>
16+
<fileSet>
17+
<directory>${project.build.outputDirectory}</directory>
18+
<outputDirectory></outputDirectory>
19+
</fileSet>
20+
</fileSets>
21+
</assembly>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
java -jar ${project.artifactId}-${project.version}-executable.jar
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
3+
#!/bin/bash
4+
5+
java -jar ${project.artifactId}-${project.version}-executable.jar
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
4+
<id>tar-gz</id>
5+
<formats>
6+
<format>tar.gz</format>
7+
</formats>
8+
<includeBaseDirectory>false</includeBaseDirectory>
9+
<fileSets>
10+
<fileSet>
11+
<directory>target</directory>
12+
<includes>
13+
<include>*-executable.jar</include>
14+
</includes>
15+
<outputDirectory>/</outputDirectory>
16+
</fileSet>
17+
<fileSet>
18+
<directory>src/main/script</directory>
19+
<filtered>true</filtered>
20+
<fileMode>0777</fileMode>
21+
<includes>
22+
<include>lanceur.sh</include>
23+
</includes>
24+
<outputDirectory>/</outputDirectory>
25+
</fileSet>
26+
</fileSets>
27+
</assembly>
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
<assembly
3+
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
6+
<id>zip</id>
7+
<formats>
8+
<format>zip</format>
9+
</formats>
10+
<includeBaseDirectory>false</includeBaseDirectory>
11+
<fileSets>
12+
<fileSet>
13+
<directory>target</directory>
14+
<includes>
15+
<include>*-executable.jar</include>
16+
</includes>
17+
<outputDirectory>/</outputDirectory>
18+
</fileSet>
19+
<fileSet>
20+
<directory>src/com/irit/assembly</directory>
21+
<filtered>true</filtered>
22+
<includes>
23+
<include>lanceur.bat</include>
24+
</includes>
25+
<outputDirectory>/</outputDirectory>
26+
</fileSet>
27+
</fileSets>
28+
</assembly>
29+

src/main/java/com/irit/main/App.java

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package main.java.com.irit.main;
2+
3+
/**
4+
* Hello world!
5+
*
6+
*/
7+
public class App
8+
{
9+
public static void main( String[] args )
10+
{
11+
System.out.println( "Hello World!" );
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package main.java.com.irit.upnp;
2+
3+
/**
4+
* Created by mkostiuk on 26/06/2017.
5+
*/
6+
public class AdaptedCommandService {
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package main.java.com.irit.upnp;
2+
3+
/**
4+
* Created by mkostiuk on 26/06/2017.
5+
*/
6+
public class ArduinoAdapterServer implements Runnable {
7+
@Override
8+
public void run() {
9+
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package main.java.com.irit.upnp;
2+
3+
/**
4+
* Created by mkostiuk on 26/06/2017.
5+
*/
6+
public class ArduinoCommandService {
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package main.java.com.irit.xml;
2+
3+
/**
4+
* Created by mkostiuk on 26/06/2017.
5+
*/
6+
public class GenerateurXml {
7+
}

src/test/java/com/irit/AppTest.java

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
package com.irit;
2+
3+
import junit.framework.Test;
4+
import junit.framework.TestCase;
5+
import junit.framework.TestSuite;
6+
7+
/**
8+
* Unit test for simple App.
9+
*/
10+
public class AppTest
11+
extends TestCase
12+
{
13+
/**
14+
* Create the test case
15+
*
16+
* @param testName name of the test case
17+
*/
18+
public AppTest( String testName )
19+
{
20+
super( testName );
21+
}
22+
23+
/**
24+
* @return the suite of tests being tested
25+
*/
26+
public static Test suite()
27+
{
28+
return new TestSuite( AppTest.class );
29+
}
30+
31+
/**
32+
* Rigourous Test :-)
33+
*/
34+
public void testApp()
35+
{
36+
assertTrue( true );
37+
}
38+
}

0 commit comments

Comments
 (0)