You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marcel Schutte <ms...@yahoo.co.uk> on 2007/05/03 12:53:59 UTC

Access file resources from ant based plugin

Hello,

I've written an ant based plugin that needs access to file based resources. For example, an xslt task needs a file path to the stylesheet it applies. Simply putting this stylesheet in src/main/resources won't work, because it will end up in the plugin's jar file.

The only way around it I could think of was to find the plugin jar file in the local repository and extracting it to a temp dir. Not the most elegant of solutions. There is a thread on the developers list by Jason about this (http://www.nabble.com/-vote--Allowing-Ant-based-plugins-to-use-file-based-resources-tf2398452s177.html#a6749541). Does anybody know what happened to his suggestion? Has it already been implemented in some way?

Thanks,
Marcel



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: Access file resources from ant based plugin

Posted by zav <xa...@free.fr>.
Hello Marcel and others,

I am really looking for such a feature (access file resources from ant based
plugin). Do you know if it has been implemented, and if yes where can we
find information about it?

Thanks,
Xavier



Marcel Schutte wrote:
> 
> Hello,
> 
> I've written an ant based plugin that needs access to file based
> resources. For example, an xslt task needs a file path to the stylesheet
> it applies. Simply putting this stylesheet in src/main/resources won't
> work, because it will end up in the plugin's jar file.
> 
> The only way around it I could think of was to find the plugin jar file in
> the local repository and extracting it to a temp dir. Not the most elegant
> of solutions. There is a thread on the developers list by Jason about this
> (http://www.nabble.com/-vote--Allowing-Ant-based-plugins-to-use-file-based-resources-tf2398452s177.html#a6749541).
> Does anybody know what happened to his suggestion? Has it already been
> implemented in some way?
> 
> Thanks,
> Marcel
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Access-file-resources-from-ant-based-plugin-tp10302575s177p16698353.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: Access file resources from ant based plugin

Posted by yoyomohan <ch...@gmail.com>.
Hi ,

   I'm stuck in the same problem .pls. can you share the solution for the
problem 'placing and calling scripts [ perl ] from custom ant plugin jar
file' only.
 Thanks in advance..... 



Marcel Schutte wrote:
> 
> Hello,
> 
> I've written an ant based plugin that needs access to file based
> resources. For example, an xslt task needs a file path to the stylesheet
> it applies. Simply putting this stylesheet in src/main/resources won't
> work, because it will end up in the plugin's jar file.
> 
> The only way around it I could think of was to find the plugin jar file in
> the local repository and extracting it to a temp dir. Not the most elegant
> of solutions. There is a thread on the developers list by Jason about this
> (http://www.nabble.com/-vote--Allowing-Ant-based-plugins-to-use-file-based-resources-tf2398452s177.html#a6749541).
> Does anybody know what happened to his suggestion? Has it already been
> implemented in some way?
> 
> Thanks,
> Marcel
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Access-file-resources-from-ant-based-plugin-tp10302575p25793654.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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