Skip to content

Commit 5099666

Browse files
committed
6.1.7901-Beta
1 parent bf7be39 commit 5099666

File tree

130 files changed

+9374
-445
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+9374
-445
lines changed

Java/androidfsstorage/README.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1 @@
1-
2-
<h1 class="d-xl-block d-none">Java WebDAV Server Example for Android</h1>
3-
<p><span>This sample is a Class 2 WebDAV server that runs on Android. It uses modified&nbsp;</span>NanoHTTPD as an application server and publishes files from a mobile application folder or from media folder. L<span>ocks and properties in SQLite database.</span></p>
4-
<p><span>To see the documents a user opens a sample web page served by this server sample in a web browser on any machine in the local network. A user can&nbsp;open, edit and save documents back to the device as well as a user can upload, download and manage documents using any WebDAV client.</span></p>
5-
<h2>Requirements</h2>
6-
<ul>
7-
<li>Android API Level 19</li>
8-
</ul>
9-
<h2>Setting the License</h2>
10-
<p>To run the example, you will need a valid IT Hit WebDAV Server Engine License. You can download the license in&nbsp;the&nbsp;<a title="Download" href="https://www.webdavsystem.com/javaserver/download/">product download area</a>.&nbsp;Note that the Engine is fully functional with a trial license and does not have any limitations. The trial license is valid for one month and the engine will stop working after this. You can check the expiration date inside the license file.&nbsp;Download the license file and specify it's content in&nbsp;<span class="code">License</span>&nbsp;field under&nbsp;<span class="code">DavEngineOptions</span>&nbsp;in&nbsp;<span class="code">/androidfsstorage/app/src/main/assets/webdavsettings.json</span>&nbsp;file.</p>
11-
<p>You can also run the sample&nbsp;without explicitly specifying a license&nbsp;for 5 days. In this case&nbsp;the&nbsp;Engine will automatically request the trial license from IT Hit website https://www.webdavsystem.com. Make sure it is accessible via firewalls, if any. After 5 days the Engine will stop working. To extend the trial period you will need to download a license in a&nbsp;<a title="Download" href="https://www.webdavsystem.com/javaserver/download/">product download area</a>&nbsp;and specify it in&nbsp;<span class="code">webdavsettings.json</span></p>
12-
<h2>Accessing files via WebDAV</h2>
13-
<p>By default your server runs on port 8181. After running the application on Android you will see the following screen with the instructions about ho to connect:</p>
14-
<p style="text-align: center;"><img id="__mcenew" alt="Connection instructions are displayed when you run the Android WebDAV Server." src="https://www.webdavsystem.com/media/1653/androidwebdavserver.png" rel="111413"></p>
15-
<p>Open a web browser on any machine on the network and navigate to the WebDAV server.&nbsp;</p>
16-
<h3>See Also:</h3>
17-
<ul>
18-
<li><a title="Running" href="https://www.webdavsystem.com/javaserver/server_examples/running_webdav_samples/">Running the WebDAV Samples</a></li>
19-
<li><a title="Troubleshooting" href="https://www.webdavsystem.com/javaserver/server_examples/troubleshooting/">WebDAV Server Samples Problems and Troubleshooting</a></li>
20-
</ul>
21-
<p>&nbsp;</p>
22-
<p>&nbsp;</p>
23-
<h3 class="para d-inline next-article-heading">Next Article:</h3>
24-
<a title="WebDAV Server with Versioning Example, Java" href="https://www.webdavsystem.com/javaserver/server_examples/deltav_storage/">WebDAV Server Example with Versioning, Java</a>
1+
��

