Skip to content
Snippets Groups Projects
Commit e80db659 authored by Rosen Georgiev's avatar Rosen Georgiev
Browse files

Uploading testing framework to project

parent 4cb0ee5a
Branches
Tags
1 merge request!2Uploading testing framework to project
Showing
with 720 additions and 3 deletions
.DS_Store .gradle
.idea .idea
\ No newline at end of file build
logs
.classpath
.project
bin
.settings
*.iml
local.properties
logs
QA.log
# Java
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*
# Gradle
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*
target/**
\ No newline at end of file
stages:
- test
stress:
stage: test
image: gradle:4.7-jdk8
only:
- master
tags:
- amd64-docker
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
- sudo apk update && sudo apk add bash
script:
- pwd
- currentTime=$(date +%H:%M)
- echo $currentTime
- if [[ "$currentTime" < "18:00" ]] || [[ "$currentTime" > "04:00" ]]; then
- echo "Starting tests"
- currentPath=`pwd`
- gradle regressionSuite -PbaseUrl=https://rosengeorgiev.dev.vereign.com -PprojectLocation=$currentPath -Proundcube='https://kolab-qa.vereign.com:444/master/' -ProundcubeUsername='mister.test@kolab-qa.vereign.com' -ProundcubePassword='GknLgWJDuD0wUT6' -PsecondRoundcubeUsername='bb8.droid@kolab-qa.vereign.com' -PsecondRoundcubePassword='AIx-dLbMOBB8Kfj' -PgmailPassword='testVereign' -Dcourgette.threads=10 -Dcourgette.runLevel=Scenario -Dcourgette.rerunFailedScenarios=false -Dcourgette.rerunAttempts=1 -Dcucumber.tags="@rest, not @wip, ~@selenium"
- else
- echo "Skipping tests"
- fi
\ No newline at end of file
# Testing Virtual Post Office
Use:`seal-receipt@vereign.com`
Active Domains:
- gmail.com
- ~~outlook.com~~
- vereign.com
- abacus.ch
- yapeal.ch
- mail.com
- abv.bg
## Gmail
1. * [ ] Cc
1. * [ ] Bcc
1. * [ ] To
1. * [ ] With Seal and Cc/Bcc/To
1. * [ ] Recieve and Reply (All)
1. * [ ] Recieve and Forward
1. * [ ] Use embedded image
1. * [ ] Use embedded image and attachment
1. * [ ] Use complex text with embedded image and attachment
1. * [ ] Use file bigger than 20MB
1. * [ ] Verify email template
1. * [ ] Downloads and hashes on the web-verificaiton-app
1. * [ ] Mobile layout
## Outlook
1. * [ ] Cc
1. * [ ] Bcc
1. * [ ] To
1. * [ ] With Seal and Cc/Bcc/To
1. * [ ] Recieve and Reply (All)
1. * [ ] Recieve and Forward
1. * [ ] Use embedded image
1. * [ ] Use embedded image and attachment
1. * [ ] Use complex text with embedded image and attachment
1. * [ ] Use file bigger than 20MB
1. * [ ] Verify email template
1. * [ ] Downloads and hashes on the web-verificaiton-app
1. * [ ] Mobile layout
# Testing email sending and verification
`Outlook Desktop - Outlook Web`
1. * [ ] Send email with empty body
2. * [ ] Send email with simple text
3. * [ ] Send email with embedded image
4. * [ ] Send email with embedded image and simple text
5. * [ ] Send email with pasted text which contains formatting (bold/italic/new lines/bullet points etc)
6. * [ ] Send email with multiple attachments
7. * [ ] Send email with attachment via one drive (not going to validate)
8. * [ ] Send email to multiple receivers (cc & bcc)
9. * [ ] Send email with attachment that you have dragged an dropped
10. * [ ] Send an email containing attachments, embedded images and complex text.
11. * [ ] Send email with Cyrillic/Chinese/Arabic(RTL)
12. * [ ] Reply to an email with empty body
13. * [ ] Reply to an email with simple text
14. * [ ] Reply to an email with embedded image
15. * [ ] Reply to an email with embedded image and simple text
16. * [ ] Reply to an email with pasted text which contains formatting (bold/italic/new lines/bullet points etc)
17. * [ ] Reply to an email with multiple attachments
18. * [ ] Reply to an email with attachment via gdrive
19. * [ ] Reply to an email via Reply all
20. * [ ] Reply to an email to 1 person instead to all (when you have multiple recipients)
21. * [ ] Send an email and then reply to it with the same sender (follow up)
23. * [ ] Reply to an email by adding attachments via the drag and drop method
24. * [ ] Reply to an email containing attachments, embedded images and complex text.
25. * [ ] Reply to unsealed email, receive another unsealed email in the loop and reply again
26. * [ ] Forward an email that you have received to a 3rd person
27. * [ ] Forward an email that you have sent initially
28. * [ ] Forward an email to multiple recipients
29. * [ ] Forward an email, but delete the initial body
30. * [ ] Forward an email and add additional text, file attachments and embed an image
31. * [ ] Send via the draft
`Outlook Web - Outlook Desktop`
1. * [ ] Send email with empty body
2. * [ ] Send email with simple text
3. * [ ] Send email with embedded image
4. * [ ] Send email with embedded image and simple text
5. * [ ] Send email with pasted text which contains formatting (bold/italic/new lines/bullet points etc)
6. * [ ] Send email with multiple attachments
7. * [ ] Send email with attachment via one drive (not going to validate)
8. * [ ] Send email to multiple receivers (cc & bcc)
9. * [ ] Send email with attachment that you have dragged an dropped
10. * [ ] Send an email containing attachments, embedded images and complex text.
11. * [ ] Send email with Cyrillic/Chinese/Arabic(RTL)
12. * [ ] Reply to an email with empty body
13. * [ ] Reply to an email with simple text
14. * [ ] Reply to an email with embedded image
15. * [ ] Reply to an email with embedded image and simple text
16. * [ ] Reply to an email with pasted text which contains formatting (bold/italic/new lines/bullet points etc)
17. * [ ] Reply to an email with multiple attachments
18. * [ ] Reply to an email with attachment via gdrive
19. * [ ] Reply to an email via Reply all
20. * [ ] Reply to an email to 1 person instead to all (when you have multiple recipients)
21. * [ ] Send an email and then reply to it with the same sender (follow up)
23. * [ ] Reply to an email by adding attachments via the drag and drop method
24. * [ ] Reply to an email containing attachments, embedded images and complex text.
25. * [ ] Reply to unsealed email, receive another unsealed email in the loop and reply again
26. * [ ] Forward an email that you have received to a 3rd person
27. * [ ] Forward an email that you have sent initially
28. * [ ] Forward an email to multiple recipients
29. * [ ] Forward an email, but delete the initial body
30. * [ ] Forward an email and add additional text, file attachments and embed an image
31. * [ ] Send via the draft
`Gmail - Outlook`
1. * [ ] Send email with empty body
2. * [ ] Send emailwith simple text
3. * [ ] Send email with embedded image
4. * [ ] Send email with embedded image and simple text
5. * [ ] Send email with pasted text which contains formatting (bold/italic/new lines/bullet points etc)
6. * [ ] Send email with multiple attachments
7. * [ ] Send email with attachment via gdrive
8. * [ ] Send email to multiple receivers (cc & bcc)
9. * [ ] Send email with attachment that you have dragged an dropped (uses a separate inboxsdk method then clicking the attachment icon)
10. * [ ] Send an email containing attachments, embedded images and complex text.
11. * [ ] Send email with Cyrillic/Chinese/Arabic(RTL)
12. * [ ] Reply to an email with empty body (should show "Vereign Notification - We can not seal empty email. Please add text to your message.
...")
13. * [ ] Reply to an email with simple text
14. * [ ] Reply to an email with embedded image
15. * [ ] Reply to an email with embedded image and simple text
16. * [ ] Reply to an email with pasted text which contains formatting (bold/italic/new lines/bullet points etc)
17. * [ ] Reply to an email with multiple attachments
18. * [ ] Reply to an email with attachment via gdrive
19. * [ ] Reply to an email via Reply all
20. * [ ] Reply to an email to 1 person instead to all (when you have multiple recipients)
21. * [ ] Send an email and then reply to it with the same sender (follow up)
22. * [ ] Reply to an email using Smart reply **[Bug](https://code.vereign.com/seal/clients/chrome-extension/-/issues/47**
23. * [ ] Reply to an email by adding attachments via the drag and drop method
24. * [ ] Reply to an email containing attachments, embedded images and complex text.
25. * [ ] Reply to unsealed email, receive another unsealed email in the loop and reply again
26. * [ ] Forward an email that you have received to a 3rd person
27. * [ ] Forward an email that you have sent initially
28. * [ ] Forward an email to multiple recipients
29. * [ ] Forward an email, but delete the initial body
30. * [ ] Forward an email and add additional text, file attachments and embed an image
31. * [ ] Send an email with newly created gmail email address & reply to another
32. * [ ] Reply to a signed email via mobile phone and then validate it with the web client **[Bug](https://code.vereign.com/seal/clients/chrome-extension/-/issues/78)**
`Outlook - Gmail`
1. * [ ] Send email with empty body
2. * [ ] Send email with simple text
3. * [ ] Send email with embedded image
4. * [ ] Send email with embedded image and simple text
5. * [ ] Send email with pasted text which contains formatting (bold/italic/new lines/bullet points etc)
6. * [ ] Send email with multiple attachments
7. * [ ] Send email with attachment via One Drive
8. * [ ] Send email to multiple receivers (cc & bcc)
9. * [ ] Send an email containing attachments, embedded images and complex text.
10. * [ ] Send email with Cyrillic/Chinese/Arabic(RTL)
11. * [ ] Reply to an email with empty body
12. * [ ] Reply to an email with simple text
13. * [ ] Reply to an email with embedded image
14. * [ ] Reply to an email with embedded image and simple text
15. * [ ] Reply to an email with pasted text which contains formatting (bold/italic/new lines/bullet points etc)
16. * [ ] Reply to an email with multiple attachments
17. * [ ] Reply to an email with attachment via One Drive
18. * [ ] Reply to an email via Reply all
19. * [ ] Reply to an email to 1 person instead to all (when you have multiple recipients)
20. * [ ] Send an email and then reply to it with the same sender (follow up)
21. * [ ] Reply to an email containing attachments, embedded images and complex text.
22. * [ ] Reply to unsealed email, receive another unsealed email in the loop and reply again
23. * [ ] Forward an email that you have received to a 3rd person
24. * [ ] Forward an email that you have sent initially
25. * [ ] Forward an email to multiple recipients
26. * [ ] Forward an email, but delete the initial body
27. * [ ] Forward an email and add additional text, file attachments and embed an image
28. * [ ] Send an email with newly created outlook email address & reply to another
29. * [ ] Reply to a signed email via mobile phone and then validate it with the web client
`Outlook 365 - Outlook.com`
1. * [ ] Send email with empty body
2. * [ ] Send email with simple text
3. * [ ] Send email with embedded image
4. * [ ] Send email with embedded image and simple text
5. * [ ] Send email with pasted text which contains formatting (bold/italic/new lines/bullet points etc)
6. * [ ] Send email with multiple attachments
7. * [ ] Send email with attachment via One Drive
8. * [ ] Send email to multiple receivers (cc & bcc)
9. * [ ] Send an email containing attachments, embedded images and complex text.
10. * [ ] Send email with Cyrillic/Chinese/Arabic(RTL)
11. * [ ] Reply to an email with empty body
12. * [ ] Reply to an email with simple text
13. * [ ] Reply to an email with embedded image
14. * [ ] Reply to an email with embedded image and simple text
15. * [ ] Reply to an email with pasted text which contains formatting (bold/italic/new lznes/bullet points etc)
16. * [ ] Reply to an email with multiple attachments
17. * [ ] Reply to an email with attachment via One Drive
18. * [ ] Reply to an email via Reply all
19. * [ ] Reply to an email to 1 person instead to all (when you have multiple recipients)
20. * [ ] Reply to unsealed email, receive another unsealed email in the loop and reply again
21. * [ ] Send an email and then reply to it with the same sender (follow up)
22. * [ ] Reply to an email containing attachments, embedded images and complex text.
23. * [ ] Forward an email that you have received to a 3rd person
24. * [ ] Forward an email that you have sent initially
25. * [ ] Forward an email to multiple recipients
26. * [ ] Forward an email, but delete the initial body
27. * [ ] Forward an email and add additional text, file attachments and embed an image
# Chrome Addon
1. * [ ] Validate the addon works on Chrome
2. * [ ] Validate the addon works on Edge - BUG - https://code.vereign.com/seal/clients/chrome-extension/-/issues/79
3. * [ ] Validate the addon works on Brave
4. * [ ] Validate the addon works on Vivaldi
5. * [ ] Check the permissions needed
# Outlook tests related to the addon not sending of email
1. * [ ] Verify you can login/logout
2. * [ ] Verify the blockchain links work
3. * [ ] Verify the Pin functionality works (none existent feature for outlook.com)
4. * [ ] Validate the addon works on Outlook desktop client
5. * [ ] Validate the addon works on Office 365 web client
6. * [ ] Validate the addon works on outlook.com
7. * [ ] Validate the addon works on Firefox (outlook.com)
8. * [ ] Validate the addon works on Chrome (outlook.com)
9. * [ ] Validate the addon works on Edge (outlook.com)
10. * [ ] Validate the addon works on Safari (outlook.com)
11. * [ ] Validate the addon works on Brave (outlook.com)
12. * [ ] Check the permissions needed
13. * [ ] Outlook iOS - reading of emails
14. * [ ] Outlook Android app - reading of emails
# Web Verification App
1. * [ ] Send an email and open quickly to validate it shows its still pending
2. * [ ] Validate an email sent via Outlook
3. * [ ] Validate an email sent via Gmail extension
4. * [ ] Mobile view
5. * [ ] Validate the landing is properly displayed on Chrome
6. * [ ] Validate the landing is properly displayed on Edge
7. * [ ] Validate the landing is properly displayed on Firefox
8. * [ ] Validate the landing is properly displayed on Safari
9. * [ ] Check the Email Content
10. * [ ] Check if the attachments can be downloaded
# tests # Testing framework
1. [Introduction](#introduction)
1. [Setup](#setup)
1. [Description](#description)
1. [License](#license)
# Introduction
This repository holds the test automation framework based on Java and used for testing of [Dashboard]() and [RESTful API]().
# Setup
### Prerequisites
- Install Java > 8 - https://www.java.com/en/download/help/download_options.xml
- Install gradle - https://gradle.org/install/
- Favorite IDE (I recommend IntelliJ IDEA - https://www.jetbrains.com/idea/)
- If using IntelliJ - Install Cucumber for Java & Gherkin addons
### Running
- Run configuration for local example:
```-Ptags=@test,~@wip```
```-Penv="local"```
- Run the tests on a remote env: ```gradle cucumber -Penv=local -Ptags=@rest,~@wip```
# Contributions
Big up for rosen.georgiev@vereign.com
## License
This project is licensed under the AGPL License - see the [LICENSE](/code/Documentation/wikis/LICENSE) file for details.
\ No newline at end of file
/*
Copyright (c) 2018 Vereign AG [https://www.vereign.com]
This is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
plugins {
// id "com.github.spacialcircumstances.gradle-cucumber-reporting" version "0.0.8"
}
apply plugin: 'java'
compileJava {options.encoding = "UTF-8"}
apply plugin: 'eclipse'
repositories {
mavenCentral()
mavenLocal()
gradlePluginPortal()
jcenter()
}
configurations {
cucumberRuntime {
extendsFrom testRuntimeOnly
}
}
def buildTags = '~@test,not @wip'
if (project.hasProperty("tags")) {
buildTags = tags + ',not @wip'
}
def baseUrl
if (project.hasProperty("baseUrl")) {
baseUrl = project.property("baseUrl")
}
tasks.withType(Test) {
systemProperties = System.getProperties()
systemProperties.remove("java.endorsed.dirs") // needs to be removed from Java 9
}
task regressionSuite(type: Test) {
if (System.getProperty('env') == null) {
systemProperty "env", "${baseUrl}"
}
systemProperty "file.encoding", "utf-8"
systemProperty "baseUrl", "${baseUrl}"
systemProperties System.getProperties()
include '**/RegressionTestSuite.class'
outputs.upToDateWhen { false }
}
dependencies {
configurations.all {
resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds'
}
testImplementation group: 'io.cucumber', name: 'cucumber-picocontainer', version: '4.3.0'
testImplementation group: 'junit', name: 'junit', version: '4.+'
implementation 'org.apache.commons:commons-lang3:3.4'
implementation 'joda-time:joda-time:2.8.+'
implementation 'org.easytesting:fest-assert:1.4'
implementation 'org.codehaus.jackson:jackson-mapper-asl:1.9.+'
implementation(group: "com.github.fge", name: "json-schema-validator", version: "2.2.+")
implementation(group: "com.google.code.gson", name: "gson", version: "+")
implementation(group: "io.rest-assured", name: "rest-assured", version: "4.+")
implementation(group: "com.jayway.jsonpath", name: "json-path", version: "+")
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.5'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.5'
implementation group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.60'
implementation 'org.bouncycastle:bcpkix-jdk15on:1.51'
implementation group: 'net.sourceforge.tess4j', name: 'tess4j', version: '4.4.1'
implementation 'io.github.prashant-ramcharan:courgette-jvm:3.+'
}
\ No newline at end of file
File added
#Mon Jul 21 13:46:51 EEST 2014
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
# distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
gradlew 0 → 100755
#!/usr/bin/env bash
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn ( ) {
echo "$*"
}
die ( ) {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
esac
# For Cygwin, ensure paths are in UNIX format before anything is touched.
if $cygwin ; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
fi
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >&-
APP_HOME="`pwd -P`"
cd "$SAVED" >&-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
function splitJvmOpts() {
JVM_OPTS=("$@")
}
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windowz variants
if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
goto execute
:4NT_args
@rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment