《gradle 用户指南》中文版 目录-尊龙官方平台

《gradle 用户指南》中文版 目录

el/2024/3/25 19:20:09

gradle 用户指南 

尊龙凯时官方的版权所有©2007-2017 hans dockter,adam murdoch
只要您不对这些副本收取任何费用,并且进一步规定,每个副本都包含本尊龙凯时官方的版权声明,无论是以印刷版还是电子版分发,本文档的副本可供您自己使用并分发给他人。

目录

一、关于 gradle

1、简介
2、概述

二、使用现有构建

3、安装 gradle

3.1 权限导致的问题:gradle could not create service of type crossbuildfilehashcache using buildsessionscopeservices.createcrossbuildfilehashcache().

4、使用 gradle 命令行

5、gradle 控制台
6、gradle 包装器
7、gradle 守护进程
8、依赖管理基础
9、多项目建设介绍
10、持续构建
11、复合构建
12、构建环境
13、故障排除
14、使用工具api嵌入 gradle
15、构建缓存

三、编写gradle构建脚本

16、构建脚本基础
17、构建初始化插件
18、编写脚本
19、更多关于任务
20、使用文件
21、使用蚂蚁从gradle
22、构建生命周期
23、包装插件
24、记录
25、依附管理
26、多项目建设
27、毕业插件
28、标准gradle插件
29、项目报告插件
30、构建仪表板插件
31、比较建筑
32、发行文物
33、maven插件
34、签名插件
35、常春藤出版社(新)
36、maven publishing(新)
37、分配插件
38、宣布插件

39、构建公告插件

四、扩展构建

40、编写自定义任务类
41、编写自定义插件
42、java gradle插件开发插件
43、组织建构逻辑
44、初始化脚本
45、gradle testkit

五、构建jvm项目

46、java快速启动
47、java插件
48、java库插件
49、web应用程序快速启动
50、war插件
51、ear插件
52、应用程序插件
53、java库分发插件
54、groovy快速入门
55、groovy插件
56、scala插件
57、antlr插件
58、checkstyle插件
59、codenarc插件
60、findbugs插件
61、jdepend插件
62、pmd插件
63、jacoco插件
64、osgi插件
65、eclipse插件
66、idea插件

六、软件模型

67、基于规则的模型配置
68、软件模型概念
69、在插件中实现模型规则
70、构建java库
71、建立播放应用程序
72、构建本地软件
73、扩展软件模型

七、附录

a、gradle 样本
b、潜在陷阱
c、特征生命周期
d、格林指挥线
e、文件许可
词汇表

示例列表

