Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
7b53596c
Commit
7b53596c
authored
Dec 14, 2020
by
WenmuZhou
Browse files
Merge branch 'dygraph' of
https://github.com/PaddlePaddle/PaddleOCR
into dygraph_rc
parents
0458f0cc
0e32093f
Changes
157
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
0 additions
and
496 deletions
+0
-496
deploy/android_demo/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
...d_demo/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
+0
-0
deploy/android_demo/app/src/main/res/mipmap-xhdpi/ic_launcher.png
...ndroid_demo/app/src/main/res/mipmap-xhdpi/ic_launcher.png
+0
-0
deploy/android_demo/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
..._demo/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
+0
-0
deploy/android_demo/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
...droid_demo/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
+0
-0
deploy/android_demo/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
...demo/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
+0
-0
deploy/android_demo/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
...roid_demo/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
+0
-0
deploy/android_demo/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
...emo/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
+0
-0
deploy/android_demo/app/src/main/res/values/arrays.xml
deploy/android_demo/app/src/main/res/values/arrays.xml
+0
-39
deploy/android_demo/app/src/main/res/values/colors.xml
deploy/android_demo/app/src/main/res/values/colors.xml
+0
-6
deploy/android_demo/app/src/main/res/values/strings.xml
deploy/android_demo/app/src/main/res/values/strings.xml
+0
-26
deploy/android_demo/app/src/main/res/values/styles.xml
deploy/android_demo/app/src/main/res/values/styles.xml
+0
-25
deploy/android_demo/app/src/main/res/xml/file_paths.xml
deploy/android_demo/app/src/main/res/xml/file_paths.xml
+0
-4
deploy/android_demo/app/src/main/res/xml/settings.xml
deploy/android_demo/app/src/main/res/xml/settings.xml
+0
-75
deploy/android_demo/app/src/test/java/com/baidu/paddle/lite/demo/ocr/ExampleUnitTest.java
.../java/com/baidu/paddle/lite/demo/ocr/ExampleUnitTest.java
+0
-17
deploy/android_demo/build.gradle
deploy/android_demo/build.gradle
+0
-27
deploy/android_demo/gradle.properties
deploy/android_demo/gradle.properties
+0
-15
deploy/android_demo/gradle/wrapper/gradle-wrapper.jar
deploy/android_demo/gradle/wrapper/gradle-wrapper.jar
+0
-0
deploy/android_demo/gradle/wrapper/gradle-wrapper.properties
deploy/android_demo/gradle/wrapper/gradle-wrapper.properties
+0
-6
deploy/android_demo/gradlew
deploy/android_demo/gradlew
+0
-172
deploy/android_demo/gradlew.bat
deploy/android_demo/gradlew.bat
+0
-84
No files found.
deploy/android_demo/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
deleted
100644 → 0
View file @
0458f0cc
2.72 KB
deploy/android_demo/app/src/main/res/mipmap-xhdpi/ic_launcher.png
deleted
100644 → 0
View file @
0458f0cc
4.38 KB
deploy/android_demo/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
deleted
100644 → 0
View file @
0458f0cc
6.73 KB
deploy/android_demo/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
deleted
100644 → 0
View file @
0458f0cc
6.24 KB
deploy/android_demo/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
deleted
100644 → 0
View file @
0458f0cc
10.2 KB
deploy/android_demo/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
deleted
100644 → 0
View file @
0458f0cc
8.91 KB
deploy/android_demo/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
deleted
100644 → 0
View file @
0458f0cc
14.8 KB
deploy/android_demo/app/src/main/res/values/arrays.xml
deleted
100644 → 0
View file @
0458f0cc
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array
name=
"cpu_thread_num_entries"
>
<item>
1 threads
</item>
<item>
2 threads
</item>
<item>
4 threads
</item>
<item>
8 threads
</item>
</string-array>
<string-array
name=
"cpu_thread_num_values"
>
<item>
1
</item>
<item>
2
</item>
<item>
4
</item>
<item>
8
</item>
</string-array>
<string-array
name=
"cpu_power_mode_entries"
>
<item>
HIGH(only big cores)
</item>
<item>
LOW(only LITTLE cores)
</item>
<item>
FULL(all cores)
</item>
<item>
NO_BIND(depends on system)
</item>
<item>
RAND_HIGH
</item>
<item>
RAND_LOW
</item>
</string-array>
<string-array
name=
"cpu_power_mode_values"
>
<item>
LITE_POWER_HIGH
</item>
<item>
LITE_POWER_LOW
</item>
<item>
LITE_POWER_FULL
</item>
<item>
LITE_POWER_NO_BIND
</item>
<item>
LITE_POWER_RAND_HIGH
</item>
<item>
LITE_POWER_RAND_LOW
</item>
</string-array>
<string-array
name=
"input_color_format_entries"
>
<item>
BGR color format
</item>
<item>
RGB color format
</item>
</string-array>
<string-array
name=
"input_color_format_values"
>
<item>
BGR
</item>
<item>
RGB
</item>
</string-array>
</resources>
\ No newline at end of file
deploy/android_demo/app/src/main/res/values/colors.xml
deleted
100644 → 0
View file @
0458f0cc
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color
name=
"colorPrimary"
>
#008577
</color>
<color
name=
"colorPrimaryDark"
>
#00574B
</color>
<color
name=
"colorAccent"
>
#D81B60
</color>
</resources>
deploy/android_demo/app/src/main/res/values/strings.xml
deleted
100644 → 0
View file @
0458f0cc
<resources>
<string
name=
"app_name"
>
OCR Chinese
</string>
<string
name=
"CHOOSE_PRE_INSTALLED_MODEL_KEY"
>
CHOOSE_PRE_INSTALLED_MODEL_KEY
</string>
<string
name=
"ENABLE_CUSTOM_SETTINGS_KEY"
>
ENABLE_CUSTOM_SETTINGS_KEY
</string>
<string
name=
"MODEL_PATH_KEY"
>
MODEL_PATH_KEY
</string>
<string
name=
"LABEL_PATH_KEY"
>
LABEL_PATH_KEY
</string>
<string
name=
"IMAGE_PATH_KEY"
>
IMAGE_PATH_KEY
</string>
<string
name=
"CPU_THREAD_NUM_KEY"
>
CPU_THREAD_NUM_KEY
</string>
<string
name=
"CPU_POWER_MODE_KEY"
>
CPU_POWER_MODE_KEY
</string>
<string
name=
"INPUT_COLOR_FORMAT_KEY"
>
INPUT_COLOR_FORMAT_KEY
</string>
<string
name=
"INPUT_SHAPE_KEY"
>
INPUT_SHAPE_KEY
</string>
<string
name=
"INPUT_MEAN_KEY"
>
INPUT_MEAN_KEY
</string>
<string
name=
"INPUT_STD_KEY"
>
INPUT_STD_KEY
</string>
<string
name=
"SCORE_THRESHOLD_KEY"
>
SCORE_THRESHOLD_KEY
</string>
<string
name=
"MODEL_PATH_DEFAULT"
>
models/ocr_v1_for_cpu
</string>
<string
name=
"LABEL_PATH_DEFAULT"
>
labels/ppocr_keys_v1.txt
</string>
<string
name=
"IMAGE_PATH_DEFAULT"
>
images/5.jpg
</string>
<string
name=
"CPU_THREAD_NUM_DEFAULT"
>
4
</string>
<string
name=
"CPU_POWER_MODE_DEFAULT"
>
LITE_POWER_HIGH
</string>
<string
name=
"INPUT_COLOR_FORMAT_DEFAULT"
>
BGR
</string>
<string
name=
"INPUT_SHAPE_DEFAULT"
>
1,3,960
</string>
<string
name=
"INPUT_MEAN_DEFAULT"
>
0.485, 0.456, 0.406
</string>
<string
name=
"INPUT_STD_DEFAULT"
>
0.229,0.224,0.225
</string>
<string
name=
"SCORE_THRESHOLD_DEFAULT"
>
0.1
</string>
</resources>
deploy/android_demo/app/src/main/res/values/styles.xml
deleted
100644 → 0
View file @
0458f0cc
<resources>
<!-- Base application theme. -->
<style
name=
"AppTheme"
parent=
"Theme.AppCompat.Light.DarkActionBar"
>
<!-- Customize your theme here. -->
<item
name=
"colorPrimary"
>
@color/colorPrimary
</item>
<item
name=
"colorPrimaryDark"
>
@color/colorPrimaryDark
</item>
<item
name=
"colorAccent"
>
@color/colorAccent
</item>
<item
name=
"actionOverflowMenuStyle"
>
@style/OverflowMenuStyle
</item>
</style>
<style
name=
"OverflowMenuStyle"
parent=
"Widget.AppCompat.Light.PopupMenu.Overflow"
>
<item
name=
"overlapAnchor"
>
false
</item>
</style>
<style
name=
"AppTheme.NoActionBar"
>
<item
name=
"windowActionBar"
>
false
</item>
<item
name=
"windowNoTitle"
>
true
</item>
</style>
<style
name=
"AppTheme.AppBarOverlay"
parent=
"ThemeOverlay.AppCompat.Dark.ActionBar"
/>
<style
name=
"AppTheme.PopupOverlay"
parent=
"ThemeOverlay.AppCompat.Light"
/>
</resources>
deploy/android_demo/app/src/main/res/xml/file_paths.xml
deleted
100644 → 0
View file @
0458f0cc
<?xml version="1.0" encoding="utf-8"?>
<paths
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<external-files-path
name=
"my_images"
path=
"Pictures"
/>
</paths>
\ No newline at end of file
deploy/android_demo/app/src/main/res/xml/settings.xml
deleted
100644 → 0
View file @
0458f0cc
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<PreferenceCategory
android:title=
"Model Settings"
>
<ListPreference
android:defaultValue=
"@string/MODEL_PATH_DEFAULT"
android:key=
"@string/CHOOSE_PRE_INSTALLED_MODEL_KEY"
android:negativeButtonText=
"@null"
android:positiveButtonText=
"@null"
android:title=
"Choose pre-installed models"
/>
<CheckBoxPreference
android:defaultValue=
"false"
android:key=
"@string/ENABLE_CUSTOM_SETTINGS_KEY"
android:summaryOn=
"Enable"
android:summaryOff=
"Disable"
android:title=
"Enable custom settings"
/>
<EditTextPreference
android:key=
"@string/MODEL_PATH_KEY"
android:defaultValue=
"@string/MODEL_PATH_DEFAULT"
android:title=
"Model Path"
/>
<EditTextPreference
android:key=
"@string/LABEL_PATH_KEY"
android:defaultValue=
"@string/LABEL_PATH_DEFAULT"
android:title=
"Label Path"
/>
<EditTextPreference
android:key=
"@string/IMAGE_PATH_KEY"
android:defaultValue=
"@string/IMAGE_PATH_DEFAULT"
android:title=
"Image Path"
/>
</PreferenceCategory>
<PreferenceCategory
android:title=
"CPU Settings"
>
<ListPreference
android:defaultValue=
"@string/CPU_THREAD_NUM_DEFAULT"
android:key=
"@string/CPU_THREAD_NUM_KEY"
android:negativeButtonText=
"@null"
android:positiveButtonText=
"@null"
android:title=
"CPU Thread Num"
android:entries=
"@array/cpu_thread_num_entries"
android:entryValues=
"@array/cpu_thread_num_values"
/>
<ListPreference
android:defaultValue=
"@string/CPU_POWER_MODE_DEFAULT"
android:key=
"@string/CPU_POWER_MODE_KEY"
android:negativeButtonText=
"@null"
android:positiveButtonText=
"@null"
android:title=
"CPU Power Mode"
android:entries=
"@array/cpu_power_mode_entries"
android:entryValues=
"@array/cpu_power_mode_values"
/>
</PreferenceCategory>
<PreferenceCategory
android:title=
"Input Settings"
>
<ListPreference
android:defaultValue=
"@string/INPUT_COLOR_FORMAT_DEFAULT"
android:key=
"@string/INPUT_COLOR_FORMAT_KEY"
android:negativeButtonText=
"@null"
android:positiveButtonText=
"@null"
android:title=
"Input Color Format: BGR or RGB"
android:entries=
"@array/input_color_format_entries"
android:entryValues=
"@array/input_color_format_values"
/>
<EditTextPreference
android:key=
"@string/INPUT_SHAPE_KEY"
android:defaultValue=
"@string/INPUT_SHAPE_DEFAULT"
android:title=
"Input Shape: (1,1,max_width_height) or (1,3,max_width_height)"
/>
<EditTextPreference
android:key=
"@string/INPUT_MEAN_KEY"
android:defaultValue=
"@string/INPUT_MEAN_DEFAULT"
android:title=
"Input Mean: (channel/255-mean)/std"
/>
<EditTextPreference
android:key=
"@string/INPUT_STD_KEY"
android:defaultValue=
"@string/INPUT_STD_DEFAULT"
android:title=
"Input Std: (channel/255-mean)/std"
/>
</PreferenceCategory>
<PreferenceCategory
android:title=
"Output Settings"
>
<EditTextPreference
android:key=
"@string/SCORE_THRESHOLD_KEY"
android:defaultValue=
"@string/SCORE_THRESHOLD_DEFAULT"
android:title=
"Score Threshold"
/>
</PreferenceCategory>
</PreferenceScreen>
deploy/android_demo/app/src/test/java/com/baidu/paddle/lite/demo/ocr/ExampleUnitTest.java
deleted
100644 → 0
View file @
0458f0cc
package
com.baidu.paddle.lite.demo.ocr
;
import
org.junit.Test
;
import
static
org
.
junit
.
Assert
.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public
class
ExampleUnitTest
{
@Test
public
void
addition_isCorrect
()
{
assertEquals
(
4
,
2
+
2
);
}
}
\ No newline at end of file
deploy/android_demo/build.gradle
deleted
100644 → 0
View file @
0458f0cc
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript
{
repositories
{
google
()
jcenter
()
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.4.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects
{
repositories
{
google
()
jcenter
()
}
}
task
clean
(
type:
Delete
)
{
delete
rootProject
.
buildDir
}
deploy/android_demo/gradle.properties
deleted
100644 → 0
View file @
0458f0cc
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs
=
-Xmx1536m
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
deploy/android_demo/gradle/wrapper/gradle-wrapper.jar
deleted
100644 → 0
View file @
0458f0cc
File deleted
deploy/android_demo/gradle/wrapper/gradle-wrapper.properties
deleted
100644 → 0
View file @
0458f0cc
#Wed Jul 22 23:48:44 CST 2020
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-5.1.1-all.zip
deploy/android_demo/gradlew
deleted
100644 → 0
View file @
0458f0cc
#!/usr/bin/env sh
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# 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
\"
`
/"
>
/dev/null
APP_HOME
=
"
`
pwd
-P
`
"
cd
"
$SAVED
"
>
/dev/null
APP_NAME
=
"Gradle"
APP_BASE_NAME
=
`
basename
"
$0
"
`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS
=
""
# 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
nonstop
=
false
case
"
`
uname
`
"
in
CYGWIN
*
)
cygwin
=
true
;;
Darwin
*
)
darwin
=
true
;;
MINGW
*
)
msys
=
true
;;
NONSTOP
*
)
nonstop
=
true
;;
esac
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"
-a
"
$nonstop
"
=
"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
"
`
JAVACMD
=
`
cygpath
--unix
"
$JAVACMD
"
`
# 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
# Escape application args
save
()
{
for
i
do
printf
%s
\\
n
"
$i
"
|
sed
"s/'/'
\\\\
''/g;1s/^/'/;
\$
s/
\$
/'
\\\\
/"
;
done
echo
" "
}
APP_ARGS
=
$(
save
"
$@
"
)
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set
--
$DEFAULT_JVM_OPTS
$JAVA_OPTS
$GRADLE_OPTS
"
\"
-Dorg.gradle.appname=
$APP_BASE_NAME
\"
"
-classpath
"
\"
$CLASSPATH
\"
"
org.gradle.wrapper.GradleWrapperMain
"
$APP_ARGS
"
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if
[
"
$(
uname
)
"
=
"Darwin"
]
&&
[
"
$HOME
"
=
"
$PWD
"
]
;
then
cd
"
$(
dirname
"
$0
"
)
"
fi
exec
"
$JAVACMD
"
"
$@
"
deploy/android_demo/gradlew.bat
deleted
100644 → 0
View file @
0458f0cc
@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
set
DIRNAME
=
%~dp0
if
"
%DIRNAME%
"
==
""
set
DIRNAME
=
.
set
APP_BASE_NAME
=
%~n0
set
APP_HOME
=
%DIRNAME%
@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
=
@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 Windows variants
if not "
%OS%
" == "
Windows_NT
" goto win9xME_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=
%
*
: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
Prev
1
2
3
4
5
6
7
8
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment