ve 0.0.3 → 0.0.4
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.
- checksums.yaml +5 -5
- data/.gitignore +2 -0
- data/.travis.yml +3 -6
- data/Gemfile +8 -6
- data/Gemfile.lock +29 -19
- data/LICENSE.txt +21 -0
- data/Readme.md +42 -5
- data/java/.gitignore +4 -0
- data/java/build.gradle +38 -0
- data/java/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/java/gradle/wrapper/gradle-wrapper.properties +5 -0
- data/java/gradlew +185 -0
- data/java/gradlew.bat +104 -0
- data/java/pom.xml +56 -0
- data/java/readme.md +103 -0
- data/java/settings.gradle +1 -0
- data/java/src/main/java/ve/Grammar.java +10 -0
- data/java/src/main/java/ve/Parse.java +336 -0
- data/java/src/main/java/ve/Pos.java +27 -0
- data/java/src/main/java/ve/Word.java +104 -0
- data/java/src/test/java/ve/VeTest.java +41 -0
- data/lib/part_of_speech.rb +1 -1
- data/lib/providers/freeling_en.rb +29 -28
- data/lib/providers/japanese_transliterators.rb +14 -14
- data/lib/providers/mecab_ipadic.rb +10 -10
- data/lib/ve.rb +21 -15
- data/lib/word.rb +19 -12
- data/sinatra/server.rb +35 -2
- data/tests/japanese_transliterators_test.rb +8 -5
- data/tests/mecab_ipadic_parse_test.rb +12 -0
- data/tests/test_helper.rb +0 -1
- data/tests/ve_test.rb +0 -1
- data/ve.gemspec +9 -7
- metadata +24 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0b749248b032c555a396170f4fea4b4213155ea0469c9522e162e5e3672bbbd0
|
4
|
+
data.tar.gz: f41f7ff4559c9cfb3b93a747b7233f33005de41c9b441530683557894f705d44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4599aa5f85f3662e36fafa2c862e605c7e878c040e111e45c126fcaec93fe7d6552533660cc8e1b6f4fa9c4341c4690e5971b99943ad8a23ade818417e105540
|
7
|
+
data.tar.gz: 6068dcf9e890e568d6df41ffd7b3d85a72bd62785cb999112c7f82ca67561294f5c299e44ce9efe9c11f4083a020899327ffa5d40c50292aa730d828f5f5a2e3
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -1,13 +1,15 @@
|
|
1
|
-
source
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem
|
3
|
+
gem 'json', '~> 2.3'
|
4
4
|
|
5
5
|
group :server do
|
6
|
-
gem
|
7
|
-
gem
|
6
|
+
gem 'rack', '>= 2.1.4'
|
7
|
+
gem 'sinatra', '~> 2.0.5'
|
8
|
+
gem 'rack-cors', '~> 1.0.5'
|
8
9
|
end
|
9
10
|
|
10
11
|
group :test do
|
11
|
-
gem
|
12
|
-
gem
|
12
|
+
gem 'rake', '~> 12.3.3'
|
13
|
+
gem 'minitest', '~> 5.8.3'
|
14
|
+
gem 'mocha', '~> 1.1.0', require: false
|
13
15
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,28 +1,38 @@
|
|
1
1
|
GEM
|
2
|
-
remote:
|
2
|
+
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
-
json (
|
5
|
-
metaclass (0.0.
|
6
|
-
|
4
|
+
json (2.3.0)
|
5
|
+
metaclass (0.0.4)
|
6
|
+
minitest (5.8.3)
|
7
|
+
mocha (1.1.0)
|
7
8
|
metaclass (~> 0.0.1)
|
8
|
-
|
9
|
-
|
9
|
+
mustermann (1.1.1)
|
10
|
+
ruby2_keywords (~> 0.0.1)
|
11
|
+
rack (2.2.3)
|
12
|
+
rack-cors (1.0.5)
|
13
|
+
rack (>= 1.6.0)
|
14
|
+
rack-protection (2.0.8.1)
|
10
15
|
rack
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
rack (~>
|
16
|
-
rack-protection (
|
17
|
-
tilt (~>
|
18
|
-
tilt (
|
16
|
+
rake (12.3.3)
|
17
|
+
ruby2_keywords (0.0.2)
|
18
|
+
sinatra (2.0.8.1)
|
19
|
+
mustermann (~> 1.0)
|
20
|
+
rack (~> 2.0)
|
21
|
+
rack-protection (= 2.0.8.1)
|
22
|
+
tilt (~> 2.0)
|
23
|
+
tilt (2.0.10)
|
19
24
|
|
20
25
|
PLATFORMS
|
21
26
|
ruby
|
22
27
|
|
23
28
|
DEPENDENCIES
|
24
|
-
json
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
+
json (~> 2.3)
|
30
|
+
minitest (~> 5.8.3)
|
31
|
+
mocha (~> 1.1.0)
|
32
|
+
rack (>= 2.1.4)
|
33
|
+
rack-cors (~> 1.0.5)
|
34
|
+
rake (~> 12.3.3)
|
35
|
+
sinatra (~> 2.0.5)
|
36
|
+
|
37
|
+
BUNDLED WITH
|
38
|
+
2.1.4
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
|
2
|
+
The MIT License (MIT)
|
3
|
+
Copyright © 2015 Kim Ahlström <kim.ahlstrom@gmail.com>
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the “Software”), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/Readme.md
CHANGED
@@ -5,13 +5,50 @@ A linguistic framework for anyone. No degree required.
|
|
5
5
|
|
6
6
|
Read all about it on [kimtaro.github.com/ve](http://kimtaro.github.com/ve).
|
7
7
|
|
8
|
+
[](https://travis-ci.org/Kimtaro/ve)
|
9
|
+
|
10
|
+
Getting Started
|
11
|
+
---------------
|
12
|
+
|
13
|
+
Ve relies on the [FreeLing](http://nlp.lsi.upc.edu/freeling/) and [MeCab](http://mecab.googlecode.com/svn/trunk/mecab/doc/index.html)
|
14
|
+
language parsers. You **must** install FreeLing for English or MeCab for Japanese or both.
|
15
|
+
|
16
|
+
Installation instructions for FreeLing can be found [here](http://nlp.lsi.upc.edu/freeling/index.php?option=com_content&task=view&id=15&Itemid=44).
|
17
|
+
|
18
|
+
Installation instruction for MeCab can be found [here](https://taku910.github.io/mecab/#install).
|
19
|
+
|
20
|
+
### Installing with HomeBrew
|
21
|
+
|
22
|
+
If you are using OSX, you can easily install FreeLing and MeCab with [HomeBrew](http://brew.sh/).
|
23
|
+
|
24
|
+
```
|
25
|
+
$ brew install freeling
|
26
|
+
$ brew install mecab-ipadic
|
27
|
+
```
|
28
|
+
|
29
|
+
### Building the Gem
|
30
|
+
|
31
|
+
You can build the Ve gem with the following:
|
32
|
+
|
33
|
+
```
|
34
|
+
$ gem build ve.gemspec
|
35
|
+
```
|
36
|
+
|
37
|
+
To install the newly built gem:
|
38
|
+
|
39
|
+
```
|
40
|
+
$ gem install ve-<version>.gem
|
41
|
+
```
|
42
|
+
|
43
|
+
Be sure to substitute `<version>` with the version of the newly built gem, for example `ve-0.0.3.gem`.
|
44
|
+
|
8
45
|
Ruby
|
9
46
|
----
|
10
47
|
|
11
48
|
require 've'
|
12
49
|
words = Ve.in(:en).words('I like melons.')
|
13
50
|
# => [#<Ve::Word:0x8ee00cc @word="I", @lemma="i", @part_of_speech=Ve::PartOfSpeech::Pronoun, @tokens=[{:raw=>"I i PRP 1", :type=>:parsed, :literal=>"I", :lemma=>"i", :pos=>"PRP", :accuracy=>"1", :characters=>0..0}], @extra={:grammar=>:personal}, @info={}>, #<Ve::Word:0x8edff28 @word="like", @lemma="like", @part_of_speech=Ve::PartOfSpeech::Preposition, @tokens=[{:raw=>"like like IN 0.815649", :type=>:parsed, :literal=>"like", :lemma=>"like", :pos=>"IN", :accuracy=>"0.815649", :characters=>2..5}], @extra={:grammar=>nil}, @info={}>, #<Ve::Word:0x8edfe24 @word="melons", @lemma="melon", @part_of_speech=Ve::PartOfSpeech::Noun, @tokens=[{:raw=>"melons melon NNS 1", :type=>:parsed, :literal=>"melons", :lemma=>"melon", :pos=>"NNS", :accuracy=>"1", :characters=>7..12}], @extra={:grammar=>:plural}, @info={}>, #<Ve::Word:0x8edfcbc @word=".", @lemma=".", @part_of_speech=Ve::PartOfSpeech::Symbol, @tokens=[{:raw=>". . Fp 1", :type=>:parsed, :literal=>".", :lemma=>".", :pos=>"Fp", :accuracy=>"1", :characters=>13..13}], @extra={:grammar=>nil}, @info={}>]
|
14
|
-
|
51
|
+
|
15
52
|
words.collect(&:lemma) # => ["i", "like", "melon", "."]
|
16
53
|
words.collect(&:part_of_speec) # => [Ve::PartOfSpeech::Pronoun, Ve::PartOfSpeech::Preposition, Ve::PartOfSpeech::Noun, Ve::PartOfSpeech::Symbol]
|
17
54
|
|
@@ -22,12 +59,12 @@ Javascript
|
|
22
59
|
<script type="text/javascript" charset="utf-8">
|
23
60
|
new Ve('ja').words('ビールがおいしかった', function(words) {
|
24
61
|
// [{"_class":"Word","word":"ビール","lemma":"ビール","part_of_speech":"noun","tokens":[{"raw":"ビール\t名詞,一般,*,*,*,*,ビール,ビール,ビール","type":"parsed","literal":"ビール","pos":"名詞","pos2":"一般","pos3":"*","pos4":"*","inflection_type":"*","inflection_form":"*","lemma":"ビール","reading":"ビール","hatsuon":"ビール","characters":"0..2"}],"extra":{"reading":"ビール","transcription":"ビール","grammar":null},"info":{"reading_script":"kata","transcription_script":"kata"}},{"_class":"Word","word":"が","lemma":"が","part_of_speech":"postposition","tokens":[{"raw":"が\t助詞,格助詞,一般,*,*,*,が,ガ,ガ","type":"parsed","literal":"が","pos":"助詞","pos2":"格助詞","pos3":"一般","pos4":"*","inflection_type":"*","inflection_form":"*","lemma":"が","reading":"ガ","hatsuon":"ガ","characters":"3..3"}],"extra":{"reading":"ガ","transcription":"ガ","grammar":null},"info":{"reading_script":"kata","transcription_script":"kata"}},{"_class":"Word","word":"おいしい","lemma":"おいしい","part_of_speech":"adjective","tokens":[{"raw":"おいしい\t形容詞,自立,*,*,形容詞・イ段,基本形,おいしい,オイシイ,オイシイ","type":"parsed","literal":"おいしい","pos":"形容詞","pos2":"自立","pos3":"*","pos4":"*","inflection_type":"形容詞・イ段","inflection_form":"基本形","lemma":"おいしい","reading":"オイシイ","hatsuon":"オイシイ","characters":"4..7"}],"extra":{"reading":"オイシイ","transcription":"オイシイ","grammar":null},"info":{"reading_script":"kata","transcription_script":"kata"}}]
|
25
|
-
|
62
|
+
|
26
63
|
for ( i in words ) {
|
27
64
|
var word = words[i];
|
28
65
|
console.log(word.lemma + "/" + word.part_of_speech)
|
29
66
|
}
|
30
|
-
|
67
|
+
|
31
68
|
// ビール/noun
|
32
69
|
// が/postposition
|
33
70
|
// おいしい/adjective
|
@@ -55,6 +92,6 @@ Todo
|
|
55
92
|
License
|
56
93
|
-------
|
57
94
|
|
58
|
-
(c) Kim Ahlström 2011
|
95
|
+
(c) Kim Ahlström 2011-2020
|
59
96
|
|
60
|
-
This is under the MIT license.
|
97
|
+
This is under the MIT license.
|
data/java/.gitignore
ADDED
data/java/build.gradle
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
plugins {
|
2
|
+
id 'java'
|
3
|
+
id 'java-library'
|
4
|
+
id 'maven-publish'
|
5
|
+
}
|
6
|
+
|
7
|
+
repositories {
|
8
|
+
mavenLocal()
|
9
|
+
maven {
|
10
|
+
url = uri('https://www.atilika.org/nexus/content/repositories/atilika')
|
11
|
+
}
|
12
|
+
|
13
|
+
maven {
|
14
|
+
url = uri('https://repo.maven.apache.org/maven2')
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
dependencies {
|
19
|
+
api 'org.atilika.kuromoji:kuromoji:0.7.7'
|
20
|
+
testImplementation 'junit:junit:4.12'
|
21
|
+
}
|
22
|
+
|
23
|
+
group = 'uk.co.birchlabs.ve'
|
24
|
+
version = '1.0-SNAPSHOT'
|
25
|
+
description = 'main source'
|
26
|
+
sourceCompatibility = '1.8'
|
27
|
+
|
28
|
+
publishing {
|
29
|
+
publications {
|
30
|
+
maven(MavenPublication) {
|
31
|
+
from(components.java)
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
tasks.withType(JavaCompile) {
|
37
|
+
options.encoding = 'UTF-8'
|
38
|
+
}
|
Binary file
|
data/java/gradlew
ADDED
@@ -0,0 +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
|
+
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" "$@"
|