Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error

 
Ambika Kumar
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai..
I have got the following error and unable to trace it. so, can you please help me to find it.

Source Code:


<project>

<target name="clean">
<delete dir="build"/>
</target>

<target name="compile">
<mkdir dir="build/classes"/>
<javac srcdir="D:\AnT" destdir="build/classes"/>
</target>

<target name="jar">
<mkdir dir="build/jar"/>
<jar destfile="build/jar/Hello.jar" basedir="build/classes">
<manifest>
<attribute name="Main-Class" value="Hello"/>
</manifest>
</jar>
</target>

<target name="javadoc">
<mkdir dir="build/javadoc"/>
<javadoc sourcepath="D:\AnT\Hello.java" destdir="build/javadoc" >

</javadoc>
</target>

<target name="run">
<java jar="build/jar/Hello.jar" fork="true"/>
</target>

</project>



Error :

No source files and no packages have been specified.



thanks
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a forum devoted to Ant here. I will move this there for you.
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you provide more details (see TellTheDetails)?

What target were you running (your project as shown in the post doesn't have a default target)? Did you try googling the error? The hits I got make it sound like the error is from the javadoc target.

Is that all the output it generated?

Did you try running with -v to get verbose output?

What versions of ant/java?
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<javac srcdir="D:\AnT" destdir="build/classes"/>

Are you put your src file under D:\AnT??

Not a good idea!

A suggested directory structure


[ January 29, 2006: Message edited by: Roseanne Zhang ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic