maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [maven] MartinKanters commented on a change in pull request #329: [MNG-5760] resume from without args
Date Thu, 20 Feb 2020 19:32:00 GMT
MartinKanters commented on a change in pull request #329: [MNG-5760] resume from without args
URL: https://github.com/apache/maven/pull/329#discussion_r382212314
 
 

 ##########
 File path: maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
 ##########
 @@ -1079,6 +1084,33 @@ private String getResumeFrom( List<MavenProject> mavenProjects,
MavenProject fai
         return ":" + failedProject.getArtifactId();
     }
 
+    private boolean createResumeFromCacheFile( MavenExecutionResult result, String resumeFromProject
)
+    {
+        String buildDirectory = result.getProject().getBuild().getDirectory();
+        File buildDirectoryFile = new File( buildDirectory );
+        boolean isBuildDirectoryPresent = ( buildDirectoryFile.exists() || buildDirectoryFile.mkdirs()
);
+        if ( isBuildDirectoryPresent )
+        {
+            Path resumeFromCache = Paths.get( buildDirectory, "resume-from-cache" );
+            try
+            {
+                Files.write( resumeFromCache, resumeFromProject.getBytes() );
 
 Review comment:
   Ok, but do you think we should implement this already, or only when we need more data there?

----------------------------------------------------------------
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

Mime
View raw message