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 Marcel Schutte <ma...@schutte.name> on 2004/09/29 22:15:31 UTC
Wsdl2javaAntTask does not look for NStoPkg.properties in project's basedir
Hello all,
I've found a problem with the Wsdl2javaAntTask: according to the
documentation it should use the basedir as specified in the ant build file
to look for the NStoPkg.properties file.
What it actually does is to look in the current directory of the JVM that is
running ant. This can be traced to code in
org.apache.axis.wsdl.toJava.Emitter doing a 'new
FileInputStream(DEFAULT_NSTOPKG_FILE)'.
In my opinion the documented behavior is the most desirable, because in
complex build scripts the ant basedir is more likely to point to a projects
root directory than is the JVM's current directory.
The attached patch uses the ant Project to look for NStoPkg.properties in
the ant basedir. If it is found there, this path is passed on to the
Emitter.
Regards,
Marcel Schutte