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

  2. ion

    ion Guest

    ion, Apr 28, 2005
    #2
    1. Advertisements

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

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. Phil Hanna
    Replies:
    0
    Views:
    11,360
    Phil Hanna
    Jul 1, 2003
  2. Chris Bedford
    Replies:
    6
    Views:
    2,607
  3. Matthew Zimmer

    Ant, SQL, and variables

    Matthew Zimmer, Jul 27, 2004, in forum: Java
    Replies:
    0
    Views:
    5,748
    Matthew Zimmer
    Jul 27, 2004
  4. john martin
    Replies:
    2
    Views:
    2,447
    john martin
    Apr 7, 2005
  5. Replies:
    1
    Views:
    783
    Larry
    Mar 7, 2006
  6. coltrane

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

    coltrane, Jun 14, 2006, in forum: Java
    Replies:
    3
    Views:
    60,316
    jeeeff
    Jun 3, 2009
  7. Replies:
    6
    Views:
    1,158
  8. Replies:
    9
    Views:
    1,309
Loading...