Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 99175 invoked by uid 500); 17 Apr 2002 13:15:36 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 99164 invoked from network); 17 Apr 2002 13:15:36 -0000 Message-ID: <3CBD757D.8030208@apache.org> Date: Wed, 17 Apr 2002 09:15:41 -0400 From: Berin Loritsch User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.9+) Gecko/20020415 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: JDK 1.3 vs JDK 1.4 issue References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Carsten Ziegeler wrote: > Torsten Curdt wrote: > >>>The main problem I have is that I cannot combile Cocoon without the Ant >>>script because of the special tags in the EsqlConnection.java. >>>And this is bad (at least for me). >> >>true... if you don't have ant integrated in you IDE this sucks... >> > > Definitly! > > >>so... what to do? > > Very good question! I don't want to have two source trees (one for JDK 1.3 > and > one for JDK 1.4). > > I think a quick solution is to change the tags used in the source. What do > you think of: > > /* @JDBC3_START@ > JDK 1.4 extra code > @JDBC3_END@ */ Change that! // @JDBC3_START@ // @JDBC3_END@ Because if we are not using JDK 1.4, the special tags are changed to: // /* // */ Hmm, that might not work. /* /* */ */ That will not compile. If we have JDK 1.4, the tags substitute for nothing, so we don't want them commented out all the time. It's not an easy thing to fix for both ways..... > > - the class is always compilable (with JDK 1.3) > - ant replaces the tags with "" on JDK 1.3 > - ant replaces the tags with */ and /* on JDK 1.4 > > Carsten > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: cocoon-dev-help@xml.apache.org > -- "They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org