Thanks Mark,
But I have both in my build file both sourcepath tag
and also fileset tag. I herewith attach the build.xml
Thanks
Rupen
--- Mark Lowe <[EMAIL PROTECTED]> wrote:
> I'm having a guess here but somewhere in you build
> file there's a
> sourcepath tag or attribute.. Find it and replace is
> with a fileset tag
>
> something like
>
> <fileset dir="${src.home}" includes="**/*.java"/>
>
>
> On 10 Jan 2004, at 14:31, Rupen Mody wrote:
>
> > Hi,
> >
> > Build failed saying soucepath could not be
> > found.......
> >
> >
> > Please kindly help.........
> >
> > Thanks Rupen
> >
> > CONSOLE OUTPUT :-
> >
> > D:\eclipse\workspace\EJBTest\count>ant -v
> > Apache Ant version 1.6.0 compiled on December 18
> 2003
> > Buildfile: build.xml
> > Detected Java version: 1.4 in: C:\Program
> > Files\Java\j2re1.4.0-rc
> > Detected OS: Windows 2000
> > parsing buildfile
> > D:\eclipse\workspace\EJBTest\count\build.xml with
> URI
> > = file:/
> > //D:/eclipse/workspace/EJBTest/count/build.xml
> > Project base dir set to:
> > D:\eclipse\workspace\EJBTest\count
> > [property] Loading
> >
> D:\eclipse\workspace\EJBTest\count\build.properties
> > Build sequence for target `clean' is [prepare,
> > ejbdoclet, compile-ejbs, ejb-jar,
> > appxml, j2ee-ear, clean]
> > Complete build sequence is [prepare, ejbdoclet,
> > compile-ejbs, ejb-jar, appxml, j
> > 2ee-ear, clean, ]
> >
> > prepare:
> >
> > ejbdoclet:
> >
> > BUILD FAILED
> > D:\eclipse\workspace\EJBTest\count\build.xml:21:
> The
> > 'sourcepath' attribute can
> > not be used anymore. Use <fileset> to define the
> > files to parse
> > at
> >
>
xjavadoc.ant.XJavadocTask.setSourcepath(XJavadocTask.java:40)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> > at
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> > java:39)
> > at
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > sorImpl.java:25)
> > at
> > java.lang.reflect.Method.invoke(Method.java:324)
> > at
> >
>
org.apache.tools.ant.IntrospectionHelper$10.set(IntrospectionHelper.j
> > ava:982)
> > at
> >
>
org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHe
> > lper.java:534)
> > at
> >
>
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfig
> > urable.java:406)
> > at
> >
>
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfig
> > urable.java:360)
> > at
> >
>
org.apache.tools.ant.Task.maybeConfigure(Task.java:292)
> > at
> >
>
org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:220
> > )
> > at
> >
>
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.jav
> > a:189)
> > at
> > org.apache.tools.ant.Task.perform(Task.java:400)
> > at
> >
> org.apache.tools.ant.Target.execute(Target.java:338)
> > at
> >
>
org.apache.tools.ant.Target.performTasks(Target.java:365)
> > at
> >
>
org.apache.tools.ant.Project.executeTarget(Project.java:1237)
> > at
> >
>
org.apache.tools.ant.Project.executeTargets(Project.java:1094)
> > at
> > org.apache.tools.ant.Main.runBuild(Main.java:669)
> > at
> > org.apache.tools.ant.Main.startAnt(Main.java:220)
> > at
> >
>
org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
> > at
> >
>
org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Hotjobs: Enter the "Signing Bonus"
> Sweepstakes
> > http://hotjobs.sweepstakes.yahoo.com/signingbonus
> >
> >
> >
>
-------------------------------------------------------
> > This SF.net email is sponsored by: Perforce
> Software.
> > Perforce is the Fast Software Configuration
> Management System offering
> > advanced branching capabilities and atomic changes
> on 50+ platforms.
> > Free Eval!
> http://www.perforce.com/perforce/loadprog.html
> > _______________________________________________
> > xdoclet-user mailing list
> > [EMAIL PROTECTED]
> >
>
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> >
>
>
>
>
-------------------------------------------------------
> This SF.net email is sponsored by: Perforce
> Software.
> Perforce is the Fast Software Configuration
> Management System offering
> advanced branching capabilities and atomic changes
> on 50+ platforms.
> Free Eval!
> http://www.perforce.com/perforce/loadprog.html
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus<?xml version="1.0"?>
<project name="XDoclet Example" default="clean" basedir=".">
<property file="build.properties"/>
<!-- creating directories -->
<target name="prepare">
<mkdir dir="${build.dir}" />
<mkdir dir="${gen-src.dir}" />
<mkdir dir="${classes.dir}" />
<mkdir dir="${meta-inf.dir}" />
<mkdir dir="${web-inf.dir}" />
<mkdir dir="${web-classes.dir}" />
<mkdir dir="${lib.dir}" />
<mkdir dir="${lib-meta-inf.dir}" />
</target>
<!-- doclets -->
<target name="ejbdoclet" depends="prepare">
<taskdef name="ejbdoclet" classname="xdoclet.modules.ejb.EjbDocletTask" classpath="${xdoclet.dir}/lib/xdoclet-ejb-module-1.2.jar;${xdoclet.dir}/lib/log4j.jar"/>
<ejbdoclet sourcepath="${src.dir}" destdir = "${gen-src.dir}" excludedtags = "@version,@author" ejbspec="2.0">
<fileset dir="${src.dir}">
<include name="**/*Bean.java" />
</fileset>
<remoteinterface />
<homeinterface />
<deploymentdescriptor destdir="${meta-inf.dir}"/>
<weblogic destdir="${meta-inf.dir}" />
<jboss destdir="${meta-inf.dir}" />
</ejbdoclet>
</target>
<!-- compiling classes -->
<target name="compile-ejbs" depends="ejbdoclet">
<!-- Compile EJBs -->
<javac srcdir="${src.dir};${gen-src.dir}"
destdir="${classes.dir}"
includes="**/*.java"
debug="on">
</javac>
</target>
<target name="ejb-jar" depends="compile-ejbs">
<jar jarfile="${lib.dir}/${ejb-jar.name}">
<fileset dir="${classes.dir}"/>
<fileset dir="${build.dir}" includes="META-INF/**" />
</jar>
</target>
<!-- creating application.xml from template -->
<target name="appxml" depends="ejb-jar">
<taskdef
name="replacecopy"
classname="xdoclet.ant.ReplaceCopy"
classpath="${xdoclet.dir}/lib/xdoclet.jar;${xdoclet.dir}/lib/log4j.jar"
/>
<replacecopy
file="application.xml"
todir="${lib-meta-inf.dir}"
/>
</target>
<!-- create ear -->
<target name="j2ee-ear" depends="appxml">
<jar jarfile="lib/${app-ear.name}">
<fileset dir="${lib-meta-inf.dir}" includes="META-INF/**" />
<fileset dir="${lib.dir}" />
</jar>
</target>
<!-- deleting directories -->
<target name="clean" depends="j2ee-ear">
<delete dir="${build.dir}" />
</target>
</project>