0
나는 android라는 폴더가 있습니다. 그 안에는 활동과 파편이라는 두 개의 빈 하위 폴더가 있습니다. 조각 폴더에서 FragmentA.txt, FragmentB.txt를 복사하고 Activity 폴더 안에 MainActivity txt를 복사하고 싶습니다.Gradle 3.0의 복사 작업으로 실행
은 내가 이런 식으로 뭔가를 사용한다는 것을 알고있다.
task copyFragments(type: Copy){
from: '...'
into '...'
}
그러나 나는 그들을 복사하기 위해 FragmentA 및 FragmentB.txt 파일을 선택하는 방법을 알지 못합니다.
task copyFragments(type: Copy){
from 'android' {
include '*.txt'
into android/fragments
}
}
그러나 그것은 작동하지 않습니다
나는이 시도.A problem occurred evaluating root project 'FoldersTasks'.
> Could not find method android() for arguments
[[email protected]] on task
':copyFragments' of type org.gradle.api.tasks.Copy.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --
debug option to get more log output.
BUILD FAILED
가능한 복제 [무엇 \ * \ *하는 Gradle을 복사 작업에 의미를 (http://stackoverflow.com/questions/20217397/ 무슨 의미에서 - gradle - 복사 작업) –