List Info

Thread: contrib build.xml and java 1.5 in tests




contrib build.xml and java 1.5 in tests
country flaguser name
Sweden
2007-10-15 10:31:22
I have problems getting this build.xml of mine to accept
java 1.5 in  
tests. I compiles the source with generics and all that just
fine,  
but the tests fail with the error javac -source 1.4 is set.
Well..

<project name="didyoumean"
default="default">

   <description>
     Extended spell checker with phrase support and adaptive
user  
session analysis.
   </description>

   <import file="../contrib-build.xml"/>

   <property name="javac.source"
value="1.5" />
   <property name="javac.target"
value="1.5" />

</project>


What more do I need to do? I see that gdata use 1.5, but I
can't  
figure out what it does that I do not.



-- 
karl

------------------------------------------------------------
---------
To unsubscribe, e-mail: java-dev-unsubscribelucene.apache.org
For additional commands, e-mail: java-dev-helplucene.apache.org


Re: contrib build.xml and java 1.5 in tests
country flaguser name
United States
2007-10-15 11:03:30
Set the properties *before* importing contrib-build.xml. 
Ant  
properties are first come first serve, so you have to be
sure to set  
the value you want before to "override" them,
interestingly.

	Erik

On Oct 15, 2007, at 11:31 AM, Karl Wettin wrote:

> I have problems getting this build.xml of mine to
accept java 1.5  
> in tests. I compiles the source with generics and all
that just  
> fine, but the tests fail with the error javac -source
1.4 is set.  
> Well..
>
> <project name="didyoumean"
default="default">
>
>   <description>
>     Extended spell checker with phrase support and
adaptive user  
> session analysis.
>   </description>
>
>   <import
file="../contrib-build.xml"/>
>
>   <property name="javac.source"
value="1.5" />
>   <property name="javac.target"
value="1.5" />
>
> </project>
>
>
> What more do I need to do? I see that gdata use 1.5,
but I can't  
> figure out what it does that I do not.
>
>
>
> -- 
> karl
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: java-dev-unsubscribelucene.apache.org
> For additional commands, e-mail: java-dev-helplucene.apache.org


------------------------------------------------------------
---------
To unsubscribe, e-mail: java-dev-unsubscribelucene.apache.org
For additional commands, e-mail: java-dev-helplucene.apache.org


Re: contrib build.xml and java 1.5 in tests
country flaguser name
Sweden
2007-10-15 19:49:01
Thanks!

15 okt 2007 kl. 18.03 skrev Erik Hatcher:

> Set the properties *before* importing
contrib-build.xml.  Ant  
> properties are first come first serve, so you have to
be sure to  
> set the value you want before to "override"
them, interestingly.
>
> 	Erik
>
> On Oct 15, 2007, at 11:31 AM, Karl Wettin wrote:
>
>> I have problems getting this build.xml of mine to
accept java 1.5  
>> in tests. I compiles the source with generics and
all that just  
>> fine, but the tests fail with the error javac
-source 1.4 is set.  
>> Well..
>>
>> <project name="didyoumean"
default="default">
>>
>>   <description>
>>     Extended spell checker with phrase support and
adaptive user  
>> session analysis.
>>   </description>
>>
>>   <import
file="../contrib-build.xml"/>
>>
>>   <property name="javac.source"
value="1.5" />
>>   <property name="javac.target"
value="1.5" />
>>
>> </project>
>>
>>
>> What more do I need to do? I see that gdata use
1.5, but I can't  
>> figure out what it does that I do not.
>>
>>
>>
>> -- 
>> karl
>>
>>
------------------------------------------------------------
---------
>> To unsubscribe, e-mail: java-dev-unsubscribelucene.apache.org
>> For additional commands, e-mail: java-dev-helplucene.apache.org
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: java-dev-unsubscribelucene.apache.org
> For additional commands, e-mail: java-dev-helplucene.apache.org
>


------------------------------------------------------------
---------
To unsubscribe, e-mail: java-dev-unsubscribelucene.apache.org
For additional commands, e-mail: java-dev-helplucene.apache.org


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )