ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knuplesch, Juergen" <Juergen.Knuple...@icongmbh.de>
Subject AW: How to print out resulting classpath from a classpath variable?
Date Fri, 11 Dec 2009 17:03:57 GMT
Hello

By the way: I use ant4eclipse to get the same classpath as Eclipse.

I do it this way (I think Steve showed me that):
classpath is a refid of a path


    <!-- den Klassenpfad druckbar machen -->
    <pathconvert pathsep="${line.separator}|   |-- "
                 property="echo.compile.classpath"
                 refid="classpath">
    </pathconvert>
    <!-- Klassenpfad ausgeben -->
    <echo level="info" message="--------------------------------------------------------"/>
    <echo level="info" message=" Property Classpath="/>
    <echo level="info" message="|   |-- ${echo.compile.classpath}"/>
    <echo level="info" message="--------------------------------------------------------"/>



-- 
J├╝rgen Knuplesch 
-----Urspr├╝ngliche Nachricht-----
Von: KARR, DAVID (ATTCINW) [mailto:dk068x@att.com] 
Gesendet: Freitag, 11. Dezember 2009 17:58
An: user@ant.apache.org
Betreff: How to print out resulting classpath from a classpath variable?

I'm trying to debug a problem with an Ant script executing differently between the command
line and Eclipse.  It comes down to Eclipse not seeming to get the same classpath as on the
command line.  I define the classpath that a task (OpenJPA PCTaskEnhancer) needs with an embedded
"classpath" element.  It might be useful if I could print out the resulting classpath according
to that classpath variable and see if it looks differently on the command line and Eclipse.

Is there some way I can print out the resulting contents of a classpath according to a saved
"path" element?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message