4.1. executing multiple tasks
4.2. excluding tasks
4.3. abbreviated task name
4.4. abbreviated camel case task name
4.5. selecting the project using a build file
4.6. selecting the project using project directory
4.7. forcing tasks to run
4.8. obtaining information about projects
4.9. providing a description for a project
4.10. obtaining information about tasks
4.11. changing the content of the task report
4.12. obtaining more information about tasks
4.13. obtaining detailed help for tasks
4.14. obtaining information about dependencies
4.15. filtering dependency report by configuration
4.16. getting the insight into a particular dependency
4.17. information about properties
6.1. running the wrapper task
6.2. wrapper task
6.3. wrapper generated files
6.4. specifying the http basic authentication credentials using system properties
6.5. specifying the http basic authentication credentials in distributionurl
6.6. generating a sha-256 hash
6.7. configuring sha-256 checksum verification
8.1. declaring dependencies
8.2. definition of an external dependency
8.3. shortcut definition of an external dependency
8.4. usage of maven central repository
8.5. usage of jcenter repository
8.6. usage of a remote maven repository
8.7. usage of a remote ivy directory
8.8. usage of a local ivy directory
8.9. publishing to an ivy repository
8.10. publishing to a maven repository
9.1. listing the projects in a build
11.1. dependencies of my-app
11.2. declaring a command-line composite
11.3. declaring a separate composite
11.4. depending on task from included build
11.5. build that does not declare group attribute
11.6. declaring the substitutions for an included build
11.7. depending on a single task from an included build
11.8. depending on a tasks with path in all included builds
12.1. setting properties with a gradle.properties file
12.2. configuring an http proxy
12.3. configuring an https proxy
14.1. using the tooling api
15.1. pull from httpbuildcache
15.2. recommended setup for ci push use case
15.3. consistent setup for buildsrc and main build
15.4. configure built-in build caches
16.1. your first build script
16.2. execution of a build script
16.3. a task definition shortcut
16.4. using groovy in gradle's tasks
16.5. using groovy in gradle's tasks
16.6. declaration of task that depends on other task
16.7. lazy dependson - the other task does not exist (yet)
16.8. dynamic creation of a task
16.9. accessing a task via api - adding a dependency
16.10. accessing a task via api - adding behaviour
16.11. accessing task as a property of the build script
16.12. adding extra properties to a task
16.13. using antbuilder to execute ant.loadfile target
16.14. using methods to organize your build logic
16.15. defining a default task
16.16. different outcomes of build depending on chosen tasks
18.1. accessing property of the project object
18.2. using local variables
18.3. using extra properties
18.4. configuring arbitrary objects
18.5. configuring arbitrary objects using a script
18.6. groovy jdk methods
18.7. property accessors
18.8. method call without parentheses
18.9. list and map literals
18.10. closure as method parameter
18.11. closure delegates
19.1. defining tasks
19.2. defining tasks - using strings for task names
19.3. defining tasks with alternative syntax
19.4. accessing tasks as properties
19.5. accessing tasks via tasks collection
19.6. accessing tasks by path
19.7. creating a copy task
19.8. configuring a task - various ways
19.9. configuring a task - with closure
19.10. defining a task with closure
19.11. adding dependency on task from another project
19.12. adding dependency using task object
19.13. adding dependency using closure
19.14. adding a 'must run after' task ordering
19.15. adding a 'should run after' task ordering
19.16. task ordering does not imply task execution
19.17. a 'should run after' task ordering is ignored if it introduces an ordering cycle
19.18. adding a description to a task
19.19. overwriting a task
19.20. skipping a task using a predicate
19.21. skipping tasks with stopexecutionexception
19.22. enabling and disabling tasks
19.23. custom task class
19.24. ad-hoc task
19.25. ad-hoc task declaring a destroyable
19.26. using runtime api with custom task type
19.27. using skipwhenempty() via the runtime api
19.28. inferred task dependency via task outputs
19.29. inferred task dependency via a task argument
19.30. declaring a method to add task inputs
19.31. declaring a method to add a task as an input
19.32. failed attempt at setting up an inferred task dependency
19.33. setting up an inferred task dependency between output dir and input files
19.34. setting up an inferred task dependency with files()
19.35. setting up an inferred task dependency with builtby()
19.36. ignoring up-to-date checks
19.37. runtime classpath normalization
19.38. task rule
19.39. dependency on rule based tasks
19.40. adding a task finalizer
19.41. task finalizer for a failing task
20.1. locating files
20.2. creating a file collection
20.3. using a file collection
20.4. implementing a file collection
20.5. creating a file tree
20.6. using a file tree
20.7. using an archive as a file tree
20.8. specifying a set of files
20.9. copying files using the copy task
20.10. specifying copy task source files and destination directory
20.11. selecting the files to copy
20.12. copying files using the copy() method without up-to-date check
20.13. copying files using the copy() method with up-to-date check
20.14. renaming files as they are copied
20.15. filtering files as they are copied
20.16. nested copy specs
20.17. using the sync task to copy dependencies
20.18. creating a zip archive
20.19. creation of zip archive
20.20. configuration of archive task - custom archive name
20.21. configuration of archive task - appendix & classifier
20.22. activating reproducible archives
21.1. using an ant task
21.2. passing nested text to an ant task
21.3. passing nested elements to an ant task
21.4. using an ant type
21.5. using a custom ant task
21.6. declaring the classpath for a custom ant task
21.7. using a custom ant task and dependency management together
21.8. importing an ant build
21.9. task that depends on ant target
21.10. adding behaviour to an ant target
21.11. ant target that depends on gradle task
21.12. renaming imported ant targets
21.13. setting an ant property
21.14. getting an ant property
21.15. setting an ant reference
21.16. getting an ant reference
21.17. fine tuning ant logging
22.1. single project build
22.2. hierarchical layout
22.3. flat layout
22.4. modification of elements of the project tree
22.5. adding of test task to each project which has certain property set
22.6. notifications
22.7. setting of certain property to all tasks
22.8. logging of start and end of each task execution
24.1. using stdout to write log messages
24.2. writing your own log messages
24.3. using slf4j to write log messages
24.4. configuring standard output capture
24.5. configuring standard output capture for a task
24.6. customizing what gradle logs
25.1. definition of a configuration
25.2. accessing a configuration
25.3. configuration of a configuration
25.4. module dependencies
25.5. artifact only notation
25.6. dependency with classifier
25.7. iterating over a configuration
25.8. client module dependencies - transitive dependencies
25.9. project dependencies
25.10. file dependencies
25.11. generated file dependencies
25.12. gradle api dependencies
25.13. gradle's groovy dependencies
25.14. excluding transitive dependencies
25.15. optional attributes of dependencies
25.16. collections and arrays of dependencies
25.17. dependency configurations
25.18. dependency configurations for project
25.19. configuration.copy
25.20. accessing declared dependencies
25.21. configuration.files
25.22. configuration.files with spec
25.23. configuration.copy
25.24. configuration.copy vs. configuration.files
25.25. adding central maven repository
25.26. adding bintray's jcenter maven repository
25.27. using bintrays's jcenter with http
25.28. adding google maven repository
25.29. adding the local maven cache as a repository
25.30. adding custom maven repository
25.31. adding additional maven repositories for jar files
25.32. accessing password protected maven repository
25.33. flat repository resolver
25.34. ivy repository
25.35. ivy repository with named layout
25.36. ivy repository with pattern layout
25.37. ivy repository with multiple custom patterns
25.38. ivy repository with maven compatible layout
25.39. ivy repository
25.40. declaring a maven and ivy repository
25.41. providing credentials to a maven and ivy repository
25.42. declaring a s3 backed maven and ivy repository
25.43. declaring a s3 backed maven and ivy repository using iam
25.44. configure repository to use only digest authentication
25.45. configure repository to use preemptive authentication
25.46. accessing a repository
25.47. configuration of a repository
25.48. definition of a custom repository
25.49. forcing consistent version for a group of libraries
25.50. using a custom versioning scheme
25.51. blacklisting a version with a replacement
25.52. changing dependency group and/or name at the resolution
25.53. substituting a module with a project
25.54. substituting a project with a module
25.55. conditionally substituting a dependency
25.56. specifying default dependencies on a configuration
25.57. enabling dynamic resolve mode
25.58. 'latest' version selector
25.59. custom status scheme
25.60. custom status scheme by module
25.61. ivy component metadata rule
25.62. rule source component metadata rule
25.63. component selection rule
25.64. component selection rule with module target
25.65. component selection rule with metadata
25.66. component selection rule using a rule source object
25.67. declaring module replacement
25.68. dynamic version cache control
25.69. changing module cache control
26.1. multi-project tree - water & bluewhale projects
26.2. build script of water (parent) project
26.3. multi-project tree - water, bluewhale & krill projects
26.4. water project build script
26.5. defining common behavior of all projects and subprojects
26.6. defining specific behaviour for particular project
26.7. defining specific behaviour for project krill
26.8. adding custom behaviour to some projects (filtered by project name)
26.9. adding custom behaviour to some projects (filtered by project properties)
26.10. running build from subproject
26.11. evaluation and execution of projects
26.12. evaluation and execution of projects
26.13. running tasks by their absolute path
26.14. dependencies and execution order
26.15. dependencies and execution order
26.16. dependencies and execution order
26.17. declaring dependencies
26.18. declaring dependencies
26.19. cross project task dependencies
26.20. configuration time dependencies
26.21. configuration time dependencies - evaluationdependson
26.22. configuration time dependencies
26.23. dependencies - real life example - crossproject configuration
26.24. project lib dependencies
26.25. project lib dependencies
26.26. fine grained control over dependencies
26.27. build and test single project
26.28. partial build and test single project
26.29. build and test depended on projects
26.30. build and test dependent projects
27.1. applying a script plugin
27.2. applying a core plugin
27.3. applying a community plugin
27.4. applying plugins only on certain subprojects.
27.5. using plugins from custom plugin repositories.
27.6. plugin resolution strategy.
27.7. complete plugin publishing sample
27.8. applying a binary plugin
27.9. applying a binary plugin by type
27.10. applying a plugin with the buildscript block
30.1. using the build dashboard plugin
32.1. defining an artifact using an archive task
32.2. defining an artifact using a file
32.3. customizing an artifact
32.4. map syntax for defining an artifact using a file
32.5. configuration of the upload task
33.1. using the maven plugin
33.2. creating a stand alone pom.
33.3. upload of file to remote maven repository
33.4. upload of file via ssh
33.5. customization of pom
33.6. builder style customization of pom
33.7. modifying auto-generated content
33.8. customization of maven installer
33.9. generation of multiple poms
33.10. accessing a mapping configuration
34.1. using the signing plugin
34.2. signing a configuration
34.3. signing a configuration output
34.4. signing a task
34.5. signing a task output
34.6. conditional signing
34.7. signing a pom for deployment
35.1. applying the “ivy-publish” plugin
35.2. publishing a java module to ivy
35.3. publishing additional artifact to ivy
35.4. customizing the publication identity
35.5. customizing the module descriptor file
35.6. publishing multiple modules from a single project
35.7. declaring repositories to publish to
35.8. choosing a particular publication to publish
35.9. publishing all publications via the “publish” lifecycle task
35.10. generating the ivy module descriptor file
35.11. publishing a java module
35.12. example generated ivy.xml
36.1. applying the 'maven-publish' plugin
36.2. adding a mavenpublication for a java component
36.3. adding additional artifact to a mavenpublication
36.4. customizing the publication identity
36.5. modifying the pom file
36.6. publishing multiple modules from a single project
36.7. declaring repositories to publish to
36.8. publishing a project to a maven repository
36.9. publish a project to the maven local repository
36.10. generate a pom file without publishing
37.1. using the distribution plugin
37.2. adding extra distributions
37.3. configuring the main distribution
37.4. publish main distribution
38.1. using the announce plugin
38.2. configure the announce plugin
38.3. using the announce plugin
39.1. using the build announcements plugin
39.2. using the build announcements plugin from an init script
40.1. defining a custom task
40.2. a hello world task
40.3. a customizable hello world task
40.4. a build for a custom task
40.5. a custom task
40.6. using a custom task in another project
40.7. testing a custom task
40.8. defining an incremental task action
40.9. running the incremental task for the first time
40.10. running the incremental task with unchanged inputs
40.11. running the incremental task with updated input files
40.12. running the incremental task with an input file removed
40.13. running the incremental task with an output file removed
40.14. running the incremental task with an input property changed
41.1. a custom plugin
41.2. a custom plugin extension
41.3. a custom plugin with configuration closure
41.4. evaluating file properties lazily
41.5. mapping extension properties to task properties
41.6. a build for a custom plugin
41.7. wiring for a custom plugin
41.8. using a custom plugin in another project
41.9. applying a community plugin with the plugins dsl
41.10. testing a custom plugin
41.11. using the java gradle plugin development plugin
41.12. managing domain objects
42.1. using the java gradle plugin development plugin
42.2. using the gradleplugin {} block.
43.1. using inherited properties and methods
43.2. using injected properties and methods
43.3. configuring the project using an external build script
43.4. custom buildsrc build script
43.5. adding subprojects to the root buildsrc project
43.6. running another build from a build
43.7. declaring external dependencies for the build script
43.8. a build script with external dependencies
43.9. ant optional dependencies
44.1. using init script to perform extra configuration before projects are evaluated
44.2. declaring external dependencies for an init script
44.3. an init script with external dependencies
44.4. using plugins in init scripts
45.1. declaring the testkit dependency
45.2. declaring the junit dependency
45.3. using gradlerunner with junit
45.4. using gradlerunner with spock
45.5. making the code under test classpath available to the tests
45.6. injecting the code under test classes into test builds
45.7. injecting the code under test classes into test builds for gradle versions prior to 2.8
45.8. using the java gradle development plugin for generating the plugin metadata
45.9. automatically injecting the code under test classes into test builds
45.10. reconfiguring the classpath generation conventions of the java gradle development plugin
45.11. specifying a gradle version for test execution
45.12. testing cacheable tasks
46.1. using the java plugin
46.2. building a java project
46.3. adding maven repository
46.4. adding dependencies
46.5. customization of manifest.mf
46.6. adding a test system property
46.7. publishing the jar file
46.8. eclipse plugin
46.9. java example - complete build file
46.10. multi-project build - hierarchical layout
46.11. multi-project build - settings.gradle file
46.12. multi-project build - common configuration
46.13. multi-project build - dependencies between projects
46.14. multi-project build - distribution file
47.1. using the java plugin
47.2. custom java source layout
47.3. accessing a source set
47.4. configuring the source directories of a source set
47.5. defining a source set
47.6. defining source set dependencies
47.7. compiling a source set
47.8. assembling a jar for a source set
47.9. generating the javadoc for a source set
47.10. running tests in a source set
47.11. declaring annotation processors
47.12. filtering tests in the build script
47.13. junit categories
47.14. grouping testng tests
47.15. preserving order of testng tests
47.16. grouping testng tests by instances
47.17. creating a unit test report for subprojects
47.18. customization of manifest.mf
47.19. creating a manifest object.
47.20. separate manifest.mf for a particular archive
47.21. configure java 6 build
48.1. using the java library plugin
48.2. declaring api and implementation dependencies
48.3. making the difference between api and implementation
48.4. declaring api and implementation dependencies
48.5. configuring the groovy plugin to work with java library
49.1. war plugin
49.2. running web application with gretty plugin
50.1. using the war plugin
50.2. customization of war plugin
51.1. using the ear plugin
51.2. customization of ear plugin
52.1. using the application plugin
52.2. configure the application main class
52.3. configure default jvm settings
52.4. include output from other tasks in the application distribution
52.5. automatically creating files for distribution
53.1. using the java library distribution plugin
53.2. configure the distribution name
53.3. include files in the distribution
54.1. groovy plugin
54.2. dependency on groovy
54.3. groovy example - complete build file
55.1. using the groovy plugin
55.2. custom groovy source layout
55.3. configuration of groovy dependency
55.4. configuration of groovy test dependency
55.5. configuration of bundled groovy dependency
55.6. configuration of groovy file dependency
55.7. configure java 6 build for groovy
56.1. using the scala plugin
56.2. custom scala source layout
56.3. declaring a scala dependency for production code
56.4. declaring a scala dependency for test code
56.5. declaring a version of the zinc compiler to use
56.6. forcing a scala-library dependency for all configurations
56.7. forcing a scala-library dependency for the zinc configuration
56.8. adjusting memory settings
56.9. forcing all code to be compiled
56.10. configure java 6 build for scala
56.11. explicitly specify a target intellij idea version
57.1. using the antlr plugin
57.2. declare antlr version
57.3. setting custom max heap size and extra arguments for antlr
58.1. using the checkstyle plugin
58.2. using the config_loc property
58.3. customizing the html report
59.1. using the codenarc plugin
60.1. using the findbugs plugin
60.2. customizing the html report
61.1. using the jdepend plugin
62.1. using the pmd plugin
63.1. applying the jacoco plugin
63.2. configuring jacoco plugin settings
63.3. configuring test task
63.4. configuring violation rules
63.5. configuring test task
63.6. using application plugin to generate code coverage data
63.7. coverage reports generated by applicationcodecoveragereport
64.1. using the osgi plugin
64.2. configuration of osgi manifest.mf file
65.1. using the eclipse plugin
65.2. using the eclipse wtp plugin
65.3. partial overwrite for classpath
65.4. partial overwrite for project
65.5. export dependencies
65.6. customizing the xml
66.1. using the idea plugin
66.2. partial rewrite for module
66.3. partial rewrite for project
66.4. export dependencies
66.5. customizing the xml
67.1. applying a rule source plugin
67.2. a model creation rule
67.3. a model mutation rule
67.4. creating a task
67.5. a managed type
67.6. a string property
67.7. a file property
67.8. a long property
67.9. a boolean property
67.10. an int property
67.11. a managed property
67.12. an enumeration type property
67.13. a managed set
67.14. strongly modelling sources sets
67.15. a dsl example applying a rule to every element in a scope
67.16. dsl configuration rule
67.17. configuration run when required
67.18. configuration not run when not required
67.19. dsl creation rule
67.20. dsl creation rule without initialization
67.21. initialization before configuration
67.22. nested dsl creation rule
67.23. nested dsl configuration rule
67.24. dsl configuration rule for each element in a map
67.25. nested dsl property configuration
67.26. a dsl example showing type conversions
67.27. a dsl rule using inputs
67.28. model task output
70.1. using the java software plugins
70.2. creating a java library
70.3. configuring a source set
70.4. creating a new source set
70.5. the components report
70.6. declaring a dependency onto a library
70.7. declaring a dependency onto a project with an explicit library
70.8. declaring a dependency onto a project with an implicit library
70.9. declaring a dependency onto a library published to a maven repository
70.10. declaring a module dependency using shorthand notation
70.11. configuring repositories for dependency resolution
70.12. specifying api packages
70.13. specifying api dependencies
70.14. main sources
70.15. client component
70.16. broken client component
70.17. recompiling the client
70.18. declaring target platforms
70.19. declaring binary specific sources
70.20. declaring target platforms
70.21. using the junit plugin
70.22. executing the test suite
70.23. executing the test suite
70.24. declaring a component under test
70.25. declaring local java installations
71.1. using the play plugin
71.2. the components report
71.3. selecting a version of the play framework
71.4. adding dependencies to a play application
71.5. adding extra source sets to a play application
71.6. configuring scala compiler options
71.7. configuring routes style
71.8. configuring a custom asset pipeline
71.9. configuring dependencies on play subprojects
71.10. add extra files to a play application distribution
71.11. applying both the play and idea plugins
72.1. defining a library component
72.2. defining executable components
72.3. sample build
72.4. dependent components report
72.5. dependent components report
72.6. report of components that depends on the operators component
72.7. report of components that depends on the operators component, including test suites
72.8. assemble components that depends on the passing/static binary of the operators component
72.9. build components that depends on the passing/static binary of the operators component
72.10. adding a custom check task
72.11. running checks for a given binary
72.12. the components report
72.13. the 'cpp' plugin
72.14. c source set
72.15. the 'c' plugin
72.16. c source set
72.17. the 'assembler' plugin
72.18. the 'objective-c' plugin
72.19. the 'objective-cpp' plugin
72.20. settings that apply to all binaries
72.21. settings that apply to all shared libraries
72.22. settings that apply to all binaries produced for the 'main' executable component
72.23. settings that apply only to shared libraries produced for the 'main' library component
72.24. the 'windows-resources' plugin
72.25. configuring the location of windows resource sources
72.26. building a resource-only dll
72.27. providing a library dependency to the source set
72.28. providing a library dependency to the binary
72.29. declaring project dependencies
72.30. creating a precompiled header file
72.31. including a precompiled header file in a source file
72.32. configuring a precompiled header
72.33. defining build types
72.34. configuring debug binaries
72.35. defining platforms
72.36. defining flavors
72.37. targeting a component at particular platforms
72.38. building all possible variants
72.39. defining tool chains
72.40. reconfigure tool arguments
72.41. defining target platforms
72.42. registering cunit tests
72.43. running cunit tests
72.44. registering googletest tests
73.1. an example of using a custom software model
73.2. declare a custom component
73.3. register a custom component
73.4. declare a custom binary
73.5. register a custom binary
73.6. declare a custom source set
73.7. register a custom source set
73.8. generates documentation binaries
73.9. generates tasks for text source sets
73.10. register a custom source set
73.11. an example of using a custom software model
73.12. components report
73.13. public type and internal view declaration
73.14. type registration
73.15. public and internal data mutation
73.16. example build script and model report output
b.1. variables scope: local and script wide
b.2. distinct configuration and execution phase

