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

Execute task in subdirectory #26

Open
davthu opened this issue Jul 16, 2019 · 2 comments
Open

Execute task in subdirectory #26

davthu opened this issue Jul 16, 2019 · 2 comments

Comments

@davthu
Copy link

davthu commented Jul 16, 2019

Is your feature request related to a problem? Please describe.
Is it possible to set the current working directory before executing a task? And if so, is it possible to set a relative path (relative to the build.gradle file)?

Describe the solution you'd like

task runBuildNPM(type: NodeJsTask, dependsOn: [installNPM]) {
    require = ["npm"]
    executable = "npm"
    args = ['run', 'build'],
    workingDir = "./submodule"
}

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@davthu
Copy link
Author

davthu commented Jul 18, 2019

This works already, i verified it :-)

@marianocaldara
Copy link

Someone can write it in kts?
I have problem to assign NodeJsTask to task type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants