Hi,

Try this code :

<goal name="release">
    <maven:set plugin="maven-java-plugin" property="maven.compile.debug"
value="off" />
    <maven:get plugin="maven-java-plugin" property="maven.compile.debug"
var="debugMode"/>
    <ant:echo>maven.compile.debug=${debugMode}</ant:echo>
    <attainGoal name="jar" />
</goal>

Emmanuel

----- Original Message ----- 
From: "Gunter Matella" <[EMAIL PROTECTED]>
To: "Maven Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 09, 2004 10:12 AM
Subject: switch compiler debug on/off in Java


> Hello all,
>
> can anybody give me a hint, how to sitwch on off the generation of
> debugging code using the java compiler ?
>
> I have written a small goal to create release output (debug = on seems
> to be the default behavior):
>
>   <goal name="release">
>     <maven:set plugin="maven-java-plugin"
>     property="maven.compile.debug" value="off" />
>
>     <ant:echo>maven.compile.debug=${maven.compile.debug}</ant:echo>
>
>     <attainGoal name="jar" />
>   </goal>
>
> But it seems not having any effect on the compiled code (still with
> debugging information).
>
> Any idea?
>
>
> Greetings,
>
> Gunter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to