Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getCodeSource (0.22 sec)

  1. platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/services/NativeServicesInitializationTest.groovy

            Constructor[] constructors = NativeServices.getConstructors()
    
            expect:
            constructors.size() == 0
        }
    
        private static URL jar(Class clazz) {
            clazz.getProtectionDomain().getCodeSource().getLocation()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 08:51:56 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. platforms/core-runtime/wrapper-main/src/main/java/org/gradle/wrapper/GradleWrapperMain.java

        }
    
        private static File wrapperJar() {
            URI location;
            try {
                location = GradleWrapperMain.class.getProtectionDomain().getCodeSource().getLocation().toURI();
            } catch (URISyntaxException e) {
                throw new RuntimeException(e);
            }
            if (!location.getScheme().equals("file")) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/TransformReplacer.java

        private static File getOriginalFile(ProtectionDomain protectionDomain) {
            // CodeSource is null for dynamically defined classes, or if the ClassLoader doesn't set them properly.
            CodeSource cs = protectionDomain.getCodeSource();
            URL originalUrl = cs != null ? cs.getLocation() : null;
            if (originalUrl == null || !"file".equals(originalUrl.getProtocol())) {
                // Cannot transform classes from anything but files
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top