Abhijit,

I assume from your directory names that you are using the maven plugin.

It is considered bad practice in maven to generate files under the 'src'
directory. Typically, since they are generated every time you build, you
would want both the source and binding files generated somewhere under the
'target' directory.

Now that you have my recommendation, the answer to your question is: Yes,
you may generate the source and binding files in different directories.

I did not include a parameter for a separate binding file directory in the
maven plugin, but I did include a way to add any of the raw code gen
parameters. All you need to do is include the '-b' parameter to codegen by
adding the following to your maven configuration section:

<configuration>
  <*schemaBindingDirectory*>src/main/java</*schemaBindingDirectory*>
  <options>
    <b>src/main/config</b>
  <options>
</configuration>

Again, I highly recommend against using this directory structure. You might
want to look at some of the examples (in our source control repository) and
read the maven plugin and source gen documentation.

Cheers!

Don


> Message: 2
> Date: Wed, 10 Aug 2011 20:14:07 -0400
> From: "Abhijit Sarkar" <forumsplusbl...@gmail.com>
> Subject: Re: [jibx-users] [schema-codegen] Is it possible to generate
>        source  and binding files in separate directories?
> To: "'JiBX users'" <jibx-users@lists.sourceforge.net>
> Message-ID: <000001cc57bb$973cb220$c5b61660$@com>
> Content-Type: text/plain; charset="us-ascii"
>
> Someone please advise.
>
>
>
> From: Abhijit Sarkar [mailto:forumsplusbl...@gmail.com]
> Sent: Tuesday, August 09, 2011 5:40 PM
> To: 'JiBX users'
> Subject: [schema-codegen] Is it possible to generate source and binding
> files in separate directories?
>
>
>
> Hi,
>
> I was wondering if it is possible to generate source and binding files in
> separate directories during codegen? I wanted the sources to be under
> src/main/java and binding files under src/main/config.
>
>
>
> Regards,
>
> Abhijit
>
>
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to