You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2019/08/30 18:15:25 UTC

[GitHub] [ignite] dmagda commented on a change in pull request #6816: IGNITE-12103 Change fallback work dir to ignite/work, put README.txt

dmagda commented on a change in pull request #6816: IGNITE-12103 Change fallback work dir to ignite/work, put README.txt
URL: https://github.com/apache/ignite/pull/6816#discussion_r319265808
 
 

 ##########
 File path: modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
 ##########
 @@ -9294,7 +9294,26 @@ else if (!F.isEmpty(userIgniteHome))
                         IgniteSystemProperties.IGNITE_WORK_DIR + ") must be explicitly set."
                 );
 
-            workDir = new File(userDir, DEFAULT_WORK_DIR);
+            File igniteDir = new File(userDir, "ignite");
+
+            try {
+                igniteDir.mkdirs();
+
+                File readme = new File(igniteDir, "README.txt");
+
+                if (!readme.exists()) {
+                    U.writeStringToFile(readme, "This is location of Apache Ignite default working directory.\n" +
 
 Review comment:
   Ilya, please change this text a bit:
   
   "This is Apache Ignite working directory that stores information needed by Ignite to function normally. Don't delete it unless you're sure what you're doing. You can change the location of the directory with"...(the APIs listed by you Ilya)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services