]
Nick Boldt closed JBIDE-17608.
------------------------------
Resolution: Won't Do
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
Priority: Optional
Fix For: LATER
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 !/