Skip to content

Commit 614f728

Browse files
committed
Fixed examples and added a POM to run the example using Maven.
1 parent 751a676 commit 614f728

File tree

6 files changed

+334
-107
lines changed

6 files changed

+334
-107
lines changed

.gitignore

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# -----------------------------------------------------------------------------
2+
# Compiled sources
3+
# -----------------------------------------------------------------------------
4+
*.com
5+
*.class
6+
*.dll
7+
*.exe
8+
*.o
9+
*.so
10+
11+
# -----------------------------------------------------------------------------
12+
# Packages and archives
13+
# -----------------------------------------------------------------------------
14+
# It's better to unpack these files and commit the raw source
15+
# git has its own built in compression methods.
16+
# *.7z
17+
# *.dmg
18+
# *.gz
19+
# *.iso
20+
# *.jar
21+
# *.rar
22+
# *.tar
23+
# *.zip
24+
25+
# -----------------------------------------------------------------------------
26+
# Logs and databases
27+
# -----------------------------------------------------------------------------
28+
*.log
29+
# *.sql - we need to commit raw SQL for test database creation
30+
*.sqlite
31+
*.tlog
32+
*.epoch
33+
*.swp
34+
*.hprof
35+
*.hprof.index
36+
*~
37+
38+
# -----------------------------------------------------------------------------
39+
# OS generated files
40+
# -----------------------------------------------------------------------------
41+
.DS_Store*
42+
ehthumbs.db
43+
Icon?
44+
Thumbs.db
45+
46+
# -----------------------------------------------------------------------------
47+
# Maven generated files
48+
# -----------------------------------------------------------------------------
49+
target/
50+
*/target/
51+
out/
52+
53+
# -----------------------------------------------------------------------------
54+
# IntelliJ IDEA
55+
# -----------------------------------------------------------------------------
56+
# Not safe to share any of this across different IDEA major versions. Use the POMs.
57+
*.iml
58+
*.iws
59+
*.releaseBackup
60+
61+
.idea
62+
.idea/.name
63+
.idea/artifacts/
64+
.idea/workspace.xml
65+
.idea/dataSources.xml
66+
.idea/sqlDataSources.xml
67+
.idea/dynamic.xml
68+
.idea/compiler.xml
69+
.idea/misc.xml
70+
.idea/tasks.xml
71+
.idea/uiDesigner.xml
72+
.idea/libraries/*
73+
.idea/dictionaries/*
74+
.idea/modules.xml
75+
.idea/scopes/*
76+
77+
# .idea/inspectionProfiles/*
78+
79+
atlassian-ide-plugin.xml
80+
81+
# -----------------------------------------------------------------------------
82+
# Eclipse files
83+
# -----------------------------------------------------------------------------
84+
.classpath
85+
.project
86+
.settings
87+
.cache
88+
89+
# -----------------------------------------------------------------------------
90+
# Netbeans files
91+
# -----------------------------------------------------------------------------
92+
nb-configuration.xml
93+
*.orig

README.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
+----
2+
| Copyright (C) 2014 Stichting Mapcode Foundation
3+
| For terms of use refer to http://www.mapcode.com/downloads.html
4+
+----
5+
6+
This Java project contains example code of how to use the Mapcode
7+
Library.
8+
9+
To run the examples, simply execute:
10+
mvn exec:java -Dexec.mainClass="com.mapcode.example.Example"
11+
12+
For more information, see: http://www.mapcode.com
13+
14+
Work on Java version of the Mapcode library by
15+
Rijn Buve and Matthew Lowden

pom.xml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
4+
http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<groupId>com.mapcode</groupId>
7+
<artifactId>mapcode-java-examples</artifactId>
8+
<packaging>jar</packaging>
9+
<version>1.0-SNAPSHOT</version>
10+
11+
<name>Mapcode Java Examples</name>
12+
<description>
13+
This package contains examples for the Mapcode Java library.
14+
For more info: http://www.mapcode.com
15+
</description>
16+
17+
<organization>
18+
<name>Stichting Mapcode Foundation</name>
19+
<url>http://mapcode.com</url>
20+
</organization>
21+
22+
<url>http://mapcode.com</url>
23+
24+
<properties>
25+
<mapcode.version>1.0-SNAPSHOT</mapcode.version>
26+
<log4j.version>1.2.17</log4j.version>
27+
<slf4j.version>1.7.2</slf4j.version>
28+
</properties>
29+
30+
<dependencies>
31+
32+
<!-- Mapcode Library. -->
33+
<dependency>
34+
<groupId>com.mapcode</groupId>
35+
<artifactId>mapcode</artifactId>
36+
<version>${mapcode.version}</version>
37+
</dependency>
38+
39+
<!-- Logging. -->
40+
<dependency>
41+
<groupId>log4j</groupId>
42+
<artifactId>log4j</artifactId>
43+
<version>${log4j.version}</version>
44+
</dependency>
45+
46+
<dependency>
47+
<groupId>org.slf4j</groupId>
48+
<artifactId>slf4j-api</artifactId>
49+
<version>${slf4j.version}</version>
50+
</dependency>
51+
52+
<dependency>
53+
<groupId>org.slf4j</groupId>
54+
<artifactId>slf4j-log4j12</artifactId>
55+
<version>${slf4j.version}</version>
56+
</dependency>
57+
</dependencies>
58+
</project>

src/com/mapcode/example/MapCodeExample.java

Lines changed: 0 additions & 107 deletions
This file was deleted.

0 commit comments

Comments
 (0)