[ 
http://issues.apache.org/jira/browse/IVY-336?page=comments#action_12455536 ] 
            
Gilles Scokart commented on IVY-336:
------------------------------------

I'm working on it.  I see where is the problem.  When ivy copy the file, it 
first copy the "header" (everything before the first tag) in order to copy the 
XSL processing instruction.   Then we parse the file to copy the tag and the 
comments.  The comment before the first tag are thus copied twice.

> Comments in ivy.xml duplicated
> ------------------------------
>
>                 Key: IVY-336
>                 URL: http://issues.apache.org/jira/browse/IVY-336
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.4
>         Environment: java version "1.5.0_08"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
> Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing)
>            Reporter: John Williams
>         Assigned To: Xavier Hanin
>            Priority: Minor
>
> When I publish an Ivy module, comments in the ivy.xml file that are outside 
> the <ivy-module> element get duplicated. For example, this
> <?xml version="1.0" encoding="utf-8"?>
> <!-- crazy -->
> <ivy-module version="1.0">
>   <!-- normal -->
>   <info organisation="foo" module="bar" revision="1.0"/>
> </ivy-module>
> becomes this
> <?xml version="1.0" encoding="utf-8"?>
> <!-- crazy -->
> <!-- crazy --><!-- crazy --><!-- crazy --><ivy-module version="1.0">
>   <!-- normal -->
>   <info organisation="foo" module="bar" revision="1.0" status="milestone" 
> publication="20061106134429"/>
> </ivy-module>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to