Do 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
polly.c.chang wrote:
>
> Hi,
>
> 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
>
--
View this message in context:
http://www.nabble.com/-Sculptor--changing-outlet-directories-tp23857367s17564p23875494.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer