Hi, thanks Martin for the suggestion, but I think it is not that important to be that friendly with someone building the jar, but with the final users that just download the arcsde plugin and expect it works. Since our only way of creating a release, even if we have a profile, is against the dummy, a plugin compiled against the dummy shall work against the actual esri jars. So I think Saul's workaround is just genial.
Will create a jira for it and make the change. Thanks to all for the great feedback Gabriel On Thursday 21 September 2006 23:04, Martin Desruisseaux wrote: > Saul Farber a écrit : > > Anywhere that one uses a construct like this: > > > > public static final int TYPE_SMALLINT = 0; > > > > For example, in SeColumnDefinition.java, I *think* java compiles the > > value of a public static final <primitive> right into the code. > > I confirm, this is clearly stated in the Sun's Java Language Specification. > This means that if we want to distribute the Geotools SDE module, we really > need to compile it on a machine using the real SDE JAR, not the dummy > one... > > Right now the dummy JAR is "hard coded" in the pom.xml file; someone > wanting to build against the SDE JAR need to uncomment a specified section > of the pom.xml file. We should probably modify the pom.xml file in order to > create a profile instead, so a release manager with real SDE jar could > build using this profile instead of modifying locally their pom.xml file. > > > Ok, so I'd suggest that we remove the "final" modifier from all the > > public static constants in the SDE Java API dummy sources. Otherwise > > stuff won't really work the way we want it to! > > Nice workaround, I didn't though about that :). But a Maven profile instead > of current commented-out dependency would probably still be nice. > > Martin. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys -- and earn > cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Geotools-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-devel -- Gabriel Roldán ([EMAIL PROTECTED]) Axios Engineering (http://www.axios.es) Tel. +34 944 41 63 84 Fax. +34 944 41 64 90 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
