当我运行./gradlew时,为什么最后一行始终显示">建筑物87%> :bootRun&#34 ;?

时间:2015-12-02 19:09:04

标签: jhipster

我正在使用来自终端的mac运行命令。当我在新生成的应用程序上运行./gradlew时,将显示启动消息以及所有日志记录。然后输出的最后一行始终是> Building 87% > :bootRun。即使显示更多日志记录,也始终是最后一行。

新生成的应用似乎运行正常。然而,"建立87%"表明事情还没有结束。

> Building 87% > :bootRun是什么意思,这是一个问题吗?

dking@dking-mbp ~/Projects/test/myapp (master)$ ./gradlew
Starting the Unit and Integration test
:generateMainMapperClasses
:bower
:processResources
:compileJava
:compileScala UP-TO-DATE
:classes
:findMainClass
:bootRun

        ██  ██    ██  ████████  ███████    ██████  ████████  ████████  ███████
        ██  ██    ██     ██     ██    ██  ██          ██     ██        ██    ██
        ██  ████████     ██     ███████    █████      ██     ██████    ███████
  ██    ██  ██    ██     ██     ██             ██     ██     ██        ██   ██
   ██████   ██    ██  ████████  ██        ██████      ██     ████████  ██    ██

:: JHipster   :: Running Spring Boot 1.3.0.RELEASE ::
:: http://jhipster.github.io ::

[INFO] com.test.myapp.admin.Application - Starting Application on dking-mbp.home with PID 31568 (/Users/dking/Projects/test/myapp/build/classes/main started by dking in /Users/dking/Projects/test/myapp)
[DEBUG] com.test.myapp.admin.Application - Running with Spring Boot v1.3.0.RELEASE, Spring v4.2.3.RELEASE
[INFO] com.test.myapp.admin.Application - The following profiles are active: dev
[DEBUG] com.test.myapp.admin.config.AsyncConfiguration - Creating Async Task Executor
[DEBUG] com.test.myapp.admin.config.MetricsConfiguration - Registering JVM gauges
[DEBUG] com.test.myapp.admin.config.MetricsConfiguration - Initializing Metrics JMX reporting
[INFO] com.test.myapp.admin.config.WebConfigurer - Web application configuration, using profiles: [dev]
[DEBUG] com.test.myapp.admin.config.WebConfigurer - Initializing Metrics registries
[DEBUG] com.test.myapp.admin.config.WebConfigurer - Registering Metrics Filter
[DEBUG] com.test.myapp.admin.config.WebConfigurer - Registering Metrics Servlet
[DEBUG] com.test.myapp.admin.config.WebConfigurer - Initialize H2 console
[INFO] com.test.myapp.admin.config.WebConfigurer - Web application fully configured
[DEBUG] com.test.myapp.admin.config.DatabaseConfiguration - Configuring Datasource
[DEBUG] com.test.myapp.admin.config.DatabaseConfiguration - Configuring Liquibase
[WARN] com.test.myapp.admin.config.liquibase.AsyncSpringLiquibase - Starting Liquibase asynchronously, your database might not be ready at startup!
[DEBUG] com.test.myapp.admin.config.CacheConfiguration - No cache
[INFO] com.test.myapp.admin.Application - Running with Spring profile(s) : [dev]
[INFO] com.test.myapp.admin.config.ThymeleafConfiguration - loading non-reloadable mail messages resources
[DEBUG] com.test.myapp.admin.config.apidoc.SwaggerConfiguration - Starting Swagger
[DEBUG] com.test.myapp.admin.config.apidoc.SwaggerConfiguration - Started Swagger in 12 ms
[DEBUG] com.test.myapp.admin.aop.logging.LoggingAspect - Enter: com.test.myapp.admin.repository.CustomAuditEventRepository.auditEventRepository() with argument[s] = []
[DEBUG] com.test.myapp.admin.aop.logging.LoggingAspect - Exit: com.test.myapp.admin.repository.CustomAuditEventRepository.auditEventRepository() with result = com.test.myapp.admin.repository.CustomAuditEventRepository$1@6a073c63
[INFO] com.test.myapp.admin.Application - Started Application in 8.847 seconds (JVM running for 9.22)
[INFO] com.test.myapp.admin.Application - Access URLs:
----------------------------------------------------------
    Local:      http://127.0.0.1:8080
    External:   http://192.168.87.14:8080
----------------------------------------------------------
[DEBUG] com.test.myapp.admin.config.liquibase.AsyncSpringLiquibase - Started Liquibase in 5800 ms
> Building 87% > :bootRun

1 个答案:

答案 0 :(得分:1)

昨晚我问Gradle人们这件事。他们说这是因为Gradle计算了作为构建过程运行的任务的百分比。当" bootrun"执行时,构建中87%的任务已经运行。