ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "KARR, DAVID (ATTCINW)" <dk0...@att.com>
Subject RE: How to print out resulting classpath from a classpath variable?
Date Fri, 11 Dec 2009 17:15:33 GMT
> -----Original Message-----
> From: Knuplesch, Juergen [mailto:Juergen.Knuplesch@icongmbh.de]
> Sent: Friday, December 11, 2009 9:04 AM
> To: Ant Users List
> Subject: AW: How to print out resulting classpath from a classpath
> variable?
> 
> Hello
> 
> By the way: I use ant4eclipse to get the same classpath as Eclipse.

Understood, but I think that's the wrong approach.  I think the command line build should
be most important, and we do what we have to do to get the Eclipse build working from that.
 In any case, it's my command-line build that's working, it's the Eclipse build that's failing.

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

This worked perfectly, thanks.

It didn't help me figure out what the problem was, but this part worked at least.  The classpath
came out exactly as I expected, and it was the same on the command line and Eclipse, but for
some reason when it runs in Eclipse it fails to find the "persistence.xml" file, which is
stored in one of the classpath entries.

I might post a separate note on this issue.

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


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


Mime
View raw message