You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Raphael Philipe Mendes da Silva <rs...@cpqd.com.br> on 2004/10/01 20:17:16 UTC

Loading Plugins info

Hi,
I'm creating a plugin that create a file with all information about a projetc, the machine that it was builded, the user who build it. Now i'm trying to catch all instaled plugins versions and names.
The plugins.cache file located at $USER/.mavem/cache have all this information with another dispensable information, therefore I need to filter it.
The peace of code below put all the plugins.cache file in the pluginsText var.
	   <util:file var="pluginsFile" name="${user.home}/.maven/cache/plugins.cache"/>
	   <util:loadText var="pluginsText" file="${pluginsFile}"/>
The question is, i cant filter it becouse i cant separete the lines. I need to create a list that each element is a line. I have tried to use<util:tokenize var="pluginsList" delim="\n">${pluginsText}</util:tokenize> but it can't separete the lines. Someone can help-me? Someone have another way to catch the plugins informations?

Thanks


Raphael Philipe Mendes da Silva
DSB - Diretoria de Soluções em Billing
CPqD Telecom & IT Solutions
Tel.: +55 19 3705-6957
www.cpqd.com.br
rsilva@cpqd.com.br


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org