Joachim,

the project is perfectrly compilable and all tests run (to my knowledge,
incl. XML and JDO), but only if you use Maven. In other words, with
whatever I committed, I paid well attention that the project compiles
and all tests run.

The problem is with Ant, I am aware of this, and there is NO easy
solution. There's a work-around though:

With Maven installed, position yourself in the schema module, and run

> mvn castor:generate

This will run the schema generator and generate the sources in
schema/target/generated-sources/castor

Once you have done that, the build script works completely again.

Werner

PS I have spent hours yesterday and today trying to amend the Ant build
scripts to get this working, but there's so many bugs in these scripts,
and sequence of compilation matters so much that I am growing really
tired to modify those messy scripts (again and again), especially when
all it takes on the Maven side is one plugin configuration, and
everything works seamlessly.

The problem is that you have to run the source generator *before*
building your sources, and this is not easy with Ant (especially when
the Castor Ant scripts are configured to rely on building e.g. the Ant
task definitions before being able to use them. This - imho - is
completely wrong, as Maven relies on a deployed version of e.g. the
ANttask JARs in order to run source code compilation (which is how it
should work).

As the work-around is easy and absolute minimal in terms of steps to
follow, I am not willing to spend any more time on this for the time
being, as I'd rather spend those 6+ hours on committing absolutely
brilliant code that enhances Castor (on the functionality side of things).

Just to make one thing clear: I even deployed a snapshot release after
making those commits, and a few other people have picked those up and
are using them. In other words: the code compiles with the right tool(s)
and tests run successfully (XML: 440, JDO: 70 on mySQL).

Ralf Joachim wrote:
> Hi Werner,
> 
> currently SVN trunk has lots of compile failures as some classes of
> schema.annotation package are missing. Can you please fix this soon and
> try to leave SVN in a compilable state after your commit sessions next time.
> 
> Regards
> Ralf
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to