|
Re: Setting an absolute path for the File block [message #1768060 is a reply to message #1767957] |
Thu, 13 July 2017 10:56 |
|
Hi,
The "root" folder Acceleo uses for the generation is the "Target" field of the Acceleo launch configuration.
If you're using an Acceleo UI Launcher, that "target" can be configured in the new Acceleo UI Launcher wizard.
If you already have your UI project and thus can't use the wizard, you'll find the line to change in the GenerateAction.java file, in the "run" operation (by default:IContainer target = model.getProject().getFolder("src-gen");
By default, UI launcher projects take an IContainer, so it must be located in the workspace... but that is not a requirement for Acceleo and you can change the GenerateAll class to take an absolute file location instead.
You could also look at the generated java class beside your "main" module : the "targetFolder" field is the root of the relative paths for generated files.
Laurent Goubet
Obeo
|
|
|
|
Powered by
FUDForum. Page generated in 0.04518 seconds