Как изменить контент на groovy? - PullRequest
0 голосов
/ 16 апреля 2020

Это исходный файл

cmake_minimum_required(VERSION 3.4.1)

add_library( # Sets the name of the library.
        $cipherLib

        # Sets the library as a shared library.
        SHARED

        # Provides a relative path to your source file(s).
        src/main/cpp/cipher-lib.cpp
        src/main/cpp/base64.c
        src/main/cpp/aes.c
        )

find_library( # Sets the name of the path variable.
        log-lib

        # Specifies the name of the NDK library that
        # you want CMake to locate.
        log)

# Specifies libraries CMake should link to your target library. You
# can link multiple libraries, such as libraries you define in this
# build script, prebuilt third-party libraries, or system libraries.

target_link_libraries( # Specifies the target library.
        $cipherLib

        # Links the target library to the log library
        # included in the NDK.
        ${log-lib})

Это моя задача

task test123(type: Copy) {
    group "123"
    from project.buildDir
    include "CMakeLists.txt"
    expand([cipherLib: '123'])
    into new File("aaa")
}

Я использую expand(), чтобы изменить cipherLib, но ошибка и MSG

Не удалось получить неизвестное свойство 'log' для задачи ': test: test123' типа org.gradle.api.tasks.Copy.

но мне нужно только изменить содержимое cipherLib, так как это сделать?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...