cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <tcu...@dff.st>
Subject RE: JDK 1.3 vs JDK 1.4 issue
Date Wed, 17 Apr 2002 13:21:53 GMT
On Wed, 17 Apr 2002, 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@ */
>
> - 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

smart :-)...at least this solves the problems when compiling without
ant for jdk 1.3. And it's only a small change (4 chars?) so I don't think
anyone will care about the comment-trick...

I would say: go ahead...
--
Torsten


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message