Modifying exported build.xml files [message #204401] |
Thu, 12 April 2007 01:47 |
Eclipse User |
|
|
|
Originally posted by: siegfried.heintze.com
Can someone help me understand this comment I get when I export an ant
build.xml file? I was going to enhance the generated one to call wsgen and
wsimport. Is there a better approach?
If I follow the instructions in the comment, what do I call the new build
file? build2.xml? Where do I put the
I tried following the instructions by making a file called build2.xml with
my enhancements in it and makeing the first element that funny string and
exporting it did not seem to be any different. How do I use this feature?
Thanks,
Siegfried
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- WARNING: Eclipse auto-generated file.
Any modifications will be overwritten.
To include a user specific buildfile here, simply create one in the same
directory with the processing instruction <?eclipse.ant.import?>
as the first entry and export the buildfile again. -->
Here is my custom build2.xml:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse.ant.import?>
<project basedir="." default="build" name="ScriptEngineHello">
<target name="-pre-dist">
<taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen">
<classpath path="${javac.classpath}"/>
</taskdef>
<wsgen debug="true"
keep="true" destdir="build/web/WEB-INF/classes"
resourcedestdir="build/web/WEB-INF/classes"
sei="my.sample.server.ServiceImpl">
<classpath>
<pathelement path="${javac.classpath}"/>
<pathelement location="${java.home}/../lib/tools.jar"/>
<pathelement location="build/web/WEB-INF/classes"/>
</classpath>
</wsgen>
</target>
<!-- Overrides build-impl.xml target to start server and generate
client artifacts before building test. -->
<target name="-pre-compile-test">
<taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
<classpath path="${javac.classpath}"/>
</taskdef>
<!-- Use "debug" or "run" here. -->
<antcall target="run"/>
<echo>running wsimport</echo>
<wsimport debug="true"
keep="true" destdir="test"
package="my.sample.test.generated"
wsdl="http://localhost:8080/JAX-WS20Project/hello?wsdl"/>
</target>
</project>
|
|
|
|
Powered by
FUDForum. Page generated in 0.08670 seconds