You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "jeho0815 (JIRA)" <ji...@apache.org> on 2019/04/10 08:19:00 UTC

[jira] [Closed] (SCB-1177) update vertx to 3.6+ version to result .vertx directory was default created

     [ https://issues.apache.org/jira/browse/SCB-1177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jeho0815 closed SCB-1177.
-------------------------
    Resolution: Fixed

> update vertx to 3.6+ version to result .vertx directory was default created 
> ----------------------------------------------------------------------------
>
>                 Key: SCB-1177
>                 URL: https://issues.apache.org/jira/browse/SCB-1177
>             Project: Apache ServiceComb
>          Issue Type: Improvement
>          Components: Java-Chassis
>            Reporter: jeho0815
>            Assignee: jeho0815
>            Priority: Major
>             Fix For: java-chassis-1.2.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> latest vertx use the config to 
> {code:java}
> public class FileSystemOptions {
> /**
> * The default behavior for caching files for class path resolution = {@code false} if and only if the system property {@code "vertx.disableFileCaching"} exists and is set to the string {@code "false"}
> */
> public static final boolean DEFAULT_FILE_CACHING_ENABLED = !Boolean.getBoolean(DISABLE_FILE_CACHING_PROP_NAME);
> /**
> * The default behavior to cache or not class path resolution = {@code false} if and only if the system property {@code "vertx.disableFileCPResolving"} exists and is set to the string {@code "false"}
> */
> public static final boolean DEFAULT_CLASS_PATH_RESOLVING_ENABLED = !Boolean.getBoolean(DISABLE_CP_RESOLVING_PROP_NAME);
> private boolean classPathResolvingEnabled = DEFAULT_CLASS_PATH_RESOLVING_ENABLED;
> private boolean fileCachingEnabled = DEFAULT_FILE_CACHING_ENABLED;
> {code}
> the default value change to static final, but the ServiceComb use System.setProperty, it dose not work now
> {code:java}
> /**
> * 配置vertx的文件缓存功能,默认关闭
> */
> protected static void configureVertxFileCaching() {
> if (System.getProperty(FileResolver.DISABLE_CP_RESOLVING_PROP_NAME) == null) {
> System.setProperty(FileResolver.DISABLE_CP_RESOLVING_PROP_NAME, "true");
> }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)