The problem with relying on javac is that if you do a "clean"-type step as part of the process (deleting old files) it's always going to have to go through a complete rebuild process.

By "multiple targets from the command line" do you mean just having a choice of targets, or actually supplying more than one at a time? The way the tutorial targets are set up I was expecting people to just do "ant exampleX" the first time, then do "ant runX" after that as long as they were using the same binding (but with different data), not run both with a single ant command. The "exampleX" target includes running the example code after it's compiled and bound, so doing "runX" at the same time just runs it twice.

Hope that makes it clear.

- Dennis

Eitan Suez wrote:

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.






-------------------------------------------------------
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