[ https://issues.apache.org/jira/browse/CONNECTORS-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13082027#comment-13082027 ]
Karl Wright commented on CONNECTORS-224: ---------------------------------------- I just discovered that this connector won't build under jdk 1.5, which is a problem since ManifoldCF has not yet moved to a minimum Java version of 1.6. These are the errors I get: >>>>>> compile-connector: [mkdir] Created dir: C:\wip\mcf\CONNECTORS-224\connectors\opensearchserver\b uild\connector\classes [javac] C:\wip\mcf\CONNECTORS-224\connectors\opensearchserver\build.xml:10: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 6 source files to C:\wip\mcf\CONNECTORS-224\connectors\ope nsearchserver\build\connector\classes [javac] C:\wip\mcf\CONNECTORS-224\connectors\opensearchserver\connector\src\ main\java\org\apache\manifoldcf\agents\output\opensearchserver\OpenSearchServerI ndex.java:8: package javax.xml.stream does not exist [javac] import javax.xml.stream.XMLOutputFactory; [javac] ^ [javac] C:\wip\mcf\CONNECTORS-224\connectors\opensearchserver\connector\src\ main\java\org\apache\manifoldcf\agents\output\opensearchserver\OpenSearchServerI ndex.java:9: package javax.xml.stream does not exist [javac] import javax.xml.stream.XMLStreamException; [javac] ^ [javac] C:\wip\mcf\CONNECTORS-224\connectors\opensearchserver\connector\src\ main\java\org\apache\manifoldcf\agents\output\opensearchserver\OpenSearchServerI ndex.java:10: package javax.xml.stream does not exist [javac] import javax.xml.stream.XMLStreamWriter; [javac] ^ [javac] C:\wip\mcf\CONNECTORS-224\connectors\opensearchserver\connector\src\ main\java\org\apache\manifoldcf\agents\output\opensearchserver\OpenSearchServerI ndex.java:42: cannot find symbol [javac] symbol : class XMLStreamException [javac] location: class org.apache.manifoldcf.agents.output.opensearchserver .OpenSearchServerIndex [javac] throws XMLStreamException, IOException { [javac] ^ [javac] C:\wip\mcf\CONNECTORS-224\connectors\opensearchserver\connector\src\ main\java\org\apache\manifoldcf\agents\output\opensearchserver\OpenSearchServerI ndex.java:34: cannot find symbol [javac] symbol : class XMLStreamException [javac] location: class org.apache.manifoldcf.agents.output.opensearchserver .OpenSearchServerIndex [javac] } catch (XMLStreamException e) { [javac] ^ [javac] C:\wip\mcf\CONNECTORS-224\connectors\opensearchserver\connector\src\ main\java\org\apache\manifoldcf\agents\output\opensearchserver\OpenSearchServerI ndex.java:44: cannot find symbol [javac] symbol : class XMLOutputFactory [javac] location: class org.apache.manifoldcf.agents.output.opensearchserver .OpenSearchServerIndex [javac] XMLOutputFactory factory = XMLOutputFactory.newInstance( ); [javac] ^ [javac] C:\wip\mcf\CONNECTORS-224\connectors\opensearchserver\connector\src\ main\java\org\apache\manifoldcf\agents\output\opensearchserver\OpenSearchServerI ndex.java:44: cannot find symbol [javac] symbol : variable XMLOutputFactory [javac] location: class org.apache.manifoldcf.agents.output.opensearchserver .OpenSearchServerIndex [javac] XMLOutputFactory factory = XMLOutputFactory.newInstance( ); [javac] ^ [javac] C:\wip\mcf\CONNECTORS-224\connectors\opensearchserver\connector\src\ main\java\org\apache\manifoldcf\agents\output\opensearchserver\OpenSearchServerI ndex.java:46: cannot find symbol [javac] symbol : class XMLStreamWriter [javac] location: class org.apache.manifoldcf.agents.output.opensearchserver .OpenSearchServerIndex [javac] XMLStreamWriter writer = factory.createXMLStreamWriter(s w); [javac] ^ [javac] 8 errors BUILD FAILED <<<<<< The XML parser that is used currently throughout ManifoldCF, and is thus available, is a modified version of xerces - you will see it under the "lib" directory. This does NOT affect maven, because maven is at minimum a 1.6 build already. It will affect the ability, however, to include the opensearchserver connector in the shipping packages. So it seems to me that you have three choices here: (1) wait until we officially adopt Java 1.6 as the minimum standard java version before merging this into trunk; (2) modify your code so that it does not use the 1.6 features; or (3) change the conditional compilation in the ant build so that it won't even try to compile the connector under JDK 1.5. Please let me know what you prefer to do. > OpenSearchServer connector > -------------------------- > > Key: CONNECTORS-224 > URL: https://issues.apache.org/jira/browse/CONNECTORS-224 > Project: ManifoldCF > Issue Type: New Feature > Components: OpenSearchServer connector > Affects Versions: ManifoldCF 0.3 > Reporter: Emmanuel Keller > Assignee: Karl Wright > Labels: OpenSearchServer, connector, outputconnector > Attachments: oss-mfc-alpha.patch, oss-mfc-alpha2.patch, > oss-mfc-dev.patch > > Original Estimate: 336h > Remaining Estimate: 336h > > Provide an output connector for > [OpenSearchServer|http://www.open-search-server.com]. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira