You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Christian Schneider <ch...@die-schneider.net> on 2009/11/11 07:42:16 UTC

Reading wsdls from maven repo - Need some help deciding how to go on with this issue

I am currently a little stuck with issue
https://issues.apache.org/jira/browse/CXF-2275

The approach I used does not work well with binding files. Also I have 
found a quite nice way to read the wsdls from the repository without 
needing to extend CXF. I have described the idea in the last comment of 
the issue.

So the question is to either remove the code from CXF again or find a 
way to make it work with binding files. Do you have any ideas about 
this? I would like to solve this before the next release.

Greetings

Christian


Re: Reading wsdls from maven repo - Need some help deciding how to go on with this issue

Posted by Daniel Kulp <dk...@apache.org>.

Well, my opinion is that you're already 90% there, might as well go the last 
10%.   You now have a handle to the File in the local repo.    It's only a 
couple lines of code to copy that into target and use it from there. 
 File target = new File(outputDir, src.getName());
 FileUtils.copy(src,  target);
...

FYI: there are a couple of plugins that actually do this as well.   If you 
look in the target dir of any of our build modules, you'll see that checkstyle 
and pmd and remote-resources and others copy their required bits into target 
to execute from there.

The "tricky" thing from my standpoint is whether to set the "wsdlLocation" 
flag to the original location or not (if the user didn't provide a 
wsdlLocation).   Since neither location is exactly portable, it probably 
doesn't matter.

Dan


On Wed November 11 2009 1:42:16 am Christian Schneider wrote:
> I am currently a little stuck with issue
> https://issues.apache.org/jira/browse/CXF-2275
> 
> The approach I used does not work well with binding files. Also I have
> found a quite nice way to read the wsdls from the repository without
> needing to extend CXF. I have described the idea in the last comment of
> the issue.
> 
> So the question is to either remove the code from CXF again or find a
> way to make it work with binding files. Do you have any ideas about
> this? I would like to solve this before the next release.
> 
> Greetings
> 
> Christian
> 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog