The moose likes Ant, Maven and Other Build Tools and the fly likes (ANT) Error: No source files and no packages been specified Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "(ANT) Error: No source files and no packages been specified" Watch "(ANT) Error: No source files and no packages been specified" New topic
Author

(ANT) Error: No source files and no packages been specified

Vanchi Nathan
Ranch Hand

Joined: Feb 24, 2004
Posts: 107
hi all,

I was trying to use the build file provided in struts-blank-1.3.8.war application. Within the build.xml file i did set the path for servlet-api.jar that is pointed to the local tomcat installation. When i execute the build.xml file i am getting the following error.

C:\Documents and Settings\vanchin\workspace\struts_blank\WEB-INF\src\build.xml:97: No source files and no package been specified.

The following is the code in the build.xml file.



Please, someone help me to fix this problem.

thanks in advance..

vanchi


Best regards,<br /> <br />vanchin
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Did you launch ant from the same directory as build.xml is ?


[My Blog]
All roads lead to JavaRanch
Vanchi Nathan
Ranch Hand

Joined: Feb 24, 2004
Posts: 107
hi,

thanks for the reply.

yes, i did launch the ant from the directory the build.xml was located.

vanchi
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Try the -v or -d option to see more about what happens when you execute that script.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Vanchi Nathan
Ranch Hand

Joined: Feb 24, 2004
Posts: 107
hi guys..

thanks a lot..

actually the war file doesnt contain any valid java class or package in the src (src/java) folder. I then created a temporary java class in that folder. Afterthat i worked without this Error: No source files and no packages been specified error.

thanks

vanchin
Vanchi Nathan
Ranch Hand

Joined: Feb 24, 2004
Posts: 107
sorry typo..

Afterthat i worked without this Error: No source files and no packages been specified error.


After that it worked without the error...

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: (ANT) Error: No source files and no packages been specified