ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbhalsema <dbhals...@gmail.com>
Subject buildfile not producing subpackages
Date Fri, 08 Feb 2008 00:57:54 GMT

I have a project in eclipse and when I run "build generate" it generates the
classes in the main package (com.sparta.customer) but not in the subpackages
(com.sparta.customer.impl) in the produced buildfile.  what could be wrong? 
here's my buildfile (below).  Also I get a "can't find
com.sun.tools.ws.ant.WSImport" error.Thanks in advance.

<?xml version="1.0"?>
<project name="Customer" default="build">
	<property file="build.properties"/>

	<property name="app" value="customer"/>
	<property name="wsdl" value="./etc/WEB-INF/wsdl/Customer.wsdl"/>
	<property name="package" value="com.sparta.customer"/>
	<property name="src" value="./src"/>

	<path id="jaxws.path">
		<pathelement path="${jaxws.home}"/>

		<fileset dir="lib">
			<include name="*.jar"/>
		</fileset>
	</path>
	
	<taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
		<classpath path="jaxws.path"/>
	</taskdef>
	
	<target name="init">
		<mkdir dir="build"/>
		
		<mkdir dir="./build/${app}/WEB-INF/classes"/>
	</target>

	<target name="build" depends="generate" >
		<copy todir="./build/${app}">
		    <fileset dir="./etc"/>
		</copy>
		<javac srcdir="src" destdir="./build/${app}/WEB-INF/classes">
			<classpath refid="jaxws.path" />
		</javac>
	</target>

	<target name="generate" depends="init">
		<wsimport wsdl="${wsdl}"
			sourcedestdir="${src}"
			destdir="./build/${app}/WEB-INF/classes"
			package="${package}"/>
	</target>
	
	<target name="clean">
		<delete dir="build"/>
	</target>

</project>



-- 
View this message in context: http://www.nabble.com/buildfile-not-producing-subpackages-tp15347367p15347367.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message