Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 551 - 560 of 1,060 for Try (0.28 seconds)

  1. compat/maven-embedder/src/main/java/org/apache/maven/cli/CleanArgument.java

    package org.apache.maven.cli;
    
    import java.util.ArrayList;
    import java.util.List;
    
    /**
     * CleanArgument
     */
    @Deprecated
    public class CleanArgument {
        public static String[] cleanArgs(String[] args) {
            try {
                return doCleanArgs(args);
            } catch (RuntimeException e) {
                for (String a : args) {
                    System.out.println("Arg: '" + a + "'");
                }
                throw e;
            }
    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)
  2. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/util/KotlinSourceParser.kt

        fun configureKotlinCompilerIoForWindowsSupport() =
            org.jetbrains.kotlin.cli.common.environment.setIdeaIoUseFallback()
    }
    
    
    private
    inline fun <T : Any?> Disposable.use(action: Disposable.() -> T) =
        try {
            action(this)
        } finally {
            Disposer.dispose(this)
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Sep 16 08:22:33 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java

            public LifecycleWrapperProvider(PlexusContainer container) {
                this.container = container;
            }
    
            @Override
            public Collection<Lifecycle> provides() {
                try {
                    Map<String, org.apache.maven.lifecycle.Lifecycle> all =
                            container.lookupMap(org.apache.maven.lifecycle.Lifecycle.class);
                    return all.keySet().stream()
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 20.1K bytes
    - Click Count (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategy.java

            Set<Path> processedPoms = new HashSet<>();
            Set<Path> modifiedPoms = new HashSet<>();
            Set<Path> errorPoms = new HashSet<>();
    
            try {
                // Phase 1: Write all modifications to temp directory (keeping project structure)
                Path tempDir = createTempProjectStructure(context, pomMap);
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 37K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/io/CloseablesTest.java

      // be thrown by Closeables.close;
      private void doClose(Closeable closeable, boolean swallowException, boolean expectThrown)
          throws IOException {
        try {
          Closeables.close(closeable, swallowException);
          if (expectThrown) {
            fail("Didn't throw exception.");
          }
        } catch (IOException e) {
          if (!expectThrown) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  6. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/AboutTheStubs.html

    and can be asserted as desired.
    
    You can change/extend these stubs, and tests should not be breaking too much, since most tests
    assert using expected values from the stubs. Normally, when you try to use data from the stubs that
    have not been properly populated, you'll get a nullpointer in your test and you then have to
    identify which stub creates that specific piece of data.
    
    The most important stubs are:
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/io/MultiInputStream.java

        this.it = checkNotNull(it);
        advance();
      }
    
      @Override
      public void close() throws IOException {
        if (in != null) {
          try {
            in.close();
          } finally {
            in = null;
          }
        }
      }
    
      /** Closes the current input stream and opens the next one, if any. */
      private void advance() throws IOException {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed May 14 19:40:47 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/util/concurrent/DirectExecutorService.java

       */
      @GuardedBy("lock")
      private int runningTasks = 0;
    
      @GuardedBy("lock")
      private boolean shutdown = false;
    
      @Override
      public void execute(Runnable command) {
        startTask();
        try {
          command.run();
        } finally {
          endTask();
        }
      }
    
      @Override
      public boolean isShutdown() {
        synchronized (lock) {
          return shutdown;
        }
      }
    
      @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 16 14:23:59 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  9. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderFactoryTest.java

                    .getActivation()
                    .getFile()
                    .getExists()
                    .contains(BASE_DIR));
        }
    
        private static Model readPom(File file) throws Exception {
            try (InputStream is = Files.newInputStream(file.toPath())) {
                return new MavenStaxReader().read(is);
            }
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/ClingSupport.java

                @Nullable InputStream stdIn,
                @Nullable OutputStream stdOut,
                @Nullable OutputStream stdErr,
                boolean embedded)
                throws IOException {
            try (Invoker invoker = createInvoker()) {
                return invoker.invoke(createParser()
                        .parseInvocation(createParserRequestBuilder(args)
                                .stdIn(stdIn)
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Feb 08 16:25:25 GMT 2025
    - 3.6K bytes
    - Click Count (0)
Back to Top