Java 1.5

3 messages Options
Embed this post
Permalink
Tal Liron

Java 1.5

Reply Threaded More More options
Print post
Permalink
Recent svn builds have been compiling for Java 1.6, because, I guess,
it's the default for my system. How do I force 1.5? Is there something I
should add to custom.properties?

By the way, svn does not build at this moment. Lots of errors with the
httpclient extension, and a POM missing for JAAS.

-Tal

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=2403939
Tal Liron

Re: Java 1.5

Reply Threaded More More options
Print post
Permalink
My quick-and-dirty solution:

In build/tmpl/editions/build.xml, in the "compile" macrodef, I added
target="1.5" to the javac task. Right now, only the "compiler" attribute
is set.

It seems to me that this is expected behavior. Reading the Ant
documentation, I see that "target" is not dependent on "compiler", but
inferred from the running VM.

I recommend adding the "target" attribute, and possibly removing the
"compiler" attribute.

-Tal

On 10/05/2009 11:37 PM, Tal Liron wrote:
> Recent svn builds have been compiling for Java 1.6, because, I guess,
> it's the default for my system. How do I force 1.5? Is there something
> I should add to custom.properties?
>
> By the way, svn does not build at this moment. Lots of errors with the
> httpclient extension, and a POM missing for JAAS.
>
> -Tal

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=2404620
jlouvel

RE: Java 1.5

Reply Threaded More More options
Print post
Permalink
Hi Tal,

Thanks for the suggestion. I've just made the change in SVN trunk.

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com


-----Message d'origine-----
De : Tal Liron [mailto:[hidden email]]
Envoyé : mercredi 7 octobre 2009 20:19
À : [hidden email]
Objet : Re: Java 1.5

My quick-and-dirty solution:

In build/tmpl/editions/build.xml, in the "compile" macrodef, I added
target="1.5" to the javac task. Right now, only the "compiler" attribute
is set.

It seems to me that this is expected behavior. Reading the Ant
documentation, I see that "target" is not dependent on "compiler", but
inferred from the running VM.

I recommend adding the "target" attribute, and possibly removing the
"compiler" attribute.

-Tal

On 10/05/2009 11:37 PM, Tal Liron wrote:
> Recent svn builds have been compiling for Java 1.6, because, I guess,
> it's the default for my system. How do I force 1.5? Is there something
> I should add to custom.properties?
>
> By the way, svn does not build at this moment. Lots of errors with the
> httpclient extension, and a POM missing for JAAS.
>
> -Tal

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=24046
20

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=2409319