Skip to content

Commit

Permalink
Fixes #4548 - Document TEMPDIR extension (#4553)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnriem authored Jan 28, 2025
1 parent 029b2bb commit e6eb513
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .mvn/maven.config

This file was deleted.

3 changes: 1 addition & 2 deletions extension/fileupload/src/site/markdown/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ file upload. This extension is available by default for the following runtimes:
The following configuration parameters are available:

1. `cloud.piranha.extension.fileupload.outputDirectory` - the directory where
the file upload will store temporary files. The default is the same location
as the ServletContext TEMPDIR.
the file upload will store temporary files. The default is the location as

1. `cloud.piranha.extension.fileupload.fileSizeTreshold` - the file size
threshold (in bytes) before the runtime will create a temporary file on the
Expand Down
6 changes: 6 additions & 0 deletions extension/tempdir/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,10 @@
<scope>test</scope>
</dependency>
</dependencies>
<distributionManagement>
<site>
<id>default</id>
<url>file:///tmp/piranha/extension/tempdir/</url>
</site>
</distributionManagement>
</project>
10 changes: 10 additions & 0 deletions extension/tempdir/src/site/markdown/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Piranha TEMPDIR Extension

The TEMPDIR extension delivers the ability for a Piranha runtime to support
the Servlet temporary directory. This extension is available by default for the
following runtimes:

1. Piranha Server
1. Piranha Servlet
1. Piranha Web Profile

9 changes: 9 additions & 0 deletions extension/tempdir/src/site/site.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="ISO-8859-1"?>

<project>
<body>
<menu name="Overview">
<item name="Introduction" href="index.html"/>
</menu>
</body>
</project>
1 change: 1 addition & 0 deletions src/site/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
</menu>
<menu name="Extensions">
<item name="File Upload" href="extension/file-upload/index.html"/>
<item name="Temp Dir" href="extesnion/tempdir/index.html"/>
</menu>
</body>
<custom>
Expand Down

0 comments on commit e6eb513

Please sign in to comment.