[ http://issues.apache.org/jira/browse/AXIS-1071?page=all ]
Davanum Srinivas resolved AXIS-1071:
------------------------------------
Resolution: Cannot Reproduce
Assign To: (was: Axis Developers Mailing List)
If you see this bug with latest ANT and Axis. Please ping and i'll reopen the
bug.
thanks,
dims
> Wsdl2JavaAntTask URL param incorrectly uses ${user.dir} instead of ${basedir}
> for relative URL dereferencing
> ------------------------------------------------------------------------------------------------------------
>
> Key: AXIS-1071
> URL: http://issues.apache.org/jira/browse/AXIS-1071
> Project: Apache Axis
> Type: Bug
> Components: WSDL processing
> Versions: 1.1
> Environment: Operating System: Linux
> Platform: Other
> Reporter: Michael Crawford
>
> example:
> In ${app.home}/src/services/foo/src/build.xml:
> <wsdl2java url="../generate/${foo-service.wsdl}" ...
> When ant is run inside of the same directory as this build.xml file, as with
> an
> identical relative path reference in other ant tasks, the url parameter
> correctly dereferences to:
> URL=/opt/app/src/services/foo/generate/foo-service.wsdl
> However, when we create a hierarchical set of build.xml files (in the style
> of
> the Java Pet Store demo), where ${app.home}/src/services/build.xml contains:
> <target name="core">
> <ant dir="foo/src" target="core"/>
> <ant dir="bar/src" target="core"/>
> ...
> The URL parameter of the CALLED build.xml doesn't work properly. Instead of
> dereferencing to the relative location of the CALLED build file, it
> dereferences to the relative location of the CALLING build file. Instead of:
> URL=/opt/app/src/services/foo/generate/foo-service.wsdl
> we incorrectly get:
> URL=/opt/app/src/generate/foo-service.wsdl
> It appears when using file relative urls, the Wsdl2JavaAntTask tag is
> starting
> from ${user.dir}, which doesn't change as we descend into nested builds,
> instead of ${basedir}, which does. In order to obtain consistent behavior
> with
> all of the other tasks which take relative paths as parameters, we should
> change the starting point to ${basedir}.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira