Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

wsgen as ant task doesn't recognize

807580Jan 3 2010 — edited Jan 3 2010
Hi

I'm trying to build my webservice using ant in eclipse but ant doesn't regonize this kind of task
my java files are in src catalouge and my build file looks like this
<?xml version="1.0" encoding="UTF-8"?>
<project name = "webservice">

<property name = "build.dir" location="build.classes"/>

<target name="init">
	<mkdir dir="${build.dir}"/>
</target>

<target name = "compile" description = "Kompiluje kod javy">
	<javac srcdir = "src" destdir = "build/classes"/>
</target>
<target name="generate">
<wsgen destdir = "${build.dir}" sourcedestdir="${build.dir}">
	<classpath>
		<fileset dir = "src">
			<include name="*.*"/>
		</fileset>
	</classpath>
</wsgen>
</target>

</project>
and i want to ask too, if iam using wsgen do i need to compile classes before, if someone could write some example buildfile i will be thankfull, i tryied to understand build file from the examples from sun's tutorial but the are too complicated for me

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 31 2010
Added on Jan 3 2010
1 comment
57 views