Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 286 for GetFile (0.18 sec)

  1. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultArtifactManager.java

                for (MavenProject project : session.getMavenSession().getAllProjects()) {
                    if (id.equals(id(project.getArtifact()))
                            && project.getArtifact().getFile() != null) {
                        return Optional.of(project.getArtifact().getFile().toPath());
                    }
                }
            }
            Path path = paths.get(id);
            if (path == null && artifact instanceof DefaultArtifact) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 16:33:18 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. src/go/parser/error_test.go

    	"regexp"
    	"strings"
    	"testing"
    )
    
    var traceErrs = flag.Bool("trace_errs", false, "whether to enable tracing for error tests")
    
    const testdata = "testdata"
    
    // getFile assumes that each filename occurs at most once
    func getFile(fset *token.FileSet, filename string) (file *token.File) {
    	fset.Iterate(func(f *token.File) bool {
    		if f.Name() == filename {
    			if file != nil {
    				panic(filename + " used multiple times")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 19:47:49 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  3. platforms/software/resources/src/main/java/org/gradle/internal/resource/StringTextResource.java

                hasher.putHash(SIGNATURE);
                hasher.putString(getText());
                contentHash = hasher.hash();
            }
            return contentHash;
        }
    
        @Override
        public File getFile() {
            return null;
        }
    
        @Override
        public Charset getCharset() {
            return null;
        }
    
        @Override
        public ResourceLocation getLocation() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. platforms/software/ivy/src/main/java/org/gradle/api/publish/ivy/internal/artifact/NormalizedIvyArtifact.java

        public NormalizedIvyArtifact(IvyArtifactInternal artifact) {
            this.name = artifact.getName();
            this.type = artifact.getType();
            this.conf = artifact.getConf();
            this.file = artifact.getFile();
            this.extension = artifact.getExtension();
            this.classifier = artifact.getClassifier();
            this.shouldBePublished = new DefaultProvider<>(artifact::shouldBePublished);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/internal/transformation/impl/TransformedArtifact.java

        }
    
        @Override
        public boolean isResolved() {
            return getFile() != null;
        }
    
        @Override
        public void setFile(File file) {
            throw new UnsupportedOperationException("transformed artifact file cannot be set");
        }
    
        @Override
        public synchronized File getFile() {
            try {
                String state = mayUpdate();
                if (state == null) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Jan 10 12:55:54 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. platforms/ide/ide-plugins/src/integTest/groovy/org/gradle/plugins/ide/idea/IdeaProjectIntegrationTest.groovy

            //when
            runTask('idea', '''
    apply plugin: "java"
    apply plugin: "idea"
    
    idea.project {
        vcs = 'Git'
    }
    ''')
    
            //then
            def ipr = getFile([:], 'root.ipr').text
    
            assert ipr.contains('<mapping directory="" vcs="Git"/>')
        }
    
        @Test
        @ToBeFixedForConfigurationCache
        void enablesCustomizationsOnNewModel() {
            //when
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  7. maven-compat/src/main/java/org/apache/maven/profiles/activation/FileProfileActivator.java

        protected boolean canDetectActivation(Profile profile) {
            return profile.getActivation() != null && profile.getActivation().getFile() != null;
        }
    
        public boolean isActive(Profile profile) {
            Activation activation = profile.getActivation();
    
            ActivationFile actFile = activation.getFile();
    
            if (actFile != null) {
                // check if the file exists, if it does then the profile will be active
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Sep 14 11:48:15 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/FileProfileActivator.java

            Activation activation = profile.getActivation();
    
            if (activation == null) {
                return false;
            }
    
            ActivationFile file = activation.getFile();
    
            if (file == null) {
                return false;
            }
    
            String path;
            boolean missing;
    
            if (file.getExists() != null && !file.getExists().isEmpty()) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Sep 26 17:50:21 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/groovy/scripts/TextResourceScriptSource.java

            return resource;
        }
    
        @Override
        public String getFileName() {
            ResourceLocation location = resource.getLocation();
            if (location.getFile() != null) {
                return location.getFile().getPath();
            }
            if (location.getURI() != null) {
                return location.getURI().toString();
            }
            return getClassName();
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jul 07 10:24:10 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/initialization/transform/utils/InstrumentationClasspathMerger.java

                checkArgument(transformedArtifact.getId() instanceof TransformedComponentFileArtifactIdentifier);
                return new ClassPathTransformedArtifact(transformedArtifact.getFile(), OriginalArtifactIdentifier.of(transformedArtifact));
            }
    
            @Override
            public String toString() {
                return "ClassPathTransformedArtifact{" +
                    "file=" + file +
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 29 19:11:55 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top