- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for createResource (0.28 sec)
-
platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/processing/IsolatingFilerTest.groovy
filer.createResource(StandardLocation.SOURCE_OUTPUT, "", "foo.txt", methodInside("Bar"), methodInside("Bar")) then: !result.fullRebuildCause } def "packages are valid originating elements"() { when: filer.createSourceFile("Foo", pkg("fizz")) filer.createResource(StandardLocation.SOURCE_OUTPUT, "", "foo.txt", pkg("fizz"))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 5K bytes - Viewed (0) -
platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/processing/AggregatingFilerTest.groovy
def "resources with same path but different location are distinct"() { when: filer.createResource(StandardLocation.SOURCE_OUTPUT, "com.enterprise.software", "foo.txt", type("A")) filer.createResource(StandardLocation.CLASS_OUTPUT, "com.enterprise.software", "foo.txt", type("A")) filer.createResource(StandardLocation.NATIVE_HEADER_OUTPUT, "com.enterprise.software", "foo.txt", type("A")) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 3.7K bytes - Viewed (0) -
platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/processing/IncrementalFiler.java
} @Override public final FileObject createResource(JavaFileManager.Location location, CharSequence pkg, CharSequence relativeName, Element... originatingElements) throws IOException { // Prefer having javac validate the location over us, by calling it first. FileObject resource = delegate.createResource(location, pkg, relativeName, originatingElements);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 2.7K bytes - Viewed (0) -
platforms/jvm/language-java/src/testFixtures/groovy/org/gradle/language/fixtures/ResourceGeneratingProcessorFixture.groovy
outputLocations = locations this } String getGeneratorCode() { def outputs = outputLocations.collect { """ resourceFile = filer.createResource($it, \"\", resourceName${providesNoOriginatingElements ? '' : ', element'}); writer = resourceFile.openWriter(); try { writer.write("We did it."); } finally {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 2.4K bytes - Viewed (0) -
pilot/pkg/config/kube/crdclient/client_test.go
Name: "name1", Namespace: "ns1", GroupVersionKind: r.GroupVersionKind(), } createResource(t, store, r, configMeta1) configMeta2 := config.Meta{ Name: "name2", Namespace: "ns2", GroupVersionKind: r.GroupVersionKind(), } createResource(t, store, r, configMeta2) retry.UntilSuccessOrFail(t, func() error { l := store.List(r.GroupVersionKind(), "")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 02:58:52 UTC 2024 - 14.1K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/revived_types/partially_revived_objects.cc
TFConcreteFunction* create_resource = nullptr; // Check all the functions associated with the resource have already been // initialized in `revived` if (resource_revival_state.create_resource != nullptr) { create_resource = revived->concrete_functions.Find( resource_revival_state.create_resource->node_id); if (create_resource == nullptr) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 09 20:11:48 UTC 2023 - 23.7K bytes - Viewed (0) -
platforms/jvm/language-java/src/testFixtures/groovy/org/gradle/language/fixtures/ServiceRegistryProcessorFixture.groovy
} finally { writer.close(); } } if (roundEnv.processingOver()) { FileObject resourceFile = filer.createResource($resourceLocation, "", "ServiceRegistryResource.txt", allElements.toArray(new Element[0])); Writer writer = resourceFile.openWriter(); try {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 3.1K bytes - Viewed (0) -
platforms/jvm/language-java/src/testFixtures/groovy/org/gradle/language/fixtures/HelperProcessorFixture.groovy
messager.printMessage(Diagnostic.Kind.ERROR, "Failed to generate source file " + className, element); } """ def resourceCode = writeResources ? """ try { FileObject resourceFile = filer.createResource($resourceLocation, "", className + "Resource.txt", ${withMultipleOriginatingElements ? "elements.toArray(new Element[0])" : "element"}); Writer writer = resourceFile.openWriter(); try {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 4.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/create.go
func CreateNamedResource(r rest.NamedCreater, scope *RequestScope, admission admission.Interface) http.HandlerFunc { return createHandler(r, scope, admission, true) } // CreateResource returns a function that will handle a resource creation. func CreateResource(r rest.Creater, scope *RequestScope, admission admission.Interface) http.HandlerFunc { return createHandler(&namedCreaterAdapter{r}, scope, admission, false) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 20:19:46 UTC 2023 - 10.1K bytes - Viewed (0) -
platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/InstrumentationCodeGeneratorHost.java
try { Element[] originatingElements = getOriginatingElements(filteredRequests).toArray(new Element[0]); FileObject resource = filer.createResource(StandardLocation.CLASS_OUTPUT, resourceResult.getPackageName(), resourceResult.getName(), originatingElements); try (OutputStream outputStream = resource.openOutputStream()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Oct 02 15:44:14 UTC 2023 - 6.8K bytes - Viewed (0)