sdx-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE : [sdx-developers] RE : Marche plus :-(


From: Rasik Pandey
Subject: RE : [sdx-developers] RE : Marche plus :-(
Date: Mon, 23 Sep 2002 12:36:14 +0200

J'ai fait une petite modification dans build.xml et je l'ai mise dans
CVS! J'ai deplacé <echo> avec <fail>. Le processus arrete et le message
se montre. Aidez-moi, vérifiez qu'il marche pour vous........

-----Message d'origine-----
De : address@hidden
[mailto:address@hidden De la part de
Martin Sevigny
Envoyé : samedi 21 septembre 2002 18:28
À : address@hidden
Objet : [sdx-developers] RE : Marche plus :-(


Salut,

>  <target name="compile" depends="javacc_check,prepare-src-main"
> description="Compiles the source code" if="javacc.present">
> 
> Or, "javacc.present" est faux. Je ne connais pas trop Ant,
> mais je trouve bizarre que la target "package" qui dépend de 
> "compile" ait pu être exécutée...

Selon la doc Ant 1.5 (section Using Ant ; Targets) :

It should be noted, however, that Ant's depends attribute only specifies
the order in which targets should be executed - it does not affect
whether the target that specifies the dependency(s) gets executed if the
dependent target(s) did not (need to) run. 

Bref, ce n'est pas un bogue de notre build mais un feature ;-)

Il y a une task "fail" :

Exits the current build (just throwing a BuildException), optionally
printing additional information.

The message of the Exception can be set via the message attribute or
character data nested into the element.

Quelque chose comme :

<fail message="Something wrong here."/>

On devrait supprimer le "if" de la target "compile", et plutôt avoir une
autre target ("fail"?) avec un unless="javacc.present" qui contiendrait
simplement un <fail/>. Et compile devrait dépendre de "fail"...

Ou à peu près...

A bientôt,

Martin Sévigny



_______________________________________________
sdx-developers mailing list address@hidden
http://mail.freesoftware.fsf.org/mailman/listinfo/sdx-developers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]