[jboss-dev-forums] [Design of POJO Server] - Re: BSH script from client
alesj
do-not-reply at jboss.com
Fri Dec 14 14:18:18 EST 2007
"scott.stark at jboss.org" wrote : The .bsh suffix needs to be added to the FileStructure in order for these scripts to be recognized as deployable
|
This is added via FileMatcher.
| public class LegacyBeanShellDeployer extends AbstractVFSParsingDeployer<BeanShellScript> implements FileMatcher
|
Where FileStructure has this:
| @Install
| public boolean addFileMatcher(FileMatcher fm)
| {
| return fileMatchers.add(fm);
| }
|
| @Uninstall
| public boolean removeFileMatcher(FileMatcher fm)
| {
| return fileMatchers.remove(fm);
| }
|
and
| protected boolean checkFileMatchers(VirtualFile file)
| {
| for(FileMatcher fm : fileMatchers)
| {
| if (fm.isDeployable(file))
| return true;
| }
| return false;
| }
|
So, by what you're saying, this is should already work. :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113054#4113054
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113054
More information about the jboss-dev-forums
mailing list