Hi,
i've been using Xpand previously, and I'm somehow lost to achieve the following:
We are more or less generating a JPA repository with certain findByXXX methods, and we want to allow the programmer to provide his own finder methods. To achieve that, we generate an abstract java class as JPA repository, and if the target file does not exist, generate the class that derives from this class and where the user can add his own code. This is more or less the "old style" approach from Xpand and the old version of Xtend.
Maybe I'm missing alternatives with Xpand2, so I'm trying to do the same inside the generator (implement IGenerator), but of course I only have access to Ressource and IFileSystemAccess. I find no way how to find the absolute path of a file so that I can test for its existence. Every access to an URI instance (via Ressource, via IFileSystemAccessExtension2) leads to a path that is, even though requested to be absolute, relative to the working directory. And actually I would need access to the OutputConfiguration instance that is used when I create the content via IFileSystemAccess.generateFile().
Any ideas? As said, I'm probably doing something very wrong here trying to achieve things similar to the "old school" style.