• 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

javac question

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am trying to compile all the java files in directory, directoryadmin, daoframework and opensource directories.
For some reason, the following task does not do anything!!! When I run an compile, nothing happens. Any ideas why?
Also, when I create a jar file out of the class files, how would I use ant to do the following:
"jar umf" to change the Main-Class in my manifest file?

Thanks,
Payam.
<target name="compile" depends="init">
<javac destdir="build/classes"
classpath="../directoryadmin/jars/*.jar, C:/forte4j/lib/ext/classes12.zip">
<include name="../daoframework/**"/>
<src path="../directoryadmin/"/>
<src path="../directory/"/>
<src path="../opensource/"/>
</javac>
</target>
 
Payam Fard
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, For some reason, when I add includes or excludes under javac, it ignores the whole task and does not do anything at all!!! Any ideas?
Looks like <src path="..."/> statements are fine, but for some reason, it cannot find the classes that are inside the jar files that I have included in the classpath.
Also, how can I say only compile java files? I have tried the following, but does not work:
<src path="../directory/**/*.java"/>
Thanks,
Payam.
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I used to do it like e.g.:

Hope this helps..
Rene
[ February 26, 2003: Message edited by: Rene Larsen ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic