-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from gmkll/master
JSP Connector Update
- Loading branch information
Showing
22 changed files
with
1,472 additions
and
909 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.gradle | ||
build | ||
libraries/java/bin/* | ||
libraries/java/src/com/* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
group 'edu.fuberlin.cedis' | ||
version '1.0-SNAPSHOT' | ||
|
||
apply plugin: 'java' | ||
|
||
targetCompatibility = '1.7' | ||
sourceCompatibility = '1.7' | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
compile('javax.servlet:servlet-api:2.5') | ||
compile('org.slf4j:slf4j-api:1.7.25') | ||
compile('commons-fileupload:commons-fileupload:1.2.2') | ||
compile('org.jabsorb:jabsorb:1.3.2') | ||
testCompile('junit:junit:4.11') | ||
} | ||
|
||
|
||
sourceSets { | ||
main { | ||
java { | ||
// if copied the com/fabriceci/fmc/error into local folder uncomment line: | ||
// srcDirs 'libraries/java/src' | ||
// if using java connector by default | ||
srcDirs 'libraries/java/src', '../java/src/main/java' | ||
include "**/edu/fuberlin/*" | ||
include "**/com/fabriceci/fmc/error/*" | ||
include "**/com/fabriceci/fmc/util/FileUtils.*" | ||
include "**/com/fabriceci/fmc/util/CopyDirectoryVisitor.*" | ||
include "**/com/fabriceci/fmc/util/DeleteDirectoryVisitor.*" | ||
include "**/com/fabriceci/fmc/util/StringUtils.*" | ||
include "**/com/fabriceci/fmc/util/ImageUtils.*" | ||
output.classesDir = 'libraries/java/bin' | ||
//println output.classesDir | ||
} | ||
} | ||
} | ||
|
||
// Iterate over the source sets | ||
sourceSets.all { | ||
println name | ||
} | ||
|
||
clean { | ||
delete sourceSets.main.java.outputDir | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,90 @@ | ||
#Language settings | ||
culture = en | ||
|
||
# ------------------------ | ||
# Resources section | ||
# ------------------------ | ||
|
||
# Default value "empty". | ||
# By default the application will search `fileRoot` folder under server root folder. | ||
# $context variable will be replaced by servlet context path | ||
serverRoot= $context/userfiles/ | ||
|
||
# The directory containing the files | ||
# Provide the document root, which is either absolute path or relative to servlet context if it does not start with '/' (slash) | ||
fileRoot = userfiles | ||
|
||
#Date format | ||
date = dd MM yyyy kk:mm | ||
#date=yyyy-MM-dd HH:mm:ss | ||
|
||
# Means all capabilities handled by the application are available. | ||
#capabilities=select,upload,download,rename,copy,move,replace,delete,edit | ||
capabilities=select,upload,download,rename,copy,move,replace,delete | ||
|
||
#Icons settings | ||
icons-path = images/fileicons/ | ||
icons-directory = _Open.png | ||
icons-default = default.png | ||
|
||
|
||
# ------------------------ | ||
# Filter section | ||
# ------------------------ | ||
|
||
# File types that are filtered out from the output list based on the type of filter ('getfolder' request) | ||
outputFilter_images=jpg,jpe,jpeg,gif,png,svg,bmp | ||
|
||
# ------------------------ | ||
# Upload section | ||
# ------------------------ | ||
|
||
#Upload settings | ||
upload-overwrite false | ||
# in megabytes (0: no limit) | ||
upload-size = 0 | ||
upload-size = 50 | ||
upload-imagesonly = false | ||
# The maximum allowed file size (in Bytes). If set to "false", no size limitations applied. | ||
# See https://github.com/blueimp/jQuery-File-Upload/wiki/Options#maxfilesize. | ||
upload_fileSizeLimit=16000000 | ||
|
||
# Files extensions permitted for uploading/creating | ||
upload_restrictions=jpg,jpe,jpeg,gif,png,svg,txt,pdf,odp,ods,odt,rtf,ppt,pptx,csv,ogv,avi,mkv,mp4,webm,m4v,ogg,mp3,wav,zip,rar,md | ||
|
||
|
||
#Allowed image extensions | ||
images = jpg,jpeg,gif,png | ||
images = jpg,jpeg,gif,png,svg | ||
|
||
#Files and folders | ||
#excluded from filtree | ||
unallowed_files = Thumbs.db | ||
unallowed_dirs = | ||
|
||
# provide the document root, which is relative to servlet context if it start not with '/' | ||
doc_root = | ||
# If set to "true", allow users to upload file with no extension. | ||
allowNoExtension=false | ||
|
||
# Array of file names excluded from listing. | ||
excluded_files=.htaccess,web.config,.DS_Store | ||
|
||
# Array of folder names excluded from listing. | ||
excluded_dirs=_thumbs,.CDN_ACCESS_LOGS | ||
|
||
# Files excluded from listing, using REGEX. | ||
excluded_files_REGEXP=/^\\./ | ||
|
||
# Folders excluded from listing, using REGEX. | ||
excluded_dirs_REGEXP=/^\\./ | ||
|
||
# Array of files extensions permitted for editing. | ||
editRestrictions=txt,csv,md | ||
|
||
# provide a preview path, may be relative, by default not supported | ||
#preview = | ||
extensions_ignoreCase = false | ||
# one of ALLOW_LIST DISALLOW_LIST | ||
extensions_policy = ALLOW_LIST | ||
|
||
# allowed extensions, if renaming | ||
extensions_restrictions = jpg,jpeg,gif,png,svg | ||
|
||
#FEATURED OPTIONS | ||
#for Vhost or outside files folder | ||
# // No end slash: | ||
#doc_root = C:\\dev\\workspace\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp0\\wtpwebapps\\fcktest2\\userfiles | ||
# redirect address ? | ||
errorObject_arguments_redirect = | ||
|
||
#not working yet | ||
# string; if overwrite is false, the suffix will be added after the filename (before .ext) | ||
#upload-suffix = _ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
connectors/jsp/libraries/java/bin/org/json/JSONException.class
Binary file not shown.
Binary file modified
BIN
+91 Bytes
(110%)
connectors/jsp/libraries/java/bin/org/json/JSONObject$Null.class
Binary file not shown.
Binary file modified
BIN
-98 Bytes
(100%)
connectors/jsp/libraries/java/bin/org/json/JSONObject.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
connectors/jsp/libraries/java/bin/org/json/JSONString.class
Binary file not shown.
Binary file modified
BIN
-106 Bytes
(98%)
connectors/jsp/libraries/java/bin/org/json/JSONTokener.class
Binary file not shown.
54 changes: 0 additions & 54 deletions
54
connectors/jsp/libraries/java/src/com/nartex/FileManagerI.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.