Antrun has two extra config options:
<sourceRoot></sourceRoot>
<testSourceRoot></testSourceRoot>
That you can use to add a directory to either the src path or test src 
path.   (testSourceRoot requires antrun 1.1 released on wednesday)

Dan

On Friday 06 January 2006 08:04, Jens Zastrow wrote:
> Hi,
>
> i need to use the sun-jaxb-compiler (xjc) which only seems to work
> correctly with the antrun plugin.
> The problem now is to put the generated .java files in a directory
> which is a pom-source-folder or
> one which is later added to the pom-source-folders.
> Since i dont know a way to do this fromt he ant snipshet, my current -
> bad - solution is to generate
> them into ${basedir}/src/main/java.
>
> Any ideas?
> Thanks
> jens
>
> <plugin>
>       <artifactId>maven-antrun-plugin</artifactId>
>
>       <executions>
>               <execution>
>               <phase>validate</phase>
>               <configuration>
>               <tasks>
>                       <taskdef name="xjc"
> classname="com.sun.tools.xjc.XJCTask"/>
>                               <xjc
> schema="src/main/xsd/de/dailab/util/jaxb/agentrole/AgentRole.xsd"
>
> package="de.dailab.util.jaxb.agentrole"
>
> target="${basedir}/src/main/java"
>                                       extension="false"/>
>                               <copy
> todir="${project.build.directory}/classes">
>                                       <fileset
> dir="${basedir}/src/main/java" excludes="**/*.java"/>
>                               </copy>
>                       </tasks>
>             </configuration>
>       </executions>
> </plugin>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727  C: 508-380-7194
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to