This message was deleted.
# community-support
s
This message was deleted.
v
Did you hit some limitation? I'm not aware of any docs about it. But I would either assume there is no restriction, but then the convenient accessors might not work, or the restriction to be identifier names so that the accessors work. But if I were to guess, then the former.
a
I was adding objects that were named by the the file path, so
/path/to/some-file.txt
, and I was wondering if that would be a problem. I ended up converting the paths to camelCase so that the generated accessors were pretty, but perhaps that’s not necessary?
v
TIAS :-D
a
TIAS?
v
Try it and see
a
ahhh
I don’t really have the patience to try and dig around with Gradle today :)
e
AFAIK there are no restrictions on namers but typed accessors are only generated for legal Kotlin names
p
Without testing I would say illegal Kotlin names are just escaped, like the plugin ids.
v
For tasks it complains:
The task name '/path/to/some-file.txt' must not contain any of the following characters: [/, \, :, <, >, ", ?, *, |].
And that seems to not be task-specific
It also must not start or end with dot
But from a quick look this seesm to only apply to selected containers. projects, tasks, configurations, source sets, artifact types, native flavors
e
v
"many" as in "four" 🙂
e
name filter also permits ``` which isn't a legal Kotlin identifier part, so it's still possible for a generated accessor to not work
well those are the most common containers, probably