le dim 22-09-2002 � 01:36, Ben Walding a �crit :
> As I understand things, if I use the java plugin (java:compile) I can 
> only set the properties that are available to the plugin. 
> eg. maven.compile.debug etc
> 
> Am I out of luck if I want the plugin to set the source (1.3 / 1.4) 
> parameter for the compile task. (I use assert (rightly or wrongly) and 
> my code won't compile unless I specify source="1.4" to the javac task).

Same problem here. I just went ahead and created two new properties in
the javac task from the java:compile goal.

 <javac
         destdir="${maven.build.dest}"
         excludes="**/package.html"
-->      source="${dgarnier.java.source}"
-->      target="${dgarnier.java.target}"
         debug="${maven.compile.debug}"
         deprecation="${maven.compile.deprecation}"
         optimize="${maven.compile.optimize}">
      <src>
        <path refid="maven.compile.src.set"/>
      </src>

Then I can set theses properties just like Maven's properties.

Best Regards,
David Garnier

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to