Converting Path to Fileset problem
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mike_O
Posted On:   Friday, November 2, 2007 09:18 AM

What I am trying to do is have the user specify in an external properties file any jar files needed in the compilation process. Since a folder may contain several jar files, I thought it would be simpler to have the user just specify the folder that jar file is in. The user can specify several folders in the property in this format: classpath.jar.include=lib;libext;libconfig However, if I just include that string in a path like: then the jar files are not found. So what I wanted to do was convert this path into a fileset, which would include the jar files. However, I am unable to get the pathtoconvert task to work properly for some reason. When I am de   More>>

What I am trying to do is have the user specify in an external properties file any jar files needed in the compilation process. Since a folder may contain several jar files, I thought it would be simpler to have the user just specify the folder that jar file is in. The user can specify several folders in the property in this format:



			
classpath.jar.include=lib;libext;libconfig




However, if I just include that string in a path like:



			





then the jar files are not found. So what I wanted to do was convert this path into a fileset, which would include the jar files. However, I am unable to get the pathtoconvert task to work properly for some reason. When I am debugging the script, it seems that the fileset that is made from the pathtoconvert task is empty.



If the classpath.jar.include property is set to C:a cdlib;C:a cdlibext (for example), would the following pathtofileset task be correct?



			






I am also assuming that the fileset.jar.include value set for the name attribute is now the refid for that fileset. Would I use that handle in a similar fashion to this?

			








What am I doing wrong? Am I even on the right track? Thanks in advance.    <<Less
About | Sitemap | Contact