- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for getCodeSource (0.2 sec)
-
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r22/BuildActionCrossVersionSpec.groovy
public class ActionImpl implements ${BuildAction.name}<java.io.File> { public java.io.File execute(${BuildController.name} controller) { try { return new java.io.File(getClass().getProtectionDomain().getCodeSource().getLocation().toURI()); } catch (java.net.URISyntaxException e) { throw new RuntimeException(e); } } } """ builder.buildJar(implJar)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 3.9K bytes - Viewed (0) -
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) -
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) -
platforms/core-configuration/declarative-dsl-provider/src/integTest/groovy/org/gradle/internal/declarativedsl/PluginClasspathLeakIntegrationTest.groovy
given: publishedPluginWhichExecutesCode( "group", "artifact", "1.0", """System.out.println("jar = " + new File(kotlinx.serialization.modules.SerializersModuleKt.class.getProtectionDomain().getCodeSource().getLocation().toURI()).getName());""" ) buildFile << """ buildscript { dependencies { classpath 'group:artifact:1.0' }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 01 09:47:33 UTC 2024 - 4.5K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/execution/plan/TaskNodeFactory.java
} @Nullable private File jarFileFor(Class<?> pluginClass) { return clazzToFile.computeIfAbsent(pluginClass, clazz -> toFile(pluginClass.getProtectionDomain().getCodeSource().getLocation())); } @Nullable private static File toFile(@Nullable URL url) { if (url == null) { return null; } try {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 02:21:10 UTC 2024 - 5.9K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/ClasspathUtil.java
} } public static File getClasspathForClass(Class<?> targetClass) { URI location; try { CodeSource codeSource = targetClass.getProtectionDomain().getCodeSource(); if (codeSource != null && codeSource.getLocation() != null) { location = toURI(codeSource.getLocation()); if (location.getScheme().equals("file")) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 7.2K bytes - Viewed (0) -
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)