Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make packageName variable available in template recipe #29

Open
horseunnamed opened this issue Dec 28, 2020 · 0 comments
Open

Make packageName variable available in template recipe #29

horseunnamed opened this issue Dec 28, 2020 · 0 comments

Comments

@horseunnamed
Copy link
Member

Не хватает возможности использовать packageName в выражениях рецепта.
Два возможных сценария использования.

  1. Делать так:
  - predicate:
      validIf: ${needTests}
      commands:
        - mkDirs:
            - ${rootOut}:
                - test:
                    - java:
                        - ${packageName}
  1. Объявлять globals для вложенных пакетов, для сокращения бойлерплейта в шаблонах. Например, делать
    package ${modelPackage}
    вместо того, чтобы каждый раз писать
    package ${packageName}.${fragmentPackage}.model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant