Falling back to an earlier version if ant

A

Aaron Fude

Hi,

I have 1.6.0_12 and I need to compile my code to run with 1.5.0.17.

I use ant.

Is there a way to tell javac to fall back to an earlier version?
Alternatively, can I just tell ant with javac to use (if I have both
on my machine)?

An explicit example of either would be just great!

Many thanks in advance,

Aaron
 
A

Arne Vajhøj

Aaron said:
I have 1.6.0_12 and I need to compile my code to run with 1.5.0.17.

I use ant.

Is there a way to tell javac to fall back to an earlier version?
Alternatively, can I just tell ant with javac to use (if I have both
on my machine)?

An explicit example of either would be just great!

Usually the source and target attributes are sufficient.

But if not then you can use the executable attribute (together
with fork="yes" !).

http://ant.apache.org/manual/CoreTasks/javac.html

has it all.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top