you may be right. i need to think about this.

i know that ant javac task is smart enough to know that it doesn't need
to recompile if it's uptodate.  so there's no harm there.  furthermore,
you're recompiling only a single example, not the whole tutorial.

anyhow, i think i'm just not used to specifying multiple targets from
the command line.  i'm getting used to it though.  either way it's
no big deal.  i was just curious to understand the build file design
and you've answered that question.

i do most of my ant work according to what makes sense to me..
that is, i don't have a good feel for the accepted styles or norms.  :-)

thanks, eitan

On May 4, 2004, at 2:10 PM, Dennis Sosnoski wrote:

Hi Eitan,

This is deliberate, so that you can rerun a particular example without going through the whole compile/bind process. If you run ant without a target the output lists all the targets and tells the difference. Do you think this is a bad approach?

- Dennis

Eitan Suez wrote:

hi dennis,

  i noticed that the tutorial build.xml has a number of targets
  called runX to run each of the examples.

each depends on configX,run-example.

  the problem is that run-example does not depend on
  compile and run-bind so the runX targets cannot run
  successfully.  i mean, there is no way for example
  to compile a given example, say example 1, except
  of course, if you list multiple targets in order from the
  command line, as in:

ant config1 compile run-bind run1

  why not simply just make the two dependencies
  explicit, as in:

      <target name="run-bind" depends="compile" ..
      <target name="run-example" depends="run-bind" ..

( then, full-test can also simplify to depends="clean,run-example" .. )

just a suggestion.

thanks, eitan


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users





-- Dennis M. Sosnoski Enterprise Java, XML, and Web Services Training and Consulting http://www.sosnoski.com Redmond, WA 425.885.7197




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to