[jbosstools-issues] [JBoss JIRA] (JBIDE-17608) improve p2diff's URI handling to support relative path folder and zips

Nick Boldt (JIRA) issues at jboss.org
Tue Jun 17 23:27:23 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-17608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977220#comment-12977220 ] 

Nick Boldt commented on JBIDE-17608:
------------------------------------

Simple workaround here is to use -consolelog flag to get error messages to console, such as:

{code}
$➔ p2diff foo bar -consolelog
...
Framework arguments:  foo bar
Command-line arguments:  -os linux -ws gtk -arch x86_64 foo bar -consolelog
...
java.lang.IllegalArgumentException: Location must be absolute: foo
{code}

But better arg handling would certainly be better

> improve p2diff's URI handling to support relative path folder and zips
> ----------------------------------------------------------------------
>
>                 Key: JBIDE-17608
>                 URL: https://issues.jboss.org/browse/JBIDE-17608
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: build, upstream
>    Affects Versions: 4.2.0.Beta2
>            Reporter: Nick Boldt
>            Assignee: Nick Boldt
>
> Instead of having to type:
> {code}
> p2diff file:///home/nboldt/tru/disco/jbtearlyaccesstarget/multiple/target/jbtearlyaccess-multiple.target.repo/ file:///home/nboldt/tru/disco/jbtearlyaccesstarget/multiple/target_FULL/jbtearlyaccess-multiple.target.repo/
> {code}
> I'd like to see it work for 
> {code}
> p2diff target target2
> or
> p2diff site.zip site2.zip
> {code}
> So we need a few things:
> a) find the nested repo in the specified folder (if not in `pwd` look in child folders for a p2 repo or repo zip)
> b) better error reporting if the specified folders aren't repos or don't contain repos (right now p2diff does NOTHING if it doesn't like the URIs stated
> c) if a local path exists, prepend file:// onto the file path so it behaves like a p2 URI
> d) if a local repo zip found then prepend jar:file:// and append !/ 



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)



More information about the jbosstools-issues mailing list