Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Vanchi Nathan
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you launch ant from the same directory as build.xml is ?
 
Vanchi Nathan
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

thanks for the reply.

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

vanchi
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try the -v or -d option to see more about what happens when you execute that script.
 
Vanchi Nathan
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry typo..

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


After that it worked without the error...

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic