• 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

how to set a dir with ant

 
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
at some point my dir looks like:
agilejava
sis exercicios

actually i'm running ant from inside exercicios and want to tell ant to get
sis package, but this doesnt work:


Can someone pls help me?

TiA
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
miguel,

What doesn't work? What kind of error are you getting? What are you using that path in? Have you looked at verbose output (-v)?
 
miguel lisboa
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i get:
package sis.report does not exist
but it does exist.I cant reach that package; normally i'd do:
..\
but doesnt work and tried some other combinations but cant indicate, in the classpath, the right path...

with -v i get:
[javac] File to be compiled:
[javac] C:\javas\AgileJava\exercicios\util\StringUtil.java
[javac] C:\javas\AgileJava\exercicios\util\StringUtil.java:5: package sis.report does not exist

i want to reach the package sis that lies inside C:\javas\agilejava

i'm running ant from
C:\javas\AgileJava\exercicios

BTW thanks for helping
 
miguel lisboa
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i guess its better to post my build.xml file:
 
Carol Enderlin
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, it is probably looking in the directory you instructed it to look in, but have you compiled that code first? If you have, wouldn't it be in a classes dir (that's what your destdir is set to for javac in the directory you are working in).

I don't follow your project structure, why don't you create a build file at a higher level and take care of the dependencies?
 
miguel lisboa
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi again, Carol

Well, it is probably looking in the directory you instructed it to look in, but have you compiled that code first? If you have, wouldn't it be in a classes dir


so instead i made:

and worked!!
thanks a lot
 
Carol Enderlin
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi again miguel,

Glad to hear it worked.
 
reply
    Bookmark Topic Watch Topic
  • New Topic