Hi Raquel, Did you read the wiki page describing how to build derby with eclipse? It is here: http://wiki.apache.org/db-derby/BuildingDerby It is old, but should still hold true, mostly. It describes to build the derby project *outside* eclipse. You can use eclipse for all other code manipulation/search, just not to build.
The derby build.xml is fairly intricate. I believe at one point it would work if you highlighted the top level 'build.xml' underneath the trunk directory, and right click on it to build, but I've not tried that for a long time and would not hold my breath about it. Just build outside of eclipse. You would need this anyway for some of the commonly used build targets, such as 'ant clobber', or 'ant buildjars'. HTH, Myrna On Tue, Nov 25, 2014 at 1:14 PM, Rick Hillegas <[email protected]> wrote: > Hi Raquel, > > Some comments inline... > > On 11/24/14 7:28 AM, Raquel Pau wrote: > >> Hi, >> >> I am trying to configure the project inside eclipse, but the code does >> not compile. In fact, I have followed the instructions of building derby >> with the latest version ant and Java (8) without success. >> >> Specifically, these instructions: >> >> http://svn.apache.org/viewvc/db/derby/code/trunk/BUILDING. >> html?view=co#Customized Build >> >> When I execute "ant -quiet buildSource" theere are errors regarding the >> JavacParser. >> >> I have tried to import the projects through Maven, but the system does >> not find any source file. If I added the foulders manually, there are some >> errors, specially the tools module (org.apache.derby.impl.tools.ij). >> There are missing imports and the API does not correspond with the current >> version of the code. Specifically the "ij" class. >> >> I have tried both steps using the 10.11.1.1 and 10.10.2.0 closed versions >> (tags). >> > Perhaps someone else can give you Eclipse advice. > >> >> Another question. I am interested in overwride the behavior of derby when >> a query arrives to the server, because I will receive a query into another >> language and I will transform it into a derby (SQL) query. Do you know >> which is the class that process a query (parses and interpretes it)? >> > The Derby parser is java/engine/org/apache/derby/ > impl/sql/compile/sqlgrammar.jj. You may also want to take a look at > https://issues.apache.org/jira/browse/DERBY-6385. That issue shows you > how to plug in new language without disturbing the existing Derby SQL > dialect. > > Hope this helps, > -Rick > > >> Thank you in advance, >> >> Raquel >> >> >
