• 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

Urgent help wanted!! maintaing directory structure while using ant?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everybody,
I am new to ant and just started learning!!! Please help me in this problem!
My source directoy is as follows:
src
|___ ejb
|
|___ dependency
Inside ejb there are EJB's and inside dependency there are helper & wrapper files for EJB's
Please Note: All the files(*.java) contains same package structure in both ejb and dependency.
Now when i comiple(by running ant), the output directory "classes" does not contain the folders "ejb & dependency". It only contains the package structure and all the .class files (including those of ejb's & dependency)inside it.
Can somebody tell me why and what i have to do inorder to get/create those directories in the destination classes directory?
How to maintain the directory structure while using javac in ant?
Thanks in advance,
Sharath B
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First, compile the sources from "src/dependency" into "classes/dependency" and then compile the sources from "src/ejb" into "classes/ejb".
[ December 01, 2003: Message edited by: Lasse Koskela ]
 
Sharath Balu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot for the reply,
I tried that, but then i am having dependency problems. Is there anyway that in "classes" the directory structure can be copied?
Thanks once again,
Sharath B
 
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic