[ https://issues.apache.org/jira/browse/IVY-716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565846#action_12565846 ]
Antoine Levy-Lambert commented on IVY-716:
------------------------------------------
I think you might need a new class having as attributes the organization, the module and the branch and use this one in the SearchEngine. What about ModuleBranchId extends ModuleId ?
> repreport task not working against a repository structured by branches
> ----------------------------------------------------------------------
>
> Key: IVY-716
> URL: https://issues.apache.org/jira/browse/IVY-716
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-alpha-2
> Environment: Windows XP, IBM JDK 1.5
> Reporter: Antoine Levy-Lambert
> Assignee: Maarten Coene
>
> I am trying to use the repreport task like this
>
> here are my settings :
>
> defaultBranch="${ivy.branch}"/>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> I see the following standard out :
> [ivy:repreport] :: problems summary ::
> [ivy:repreport] :::: WARNINGS
> [ivy:repreport] problem while listing resources in http://ivyrepo:8060/ivyrepo/saic/[branch]/ with http-branch-resolver:
> [ivy:repreport] java.lang.IllegalArgumentException Invalid uri 'http://ivyrepo:8060/ivyrepo/saic/[branch]/': escaped absolute path not valid
> [ivy:repreport] problem while listing resources in http://ivyrepo:8060/ivyrepo/saic/[branch]/ with http-branch-resolver:
> [ivy:repreport] java.lang.IllegalArgumentException Invalid uri 'http://ivyrepo:8060/ivyrepo/saic/[branch]/': escaped absolute path not valid
> [ivy:repreport] problem while listing resources in http://ivyrepo:8060/ivyrepo/saic/[branch]/ with http-branch-resolver:
> [ivy:repreport] java.lang.IllegalArgumentException Invalid uri 'http://ivyrepo:8060/ivyrepo/saic/[branch]/': escaped absolute path not valid
> [ivy:repreport] problem while listing resources in http://ivyrepo:8060/ivyrepo/saic/[branch]/ with http-branch-resolver:
> [ivy:repreport] java.lang.IllegalArgumentException Invalid uri 'http://ivyrepo:8060/ivyrepo/saic/[branch]/': escaped absolute path not valid
> [ivy:repreport]
> Replacing [branch] by its value in my settings file is a workaround.
> Looking at the source code from SVN, it looks like public ModuleId[] listModules(ModuleId criteria, PatternMatcher matcher) {
> in org.apache.ivy.core.search.SearchEngine is involved in the work.
> Should a new version of listModules be created, having also a branch as parameter ?
> A more powerful solution might be to create a new class extending ModuleId, adding a branch field to the instance variables, and to code using this class.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.