- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for fileSafeNameFor (0.19 sec)
-
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/OutputDirSelectorUtil.java
/** * Moved here from OutputDirSelector to work around * <a href="https://issues.apache.org/jira/browse/GROOVY-10591">GROOVY-10591</a> */ public class OutputDirSelectorUtil { public static String fileSafeNameFor(String name) { String fileSafeName = name.trim().replaceAll("[^a-zA-Z0-9.-]", "-").replaceAll("-+", "-"); return (fileSafeName.endsWith("-")) ? fileSafeName.substring(0, fileSafeName.length() - 1)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.1K bytes - Viewed (0) -
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/DefaultOutputDirSelector.groovy
? fallbackDirectory : new File(debugArtifactsDirectoryPath) } @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) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.8K bytes - Viewed (0) -
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/AbstractBuildExperimentRunner.java
outputDir = new File(outputDirSelector.outputDirFor(testId), version); } else { outputDir = new File(outputDirSelector.outputDirFor(testId), OutputDirSelectorUtil.fileSafeNameFor(spec.getDisplayName())); } outputDir.mkdirs(); return outputDir; } private static String getExperimentOverride(String key) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 8.5K bytes - Viewed (0) -
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/GradleBuildExperimentRunner.java
.add(jvmOptsFromGradleProperties) .addAll(invocationSpec.getJvmArguments()) .build(); return new GradleScenarioDefinition( OutputDirSelectorUtil.fileSafeNameFor(experimentSpec.getDisplayName()), experimentSpec.getDisplayName(), (GradleBuildInvoker) invocationSettings.getInvoker(),
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 13.5K bytes - Viewed (0)