Community
Participate
Working Groups
Build Identifier: M20090917-0800 If I set the configure command to something like: CC="gcc -xyx" configure Then this is stored in .autotools as: <option id="configure" value="CC="gcc -xyx" configure"/> Which is not valid XML. The quotes probably need to be escaped, something like: <option id="configure" value="CC="gcc -xyx" configure"/> Other characters that need escaping include: " " ' ' < < > > & & Reproducible: Always
I forgot to say that this causes the settings to be lost when you try to reopen a project: [Fatal Error] .autotools:4:46: Element type "option" must be followed by either attribute specifications, ">" or "/>". org.xml.sax.SAXParseException: Element type "option" must be followed by either attribute specifications, ">" or "/>". at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) at org.eclipse.linuxtools.internal.cdt.autotools.core.configure.AutotoolsConfigurationManager.getSavedConfigs(AutotoolsConfigurationManager.java:185)
Created attachment 170103 [details] Patch to escape characters &'"<>
(In reply to comment #2) > Created an attachment (id=170103) [details] > Patch to escape characters &'"<> Thanks Jon. Patch applied to trunk.