- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for copyAssets (0.27 sec)
-
platforms/documentation/docs/src/snippets/files/copy/kotlin/build.gradle.kts
// tag::standalone-copyspec[] val webAssetsSpec: CopySpec = copySpec { from("src/main/webapp") include("**/*.html", "**/*.png", "**/*.jpg") rename("(.+)-staging(.+)", "$1$2") } tasks.register<Copy>("copyAssets") { into(layout.buildDirectory.dir("inPlaceApp")) with(webAssetsSpec) } tasks.register<Zip>("distApp") { archiveFileName = "my-app-dist.zip"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 8.2K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/files/copy/groovy/build.gradle
// tag::standalone-copyspec[] CopySpec webAssetsSpec = copySpec { from 'src/main/webapp' include '**/*.html', '**/*.png', '**/*.jpg' rename '(.+)-staging(.+)', '$1$2' } tasks.register('copyAssets', Copy) { into layout.buildDirectory.dir("inPlaceApp") with webAssetsSpec } tasks.register('distApp', Zip) { archiveFileName = 'my-app-dist.zip'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 7.9K bytes - Viewed (0) -
platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/files/SamplesCopyIntegrationTest.groovy
def "can use a standalone copyspec within a copy with #dsl dsl"() { given: def dslDir = sample.dir.file(dsl) executer.inDirectory(dslDir) when: succeeds('copyAssets') then: def outputDir = dslDir.file("build/inPlaceApp") outputDir.file('web.xml').assertDoesNotExist() outputDir.file('index-staging.html').assertDoesNotExist()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 15.7K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/working_with_files.adoc
==== include::sample[dir="snippets/files/copy/kotlin",files="build.gradle.kts[tags=standalone-copyspec]"] include::sample[dir="snippets/files/copy/groovy",files="build.gradle[tags=standalone-copyspec]"] ==== Both the `copyAssets` and `distApp` tasks will process the static resources under `src/main/webapp`, as specified by `webAssetsSpec`. [NOTE] ====
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 24 04:19:09 UTC 2024 - 70.5K bytes - Viewed (0)