You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Julian Klein (JIRA)" <ji...@apache.org> on 2008/08/29 23:37:44 UTC
[jira] Created: (IVY-888) Ivy Publish Task Fails When XML Comments
Exist Next to Dependency Declarations
Ivy Publish Task Fails When XML Comments Exist Next to Dependency Declarations
------------------------------------------------------------------------------
Key: IVY-888
URL: https://issues.apache.org/jira/browse/IVY-888
Project: Ivy
Issue Type: Bug
Components: Ant
Affects Versions: 2.0.0-beta-2
Environment: Java 5.0, Eclipse 3.3.2, Ant 1.7.0
Reporter: Julian Klein
Priority: Minor
When I have a dependency declared on the same line as a XML comment I receive the following error when attempting to call ivy:publish:
"RuntimeException: bad ivy file in cache"
Upon reviewing the generated "resolved descriptor" the line that causes this error looks like the following (see spring-aop line):
<!-- Middleware - Spring Application Framework -->
<dependency org="org.springframework" name="spring-core" rev="2.0.+" conf="runtime->default"/><!-- Core Module -->
<dependency org="org.springframework" name="spring-jms" rev="2.0.+" conf="runtime->default;compile->*"/><!-- JMS Module -->
<dependency org="org.springframework" name="spring-aop" rev="2.0.+" conf="runtime->default"<!-- AOP Module -->>
the source ivy.xml file that generated this erroneous output contains a line as follows:
<!-- Middleware - Spring Application Framework -->
<dependency org="org.springframework" name="spring-core" rev="2.0.+" conf="runtime->default"/><!-- Core Module -->
<dependency org="org.springframework" name="spring-jms" rev="2.0.+" conf="runtime->default;compile->*"/><!-- JMS Module -->
<dependency org="org.springframework" name="spring-aop" rev="2.0.+" conf="runtime->default"><!-- AOP Module -->
Now I am not sure if it is because of the XML comments or the greater than brackets inside the conf attributes. Moving the comments to different lines resolves the issue. Without the ivy publish task being used, everything else works fine (resolve/retrieve).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (IVY-888) Ivy Publish Task Fails When XML Comments
Exist Next to Dependency Declarations
Posted by "Julian Klein (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Klein updated IVY-888:
-----------------------------
Description:
When I have a dependency declared on the same line as a XML comment I receive the following error when attempting to call ivy:publish:
"RuntimeException: bad ivy file in cache"
Upon reviewing the generated "resolved descriptor" the line that causes this error looks like the following (see spring-aop line):
<!-- Middleware - Spring Application Framework -->
<dependency org="org.springframework" name="spring-core" rev="2.0.+" conf="runtime->default"/><!-- Core Module -->
<dependency org="org.springframework" name="spring-jms" rev="2.0.+" conf="runtime->default;compile->*"/><!-- JMS Module -->
<dependency org="org.springframework" name="spring-aop" rev="2.0.+" conf="runtime->default"<!-- AOP Module -->>
the source ivy.xml file that generated this erroneous output contains a line as follows:
<!-- Middleware - Spring Application Framework -->
<dependency org="org.springframework" name="spring-core" rev="2.0.+" conf="runtime->default"/><!-- Core Module -->
<dependency org="org.springframework" name="spring-jms" rev="2.0.+" conf="runtime->default;compile->*"/><!-- JMS Module -->
<dependency org="org.springframework" name="spring-aop" rev="2.0.+" conf="runtime->default"><!-- AOP Module -->
Now I am not sure if it is because of the XML comments or the greater than brackets inside the conf attributes. Moving the comments to different lines resolves the issue. Ivy tells me to clean my cache in order to resolve the issue, but this doesn't resolve the problem. Without the ivy publish task being used, everything else works fine (resolve/retrieve).
was:
When I have a dependency declared on the same line as a XML comment I receive the following error when attempting to call ivy:publish:
"RuntimeException: bad ivy file in cache"
Upon reviewing the generated "resolved descriptor" the line that causes this error looks like the following (see spring-aop line):
<!-- Middleware - Spring Application Framework -->
<dependency org="org.springframework" name="spring-core" rev="2.0.+" conf="runtime->default"/><!-- Core Module -->
<dependency org="org.springframework" name="spring-jms" rev="2.0.+" conf="runtime->default;compile->*"/><!-- JMS Module -->
<dependency org="org.springframework" name="spring-aop" rev="2.0.+" conf="runtime->default"<!-- AOP Module -->>
the source ivy.xml file that generated this erroneous output contains a line as follows:
<!-- Middleware - Spring Application Framework -->
<dependency org="org.springframework" name="spring-core" rev="2.0.+" conf="runtime->default"/><!-- Core Module -->
<dependency org="org.springframework" name="spring-jms" rev="2.0.+" conf="runtime->default;compile->*"/><!-- JMS Module -->
<dependency org="org.springframework" name="spring-aop" rev="2.0.+" conf="runtime->default"><!-- AOP Module -->
Now I am not sure if it is because of the XML comments or the greater than brackets inside the conf attributes. Moving the comments to different lines resolves the issue. Without the ivy publish task being used, everything else works fine (resolve/retrieve).
> Ivy Publish Task Fails When XML Comments Exist Next to Dependency Declarations
> ------------------------------------------------------------------------------
>
> Key: IVY-888
> URL: https://issues.apache.org/jira/browse/IVY-888
> Project: Ivy
> Issue Type: Bug
> Components: Ant
> Affects Versions: 2.0.0-beta-2
> Environment: Java 5.0, Eclipse 3.3.2, Ant 1.7.0
> Reporter: Julian Klein
> Priority: Minor
>
> When I have a dependency declared on the same line as a XML comment I receive the following error when attempting to call ivy:publish:
> "RuntimeException: bad ivy file in cache"
> Upon reviewing the generated "resolved descriptor" the line that causes this error looks like the following (see spring-aop line):
> <!-- Middleware - Spring Application Framework -->
> <dependency org="org.springframework" name="spring-core" rev="2.0.+" conf="runtime->default"/><!-- Core Module -->
> <dependency org="org.springframework" name="spring-jms" rev="2.0.+" conf="runtime->default;compile->*"/><!-- JMS Module -->
> <dependency org="org.springframework" name="spring-aop" rev="2.0.+" conf="runtime->default"<!-- AOP Module -->>
> the source ivy.xml file that generated this erroneous output contains a line as follows:
> <!-- Middleware - Spring Application Framework -->
> <dependency org="org.springframework" name="spring-core" rev="2.0.+" conf="runtime->default"/><!-- Core Module -->
> <dependency org="org.springframework" name="spring-jms" rev="2.0.+" conf="runtime->default;compile->*"/><!-- JMS Module -->
> <dependency org="org.springframework" name="spring-aop" rev="2.0.+" conf="runtime->default"><!-- AOP Module -->
> Now I am not sure if it is because of the XML comments or the greater than brackets inside the conf attributes. Moving the comments to different lines resolves the issue. Ivy tells me to clean my cache in order to resolve the issue, but this doesn't resolve the problem. Without the ivy publish task being used, everything else works fine (resolve/retrieve).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (IVY-888) Ivy Publish Task Fails When XML Comments
Exist Next to Dependency Declarations
Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maarten Coene reassigned IVY-888:
---------------------------------
Assignee: Maarten Coene
> Ivy Publish Task Fails When XML Comments Exist Next to Dependency Declarations
> ------------------------------------------------------------------------------
>
> Key: IVY-888
> URL: https://issues.apache.org/jira/browse/IVY-888
> Project: Ivy
> Issue Type: Bug
> Components: Ant
> Affects Versions: 2.0.0-beta-2
> Environment: Java 5.0, Eclipse 3.3.2, Ant 1.7.0
> Reporter: Julian Klein
> Assignee: Maarten Coene
> Priority: Minor
>
> When I have a dependency declared on the same line as a XML comment I receive the following error when attempting to call ivy:publish:
> "RuntimeException: bad ivy file in cache"
> Upon reviewing the generated "resolved descriptor" the line that causes this error looks like the following (see spring-aop line):
> <!-- Middleware - Spring Application Framework -->
> <dependency org="org.springframework" name="spring-core" rev="2.0.+" conf="runtime->default"/><!-- Core Module -->
> <dependency org="org.springframework" name="spring-jms" rev="2.0.+" conf="runtime->default;compile->*"/><!-- JMS Module -->
> <dependency org="org.springframework" name="spring-aop" rev="2.0.+" conf="runtime->default"<!-- AOP Module -->>
> the source ivy.xml file that generated this erroneous output contains a line as follows:
> <!-- Middleware - Spring Application Framework -->
> <dependency org="org.springframework" name="spring-core" rev="2.0.+" conf="runtime->default"/><!-- Core Module -->
> <dependency org="org.springframework" name="spring-jms" rev="2.0.+" conf="runtime->default;compile->*"/><!-- JMS Module -->
> <dependency org="org.springframework" name="spring-aop" rev="2.0.+" conf="runtime->default"><!-- AOP Module -->
> Now I am not sure if it is because of the XML comments or the greater than brackets inside the conf attributes. Moving the comments to different lines resolves the issue. Ivy tells me to clean my cache in order to resolve the issue, but this doesn't resolve the problem. Without the ivy publish task being used, everything else works fine (resolve/retrieve).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IVY-888) Ivy Publish Task Fails When XML
Comments Exist Next to Dependency Declarations
Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627597#action_12627597 ]
Maarten Coene commented on IVY-888:
-----------------------------------
Yes, there was a bug when you had a comment as child element, but that has been fixed now.
It would be great if you could give the trunk version a try to make sure your problem has been solved.
Maarten
> Ivy Publish Task Fails When XML Comments Exist Next to Dependency Declarations
> ------------------------------------------------------------------------------
>
> Key: IVY-888
> URL: https://issues.apache.org/jira/browse/IVY-888
> Project: Ivy
> Issue Type: Bug
> Components: Ant
> Affects Versions: 2.0.0-beta-2
> Environment: Java 5.0, Eclipse 3.3.2, Ant 1.7.0
> Reporter: Julian Klein
> Assignee: Maarten Coene
> Priority: Minor
> Fix For: 2.0-RC1
>
>
> When I have a dependency declared on the same line as a XML comment I receive the following error when attempting to call ivy:publish:
> "RuntimeException: bad ivy file in cache"
> Upon reviewing the generated "resolved descriptor" the line that causes this error looks like the following (see spring-aop line):
> <!-- Middleware - Spring Application Framework -->
> <dependency org="org.springframework" name="spring-core" rev="2.0.+" conf="runtime->default"/><!-- Core Module -->
> <dependency org="org.springframework" name="spring-jms" rev="2.0.+" conf="runtime->default;compile->*"/><!-- JMS Module -->
> <dependency org="org.springframework" name="spring-aop" rev="2.0.+" conf="runtime->default"<!-- AOP Module -->>
> the source ivy.xml file that generated this erroneous output contains a line as follows:
> <!-- Middleware - Spring Application Framework -->
> <dependency org="org.springframework" name="spring-core" rev="2.0.+" conf="runtime->default"/><!-- Core Module -->
> <dependency org="org.springframework" name="spring-jms" rev="2.0.+" conf="runtime->default;compile->*"/><!-- JMS Module -->
> <dependency org="org.springframework" name="spring-aop" rev="2.0.+" conf="runtime->default"><!-- AOP Module -->
> Now I am not sure if it is because of the XML comments or the greater than brackets inside the conf attributes. Moving the comments to different lines resolves the issue. Ivy tells me to clean my cache in order to resolve the issue, but this doesn't resolve the problem. Without the ivy publish task being used, everything else works fine (resolve/retrieve).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IVY-888) Ivy Publish Task Fails When XML
Comments Exist Next to Dependency Declarations
Posted by "Julian Klein (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627556#action_12627556 ]
Julian Klein commented on IVY-888:
----------------------------------
I am sorry I didn't make this clearer, but my comment was nested as a child element inside a dependency tag as follows:
<dependency org="org.springframework" name="spring-aop" rev="2.0.+" conf="runtime->default"><!-- AOP Module -->
<exclude module="jamon"/><!-- Not being used;optional dependency -->
</dependency>
My original example was truncated. This should still be considered valid XML...and Ivy shouldn't cough up hairballs. If this was understood, then thanks for fixing it, otherwise the issue should probably be reopened.
> Ivy Publish Task Fails When XML Comments Exist Next to Dependency Declarations
> ------------------------------------------------------------------------------
>
> Key: IVY-888
> URL: https://issues.apache.org/jira/browse/IVY-888
> Project: Ivy
> Issue Type: Bug
> Components: Ant
> Affects Versions: 2.0.0-beta-2
> Environment: Java 5.0, Eclipse 3.3.2, Ant 1.7.0
> Reporter: Julian Klein
> Assignee: Maarten Coene
> Priority: Minor
> Fix For: 2.0-RC1
>
>
> When I have a dependency declared on the same line as a XML comment I receive the following error when attempting to call ivy:publish:
> "RuntimeException: bad ivy file in cache"
> Upon reviewing the generated "resolved descriptor" the line that causes this error looks like the following (see spring-aop line):
> <!-- Middleware - Spring Application Framework -->
> <dependency org="org.springframework" name="spring-core" rev="2.0.+" conf="runtime->default"/><!-- Core Module -->
> <dependency org="org.springframework" name="spring-jms" rev="2.0.+" conf="runtime->default;compile->*"/><!-- JMS Module -->
> <dependency org="org.springframework" name="spring-aop" rev="2.0.+" conf="runtime->default"<!-- AOP Module -->>
> the source ivy.xml file that generated this erroneous output contains a line as follows:
> <!-- Middleware - Spring Application Framework -->
> <dependency org="org.springframework" name="spring-core" rev="2.0.+" conf="runtime->default"/><!-- Core Module -->
> <dependency org="org.springframework" name="spring-jms" rev="2.0.+" conf="runtime->default;compile->*"/><!-- JMS Module -->
> <dependency org="org.springframework" name="spring-aop" rev="2.0.+" conf="runtime->default"><!-- AOP Module -->
> Now I am not sure if it is because of the XML comments or the greater than brackets inside the conf attributes. Moving the comments to different lines resolves the issue. Ivy tells me to clean my cache in order to resolve the issue, but this doesn't resolve the problem. Without the ivy publish task being used, everything else works fine (resolve/retrieve).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (IVY-888) Ivy Publish Task Fails When XML Comments
Exist Next to Dependency Declarations
Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maarten Coene resolved IVY-888.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.0-RC1
Fixed in SVN trunk.
It was caused because your comment was inside the <dependency>...</dependency> tags.
Thanks for reporting!
Maarten
> Ivy Publish Task Fails When XML Comments Exist Next to Dependency Declarations
> ------------------------------------------------------------------------------
>
> Key: IVY-888
> URL: https://issues.apache.org/jira/browse/IVY-888
> Project: Ivy
> Issue Type: Bug
> Components: Ant
> Affects Versions: 2.0.0-beta-2
> Environment: Java 5.0, Eclipse 3.3.2, Ant 1.7.0
> Reporter: Julian Klein
> Assignee: Maarten Coene
> Priority: Minor
> Fix For: 2.0-RC1
>
>
> When I have a dependency declared on the same line as a XML comment I receive the following error when attempting to call ivy:publish:
> "RuntimeException: bad ivy file in cache"
> Upon reviewing the generated "resolved descriptor" the line that causes this error looks like the following (see spring-aop line):
> <!-- Middleware - Spring Application Framework -->
> <dependency org="org.springframework" name="spring-core" rev="2.0.+" conf="runtime->default"/><!-- Core Module -->
> <dependency org="org.springframework" name="spring-jms" rev="2.0.+" conf="runtime->default;compile->*"/><!-- JMS Module -->
> <dependency org="org.springframework" name="spring-aop" rev="2.0.+" conf="runtime->default"<!-- AOP Module -->>
> the source ivy.xml file that generated this erroneous output contains a line as follows:
> <!-- Middleware - Spring Application Framework -->
> <dependency org="org.springframework" name="spring-core" rev="2.0.+" conf="runtime->default"/><!-- Core Module -->
> <dependency org="org.springframework" name="spring-jms" rev="2.0.+" conf="runtime->default;compile->*"/><!-- JMS Module -->
> <dependency org="org.springframework" name="spring-aop" rev="2.0.+" conf="runtime->default"><!-- AOP Module -->
> Now I am not sure if it is because of the XML comments or the greater than brackets inside the conf attributes. Moving the comments to different lines resolves the issue. Ivy tells me to clean my cache in order to resolve the issue, but this doesn't resolve the problem. Without the ivy publish task being used, everything else works fine (resolve/retrieve).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.