Java/androidfsstorage/app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ android {
3434
jarJar {
3535
rules = [
3636
'stax-api-1.0.1.jar' : 'javax.xml.** com.ithit.webdav.xml.@1',
37-
'webdav-server-6.0.7539-Beta.jar': 'javax.xml.stream.** com.ithit.webdav.xml.stream.@1'
37+
'webdav-server-6.1.7901-Beta.jar': 'javax.xml.stream.** com.ithit.webdav.xml.stream.@1'
3838
]
3939
}
4040

@@ -75,11 +75,11 @@ dependencies {
7575
implementation 'commons-io:commons-io:2.7'
7676
implementation 'com.google.code.gson:gson:2.8.9'
7777
implementation 'com.android.support:appcompat-v7:27.1.1'
78-
implementation('com.ithit.webdav.integration:android-integration:6.0.7539-Beta', {
78+
implementation('com.ithit.webdav.integration:android-integration:6.1.7901-Beta', {
7979
exclude group: 'org.nanohttpd', module: 'nanohttpd'
8080
})
8181
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
8282
jarJar 'stax:stax-api:1.0.1'
83-
jarJar 'com.ithit.webdav:webdav-server:6.0.7539-Beta'
83+
jarJar 'com.ithit.webdav:webdav-server:6.1.7901-Beta'
8484
testImplementation 'junit:junit:4.12'
85-
}
85+
}

Java/collectionsync/pom.xml

Lines changed: 281 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,281 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>com.ithit.webdav.samples</groupId>
8+
<artifactId>collectionsync</artifactId>
9+
<version>6.1.7901-Beta</version>
10+
<packaging>war</packaging>
11+
12+
<properties>
13+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14+
</properties>
15+
16+
<dependencies>
17+
<dependency>
18+
<groupId>com.google.code.gson</groupId>
19+
<artifactId>gson</artifactId>
20+
<version>2.8.9</version>
21+
<scope>compile</scope>
22+
</dependency>
23+
<dependency>
24+
<groupId>javax.websocket</groupId>
25+
<artifactId>javax.websocket-api</artifactId>
26+
<version>1.1</version>
27+
</dependency>
28+
<dependency>
29+
<groupId>javax.servlet</groupId>
30+
<artifactId>javax.servlet-api</artifactId>
31+
<version>3.1.0</version>
32+
<scope>provided</scope>
33+
</dependency>
34+
<dependency>
35+
<groupId>com.ithit.webdav.integration</groupId>
36+
<artifactId>servlet-integration</artifactId>
37+
<version>6.1.7901-Beta</version>
38+
</dependency>
39+
<dependency>
40+
<groupId>commons-io</groupId>
41+
<artifactId>commons-io</artifactId>
42+
<version>2.7</version>
43+
<scope>compile</scope>
44+
</dependency>
45+
<dependency>
46+
<groupId>commons-dbcp</groupId>
47+
<artifactId>commons-dbcp</artifactId>
48+
<version>1.2.2</version>
49+
<scope>provided</scope>
50+
</dependency>
51+
<dependency>
52+
<groupId>commons-pool</groupId>
53+
<artifactId>commons-pool</artifactId>
54+
<version>1.4</version>
55+
<scope>provided</scope>
56+
</dependency>
57+
<dependency>
58+
<groupId>com.oracle</groupId>
59+
<artifactId>ojdbc7</artifactId>
60+
<version>12.1.0.2</version>
61+
<scope>provided</scope>
62+
</dependency>
63+
<dependency>
64+
<groupId>org.apache.lucene</groupId>
65+
<artifactId>lucene-core</artifactId>
66+
<version>7.5.0</version>
67+
</dependency>
68+
<dependency>
69+
<groupId>org.apache.lucene</groupId>
70+
<artifactId>lucene-queryparser</artifactId>
71+
<version>7.5.0</version>
72+
</dependency>
73+
<dependency>
74+
<groupId>org.apache.lucene</groupId>
75+
<artifactId>lucene-highlighter</artifactId>
76+
<version>7.5.0</version>
77+
</dependency>
78+
<dependency>
79+
<groupId>org.apache.tika</groupId>
80+
<artifactId>tika-core</artifactId>
81+
<version>1.28.5</version>
82+
</dependency>
83+
<dependency>
84+
<groupId>org.apache.tika</groupId>
85+
<artifactId>tika-parsers</artifactId>
86+
<version>1.28.5</version>
87+
<exclusions>
88+
<exclusion>
89+
<artifactId>cxf-core</artifactId>
90+
<groupId>org.apache.cxf</groupId>
91+
</exclusion>
92+
<exclusion>
93+
<artifactId>cxf-rt-rs-client</artifactId>
94+
<groupId>org.apache.cxf</groupId>
95+
</exclusion>
96+
<exclusion>
97+
<artifactId>httpservices</artifactId>
98+
<groupId>edu.ucar</groupId>
99+
</exclusion>
100+
<exclusion>
101+
<artifactId>maven-scm-provider-svnexe</artifactId>
102+
<groupId>org.apache.maven.scm</groupId>
103+
</exclusion>
104+
<exclusion>
105+
<artifactId>maven-scm-api</artifactId>
106+
<groupId>org.apache.maven.scm</groupId>
107+
</exclusion>
108+
<exclusion>
109+
<artifactId>slf4j-log4j12</artifactId>
110+
<groupId>org.slf4j</groupId>
111+
</exclusion>
112+
<exclusion>
113+
<artifactId>c3p0</artifactId>
114+
<groupId>c3p0</groupId>
115+
</exclusion>
116+
<exclusion>
117+
<artifactId>httpclient</artifactId>
118+
<groupId>org.apache.httpcomponents</groupId>
119+
</exclusion>
120+
<exclusion>
121+
<artifactId>grib</artifactId>
122+
<groupId>edu.ucar</groupId>
123+
</exclusion>
124+
<exclusion>
125+
<artifactId>cdm</artifactId>
126+
<groupId>edu.ucar</groupId>
127+
</exclusion>
128+
<exclusion>
129+
<artifactId>unit-api</artifactId>
130+
<groupId>javax.measure</groupId>
131+
</exclusion>
132+
<exclusion>
133+
<artifactId>activation</artifactId>
134+
<groupId>javax.activation</groupId>
135+
</exclusion>
136+
<exclusion>
137+
<groupId>org.apache.sis.storage</groupId>
138+
<artifactId>sis-netcdf</artifactId>
139+
</exclusion>
140+
</exclusions>
141+
</dependency>
142+
<dependency>
143+
<groupId>com.ithit.webdav</groupId>
144+
<artifactId>webdav-server</artifactId>
145+
<version>6.1.7901-Beta</version>
146+
</dependency>
147+
<dependency>
148+
<groupId>net.java.dev.jna</groupId>
149+
<artifactId>jna-platform</artifactId>
150+
<version>5.13.0</version>
151+
</dependency>
152+
</dependencies>
153+
154+
<repositories>
155+
<repository>
156+
<id>nuxeo</id>
157+
<url>https://maven.nuxeo.org/nexus/content/groups/public</url>
158+
</repository>
159+
</repositories>
160+
161+
<build>
162+
<plugins>
163+
<plugin>
164+
<groupId>org.apache.maven.plugins</groupId>
165+
<artifactId>maven-compiler-plugin</artifactId>
166+
<version>3.1</version>
167+
<configuration>
168+
<source>1.8</source>
169+
<target>1.8</target>
170+
</configuration>
171+
</plugin>
172+
<plugin>
173+
<groupId>org.apache.maven.plugins</groupId>
174+
<artifactId>maven-war-plugin</artifactId>
175+
<version>3.2.0</version>
176+
<configuration>
177+
<webResources>
178+
<resource>
179+
<directory>src/main/storageresources</directory>
180+
<targetPath>WEB-INF</targetPath>
181+
<excludes>
182+
<exclude>**/pom.xml</exclude>
183+
</excludes>
184+
</resource>
185+
</webResources>
186+
</configuration>
187+
</plugin>
188+
<plugin>
189+
<artifactId>maven-antrun-plugin</artifactId>
190+
<groupId>org.apache.maven.plugins</groupId>
191+
<version>1.8</version>
192+
<executions>
193+
<execution>
194+
<id>windows</id>
195+
<phase>none</phase>
196+
<goals>
197+
<goal>run</goal>
198+
</goals>
199+
<configuration>
200+
<target>
201+
<exec executable="start" vmlauncher="false">
202+
<arg line="http://localhost:11021/"/>
203+
</exec>
204+
</target>
205+
</configuration>
206+
</execution>
207+
<execution>
208+
<id>linux</id>
209+
<phase>none</phase>
210+
<goals>
211+
<goal>run</goal>
212+
</goals>
213+
<configuration>
214+
<target>
215+
<exec executable="xdg-open">
216+
<arg line="http://localhost:11021/"/>
217+
</exec>
218+
</target>
219+
</configuration>
220+
</execution>
221+
</executions>
222+
</plugin>
223+
<plugin>
224+
<groupId>org.apache.tomcat.maven</groupId>
225+
<artifactId>tomcat7-maven-plugin</artifactId>
226+
<version>2.2</version>
227+
<configuration>
228+
<server>filesystem</server>
229+
<port>11021</port>
230+
<path>/</path>
231+
<warSourceDirectory>target/collectionsync-6.1.7901-Beta</warSourceDirectory>
232+
</configuration>
233+
</plugin>
234+
<plugin>
235+
<groupId>com.github.eirslett</groupId>
236+
<artifactId>frontend-maven-plugin</artifactId>
237+
<version>1.12.1</version>
238+
<executions>
239+
<execution>
240+
<id>install node and npm</id>
241+
<goals>
242+
<goal>install-node-and-npm</goal>
243+
</goals>
244+
<configuration>
245+
<installDirectory>${java.io.tmpdir}</installDirectory>
246+
<nodeVersion>v16.14.2</nodeVersion>
247+
<npmVersion>8.7.0</npmVersion>
248+
</configuration>
249+
</execution>
250+
<execution>
251+
<id>npm update</id>
252+
<goals>
253+
<goal>npm</goal>
254+
</goals>
255+
<phase>generate-resources</phase>
256+
<configuration>
257+
<arguments>update</arguments>
258+
<workingDirectory>src/main/webapp/WEB-INF/wwwroot/js</workingDirectory>
259+
<installDirectory>C:\Users\build\AppData\Local\Temp\</installDirectory>
260+
</configuration>
261+
</execution>
262+
<execution>
263+
<id>npm install</id>
264+
<goals>
265+
<goal>npm</goal>
266+
</goals>
267+
<phase>generate-resources</phase>
268+
<configuration>
269+
<arguments>install</arguments>
270+
<workingDirectory>src/main/webapp/WEB-INF/wwwroot/js</workingDirectory>
271+
<installDirectory>${java.io.tmpdir}</installDirectory>
272+
</configuration>
273+
</execution>
274+
</executions>
275+
<configuration>
276+
<escapeString>\</escapeString>
277+
</configuration>
278+
</plugin>
279+
</plugins>
280+
</build>
281+
</project>

0 commit comments

Comments
 (0)