Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

 
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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • 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
 
author
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...

 
Montana has cold dark nights. Perfect for the heat from incandescent light. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic