- Sort Score
- Num 10 results
- Language All
Results 1001 - 1010 of 3,004 for if (0.01 seconds)
-
compat/maven-compat/src/main/java/org/apache/maven/toolchain/java/JavaToolchainImpl.java
if (toRet != null) { return toRet.toAbsolutePath().toString(); } return null; } private static Path findTool(String toolName, Path installDir) { Path bin = installDir.resolve("bin"); // NOI18N if (Files.isDirectory(bin)) { if (Os.IS_WINDOWS) { Path tool = bin.resolve(toolName + ".exe");Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 2.6K bytes - Click Count (0) -
internal/bucket/lifecycle/transition_test.go
</Transition>`, err: errXMLNotWellFormed, }, } for i, tc := range trTests { var tr Transition err := xml.Unmarshal([]byte(tc.input), &tr) if err != nil { t.Fatalf("%d: xml unmarshal failed with %v", i+1, err) } if err = tr.Validate(); err != tc.err { t.Fatalf("%d: Invalid transition %v: err %v", i+1, tr, err) } } ntrTests := []struct { input string err error }{Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Oct 01 18:58:17 GMT 2021 - 2.3K bytes - Click Count (0) -
build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/ide/AndroidStudioSystemProperties.kt
val studioInstallationProvider = providers.provider { if (autoDownloadAndroidStudio) { studioInstallation } else { null } } override fun asArguments(): Iterable<String> { val systemProperties = mutableListOf<String>() systemProperties.add(getStudioHome()) if (runAndroidStudioInHeadlessMode) {Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Feb 20 09:51:32 GMT 2024 - 2.9K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CleanArgument.java
} // this has to be a separate "if" statement, to capture the case of: "-Dfoo=bar" if (addedToBuffer && arg.endsWith("\"")) { // if we're building an argument, keep doing so. // if this is the case of "-Dfoo=bar", then we need to adjust the buffer. if (!currentArg.isEmpty()) { currentArg.setLength(currentArg.length() - 1);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Mar 28 12:11:25 GMT 2025 - 3.4K bytes - Click Count (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/ArtifactUtils.java
int lastHyphen = version.lastIndexOf('-'); if (lastHyphen > 0) { int prevHyphen = version.lastIndexOf('-', lastHyphen - 1); if (prevHyphen > 0) { Matcher m = Artifact.VERSION_FILE_PATTERN.matcher(version); if (m.matches()) { return m.group(1) + "-" + Artifact.SNAPSHOT_VERSION; }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 6.9K bytes - Click Count (0) -
cmd/config-migrate.go
for _, cfgFile := range configFiles { if _, err = Load(cfgFile, cfg); err != nil { if !osIsNotExist(err) && !osIsPermission(err) { return nil, err } continue } data, _ = json.Marshal(cfg) break } if osIsPermission(err) { logger.Info("Older config found but is not readable %s, proceeding to read config from other places", err) } if osIsNotExist(err) || osIsPermission(err) || len(data) == 0 {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 5.4K bytes - Click Count (0) -
.teamcity/src/main/kotlin/configurations/GradleBuildConfigurationDefaults.kt
dir: String, exitOnFailure: Boolean = true, ) = """ IF exist $dir ( TREE $dir RMDIR /S /Q $dir ${if (exitOnFailure) "EXIT 1" else ""} ) """.trimIndent() fun BuildFeatures.publishBuildStatusToGithub(model: CIBuildModel) { if (model.publishStatusToGitHub) { publishBuildStatusToGithub() } } fun BuildFeatures.enablePullRequestFeature() { pullRequests {Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Nov 20 07:29:52 GMT 2025 - 8.6K bytes - Click Count (0) -
tests/main_test.go
DB.Model(&User{}).Count(&count2) if count1 != count2 { t.Errorf("No user should not be deleted by invalid SQL") } } func TestSetAndGet(t *testing.T) { if value, ok := DB.Set("hello", "world").Get("hello"); !ok { t.Errorf("Should be able to get setting after set") } else if value.(string) != "world" { t.Errorf("Set value should not be changed") } if _, ok := DB.Get("non_existing"); ok {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Thu Mar 24 01:31:58 GMT 2022 - 1.4K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/model/ClassDoc.groovy
def table = getSection(title).table[0] if (!table) { throw new RuntimeException("Section '$title' does not contain a <table> element.") } if (!table.thead[0]) { throw new RuntimeException("Table '$title' does not contain a <thead> element.") } if (!table.thead[0].tr[0]) {
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 6.2K bytes - Click Count (0) -
src/bytes/compare_test.go
a[i] = 8 b[i] = 9 } cmp := Compare(a[:len], b[:len]) if cmp != 0 { t.Errorf(`CompareIdentical(%d) = %d`, len, cmp) } if len > 0 { cmp = Compare(a[:len-1], b[:len]) if cmp != -1 { t.Errorf(`CompareAshorter(%d) = %d`, len, cmp) } cmp = Compare(a[:len], b[:len-1]) if cmp != 1 { t.Errorf(`CompareBshorter(%d) = %d`, len, cmp) } }
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Jul 13 23:11:42 GMT 2023 - 6.8K bytes - Click Count (0)