[teiid-dev] Special Language Processors in Code
Ramesh Reddy
rareddy at redhat.com
Tue Apr 21 11:10:55 EDT 2009
Hi,
In support of providing a JDBC client which works with JDK 1.5, and
compatible with JDBC 3.0 per JIRA
https://jira.jboss.org/jira/browse/TEIID-177
I have added some language processing identifiers in the code like
//## JDBC4.0-begin ##
import java.sql.SQLXML;
//## JDBC4.0-end ##
/*## JDBC3.0-JDK1.5-begin ##
import com.metamatrix.core.jdbc.SQLXML;
## JDBC3.0-JDK1.5-end ##*/
which by use of additional ant tasks during the build can turn ON or OFF
certain portions of the code, that suits for the required 1.5 or 1.6
compilation of the code. The following projects have these processors
teiid-common-core
teiid-client
teiid-client-jdbc
So, when you are editing any of java code that has these processors,
please make a note of them and preserve them. Also, try to refrain from
using any java 1.6 specific methods, especially you can do with out in
your edits. A new project called
teiid-client-jdbc30
has been added for purposes of building the JDK1.5 supported client jar
file. This project copies the all the required java files from above
projects and runs the language processors and builds 1.5 compatible code
and builds the required jar file.
Thanks
Ramesh..
More information about the teiid-dev
mailing list