This is my complete build.xml;  when I execute ant compile.service it
complains
about the package.

Thanks,

Sonia

<project name="quickstart" basedir="." default="generate.service">

<property environment="env"/>

<property name="AXIS2_HOME" value="../.."/>

<property name="build.dir" value="build"/>

<path id="axis2.classpath">

<fileset dir="${AXIS2_HOME}/lib">

<include name="*.jar"/>

</fileset>

</path>

<target name="compile.service">

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

<mkdir dir="${build.dir}/classes"/>

<!--First let's compile the classes-->

<javac debug="on"

fork="true"

destdir="${build.dir}/classes"

srcdir="${basedir}/src"

classpathref="axis2.classpath">

<classpath>

<fileset dir="lib">

<include name="**.jar"/>

</fileset>

</classpath>

</javac>

</target>

<target name="generate.wsdl" depends="compile.service">

<*taskdef name="java2wsdl"

classname="org.apache.ws.java2wsdl.Java2WSDLTask"

classpathref="axis2.classpath"/>
*

<java2wsdl className="com.ngc.wsServer.RunService"

outputLocation="${build.dir}"

targetNamespace="http://quickstart.samples/";

schemaTargetNamespace="http://quickstart.samples/xsd";>

<classpath>

<pathelement path="${axis2.classpath}"/>

<pathelement location="${build.dir}/classes"/>

</classpath>

</java2wsdl>

</target>

<target name="generate.service" depends="compile.service">

<!--aar them up -->

<copy toDir="${build.dir}/classes" failonerror="false">

<fileset dir="${basedir}/resources">

<include name="**/*.xml"/>

</fileset>

<fileset dir="${basedir}/lib">

<include name="**/*.jar"/>

</fileset>

</copy>

<jar destfile="${build.dir}/RunService.aar">

<fileset excludes="**/Test.class" dir="${build.dir}/classes"/>

</jar>

</target>

<target name="clean">

<delete dir="${build.dir}"/>

</target>

</project>


On Wed, Sep 9, 2009 at 1:08 PM, Avlesh Singh <avl...@gmail.com> wrote:

> The classpathref="axis2.classpath" attribute you have used for the javac
> task, needs to be defined prior to using it.
>
> Cheers
> Avlesh
>
> On Wed, Sep 9, 2009 at 9:34 PM, veena pandit <v.kri...@gmail.com> wrote:
>
> >  I have the following in my build.xml, but it complains about an import:
> > *
> >
> > import* org.apache.axis2.util.OptionsParser;
> > I thought this class is part of the axis 2 package.  Can anyone help me
> > fix this?
> >
> > Thanks,
> >
> > Sonia
> >
> >
> > <target name="compile.service">
> >
> > <mkdir dir="${build.dir}"/>
> >
> > <mkdir dir="${build.dir}/classes"/>
> >
> > <!--First let's compile the classes-->
> >
> > <javac debug="on"
> >
> > fork="true"
> >
> > destdir="${build.dir}/classes"
> >
> > srcdir="${basedir}/src"
> >
> > classpathref="axis2.classpath">
> >
> > <classpath>
> >
> > <fileset dir="lib">
> >
> > <include name="**.jar"/>
> >
> > </fileset>
> >
> > </classpath>
> >
> > </javac>
> >
> > </target>
> >
>

Reply via email to