- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for getProtectionDomain (0.4 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) -
subprojects/core/src/testFixtures/groovy/org/gradle/process/TestJavaMain.java
*/ public class TestJavaMain { public static String getClassLocation() { try { return new File(TestJavaMain.class.getProtectionDomain().getCodeSource().getLocation().toURI()).getAbsolutePath(); } catch (URISyntaxException e) { throw new IllegalStateException(e); } } public static void main(String[] args) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Dec 23 00:18:08 UTC 2021 - 1.9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/installation/GradleRuntimeShadedJarDetector.java
if (clazz == null) { throw new IllegalArgumentException("Need to provide valid class reference"); } CodeSource codeSource = clazz.getProtectionDomain().getCodeSource(); if (codeSource != null) { URL location = codeSource.getLocation(); if (isJarUrl(location)) { try {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 04 03:44:18 UTC 2016 - 2.8K 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
projectToInspector.clear(); } @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; }
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) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/JapicmpTask.java
dependencies.create("com.google.guava:guava:30.1.1-jre") ); } private void addClasspathFor(Class<?> clazz, Set<File> classpath) { ProtectionDomain domain = clazz.getProtectionDomain(); CodeSource codeSource = domain.getCodeSource(); if (codeSource != null) { try { classpath.add(new File(codeSource.getLocation().toURI()));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 26 10:58:32 UTC 2023 - 13.3K bytes - Viewed (0)