Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
luigiselmi committed Mar 26, 2015
1 parent 595c14d commit f900527
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,14 @@ Compile the application running the command
Start the application using the command

mvn exec:java

The webapp can be start using the release (executable jar)

java -jar p3-spatialsearch-demo-<version>-standalone.jar

The default port is 8080. To change the port use the httpPort option, for example to use the port 7320 run the command

java -jar p3-spatialsearch-demo-<version>-standalone.jar --httpPort=7320


The application consumes RDF data and shows object and event described by the schema.org ontology.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<version>0.0.1-SNAPSHOT</version>
<name>FusepoolP3 Spatial Search Demo</name>
<artifactId>p3-spatialsearch-demo</artifactId>
<packaging>war</packaging>
<packaging>jar</packaging>

<properties>
<java.version>1.7</java.version>
Expand Down
9 changes: 3 additions & 6 deletions src/main/java/eu/fusepool/p3/spatial/demo/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,14 @@ public static void main(String[] args) throws Exception {

int port = 7302;
/*
if (args == null) {
if (args != null) {
port = Integer.parseInt(args[0]);
}
*/
String webappDir = "src/main/webapp";
ProtectionDomain domain = Main.class.getProtectionDomain();
URL location = domain.getCodeSource().getLocation();
String webappDir = "src/main/webapp";
Server server = new Server(port);
System.out.println("Running on port " + port);
WebAppContext context = new WebAppContext();
context.setWar(location.toExternalForm());
WebAppContext context = new WebAppContext();
context.setDescriptor(webappDir + "WEB-INF/web.xml");
context.setContextPath("/");
context.setResourceBase(webappDir);
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1>FusepoolP3 Spatial Search Demo</h1>
Radius (m):
<input id="radius" type="text" value="1000" size="4"/>
Date:
<input id="date" type="text" value="2015-02-25" size="10"/>
<input id="date" type="text" value="" size="10"/>
<button type="button" onclick="getJson()">Show more</button>
<button type="button" onclick="removeMarkers()">Clean</button>
<p id="text"></p>
Expand Down

0 comments on commit f900527

Please sign in to comment.