|
Fornax-Platform
Forum |
|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
[Sculptor] changing outlet directoriesHi,
I am trying to change the outlet directories in Sculptor using the oAW plugin. The documentation is here: http://fornax.itemis.de/confluence/display/fornax/Configuration+(TOM)#Configuration(TOM)-Outlets I am following the example and setting the directories like this: <plugin> <groupId>org.fornax.toolsupport</groupId> <artifactId>fornax-oaw-m2-plugin</artifactId> <executions> <execution> <id>generate-main</id> <phase>generate-sources</phase> <goals> <goal>run-workflow</goal> </goals> <configuration> <outletResDir>foo</outletResDir> <outletResOnceDir>bar</outletResOnceDir> </configuration> </execution> </executions> </plugin> However, the values are being ignored. It looks like maybe it's because the first thing in the sculptorworkflow.oaw file overwrites the properties: <workflow abstract="true"> ... <property name="outlet.res.once.dir" value="src/main/resources"/> <property name="outlet.res.dir" value="src/generated/resources"/> ... </workflow> Is there another way to set the directories? Or is editing the sculptorworkflow.oaw file the only way to accomplish this? Thanks! --Polly |
|
|
Re: [Sculptor] changing outlet directoriesDo like this in your workflow.oaw
1. Define the property for the outlet (same property names as in sculptorworkflow.oaw). 2. Add inheritAll="true" to the cartridge <workflow> <property name="outlet.src.dir" value="src/generated2/java"/> <cartridge file="sculptorworkflow.oaw" inheritAll="true"> <modelFile value="model.btdesign"/> <appProject value="fornax-cartridges-sculptor-examples-library"/> </cartridge> <component adviceTarget="generator" id="reflectionAdvice" class="oaw.xpand2.GeneratorAdvice"> <advices value="templates::SpecialCases" /> <fileEncoding value="iso-8859-1" /> </component> </workflow> It is better to do this in the workflow.oaw than in maven pom, because you might want to run the workflow from within eclipse, without maven. /Patrik
|
|
|
Re: [Sculptor] changing outlet directoriescool! Thanks!
--Polly
|
| Free embeddable forum powered by Nabble | Forum Help |