...
Info | ||
---|---|---|
| ||
This is a work in progress and not yet finished! More complex examples will follow. For now, have a look at the unit tests within the xwork-tiger project path. |
Create XXX-conversion.properties via "ant apt" target
This is an example for the apt ant target:
Code Block | ||||
---|---|---|---|---|
| ||||
<target name="apt">
<mkdir dir="${build}/generated"/>
<path id="classpath">
<pathelement path="${basedir}/build/java"/>
<pathelement path="${basedir}/build/test"/>
<!-- xwork.jar and xwork-tiger.jar must be in one of the following lib dirs -->
<fileset dir="${basedir}/lib/build" includes="*.jar"/>
<fileset dir="${basedir}/lib/default" includes="*.jar"/>
<fileset dir="${basedir}/lib/spring" includes="*.jar"/>
</path>
<property name="pclasspath" refid="classpath"/>
<!-- Change the includes attribute value to match your annotated java files -->
<fileset id="sources" dir="." includes="src/test/**/*.java" />
<pathconvert pathsep=" " property="sourcefiles" refid="sources"/>
<echo>
CLASSPATH ${pclasspath}
SOURCES: ${sourcefiles}
</echo>
<exec executable="apt" >
<arg value="-s"/>
<arg value="${build}/generated"/>
<arg value="-classpath"/>
<arg pathref="classpath"/>
<arg value="-nocompile"/>
<arg value="-factory"/>
<arg value="com.opensymphony.xwork.apt.XWorkProcessorFactory"/>
<arg line="${sourcefiles}"/>
</exec>
</target>
|
Type Conversion Annotations
...