Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/target/
/.classpath
/.project
/.settings/
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ It's a cross-platform java application, and its home page is at https://gpsprune

Here on github you'll find all the sources from version 1 to the current version 19.2, and in the wiki at https://github.com/activityworkshop/GpsPrune/wiki there's the beginning of a translation effort for anyone to contribute.
Currently just the Spanish translations are online, to see whether it's a workable idea or not. Please help with this if you can.

# Development
Check `Eclipse` and `Maven` section in <https://github.com/activityworkshop/GpsPrune/blob/master/tim/prune/readme.txt>.
133 changes: 133 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<?xml version="1.0" encoding="UTF-8"?>

<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>tim.prune</groupId>
<artifactId>gpsprune</artifactId>
<version>19.3-SNAPSHOT</version>
<packaging>jar</packaging>

<name>tim.prune.gpsprune</name>
<url>https://github.com/activityworkshop/GpsPrune</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<app.mainClass>tim.prune.GpsPrune</app.mainClass>
<java3d.version>1.5.1</java3d.version>
</properties>
<repositories>
<repository>
<id>TUDelft</id>
<url>http://simulation.tudelft.nl/maven/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>java3d</groupId>
<artifactId>j3d-core</artifactId>
<version>${java3d.version}</version>
</dependency>
<dependency>
<groupId>java3d</groupId>
<artifactId>vecmath</artifactId>
<version>${java3d.version}</version>
</dependency>
<dependency>
<groupId>java3d</groupId>
<artifactId>j3d-core-utils</artifactId>
<version>${java3d.version}</version>
</dependency>
</dependencies>

<build>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
<finalName>${project.artifactId}_${project.version}</finalName>
<sourceDirectory>${project.basedir}/</sourceDirectory>
<resources>
<resource>
<directory>${project.basedir}/</directory>
<includes>
<include>tim/prune/gui/images/*</include>
<include>tim/prune/lang/*</include>
<include>tim/prune/function/srtm/srtmtiles.dat</include>
<include>tim/prune/*.txt</include>
</includes>
</resource>
</resources>

<pluginManagement><!-- lock down plugins versions to avoid using Maven
defaults (may be moved to parent pom) -->
<plugins>
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<archive>
<manifest>
<mainClass>${app.mainClass}</mainClass>
</manifest>
</archive>
</configuration>

</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.7.1</version>
</plugin>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.0.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.10</version>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
</configuration>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<mainClass>${app.mainClass}</mainClass>
</configuration>
</plugin>

</plugins>
</pluginManagement>
</build>

</project>
25 changes: 25 additions & 0 deletions tim/prune/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,31 @@ or other link can of course be made should you wish.
To specify a language other than the default, use an additional parameter, eg:
java -jar gpsprune_19.2.jar --lang=DE

Maven
=====

To build GpsPrune, simply execute:
mvn clean install

The resulting jar will be placed in target/ folder

To run GpsPrune, simply execute:
mvn clean install exec:java

The resources in pom.xml are changed (so they are not the maven common ones) because of the backward compatibility with the project.

Eclipse
=======

You can import the project in Eclipse either by calling:
mvn eclipse:eclipse

and then File > Import > Existing Projects into Workspace or using File > Import > Existing Maven Projects.

Java 3D
=======

You can download Java 3D libraries from [Java Client Technology Downloads](https://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-client-419417.html#java3d-1.5.1-oth-JPR) and then read the [Instructions for Installing Java 3D 1.5.1](https://download.java.net/media/java3d/builds/release/1.5.1/README-download.html).

New with version 19.2
=====================
Expand Down