aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes how to tell ant that some packages are needed? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "how to tell ant that some packages are needed?" Watch "how to tell ant that some packages are needed?" New topic
Author

how to tell ant that some packages are needed?

miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
in the sequence of this post i'm trying to create a jar without and with ant, using the unjared needed classes.

so, i end up with org, net, javax and com packages i need to tell ant they exist and belong to classpath. How to do it? i tried refering to it using dirset but didnt work;

in previous post i had all jars inside a lib folder and used fileset, but here i'm totally helpless.

the only way i'm getting results is puting those packages inside bin dir, but when i compile again they get erased... ; i also tried copying them again through an ant task, but ant told me could not copy them

can someone pls help me?

TiA


java amateur
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
i guess i've a partial eureka
here's my script:

here's what i did:
added those unjared needed jars to src folder
made ant jar and got (finally) an executable jar from ant

i tried later to return to my original settings, using jars, but when i opened my final jar (with zip) those jars were not unjared so app coudnt find the classes

one mistake was not having:
basedir="${targetdir}" - i was using �{basedir} instead

now my prob is how to unjar using ant: i tried inside jar tag but ant complained...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to tell ant that some packages are needed?