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
Modifier and Type | Field and Description |
---|---|
protected javax.wsdl.Definition |
definition |
protected SymbolTable |
symbolTable
Field symbolTable
|
emitter, LINE_LENGTH, type
Constructor and Description |
---|
JavaBuildFileWriter(Emitter emitter,
javax.wsdl.Definition definition,
SymbolTable symbolTable)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
closePrintWriter, getJavadocDescriptionPart, getPrintWriter, isFileGenerated, registerFile, verboseMessage, writeComment, writeComment, writeFileFooter, writeFileHeader
protected javax.wsdl.Definition definition
protected SymbolTable symbolTable
public JavaBuildFileWriter(Emitter emitter, javax.wsdl.Definition definition, SymbolTable symbolTable)
protected String getFileName()
JavaWriter
getFileName
in class JavaWriter
protected void writeFileBody(PrintWriter out) throws IOException
JavaWriter
writeFileBody
in class JavaWriter
IOException
public void generate() throws IOException
JavaWriter
generate
in interface Generator
generate
in class JavaWriter
IOException
Copyright © The Apache Software Foundation. All Rights Reserved.