org.apache.axis.wsdl.toJava

Class JavaBuildFileWriter

Implemented Interfaces:
Generator

public class JavaBuildFileWriter
extends JavaWriter

This is Wsdl2java's build file Writer. It writes the build.xml file. The build.xml file is a ant build file. After run the WSDL2Java and filling the implementation the user just have to cd to the out dir and type and "ant" (of course you must have ant installed). Then the ant will genarate a jar file which named after the wsdl file you used for WSDL2Java. (named after wsdl file ??? I do not get anything better .. the wsdl file may have more than one service ect ... so we can use them.)

This build file work on the where it is created ... User can not move the genarated code to another mechine and try to build. (class path is broken). But of cource user can move genarated build file at his will.

deploy the webservice using the AdminClient and drop the jar to servlet Container. We might even add another task to deploy the WS as well.

This feature can be on and off using the -B option default is off

Author:
Srinath Perera(hemapani@opensource.lk)

Field Summary

protected Definition
definition
protected SymbolTable
symbolTable
Field symbolTable

Fields inherited from class org.apache.axis.wsdl.toJava.JavaWriter

LINE_LENGTH, emitter, type

Constructor Summary

JavaBuildFileWriter(Emitter emitter, Definition definition, SymbolTable symbolTable)
Constructor

Method Summary

void
generate()
Generate a file.
protected String
getFileName()
This method must be implemented by a subclass.
protected void
writeFileBody(PrintWriter out)
This method must be implemented by a subclass.

Methods inherited from class org.apache.axis.wsdl.toJava.JavaWriter

closePrintWriter, generate, getFileName, getJavadocDescriptionPart, getPrintWriter, isFileGenerated, registerFile, verboseMessage, writeComment, writeComment, writeFileBody, writeFileFooter, writeFileHeader

Field Details

definition

protected Definition definition

symbolTable

protected SymbolTable symbolTable
Field symbolTable

Constructor Details

JavaBuildFileWriter

public JavaBuildFileWriter(Emitter emitter,
                           Definition definition,
                           SymbolTable symbolTable)
Constructor

Method Details

generate

public void generate()
            throws IOException
Generate a file.
Specified by:
generate in interface Generator
Overrides:
generate in interface JavaWriter

getFileName

protected String getFileName()
This method must be implemented by a subclass. It returns the fully-qualified name of the file to be generated.
Overrides:
getFileName in interface JavaWriter
Returns:

writeFileBody

protected void writeFileBody(PrintWriter out)
            throws IOException
This method must be implemented by a subclass. This is where the body of a file is generated.
Overrides:
writeFileBody in interface JavaWriter
Parameters:

Copyright © 2005 Apache Web Services Project. All Rights Reserved.