原文:https://docs.gradle.org/current/userguide/userguide.html



http://www.ngui.cc/el/5127727.html

相关文章

gradle could not create service of type crossbuildfilehashcache using buildsessionscopeservices.crea

gradle could not create service of type crossbuildfilehashcache using buildsessionscopeservices.createcrossbuildfilehashcache(). 使用 sdk 命令安装完成 gradle 之后,执行 gradle 命令时提示以下信息: $ gradlefailure: build failed with an exception.* what wen…

gradle-wrapper.properties中各属性的含义

gradle-wrapper.properties中各属性的含义 1. gradle-wrapper.properties 每一个用gradle编译的工程,都会有一个gradle\wrapper目录。该目录下有2个文件:gradle-wrapper.jar和gradle-wrapper.properties。 其中gradle-wrapper.properties的内容如下&…

java.sql.sqlexception: incorrect string value: '\xf0\x9f\x98\xb3' for column 'content' at row 1

在尝试将 emoji 表情符号 插入mysql数据库时,遇到以下错误信息: ### the error occurred while setting parameters ### sql: insert into comment ( id, comment_type, content_id, physician_id, conten…

macos 下安装sdkman 软件开发工具包管理器

sdkman 软件开发工具包管理器的安装非常简单,只需要打开终端,执行: $ curl -s "https://get.sdkman.io" | bash 就ok了,输出类似如下: thanks for using... sssssssssssssss ddddddddddddd kkkkkk…

