• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Compile Sequence (ANT)

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Having some problems compiling source files - all classes are in a single package, some uses some of the other classes - seems im getting a dependancy problem when building with ant - gives me "Cannot resolve symbol" even though these classes exist, are in the same package, but not yet compiled - how can I tell ant to compile them in the right order?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try compiling all the files at one go.

------x------
Well, I faced similar problem when compiling sources with inter-dependancy. I had folder structure like
com.myCompany.pkg1
com.myCompany.pkg2
com.myCompany.pkg3
com.myCompany.pkgn
Best(and simple) way to compile all of them is to compile them in single shot.
<javac srcdir="${src}" destdir="${classes}"/>
This solved my problem... probably will work for you also. All the best.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic