• 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

Two javac to compile

 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible in a simple fashion to have the code compile using java 1.4.2 and java 1.5.0. We have two components, and one needs to be compiled using 1.4.2 and one with 1.5.0.
 
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah, yes.
Here is your answer:
http://bobcat.webappcabaret.net/javachina/faq/ant_01.htm#ant_mid_Q12
 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can provide the complete path of the executable file you want to use in the javac task of your script. To compile two components seperately you need to write two seperate tasks, each specifying the complete path of the javac compiler you wish to use.

e.g

javac executable="${WAS_HOME}\runtimes\base_v5\java\bin\javac.exe"
In the executable property for each task specifify the location of your javac compiler.
This should solve your problem
reply
    Bookmark Topic Watch Topic
  • New Topic