wsdl2java Ant tasks does not resolve given relative pathnames against use 
basedir
---------------------------------------------------------------------------------

                 Key: AXIS2-5216
                 URL: https://issues.apache.org/jira/browse/AXIS2-5216
             Project: Axis2
          Issue Type: Bug
          Components: ide plugins, Integration
    Affects Versions: 1.6.1, 1.5.6, 1.6.0, 1.5.5, 1.5.4, 1.5.3, 1.5.2, 1.5.1, 
1.5, 1.4.1
         Environment: probably all, but seen in Ant 1.8.2 on WIndows 7
            Reporter: Daniel B.


The wsdl2java Ant task provided by Axis2 does not seem to resolve given 
pathnames against Ant's basedir property (as Ant tasks are supposed to (or, at 
least as built-in Ant tasks actually do).)

I have seen this for the wsdlFilename and output attributes, but presumably any 
other pathname attributes also have the problem.

To see the problem:

1. Create an Ant build.xml file containing a <wsdl2java> element whose 
wsdlFileName attribute refers to a WSDL file using a relative pathname (e.g., 
"x.wsdl" (as opposed to "/home/user/a/b/x.wsdl")) that works when you invoke 
Ant with your working directory set to the directory containing build.xml 
(e.g., when "ant -f build.xml" works).  

2.  Then change your working directory to some other directory and run Ant on 
the same file (using Ant's -f option to point Ant to the build file).    The 
expected symptom is that wsdl2java will no longer find the WSDL file.  The 
absolute pathname printed in the error message should confirm that wsdl2java is 
looking relative to the current working directory rather than relative to the 
Ant project's base directory (which defaults to the directory containing the 
build.xml file).


(See http://ant.apache.org/manual/using.html#project for information on the 
basedir attribute and some information on the base directory.  Also, see 
mentions of "basedir" in http://ant.apache.org/manual/develop.html.)


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to