Community
Participate
Working Groups
In preview mode the target folder may not exist, or may be some application-specific name. If it does not exist because it is "" I get java.io.IOException: target directory couldn't be created. at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.generate(AbstractAcceleoGenerator.java:173) at org.eclipse.ocl.examples.codegen.ecore.generator.OCLGeneratorAdapterFactory.initialize(OCLGeneratorAdapterFactory.java:65) at org.eclipse.emf.codegen.ecore.generator.Generator.initialize(Generator.java:256) at org.eclipse.emf.codegen.ecore.generator.Generator.setInput(Generator.java:225) at org.eclipse.emf.codegen.ecore.genmodel.util.GenModelUtil.createGenerator(GenModelUtil.java:62)
New Gerrit change created: https://git.eclipse.org/r/69919
The associated gerrit allows users to remove the existence check, which is the best we can do without modifying signatures in this heavily subclassed file. The exitence check is necessary since it is a user's action to decide to use a preview strategy or a regular one, and even with a preview strategy there might be places that actually need the target folder to exist.
Gerrit change https://git.eclipse.org/r/69919 was merged to [master]. Commit: http://git.eclipse.org/c/acceleo/org.eclipse.acceleo.git/commit/?id=6b5618f90c320974c15757ccabb0515be8d7d5bf