jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Unable to build
Date Thu, 21 Apr 2005 11:43:30 GMT
Hi Simon,

Simon Gash wrote:
> Marcel, are you saying that those extra files such as node.java are
> actually generated by javacc and so I need to get javacc to re-generate
> them and then add them manually as they are not supposed to be included
> in the SVN repository ?

some classes are generated, yes. e.g if you look at the files in 
src/java/org/apache/jackrabbit/core/query/xpath you should see about 15 
files. but only three of them are actually under version control:
QueryFormat.java, SimpleNode.java, XPathQueryBuilder.java
all other classes are generated by javacc.

but don't worry, the files are automatically generated by the jackrabbit 
specific maven build script. if you're curious about how it works, you 
can find the jelly script in maven.xml (in the trunk folder of the 
jackrabbit project). the goals are called: 
jackrabbit:generate-sql-parser and jackrabbit:generate-xpath-parser.
whenever you build jackrabbit, maven checks if it needs to re-generate 
the java files. that's why you see something like:

java:prepare-filesystem:
     [echo] SQL Parser up-to-date
     [echo] XPath Parser up-to-date

most of the time when you build jackrabbit.

hope this helps...

regards
  marcel

Mime
View raw message