Debuging Ant classpath issues

Ray Augé
Ray Augé
Less Than a Minute Read

When working with Liferay, sometimes you might encounter classpath issues during ant builds.

I have a little trick which may help.

It's a small bit of xml that you can add to a target which dumps a classpath by refid:

 

 <property name="debug.classpath" refid="service.classpath"/>
            
 <for list="${debug.classpath}" delimiter=":" param="cur">
     <sequential>
         <echo>@{cur}</echo>
     </sequential>
 </for>

 

That's it! Short and sweet.

Page Comments

The Technicalities of Static Sites

David Oliveira Montenegro
View Blog >

Customization is Dead! Long Live Customization!

David H Nebinger
View Blog >
customization banner image.png

Public Bug Bounty Program

David H Nebinger
View Blog >
bugbounty.png
Showing 1 to 3 of 3 entries.