• 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

One observation

 
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have been using Ant with Eclipse and Netbeans.
The same directory structure(with directories as src, build, config etc.) and same build file . The o/p directory specified is build.
After compiling the code in Eclipse, I have observed that Eclipse creates a NEW directory structure matching the directory structure of the directory in which build.xml resides under the target directory.
There is a high possibility that I am doing something wrong here, but when I delete the directory structure created, and compile the same code using same build.xml in NetBeans it works as expected. Has anybody come across this ?
What am I missing ?
 
Bhushan Jawle
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anybody, any views ?
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm guessing that the directory you are seeing is being created when Eclipse compiles the code directly, not using Ant. You should be able to check this out by:
  • start Eclipse
  • open your project (if it's not already open), and select it in the "package explorer".
  • delete the offending directories from outside Eclipse
  • click project :: rebuild project


  • If this is the problem, your troublesome directories should reappear.
    One way to stop this bothering you is to tell Eclipse to put its class files somewhere else:
  • click project :: properties
  • select "java build path"
  • put an out-of-the-way directory name in the box at the bottom (say /tmp/eclipse/projectname )
  • click OK


  • Now you should be able to rebuild whenever you like, without Eclipse messing with your build area.
    Has this helped?
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    reply
      Bookmark Topic Watch Topic
    • New Topic