system-clients 3.2.2-aodeToV4 → 3.2.3-aodeToV4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/.eslintrc.js +16 -16
  2. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  3. package/SystemClient.iml +11 -11
  4. package/build/webpack.base.conf.js +78 -78
  5. package/build.gradle +6 -6
  6. package/gradle/wrapper/gradle-wrapper.properties +5 -5
  7. package/gradlew +185 -185
  8. package/gradlew.bat +89 -89
  9. package/index.html +21 -21
  10. package/package.json +102 -102
  11. package/src/LodopFuncs.js +123 -123
  12. package/src/components/Main.vue +515 -515
  13. package/src/components/Util.js +343 -343
  14. package/src/components/equipment/EquipmentManage.vue +65 -65
  15. package/src/components/equipment/PcAdd.vue +105 -105
  16. package/src/components/equipment/PcList.vue +120 -119
  17. package/src/components/equipment/PcManage.vue +60 -60
  18. package/src/components/equipment/PhoneAdd.vue +94 -94
  19. package/src/components/equipment/PhoneList.vue +102 -102
  20. package/src/components/equipment/PhoneManage.vue +60 -60
  21. package/src/components/equipment/PosAdd.vue +156 -156
  22. package/src/components/equipment/PosList.vue +164 -164
  23. package/src/components/equipment/PosManage.vue +68 -68
  24. package/src/components/materialManage/materialData.vue +44 -44
  25. package/src/components/materialManage/materialList.vue +255 -255
  26. package/src/components/parammanage/ParamManage.vue +42 -42
  27. package/src/components/parammanage/ParamPage.vue +314 -314
  28. package/src/components/parammanage/ParamPages.vue +222 -222
  29. package/src/components/parammanage/SinglePage.vue +235 -235
  30. package/src/components/parammanage/SinglePages.vue +167 -167
  31. package/src/components/server/AddChangeMsg.vue +66 -66
  32. package/src/components/server/ChangeDeclare.vue +45 -45
  33. package/src/components/server/LeftTree.vue +111 -111
  34. package/src/components/server/LoadData.vue +36 -36
  35. package/src/components/server/Login.vue +726 -726
  36. package/src/components/server/Menu.vue +188 -188
  37. package/src/components/server/ModifyPw.vue +112 -112
  38. package/src/components/server/NewResSelectGroup.vue +211 -211
  39. package/src/components/server/ResSelect.vue +153 -153
  40. package/src/components/server/ResSelectGroup.vue +159 -159
  41. package/src/components/server/RightTree.vue +343 -343
  42. package/src/components/server/RoleSelector.vue +90 -90
  43. package/src/components/server/TestResSelect.vue +58 -58
  44. package/src/components/server/TestResSelectGroup.vue +388 -388
  45. package/src/plugins/EncryptUtil.js +53 -53
  46. package/src/plugins/GetLoginInfoService.js +499 -499
  47. package/src/plugins/HeatGetLoginInfoService.js +491 -491
  48. package/src/plugins/validation.js +7 -7
  49. package/src/stores/AppData.js +38 -38
  50. package/src/stores/HeatAppData.js +38 -38
  51. package/src/styles/fonts/glyphicons-halflings-regular.svg +287 -287
  52. package/src/styles/less/.csscomb.json +304 -304
  53. package/src/styles/less/.csslintrc +19 -19
  54. package/src/styles/less/alerts.less +73 -73
  55. package/src/styles/less/aofeng/animate.min.css +10 -10
  56. package/src/styles/less/aofeng/expandcss.less +569 -569
  57. package/src/styles/less/aofeng/standard.less +2121 -2121
  58. package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +686 -686
  59. package/src/styles/less/aofeng/themeOne/loginStyle.less +1586 -1586
  60. package/src/styles/less/aofeng/themeOne/systemStyle.less +2650 -2650
  61. package/src/styles/less/aofeng/themeOne.less +17 -17
  62. package/src/styles/less/aofeng/themeTwo/newStyle1.less +415 -415
  63. package/src/styles/less/aofeng/themeTwo.less +3 -3
  64. package/src/styles/less/badges.less +66 -66
  65. package/src/styles/less/bootstrap.less +66 -66
  66. package/src/styles/less/breadcrumbs.less +26 -26
  67. package/src/styles/less/button-groups.less +247 -247
  68. package/src/styles/less/buttons.less +172 -172
  69. package/src/styles/less/carousel.less +269 -269
  70. package/src/styles/less/close.less +34 -34
  71. package/src/styles/less/code.less +69 -69
  72. package/src/styles/less/component-animations.less +33 -33
  73. package/src/styles/less/dropdowns.less +216 -216
  74. package/src/styles/less/fonts-list.less +25 -25
  75. package/src/styles/less/forms.less +626 -626
  76. package/src/styles/less/glyphicons.less +305 -305
  77. package/src/styles/less/grid.less +84 -84
  78. package/src/styles/less/input-groups.less +167 -167
  79. package/src/styles/less/jumbotron.less +52 -52
  80. package/src/styles/less/labels.less +64 -64
  81. package/src/styles/less/list-group.less +141 -141
  82. package/src/styles/less/manageStyle/manageChile.less +180 -180
  83. package/src/styles/less/manageStyle/manageStyle.less +1102 -1102
  84. package/src/styles/less/manageStyle/safeStyle.less +498 -498
  85. package/src/styles/less/media.less +66 -66
  86. package/src/styles/less/mixins/alerts.less +14 -14
  87. package/src/styles/less/mixins/background-variant.less +9 -9
  88. package/src/styles/less/mixins/border-radius.less +18 -18
  89. package/src/styles/less/mixins/buttons.less +69 -69
  90. package/src/styles/less/mixins/center-block.less +7 -7
  91. package/src/styles/less/mixins/clearfix.less +22 -22
  92. package/src/styles/less/mixins/forms.less +90 -90
  93. package/src/styles/less/mixins/gradients.less +59 -59
  94. package/src/styles/less/mixins/grid-framework.less +92 -92
  95. package/src/styles/less/mixins/grid.less +122 -122
  96. package/src/styles/less/mixins/hide-text.less +21 -21
  97. package/src/styles/less/mixins/image.less +33 -33
  98. package/src/styles/less/mixins/labels.less +12 -12
  99. package/src/styles/less/mixins/list-group.less +30 -30
  100. package/src/styles/less/mixins/nav-divider.less +10 -10
  101. package/src/styles/less/mixins/nav-vertical-align.less +9 -9
  102. package/src/styles/less/mixins/opacity.less +8 -8
  103. package/src/styles/less/mixins/pagination.less +24 -24
  104. package/src/styles/less/mixins/panels.less +24 -24
  105. package/src/styles/less/mixins/progress-bar.less +10 -10
  106. package/src/styles/less/mixins/reset-filter.less +8 -8
  107. package/src/styles/less/mixins/reset-text.less +18 -18
  108. package/src/styles/less/mixins/resize.less +6 -6
  109. package/src/styles/less/mixins/responsive-visibility.less +15 -15
  110. package/src/styles/less/mixins/size.less +10 -10
  111. package/src/styles/less/mixins/tab-focus.less +9 -9
  112. package/src/styles/less/mixins/table-row.less +44 -44
  113. package/src/styles/less/mixins/text-emphasis.less +9 -9
  114. package/src/styles/less/mixins/text-overflow.less +8 -8
  115. package/src/styles/less/mixins/vendor-prefixes.less +227 -227
  116. package/src/styles/less/mixins.less +40 -40
  117. package/src/styles/less/modals.less +151 -151
  118. package/src/styles/less/navbar.less +660 -660
  119. package/src/styles/less/navs.less +285 -285
  120. package/src/styles/less/normalize.less +424 -424
  121. package/src/styles/less/pager.less +76 -76
  122. package/src/styles/less/pagination.less +89 -89
  123. package/src/styles/less/panels.less +275 -275
  124. package/src/styles/less/popovers.less +131 -131
  125. package/src/styles/less/print.less +101 -101
  126. package/src/styles/less/progress-bars.less +87 -87
  127. package/src/styles/less/responsive-embed.less +35 -35
  128. package/src/styles/less/responsive-utilities.less +194 -194
  129. package/src/styles/less/scaffolding.less +161 -161
  130. package/src/styles/less/stand.less +207 -207
  131. package/src/styles/less/tables.less +262 -262
  132. package/src/styles/less/theme.less +291 -291
  133. package/src/styles/less/thumbnails.less +36 -36
  134. package/src/styles/less/tooltip.less +102 -102
  135. package/src/styles/less/type.less +303 -303
  136. package/src/styles/less/utilities.less +55 -55
  137. package/src/styles/less/variables.less +896 -896
  138. package/src/styles/less/wells.less +29 -29
  139. package/src/system.js +85 -85
package/.eslintrc.js CHANGED
@@ -1,16 +1,16 @@
1
- module.exports = {
2
- root: true,
3
- // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
4
- extends: 'standard',
5
- // required to lint *.vue files
6
- plugins: [
7
- 'eslint-plugin-html'
8
- ],
9
- // add your custom rules here
10
- 'rules': {
11
- // allow paren-less arrow functions
12
- 'arrow-parens': 0,
13
- // allow debugger during development
14
- 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
15
- }
16
- }
1
+ module.exports = {
2
+ root: true,
3
+ // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
4
+ extends: 'standard',
5
+ // required to lint *.vue files
6
+ plugins: [
7
+ 'eslint-plugin-html'
8
+ ],
9
+ // add your custom rules here
10
+ 'rules': {
11
+ // allow paren-less arrow functions
12
+ 'arrow-parens': 0,
13
+ // allow debugger during development
14
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
15
+ }
16
+ }
@@ -1,2 +1,2 @@
1
- #Tue Aug 16 15:18:31 CST 2022
2
- gradle.version=7.1
1
+ #Tue Aug 16 15:18:31 CST 2022
2
+ gradle.version=7.1
package/SystemClient.iml CHANGED
@@ -1,12 +1,12 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module external.linked.project.id="SystemClient" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="1.6.18" type="JAVA_MODULE" version="4">
3
- <component name="NewModuleRootManager" inherit-compiler-output="true">
4
- <exclude-output />
5
- <content url="file://$MODULE_DIR$">
6
- <excludeFolder url="file://$MODULE_DIR$/.gradle" />
7
- <excludeFolder url="file://$MODULE_DIR$/build" />
8
- </content>
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module external.linked.project.id="SystemClient" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="1.6.18" type="JAVA_MODULE" version="4">
3
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+ <exclude-output />
5
+ <content url="file://$MODULE_DIR$">
6
+ <excludeFolder url="file://$MODULE_DIR$/.gradle" />
7
+ <excludeFolder url="file://$MODULE_DIR$/build" />
8
+ </content>
9
+ <orderEntry type="inheritedJdk" />
10
+ <orderEntry type="sourceFolder" forTests="false" />
11
+ </component>
12
12
  </module>
@@ -1,78 +1,78 @@
1
- var path = require('path')
2
- var cssLoaders = require('./css-loaders')
3
- var projectRoot = path.resolve(__dirname, '../')
4
-
5
- module.exports = {
6
- entry: {
7
- app: './src/main.js'
8
- },
9
- output: {
10
- path: path.resolve(__dirname, '../dist/static'),
11
- publicPath: 'static/',
12
- filename: '[name].js'
13
- },
14
- resolve: {
15
- extensions: ['', '.js', '.vue'],
16
- fallback: [path.join(__dirname, '../node_modules')],
17
- alias: {
18
- 'test': path.resolve(__dirname, '../test'),
19
- 'src': path.resolve(__dirname, '../src')
20
- }
21
- },
22
- resolveLoader: {
23
- fallback: [path.join(__dirname, '../node_modules')]
24
- },
25
- module: {
26
- loaders: [
27
- {
28
- test: /\.vue$/,
29
- loader: 'vue'
30
- },
31
- {
32
- test: /\.js$/,
33
- loader: 'babel',
34
- include: [
35
- `${projectRoot}\\src`,
36
- `${projectRoot}\\build`,
37
- `${projectRoot}\\examples`,
38
- `${projectRoot}\\test`,
39
- `${projectRoot}\\node_modules\\vue-client\\src`,
40
- `${projectRoot}\\node_modules\\vue-strap\\src`
41
- ],
42
- options: {
43
- presets: ['es2015']
44
- }
45
- },
46
- {
47
- test: /\.json$/,
48
- loader: 'json'
49
- },
50
- {
51
- test: /\.html$/,
52
- loader: 'vue-html'
53
- },
54
- {
55
- test: /\.less$/,
56
- loader: 'style!css!less'
57
- },
58
- {
59
- test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
60
- loader: 'url',
61
- query: {
62
- limit: 10000,
63
- name: '[name].[ext]?[hash:7]'
64
- }
65
- }
66
- ]
67
- },
68
- vue: {
69
- loaders: cssLoaders({
70
- sourceMap: false,
71
- extract: false
72
- })
73
- },
74
- plugins: [],
75
- eslint: {
76
- formatter: require('eslint-friendly-formatter')
77
- }
78
- }
1
+ var path = require('path')
2
+ var cssLoaders = require('./css-loaders')
3
+ var projectRoot = path.resolve(__dirname, '../')
4
+
5
+ module.exports = {
6
+ entry: {
7
+ app: './src/main.js'
8
+ },
9
+ output: {
10
+ path: path.resolve(__dirname, '../dist/static'),
11
+ publicPath: 'static/',
12
+ filename: '[name].js'
13
+ },
14
+ resolve: {
15
+ extensions: ['', '.js', '.vue'],
16
+ fallback: [path.join(__dirname, '../node_modules')],
17
+ alias: {
18
+ 'test': path.resolve(__dirname, '../test'),
19
+ 'src': path.resolve(__dirname, '../src')
20
+ }
21
+ },
22
+ resolveLoader: {
23
+ fallback: [path.join(__dirname, '../node_modules')]
24
+ },
25
+ module: {
26
+ loaders: [
27
+ {
28
+ test: /\.vue$/,
29
+ loader: 'vue'
30
+ },
31
+ {
32
+ test: /\.js$/,
33
+ loader: 'babel',
34
+ include: [
35
+ `${projectRoot}\\src`,
36
+ `${projectRoot}\\build`,
37
+ `${projectRoot}\\examples`,
38
+ `${projectRoot}\\test`,
39
+ `${projectRoot}\\node_modules\\vue-client\\src`,
40
+ `${projectRoot}\\node_modules\\vue-strap\\src`
41
+ ],
42
+ options: {
43
+ presets: ['es2015']
44
+ }
45
+ },
46
+ {
47
+ test: /\.json$/,
48
+ loader: 'json'
49
+ },
50
+ {
51
+ test: /\.html$/,
52
+ loader: 'vue-html'
53
+ },
54
+ {
55
+ test: /\.less$/,
56
+ loader: 'style!css!less'
57
+ },
58
+ {
59
+ test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
60
+ loader: 'url',
61
+ query: {
62
+ limit: 10000,
63
+ name: '[name].[ext]?[hash:7]'
64
+ }
65
+ }
66
+ ]
67
+ },
68
+ vue: {
69
+ loaders: cssLoaders({
70
+ sourceMap: false,
71
+ extract: false
72
+ })
73
+ },
74
+ plugins: [],
75
+ eslint: {
76
+ formatter: require('eslint-friendly-formatter')
77
+ }
78
+ }
package/build.gradle CHANGED
@@ -1,6 +1,6 @@
1
- version = '3.0.49'
2
-
3
- task release(type:Exec) {
4
- workingDir '.'
5
- commandLine 'cmd', '/c', 'release.bat ' + version
6
- }
1
+ version = '3.0.49'
2
+
3
+ task release(type:Exec) {
4
+ workingDir '.'
5
+ commandLine 'cmd', '/c', 'release.bat ' + version
6
+ }
@@ -1,5 +1,5 @@
1
- distributionBase=GRADLE_USER_HOME
2
- distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
4
- zipStoreBase=GRADLE_USER_HOME
5
- zipStorePath=wrapper/dists
1
+ distributionBase=GRADLE_USER_HOME
2
+ distributionPath=wrapper/dists
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
4
+ zipStoreBase=GRADLE_USER_HOME
5
+ zipStorePath=wrapper/dists
package/gradlew CHANGED
@@ -1,185 +1,185 @@
1
- #!/usr/bin/env sh
2
-
3
- #
4
- # Copyright 2015 the original author or authors.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # https://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- ##############################################################################
20
- ##
21
- ## Gradle start up script for UN*X
22
- ##
23
- ##############################################################################
24
-
25
- # Attempt to set APP_HOME
26
- # Resolve links: $0 may be a link
27
- PRG="$0"
28
- # Need this for relative symlinks.
29
- while [ -h "$PRG" ] ; do
30
- ls=`ls -ld "$PRG"`
31
- link=`expr "$ls" : '.*-> \(.*\)$'`
32
- if expr "$link" : '/.*' > /dev/null; then
33
- PRG="$link"
34
- else
35
- PRG=`dirname "$PRG"`"/$link"
36
- fi
37
- done
38
- SAVED="`pwd`"
39
- cd "`dirname \"$PRG\"`/" >/dev/null
40
- APP_HOME="`pwd -P`"
41
- cd "$SAVED" >/dev/null
42
-
43
- APP_NAME="Gradle"
44
- APP_BASE_NAME=`basename "$0"`
45
-
46
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
47
- DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
48
-
49
- # Use the maximum available, or set MAX_FD != -1 to use that value.
50
- MAX_FD="maximum"
51
-
52
- warn () {
53
- echo "$*"
54
- }
55
-
56
- die () {
57
- echo
58
- echo "$*"
59
- echo
60
- exit 1
61
- }
62
-
63
- # OS specific support (must be 'true' or 'false').
64
- cygwin=false
65
- msys=false
66
- darwin=false
67
- nonstop=false
68
- case "`uname`" in
69
- CYGWIN* )
70
- cygwin=true
71
- ;;
72
- Darwin* )
73
- darwin=true
74
- ;;
75
- MSYS* | MINGW* )
76
- msys=true
77
- ;;
78
- NONSTOP* )
79
- nonstop=true
80
- ;;
81
- esac
82
-
83
- CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
84
-
85
-
86
- # Determine the Java command to use to start the JVM.
87
- if [ -n "$JAVA_HOME" ] ; then
88
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
89
- # IBM's JDK on AIX uses strange locations for the executables
90
- JAVACMD="$JAVA_HOME/jre/sh/java"
91
- else
92
- JAVACMD="$JAVA_HOME/bin/java"
93
- fi
94
- if [ ! -x "$JAVACMD" ] ; then
95
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
96
-
97
- Please set the JAVA_HOME variable in your environment to match the
98
- location of your Java installation."
99
- fi
100
- else
101
- JAVACMD="java"
102
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
103
-
104
- Please set the JAVA_HOME variable in your environment to match the
105
- location of your Java installation."
106
- fi
107
-
108
- # Increase the maximum file descriptors if we can.
109
- if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
110
- MAX_FD_LIMIT=`ulimit -H -n`
111
- if [ $? -eq 0 ] ; then
112
- if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
113
- MAX_FD="$MAX_FD_LIMIT"
114
- fi
115
- ulimit -n $MAX_FD
116
- if [ $? -ne 0 ] ; then
117
- warn "Could not set maximum file descriptor limit: $MAX_FD"
118
- fi
119
- else
120
- warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
121
- fi
122
- fi
123
-
124
- # For Darwin, add options to specify how the application appears in the dock
125
- if $darwin; then
126
- GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
127
- fi
128
-
129
- # For Cygwin or MSYS, switch paths to Windows format before running java
130
- if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
131
- APP_HOME=`cygpath --path --mixed "$APP_HOME"`
132
- CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133
-
134
- JAVACMD=`cygpath --unix "$JAVACMD"`
135
-
136
- # We build the pattern for arguments to be converted via cygpath
137
- ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
138
- SEP=""
139
- for dir in $ROOTDIRSRAW ; do
140
- ROOTDIRS="$ROOTDIRS$SEP$dir"
141
- SEP="|"
142
- done
143
- OURCYGPATTERN="(^($ROOTDIRS))"
144
- # Add a user-defined pattern to the cygpath arguments
145
- if [ "$GRADLE_CYGPATTERN" != "" ] ; then
146
- OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
147
- fi
148
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
149
- i=0
150
- for arg in "$@" ; do
151
- CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
152
- CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
153
-
154
- if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
155
- eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
156
- else
157
- eval `echo args$i`="\"$arg\""
158
- fi
159
- i=`expr $i + 1`
160
- done
161
- case $i in
162
- 0) set -- ;;
163
- 1) set -- "$args0" ;;
164
- 2) set -- "$args0" "$args1" ;;
165
- 3) set -- "$args0" "$args1" "$args2" ;;
166
- 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
167
- 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
168
- 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
169
- 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
170
- 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
171
- 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
172
- esac
173
- fi
174
-
175
- # Escape application args
176
- save () {
177
- for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
178
- echo " "
179
- }
180
- APP_ARGS=`save "$@"`
181
-
182
- # Collect all arguments for the java command, following the shell quoting and substitution rules
183
- eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
184
-
185
- exec "$JAVACMD" "$@"
1
+ #!/usr/bin/env sh
2
+
3
+ #
4
+ # Copyright 2015 the original author or authors.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ ##############################################################################
20
+ ##
21
+ ## Gradle start up script for UN*X
22
+ ##
23
+ ##############################################################################
24
+
25
+ # Attempt to set APP_HOME
26
+ # Resolve links: $0 may be a link
27
+ PRG="$0"
28
+ # Need this for relative symlinks.
29
+ while [ -h "$PRG" ] ; do
30
+ ls=`ls -ld "$PRG"`
31
+ link=`expr "$ls" : '.*-> \(.*\)$'`
32
+ if expr "$link" : '/.*' > /dev/null; then
33
+ PRG="$link"
34
+ else
35
+ PRG=`dirname "$PRG"`"/$link"
36
+ fi
37
+ done
38
+ SAVED="`pwd`"
39
+ cd "`dirname \"$PRG\"`/" >/dev/null
40
+ APP_HOME="`pwd -P`"
41
+ cd "$SAVED" >/dev/null
42
+
43
+ APP_NAME="Gradle"
44
+ APP_BASE_NAME=`basename "$0"`
45
+
46
+ # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
47
+ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
48
+
49
+ # Use the maximum available, or set MAX_FD != -1 to use that value.
50
+ MAX_FD="maximum"
51
+
52
+ warn () {
53
+ echo "$*"
54
+ }
55
+
56
+ die () {
57
+ echo
58
+ echo "$*"
59
+ echo
60
+ exit 1
61
+ }
62
+
63
+ # OS specific support (must be 'true' or 'false').
64
+ cygwin=false
65
+ msys=false
66
+ darwin=false
67
+ nonstop=false
68
+ case "`uname`" in
69
+ CYGWIN* )
70
+ cygwin=true
71
+ ;;
72
+ Darwin* )
73
+ darwin=true
74
+ ;;
75
+ MSYS* | MINGW* )
76
+ msys=true
77
+ ;;
78
+ NONSTOP* )
79
+ nonstop=true
80
+ ;;
81
+ esac
82
+
83
+ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
84
+
85
+
86
+ # Determine the Java command to use to start the JVM.
87
+ if [ -n "$JAVA_HOME" ] ; then
88
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
89
+ # IBM's JDK on AIX uses strange locations for the executables
90
+ JAVACMD="$JAVA_HOME/jre/sh/java"
91
+ else
92
+ JAVACMD="$JAVA_HOME/bin/java"
93
+ fi
94
+ if [ ! -x "$JAVACMD" ] ; then
95
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
96
+
97
+ Please set the JAVA_HOME variable in your environment to match the
98
+ location of your Java installation."
99
+ fi
100
+ else
101
+ JAVACMD="java"
102
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
103
+
104
+ Please set the JAVA_HOME variable in your environment to match the
105
+ location of your Java installation."
106
+ fi
107
+
108
+ # Increase the maximum file descriptors if we can.
109
+ if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
110
+ MAX_FD_LIMIT=`ulimit -H -n`
111
+ if [ $? -eq 0 ] ; then
112
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
113
+ MAX_FD="$MAX_FD_LIMIT"
114
+ fi
115
+ ulimit -n $MAX_FD
116
+ if [ $? -ne 0 ] ; then
117
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
118
+ fi
119
+ else
120
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
121
+ fi
122
+ fi
123
+
124
+ # For Darwin, add options to specify how the application appears in the dock
125
+ if $darwin; then
126
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
127
+ fi
128
+
129
+ # For Cygwin or MSYS, switch paths to Windows format before running java
130
+ if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
131
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
132
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133
+
134
+ JAVACMD=`cygpath --unix "$JAVACMD"`
135
+
136
+ # We build the pattern for arguments to be converted via cygpath
137
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
138
+ SEP=""
139
+ for dir in $ROOTDIRSRAW ; do
140
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
141
+ SEP="|"
142
+ done
143
+ OURCYGPATTERN="(^($ROOTDIRS))"
144
+ # Add a user-defined pattern to the cygpath arguments
145
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
146
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
147
+ fi
148
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
149
+ i=0
150
+ for arg in "$@" ; do
151
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
152
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
153
+
154
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
155
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
156
+ else
157
+ eval `echo args$i`="\"$arg\""
158
+ fi
159
+ i=`expr $i + 1`
160
+ done
161
+ case $i in
162
+ 0) set -- ;;
163
+ 1) set -- "$args0" ;;
164
+ 2) set -- "$args0" "$args1" ;;
165
+ 3) set -- "$args0" "$args1" "$args2" ;;
166
+ 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
167
+ 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
168
+ 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
169
+ 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
170
+ 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
171
+ 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
172
+ esac
173
+ fi
174
+
175
+ # Escape application args
176
+ save () {
177
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
178
+ echo " "
179
+ }
180
+ APP_ARGS=`save "$@"`
181
+
182
+ # Collect all arguments for the java command, following the shell quoting and substitution rules
183
+ eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
184
+
185
+ exec "$JAVACMD" "$@"