ducttape icon indicating copy to clipboard operation
ducttape copied to clipboard

Allow paths to be defined using variable references in RHS of assignments

Open dowobeha opened this issue 12 years ago • 2 comments

It would be nice to allow the following:

task foo :: dir=path/to/dir

a=$dir/a.txt b=$dir/b.txt {

... Bash code ...

}

dowobeha avatar Apr 04 '12 19:04 dowobeha

If you can capture variables that are part of paths, I can easily dereference and do substitution in DirectoryArchitect.scala

jhclark avatar Apr 06 '12 02:04 jhclark

Note: This implies that param variables will take precedence over global variables within the scope of a task when using the $var syntax.

jhclark avatar May 09 '12 14:05 jhclark