• 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

Ant: Jar File with src folder in it

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I just created with ant a jar file and everything works, but in the jar file the src folder is ommited, but I need it because I'm referrencing a file from the application.

I.e. I have the following structure in my project ProjectName/src/org/nexLevel/nextLevel/Main.java. I also have ProjectName/config/settings.properties.

When I know build a jar file with ant I get only the folders org/nexLevel/nextLevel/Main.java but not the src folder. How can I get the src folder in my .jar?

Here is my ant script:
reply
    Bookmark Topic Watch Topic
  • New Topic