cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject Re: block-compile doesn't use source.vm property
Date Tue, 28 Feb 2006 08:25:08 GMT
Jean-Baptiste Quenot wrote:
> * Andreas Hartmann:
>> the block-compile macro doesn't use the source.vm property.
>> Is this intentional?
>>
>>
>>       <javac destdir="${{build.blocks}}/@{{name}}/dest"
>>              debug="${{compiler.debug}}"
>>              optimize="${{compiler.optimize}}"
>>              deprecation="${{compiler.deprecation}}"
>> +            source="${{source.vm}}"
>>              target="${{target.vm}}"
>>              nowarn="${{compiler.nowarn}}"
>>              compiler="${{compiler}}">
> 
> Hello,
> 
> What's this variable used for?

It determines the version of the Java source (1.2, 1.3, 1.4, ...).

I have a block which contains assert statements, and it won't compile
with the default setting. If I add the javac source attribute, it works.

-- Andreas



-- 
Andreas Hartmann
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
andreas.hartmann@wyona.com                     andreas@apache.org


Mime
View raw message