device-dependent bitmaps (ddb) 设备相关位图

设备相关的位图(ddb) 使用单一结构bitmap结构描述。 该结构的成员指定矩形区域的宽度和高度,以像素为单位; 将条目从设备调色板映射到像素的数组的宽度; 以及器件的颜色格式,在每个像素的颜色平面和位数方面。 应用程序可以通过调…

unable to connect to any of the specified mysql hosts.

c#连接mysql数据建立连接时提示:unable to connect to any of the specified mysql hosts. 出现此错误的原因是server(数据库服务器ip地址填写错误) 当server配置值是“(local)”或者是"(localhost)"时都会产生此错误,…

无法访问 memorystream 的内部缓冲区

无法访问 memorystream 的内部缓冲区 在处理剪贴板数据时, ms.getbuffer() 语句出现异常,代码如下: //检索当前位于系统剪贴板中的数据idataobject ido clipboard.getdataobject();//获取存储在 idataobject 实例中的数据所关联的或可以转换…

nginx -s stop and -s quit 有什么区别?

quit is a graceful shutdown. nginx finishes serving the open connections before shutdown quit 是一个优雅的关闭方式,nginx在退出前完成已经接受的连接请求。stop is a quick shutdown where is terminates in between serving the connection stop 是快速关…

《gradle 用户指南》中文版 第4章 使用gradle命令行

第4章 使用gradle命令行 目录 4.1、执行多个任务 4.2、排除任务 4.3、发生故障时继续构建 4.4、任务名缩写 4.5、选择要执行的构建 4.6、强制执行任务 4.7、获取有关您的构建的信息 4.8、演习 4.9、总结 本章介绍了gradle命令行的基础知识。 您使用gradle命令运行构建…

《gradle 用户指南》中文版 第二部分、使用现有构建

第二部分、使用现有构建 目录 第3章 安装 gradle 3.1 先决条件 3.2 下载 3.3 解压 3.4 环境变量 3.5 运行和测试您的安装 3.6 jvm选项 3.7 安装(以上为手动安装方式,比较麻烦,可以使用 sdk,homebrew,macports…
网站地图