You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Emmanuel Bourg (JIRA)" <qp...@incubator.apache.org> on 2010/04/21 15:15:49 UTC

[jira] Created: (QPID-2526) 'ant gentools' fails if the path contains a space character

'ant gentools' fails if the path contains a space character
-----------------------------------------------------------

                 Key: QPID-2526
                 URL: https://issues.apache.org/jira/browse/QPID-2526
             Project: Qpid
          Issue Type: Bug
          Components: Ant Build System, Java Common
    Affects Versions: 0.6
            Reporter: Emmanuel Bourg
            Priority: Minor
             Fix For: 0.7


The gentools target of the common module fails when the path contains a space character.

For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:

{code}
gentools:
     [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
     [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
     [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
     [java] [Fatal Error] :1:1: Premature end of file.
     [java] org.xml.sax.SAXParseException: Premature end of file.
     [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
     [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
     [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
     [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
     [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
     [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
     [java]   "/home/ebourg/Apache":
{code}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-2526) Ant build fails if the path contains a space character

Posted by "Emmanuel Bourg (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg updated QPID-2526:
---------------------------------

    Attachment: build-slowconsumer.patch

> Ant build fails if the path contains a space character
> ------------------------------------------------------
>
>                 Key: QPID-2526
>                 URL: https://issues.apache.org/jira/browse/QPID-2526
>             Project: Qpid
>          Issue Type: Bug
>          Components: Ant Build System, Java Broker, Java Common
>    Affects Versions: 0.6
>            Reporter: Emmanuel Bourg
>            Assignee: Robbie Gemmell
>            Priority: Trivial
>             Fix For: 0.7
>
>         Attachments: build-broker.patch, build-common.patch, build-slowconsumer.patch
>
>
> The gentools target of the common module fails when the path contains a space character.
> For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:
> {code}
> gentools:
>      [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
>      [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
>      [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
>      [java] [Fatal Error] :1:1: Premature end of file.
>      [java] org.xml.sax.SAXParseException: Premature end of file.
>      [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
>      [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>      [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
>      [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
>      [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
>      [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
>      [java]   "/home/ebourg/Apache":
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-2526) 'ant gentools' fails if the path contains a space character

Posted by "Emmanuel Bourg (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg updated QPID-2526:
---------------------------------

    Attachment: build-broker.patch

There is also a similar issue with the call to GenerateLogMessages in the broker build. Patch attached.

> 'ant gentools' fails if the path contains a space character
> -----------------------------------------------------------
>
>                 Key: QPID-2526
>                 URL: https://issues.apache.org/jira/browse/QPID-2526
>             Project: Qpid
>          Issue Type: Bug
>          Components: Ant Build System, Java Broker, Java Common
>    Affects Versions: 0.6
>            Reporter: Emmanuel Bourg
>            Priority: Trivial
>             Fix For: 0.7
>
>         Attachments: build-broker.patch, build-common.patch
>
>
> The gentools target of the common module fails when the path contains a space character.
> For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:
> {code}
> gentools:
>      [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
>      [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
>      [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
>      [java] [Fatal Error] :1:1: Premature end of file.
>      [java] org.xml.sax.SAXParseException: Premature end of file.
>      [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
>      [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>      [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
>      [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
>      [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
>      [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
>      [java]   "/home/ebourg/Apache":
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Resolved: (QPID-2526) Ant build fails if the path contains a space character

Posted by "Robbie Gemmell (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robbie Gemmell resolved QPID-2526.
----------------------------------

    Resolution: Fixed

Martin commited the above noted fix previously, this should be resolved.

> Ant build fails if the path contains a space character
> ------------------------------------------------------
>
>                 Key: QPID-2526
>                 URL: https://issues.apache.org/jira/browse/QPID-2526
>             Project: Qpid
>          Issue Type: Bug
>          Components: Ant Build System, Java Broker, Java Common
>    Affects Versions: 0.6
>            Reporter: Emmanuel Bourg
>            Assignee: Robbie Gemmell
>            Priority: Trivial
>             Fix For: 0.7
>
>         Attachments: build-broker.patch, build-common.patch, build-slowconsumer.patch, QPID-2526-HandleSpacesInLogMessagesPath.patch
>
>
> The gentools target of the common module fails when the path contains a space character.
> For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:
> {code}
> gentools:
>      [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
>      [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
>      [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
>      [java] [Fatal Error] :1:1: Premature end of file.
>      [java] org.xml.sax.SAXParseException: Premature end of file.
>      [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
>      [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>      [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
>      [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
>      [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
>      [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
>      [java]   "/home/ebourg/Apache":
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Assigned: (QPID-2526) Ant build fails if the path contains a space character

Posted by "Robbie Gemmell (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robbie Gemmell reassigned QPID-2526:
------------------------------------

    Assignee: Robbie Gemmell

> Ant build fails if the path contains a space character
> ------------------------------------------------------
>
>                 Key: QPID-2526
>                 URL: https://issues.apache.org/jira/browse/QPID-2526
>             Project: Qpid
>          Issue Type: Bug
>          Components: Ant Build System, Java Broker, Java Common
>    Affects Versions: 0.6
>            Reporter: Emmanuel Bourg
>            Assignee: Robbie Gemmell
>            Priority: Trivial
>             Fix For: 0.7
>
>         Attachments: build-broker.patch, build-common.patch
>
>
> The gentools target of the common module fails when the path contains a space character.
> For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:
> {code}
> gentools:
>      [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
>      [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
>      [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
>      [java] [Fatal Error] :1:1: Premature end of file.
>      [java] org.xml.sax.SAXParseException: Premature end of file.
>      [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
>      [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>      [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
>      [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
>      [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
>      [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
>      [java]   "/home/ebourg/Apache":
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-2526) Ant build fails if the path contains a space character

Posted by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Ritchie updated QPID-2526:
---------------------------------

    Attachment: QPID-2526-HandleSpacesInLogMessagesPath.patch

Apologies Emmanuel, for the break in the build wrt to spaces in the paths.

I've attached a patch that should correctly quote the files provided to the Generator. I tested this on my linux box by using a path that had a space in the file name.

I prefer this approach because it seems strange to provide an OS specific listing of files to the log generator. It should simply be a list of files.

> Ant build fails if the path contains a space character
> ------------------------------------------------------
>
>                 Key: QPID-2526
>                 URL: https://issues.apache.org/jira/browse/QPID-2526
>             Project: Qpid
>          Issue Type: Bug
>          Components: Ant Build System, Java Broker, Java Common
>    Affects Versions: 0.6
>            Reporter: Emmanuel Bourg
>            Assignee: Robbie Gemmell
>            Priority: Trivial
>             Fix For: 0.7
>
>         Attachments: build-broker.patch, build-common.patch, build-slowconsumer.patch, QPID-2526-HandleSpacesInLogMessagesPath.patch
>
>
> The gentools target of the common module fails when the path contains a space character.
> For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:
> {code}
> gentools:
>      [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
>      [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
>      [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
>      [java] [Fatal Error] :1:1: Premature end of file.
>      [java] org.xml.sax.SAXParseException: Premature end of file.
>      [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
>      [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>      [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
>      [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
>      [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
>      [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
>      [java]   "/home/ebourg/Apache":
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-2526) 'ant gentools' fails if the path contains a space character

Posted by "Emmanuel Bourg (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg updated QPID-2526:
---------------------------------

    Attachment: build-common.patch

I attached a patch that quotes the parameters of org.apache.qpid.gentools.Main. It works on Windows and Linux.

The same change could probably be applied to java/common/protocol-version.xml but I'm not sure if this file is still used.

> 'ant gentools' fails if the path contains a space character
> -----------------------------------------------------------
>
>                 Key: QPID-2526
>                 URL: https://issues.apache.org/jira/browse/QPID-2526
>             Project: Qpid
>          Issue Type: Bug
>          Components: Ant Build System, Java Common
>    Affects Versions: 0.6
>            Reporter: Emmanuel Bourg
>            Priority: Minor
>             Fix For: 0.7
>
>         Attachments: build-common.patch
>
>
> The gentools target of the common module fails when the path contains a space character.
> For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:
> {code}
> gentools:
>      [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
>      [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
>      [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
>      [java] [Fatal Error] :1:1: Premature end of file.
>      [java] org.xml.sax.SAXParseException: Premature end of file.
>      [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
>      [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>      [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
>      [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
>      [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
>      [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
>      [java]   "/home/ebourg/Apache":
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Reopened: (QPID-2526) Ant build fails if the path contains a space character

Posted by "Emmanuel Bourg (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg reopened QPID-2526:
----------------------------------


Reopening sorry, the gen_logging target moved to module.xml and breaks again when the path contains a space character.

> Ant build fails if the path contains a space character
> ------------------------------------------------------
>
>                 Key: QPID-2526
>                 URL: https://issues.apache.org/jira/browse/QPID-2526
>             Project: Qpid
>          Issue Type: Bug
>          Components: Ant Build System, Java Broker, Java Common
>    Affects Versions: 0.6
>            Reporter: Emmanuel Bourg
>            Assignee: Robbie Gemmell
>            Priority: Trivial
>             Fix For: 0.7
>
>         Attachments: build-broker.patch, build-common.patch, build-slowconsumer.patch
>
>
> The gentools target of the common module fails when the path contains a space character.
> For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:
> {code}
> gentools:
>      [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
>      [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
>      [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
>      [java] [Fatal Error] :1:1: Premature end of file.
>      [java] org.xml.sax.SAXParseException: Premature end of file.
>      [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
>      [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>      [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
>      [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
>      [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
>      [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
>      [java]   "/home/ebourg/Apache":
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-2526) Ant build fails if the path contains a space character

Posted by "Emmanuel Bourg (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859465#action_12859465 ] 

Emmanuel Bourg commented on QPID-2526:
--------------------------------------

The same issue exists with the pom target, the arguments for jython are not properly quoted.

> Ant build fails if the path contains a space character
> ------------------------------------------------------
>
>                 Key: QPID-2526
>                 URL: https://issues.apache.org/jira/browse/QPID-2526
>             Project: Qpid
>          Issue Type: Bug
>          Components: Ant Build System, Java Broker, Java Common
>    Affects Versions: 0.6
>            Reporter: Emmanuel Bourg
>            Priority: Trivial
>             Fix For: 0.7
>
>         Attachments: build-broker.patch, build-common.patch
>
>
> The gentools target of the common module fails when the path contains a space character.
> For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:
> {code}
> gentools:
>      [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
>      [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
>      [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
>      [java] [Fatal Error] :1:1: Premature end of file.
>      [java] org.xml.sax.SAXParseException: Premature end of file.
>      [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
>      [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>      [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
>      [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
>      [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
>      [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
>      [java]   "/home/ebourg/Apache":
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-2526) Ant build fails if the path contains a space character

Posted by "Emmanuel Bourg (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12888054#action_12888054 ] 

Emmanuel Bourg commented on QPID-2526:
--------------------------------------

This solution is fine, thank you for the fix Martin.

> Ant build fails if the path contains a space character
> ------------------------------------------------------
>
>                 Key: QPID-2526
>                 URL: https://issues.apache.org/jira/browse/QPID-2526
>             Project: Qpid
>          Issue Type: Bug
>          Components: Ant Build System, Java Broker, Java Common
>    Affects Versions: 0.6
>            Reporter: Emmanuel Bourg
>            Assignee: Robbie Gemmell
>            Priority: Trivial
>             Fix For: 0.7
>
>         Attachments: build-broker.patch, build-common.patch, build-slowconsumer.patch, QPID-2526-HandleSpacesInLogMessagesPath.patch
>
>
> The gentools target of the common module fails when the path contains a space character.
> For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:
> {code}
> gentools:
>      [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
>      [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
>      [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
>      [java] [Fatal Error] :1:1: Premature end of file.
>      [java] org.xml.sax.SAXParseException: Premature end of file.
>      [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
>      [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>      [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
>      [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
>      [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
>      [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
>      [java]   "/home/ebourg/Apache":
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Resolved: (QPID-2526) Ant build fails if the path contains a space character

Posted by "Robbie Gemmell (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robbie Gemmell resolved QPID-2526.
----------------------------------

    Resolution: Fixed

Additional patch applied.

> Ant build fails if the path contains a space character
> ------------------------------------------------------
>
>                 Key: QPID-2526
>                 URL: https://issues.apache.org/jira/browse/QPID-2526
>             Project: Qpid
>          Issue Type: Bug
>          Components: Ant Build System, Java Broker, Java Common
>    Affects Versions: 0.6
>            Reporter: Emmanuel Bourg
>            Assignee: Robbie Gemmell
>            Priority: Trivial
>             Fix For: 0.7
>
>         Attachments: build-broker.patch, build-common.patch, build-slowconsumer.patch
>
>
> The gentools target of the common module fails when the path contains a space character.
> For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:
> {code}
> gentools:
>      [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
>      [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
>      [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
>      [java] [Fatal Error] :1:1: Premature end of file.
>      [java] org.xml.sax.SAXParseException: Premature end of file.
>      [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
>      [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>      [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
>      [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
>      [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
>      [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
>      [java]   "/home/ebourg/Apache":
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Resolved: (QPID-2526) Ant build fails if the path contains a space character

Posted by "Robbie Gemmell (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robbie Gemmell resolved QPID-2526.
----------------------------------

    Resolution: Fixed

Patches applied

> Ant build fails if the path contains a space character
> ------------------------------------------------------
>
>                 Key: QPID-2526
>                 URL: https://issues.apache.org/jira/browse/QPID-2526
>             Project: Qpid
>          Issue Type: Bug
>          Components: Ant Build System, Java Broker, Java Common
>    Affects Versions: 0.6
>            Reporter: Emmanuel Bourg
>            Assignee: Robbie Gemmell
>            Priority: Trivial
>             Fix For: 0.7
>
>         Attachments: build-broker.patch, build-common.patch
>
>
> The gentools target of the common module fails when the path contains a space character.
> For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:
> {code}
> gentools:
>      [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
>      [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
>      [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
>      [java] [Fatal Error] :1:1: Premature end of file.
>      [java] org.xml.sax.SAXParseException: Premature end of file.
>      [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
>      [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>      [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
>      [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
>      [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
>      [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
>      [java]   "/home/ebourg/Apache":
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Reopened: (QPID-2526) Ant build fails if the path contains a space character

Posted by "Emmanuel Bourg (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg reopened QPID-2526:
----------------------------------


Reopening because the same issue has been reintroduced in the build file of the slow consumer plugin.

> Ant build fails if the path contains a space character
> ------------------------------------------------------
>
>                 Key: QPID-2526
>                 URL: https://issues.apache.org/jira/browse/QPID-2526
>             Project: Qpid
>          Issue Type: Bug
>          Components: Ant Build System, Java Broker, Java Common
>    Affects Versions: 0.6
>            Reporter: Emmanuel Bourg
>            Assignee: Robbie Gemmell
>            Priority: Trivial
>             Fix For: 0.7
>
>         Attachments: build-broker.patch, build-common.patch
>
>
> The gentools target of the common module fails when the path contains a space character.
> For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:
> {code}
> gentools:
>      [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
>      [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
>      [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
>      [java] [Fatal Error] :1:1: Premature end of file.
>      [java] org.xml.sax.SAXParseException: Premature end of file.
>      [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
>      [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>      [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
>      [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
>      [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
>      [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
>      [java]   "/home/ebourg/Apache":
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-2526) 'ant gentools' fails if the path contains a space character

Posted by "Emmanuel Bourg (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg updated QPID-2526:
---------------------------------

    Priority: Trivial  (was: Minor)

> 'ant gentools' fails if the path contains a space character
> -----------------------------------------------------------
>
>                 Key: QPID-2526
>                 URL: https://issues.apache.org/jira/browse/QPID-2526
>             Project: Qpid
>          Issue Type: Bug
>          Components: Ant Build System, Java Common
>    Affects Versions: 0.6
>            Reporter: Emmanuel Bourg
>            Priority: Trivial
>             Fix For: 0.7
>
>         Attachments: build-common.patch
>
>
> The gentools target of the common module fails when the path contains a space character.
> For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:
> {code}
> gentools:
>      [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
>      [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
>      [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
>      [java] [Fatal Error] :1:1: Premature end of file.
>      [java] org.xml.sax.SAXParseException: Premature end of file.
>      [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
>      [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>      [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
>      [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
>      [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
>      [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
>      [java]   "/home/ebourg/Apache":
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-2526) Ant build fails if the path contains a space character

Posted by "Emmanuel Bourg (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876867#action_12876867 ] 

Emmanuel Bourg commented on QPID-2526:
--------------------------------------

That was fast, thank you!

> Ant build fails if the path contains a space character
> ------------------------------------------------------
>
>                 Key: QPID-2526
>                 URL: https://issues.apache.org/jira/browse/QPID-2526
>             Project: Qpid
>          Issue Type: Bug
>          Components: Ant Build System, Java Broker, Java Common
>    Affects Versions: 0.6
>            Reporter: Emmanuel Bourg
>            Assignee: Robbie Gemmell
>            Priority: Trivial
>             Fix For: 0.7
>
>         Attachments: build-broker.patch, build-common.patch, build-slowconsumer.patch
>
>
> The gentools target of the common module fails when the path contains a space character.
> For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:
> {code}
> gentools:
>      [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
>      [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
>      [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
>      [java] [Fatal Error] :1:1: Premature end of file.
>      [java] org.xml.sax.SAXParseException: Premature end of file.
>      [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
>      [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>      [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
>      [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
>      [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
>      [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
>      [java]   "/home/ebourg/Apache":
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-2526) 'ant build' fails if the path contains a space character

Posted by "Emmanuel Bourg (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg updated QPID-2526:
---------------------------------

        Summary: 'ant build' fails if the path contains a space character  (was: 'ant gentools' fails if the path contains a space character)
    Component/s: Java Broker

> 'ant build' fails if the path contains a space character
> --------------------------------------------------------
>
>                 Key: QPID-2526
>                 URL: https://issues.apache.org/jira/browse/QPID-2526
>             Project: Qpid
>          Issue Type: Bug
>          Components: Ant Build System, Java Broker, Java Common
>    Affects Versions: 0.6
>            Reporter: Emmanuel Bourg
>            Priority: Trivial
>             Fix For: 0.7
>
>         Attachments: build-broker.patch, build-common.patch
>
>
> The gentools target of the common module fails when the path contains a space character.
> For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:
> {code}
> gentools:
>      [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
>      [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
>      [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
>      [java] [Fatal Error] :1:1: Premature end of file.
>      [java] org.xml.sax.SAXParseException: Premature end of file.
>      [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
>      [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>      [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
>      [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
>      [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
>      [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
>      [java]   "/home/ebourg/Apache":
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-2526) Ant build fails if the path contains a space character

Posted by "Emmanuel Bourg (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg updated QPID-2526:
---------------------------------

    Summary: Ant build fails if the path contains a space character  (was: 'ant build' fails if the path contains a space character)

I've found another error in the build related to the space in the path, this time in the creation of the OSGi bundles. For some reason the bnd task doesn't create the jar and no error is produced immediately. It breaks later with this message:

{code}
release-bin-qpid-management-common-plugin:

BUILD FAILED
/var/lib/hudson/jobs/Apache Qpid/workspace/qpid/java/build.xml:110: The following error occurred while executing this line:
/var/lib/hudson/jobs/Apache Qpid/workspace/qpid/java/build.xml:54: The following error occurred while executing this line:
/var/lib/hudson/jobs/Apache Qpid/workspace/qpid/java/management/eclipse-plugin/build.xml:58: The following error occurred while executing this line:
/var/lib/hudson/jobs/Apache Qpid/workspace/qpid/java/management/eclipse-plugin/build-release.xml:79: Please run ant bundle for the management-common module
{code}

Upgrading to the latest version of bnd (0.0.384) solved the issue. It can be downloaded here:

http://www.aqute.biz/repo/biz/aQute/bnd/0.0.384/bnd-0.0.384.jar


> Ant build fails if the path contains a space character
> ------------------------------------------------------
>
>                 Key: QPID-2526
>                 URL: https://issues.apache.org/jira/browse/QPID-2526
>             Project: Qpid
>          Issue Type: Bug
>          Components: Ant Build System, Java Broker, Java Common
>    Affects Versions: 0.6
>            Reporter: Emmanuel Bourg
>            Priority: Trivial
>             Fix For: 0.7
>
>         Attachments: build-broker.patch, build-common.patch
>
>
> The gentools target of the common module fails when the path contains a space character.
> For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:
> {code}
> gentools:
>      [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
>      [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
>      [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
>      [java] [Fatal Error] :1:1: Premature end of file.
>      [java] org.xml.sax.SAXParseException: Premature end of file.
>      [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
>      [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>      [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
>      [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
>      [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
>      [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
>      [java]   "/home/ebourg/Apache":
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-2526) Ant build fails if the path contains a space character

Posted by "Robbie Gemmell (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robbie Gemmell updated QPID-2526:
---------------------------------

    Status: Ready To Review  (was: In Progress)

> Ant build fails if the path contains a space character
> ------------------------------------------------------
>
>                 Key: QPID-2526
>                 URL: https://issues.apache.org/jira/browse/QPID-2526
>             Project: Qpid
>          Issue Type: Bug
>          Components: Ant Build System, Java Broker, Java Common
>    Affects Versions: 0.6
>            Reporter: Emmanuel Bourg
>            Assignee: Robbie Gemmell
>            Priority: Trivial
>             Fix For: 0.7
>
>         Attachments: build-broker.patch, build-common.patch, build-slowconsumer.patch
>
>
> The gentools target of the common module fails when the path contains a space character.
> For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:
> {code}
> gentools:
>      [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
>      [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
>      [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
>      [java] [Fatal Error] :1:1: Premature end of file.
>      [java] org.xml.sax.SAXParseException: Premature end of file.
>      [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
>      [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>      [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
>      [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
>      [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
>      [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
>      [java]   "/home/ebourg/Apache":
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-2526) Ant build fails if the path contains a space character

Posted by "Emmanuel Bourg (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12881630#action_12881630 ] 

Emmanuel Bourg commented on QPID-2526:
--------------------------------------

Here is how to fix this:

{code}
Index: broker/src/velocity/java/org/apache/qpid/server/logging/GenerateLogMessages.java
===================================================================
--- broker/src/velocity/java/org/apache/qpid/server/logging/GenerateLogMessages.java (révision 957144)
+++ broker/src/velocity/java/org/apache/qpid/server/logging/GenerateLogMessages.java (copie de travail)
@@ -131,9 +131,13 @@
         for (int i = 0; i < args.length; i++)
         {
             String arg = args[i];
-            if (args[i].endsWith("_logmessages.properties"))
+            if (args[i].contains("_logmessages.properties"))
             {
-                _logMessages.add(args[i]);
+                String[] bundles = args[i].split(File.pathSeparator);
+                for (String bundle : bundles)
+                {
+                    _logMessages.add(bundle);
+                }
             }
             else if (arg.charAt(0) == '-')
             {

{code}

and in module.xml:

{code}
@@ -710,14 +759,12 @@
         </fileset>
       </path>
 
-      <pathconvert property="logmessages"
-                   refid="logmessages.path"
-                   pathsep=" "/>
+      <pathconvert property="logmessages" refid="logmessages.path"/>
 
       <echo message="logmessages is ${logmessages}"/>
 
       <java classname="org.apache.qpid.server.logging.GenerateLogMessages" fork="true" dir="${gentools.home}/src" failonerror="true">
-        <arg line="${logmessages}"/>
+        <arg value="${logmessages}"/>
           <arg value="-j"/>
           <arg value="-o"/>
           <arg value="${generated.dir}"/>

{code}

> Ant build fails if the path contains a space character
> ------------------------------------------------------
>
>                 Key: QPID-2526
>                 URL: https://issues.apache.org/jira/browse/QPID-2526
>             Project: Qpid
>          Issue Type: Bug
>          Components: Ant Build System, Java Broker, Java Common
>    Affects Versions: 0.6
>            Reporter: Emmanuel Bourg
>            Assignee: Robbie Gemmell
>            Priority: Trivial
>             Fix For: 0.7
>
>         Attachments: build-broker.patch, build-common.patch, build-slowconsumer.patch
>
>
> The gentools target of the common module fails when the path contains a space character.
> For example if the project sources are copied into /home/ebourg/Apache Qpid, the following error occurs:
> {code}
> gentools:
>      [java] XML files: [Qpid/java/build/scratch/common/src/org/apache/qpid/framing, Qpid/java/common/templates, /home/ebourg/Apache, Qpid/specs/amqp.0-8.xml, /home/ebourg/Apache, Qpid/specs/amqp.0-9.xml, /home/ebourg/Apache, Qpid/specs/amqp0-9-1.stripped.xml]
>      [java] ERROR: AMQP XML file "Qpid/java/build/scratch/common/src/org/apache/qpid/framing" not found.
>      [java] ERROR: AMQP XML file "Qpid/java/common/templates" not found.
>      [java] [Fatal Error] :1:1: Premature end of file.
>      [java] org.xml.sax.SAXParseException: Premature end of file.
>      [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
>      [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>      [java]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
>      [java]     at org.apache.qpid.gentools.Main.analyzeXML(Main.java:193)
>      [java]     at org.apache.qpid.gentools.Main.run(Main.java:118)
>      [java]     at org.apache.qpid.gentools.Main.main(Main.java:239)
>      [java]   "/home/ebourg/Apache":
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org