Yes. We should add something like to init fluff (probably in side of common.xml):
<available class="java.lang.Void" property="HAVA_JDK_1_1"/> <available class="java.lang.ThreadLocal" property="HAVA_JDK_1_2"/> <available class="java.lang.StrictMath" property="HAVA_JDK_1_3"/> <available class="java.lang.StackTraceElement" property="HAVA_JDK_1_4"/> Then when defining the filesets to compile, use if or unless on the element name to include/exclude bits for specific versions. There may be some issues where the code will need to conditionally do this switching to hook up the proper versioned class (like the proxy stuff used to do), but I have not checked. Switchable skeletons should proabably use org.jboss.util.platform.Java to do the same as above. Any ways, I have given this only the smallest amount of thought... there might be a few other gotchas... not sure. --jason Bill Burke wrote: >Just compiled and ran stuff with JDK 1.4. I had to uncomment out the JDBC >3.0 stuff in the connector code though. It would be nice if we could >conditionally compile this stuff in. > >Jason, build meisters...In ant, can you determine the version of the >compiler you're compiling with and do a conditional compilation on different >source trees? > >Regards, > >Bill > > >_______________________________________________ >Jboss-development mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/jboss-development > _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
