ant inherifRefs & echo for variables

Discussion in 'Java' started by ion, Apr 28, 2005.

  1. ion

    ion Guest

    Hi! I'd like to see what ant thinks a variable value is.
    <echo>${varname}</echo> just shows me the literal '${varame}'. I was
    hoping there was some way to resolve it.
    The reason I want to do this is that delegate build.xml's don't seem to
    be inheriting refs
    <ant dir="subfolder" inheritAll="false" inheritRefs="true"/> doesn't
    seem to be working for me. I'm trying to pass a class path down to the
    build file that actually compiles. Is this possible? Is there a common
    pitfall I'm probably falling into?
    ion, Apr 28, 2005
    #1
    1. Advertising

  2. ion

    ion Guest

    ion, Apr 28, 2005
    #2
    1. Advertising

  3. ion

    ion Guest

    OK, this seems to work:

    <pathconvert pathsep="," property="javafiles" refid="CPATH"/>
    <echo message="${javafiles}"/>

    Of course, now I don't like what it's telling me.
    ion, Apr 28, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris Bedford
    Replies:
    6
    Views:
    2,206
  2. john martin
    Replies:
    2
    Views:
    2,198
    john martin
    Apr 7, 2005
  3. Replies:
    1
    Views:
    479
    Larry
    Mar 7, 2006
  4. coltrane

    ant - howto echo <path id=...>

    coltrane, Jun 14, 2006, in forum: Java
    Replies:
    3
    Views:
    57,750
    jeeeff
    Jun 3, 2009
  5. Replies:
    6
    Views:
    845
Loading...

Share This Page