Dimitris Mouchritsas schrieb:
What I'd like to accomplish is checking if build.properties exists (which loadproperties ensures) and then check to see if a set of properties is set. If a property is missing I'd like to display a message with
the name of the property missing.

What are your thoughts?

?!
as you've already said, <loadfile .. /> assures
that the build.properties exists, otherwise your build will
fail

the echo if ${someproperty} is missing you will get with
something like =

<target name="foobar" unless="someproperty">
  <echo>WARNING => $${someproperty} not set !!</echo>
<target>

if you need more reaction, you have to use <condition>
or <assert> from antcontrib

btw, if you need to do more complicated stuff with properties
you should have a look on AntXtras, they have assert, fixturechecks,
one example that would suit to your needs =
http://antxtras.sourceforge.net/AntXtras/docs/howto/fix_chk_properties.html

Regards, Gilbert


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

Reply via email to