Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Modifying exported build.xml files
Modifying exported build.xml files [message #204401] Thu, 12 April 2007 01:47 Go to next message
Eclipse UserFriend
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>
Re: Modifying exported build.xml files [message #204735 is a reply to message #204401] Fri, 13 April 2007 02:18 Go to previous message
Eclipse UserFriend
Originally posted by: siegfried.heintze.com

Please cancel this, I got it working!
Previous Topic:Upload on Save
Next Topic:Installing Visual editor
Goto Forum:
  


Current Time: Fri Apr 26 16:23:07 GMT 2024

Powered by FUDForum. Page generated in 0.08670 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top