Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for shortenPath (0.23 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/verification/report/DependencyVerificationReportWriter.java

            String shortenPath = shortenPath(f.getFilePath());
            File signatureFile = f.getSignatureFile();
            if (signatureFile != null) {
                return shortenPath + " (signature: " + shortenPath(signatureFile) + ")";
            }
            return shortenPath;
        }
    
        // Shortens the path for display the user
        private String shortenPath(File file) {
            Path path = file.toPath();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:42:50 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/DefaultOutputDirSelector.groovy

        }
    
        @Override
        File outputDirFor(String testId) {
            String fileSafeName = OutputDirSelectorUtil.fileSafeNameFor(testId)
            return new File(baseOutputDir, shortenPath(fileSafeName, 40))
        }
    
        private static String shortenPath(String longName, int expectedMaxLength) {
            if (longName.length() <= expectedMaxLength) {
                return longName
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/AbstractTestDirectoryProvider.java

            }
            if (prefix == null) {
                String safeMethodName = shortenPath(methodName.replaceAll("[^\\w]", "_"), 16);
                prefix = String.format("%s/%s", className, safeMethodName);
            }
        }
    
        /*
         Shorten a long name to at most {expectedMaxLength}, replace middle characters with ".".
         */
        private String shortenPath(String longName, int expectedMaxLength) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top