SHRINKDESC-92
rbattenfeld Oct 12, 2011 2:05 PMHi Jesper
The current preview provides good examples how to configure in the cli module.
- In src/test/resources/xml/schemasIronJacamar.xsd you can define your own package names. Please specify your XSDs location accordingly. Just copy it.
- The cli tool expects a property file with the following properties:
- descriptor.cli.working.dir=target/test --> mandatory, define a working directory
- descriptor.cli.path.context.xml=src/test/resources/xml/schemasIronJacamar.xml --> mandatory define here the path to your context file
- descriptor.cli.result.dir.api=src/main/java --> define here the path where the interface files are created. It is relative to the working directory
- descriptor.cli.result.dir.impl=src/main/java --> apply the same for the implementation files
- descriptor.cli.result.dir.test=src/test/java --> apply the same for the test files
You can execute the cli tool for example with the following maven settings:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>org.jboss.shrinkwrap.descriptor.cli.Main</mainClass>
<arguments>
<argument>-c</argument>
<argument>src/test/resources/ironjacamar.properties</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
Finally, you have to create the service files manually. You can find examples in
shrinkwrap-descriptors-cli/src/main/resources/META-INF/services
Let me know if you have problems.
Cheers
Ralf