You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Tobias Mattsson (JIRA)" <ji...@apache.org> on 2015/06/10 12:58:00 UTC

[jira] [Commented] (AXIS2-3952) Dubious src subdirectory (hard-coded!!!) created by wsdl2java with JAXBRI binding

    [ https://issues.apache.org/jira/browse/AXIS2-3952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14580392#comment-14580392 ] 

Tobias Mattsson commented on AXIS2-3952:
----------------------------------------

I needed my files in src/main/java but kept getting in src/main/java/src. The workaround I came up with was using both -o and -S options.

{noformat}
wsdl2java.sh --noBuildXML -or -S main/java -o src ...
{noformat}

> Dubious src subdirectory (hard-coded!!!) created by wsdl2java with JAXBRI binding
> ---------------------------------------------------------------------------------
>
>                 Key: AXIS2-3952
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3952
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.4
>            Reporter: Jan Moravec
>
> Hello,
> After running the following wsdl2java command I end up with a dubious src directory generated underneath the output directory that I specify on the wsdl2java command line (-o option).
> ./wsdl2java.sh -s -o . -d jaxbri -S -noBuildXML -ns2p http://www.webservicex.net=net.webservicex -uri ./geoipservice.wsdl
> This command generates the client stub underneath the current directory and jaxb sources in src subdirectory. The expected behavior would be to have all the sources generated in the specified (in my case current) directory in their respective packages of course.
> The problem is apparently in the org.apache.axis2.jaxbri.CodeGenerationUtility whose processSchemas method executes:
> File outputDir = new File(cgconfig.getOutputLocation(), "src");
> outputDir.mkdir();
> I believe, it should be simplified to:
> cgconfig.getOutputLocation().mkdir();
> Thanks,
> Jan Moravec



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org