"scott.stark(a)jboss.org" wrote : I guess so. Add a testcase to the mc project.
Done (but not yet commited).
But only root.bsh gets picked up, as your example did.
If it's like as it is in interceptors-beans.sar/jmx/interceptors/scripts/myscript.bsh,
then it's not picked up, since jmx directory is not recognized.
Structure:
| - nmd.jar
| - jmx
| - interceptors
| - scripts
| - myscript.bsh
| - META-INF
| - root.bsh
|
Log:
| org.jboss.test.deployers.vfs.deployer.nonmetadata.test.MockBshDeployerTestCase
| 0 DEBUG [MockBshDeployerTestCase] ==== Starting testBshNonMetadataDeploy ====
| 31 DEBUG [VFSStructuralDeployersImpl] Added structure deployer
org.jboss.deployers.vfs.plugins.structure.jar.JARStructure@911f71
| 47 DEBUG [VFSStructuralDeployersImpl] Added structure deployer
org.jboss.deployers.vfs.plugins.structure.file.FileStructure@1eec612
| 78 DEBUG [DeployersImpl] Added stage Not Installed before null
| 78 DEBUG [DeployersImpl] Added stage Parse before ControllerState@84abc9{PreInstall}
| 78 DEBUG [DeployersImpl] Added stage Describe before
ControllerState@84abc9{PreInstall}
| 78 DEBUG [DeployersImpl] Added stage ClassLoader before
ControllerState@84abc9{PreInstall}
| 78 DEBUG [DeployersImpl] Added stage PostClassLoader before
ControllerState@84abc9{PreInstall}
| 78 DEBUG [DeployersImpl] Added stage Real before ControllerState@84abc9{PreInstall}
| 78 DEBUG [DeployersImpl] Added stage Installed before
ControllerState@84abc9{PreInstall}
| 109 DEBUG [DeployersImpl] Added deployer
org.jboss.test.deployers.vfs.deployer.nonmetadata.support.MockBshDeployer@bfbdb0 for stage
Parse
|
org.jboss.test.deployers.vfs.deployer.nonmetadata.support.MockBshDeployer@bfbdb0{inputs=[]
outputs=[org.jboss.test.deployers.vfs.deployer.nonmetadata.support.BshScript]}
|
| 188 DEBUG [MainDeployerImpl] Add deployment:
vfsfile:/C:/projects/microcontainer/deployers-vfs/target/tests-classes/nonmetadata/nmd.jar/
| 188 TRACE [VFSStructuralDeployersImpl] Determining structure for nmd.jar
deployers=[org.jboss.deployers.vfs.plugins.structure.jar.JARStructure@911f71,
org.jboss.deployers.vfs.plugins.structure.file.FileStructure@1eec612]
| 234 TRACE [JARStructure] Not using metadata path META-INF for nmd.jar reason: File
does not exist:
C:\projects\microcontainer\deployers-vfs\target\tests-classes\nonmetadata\nmd.jar\META-INF
| 234 TRACE [JARStructure] Added context ContextInfoImpl{path= metaData=[]
classPath=null} from nmd.jar
| 234 DEBUG [VFSUtils] Can't find manifest for nmd.jar
| 234 TRACE [JARStructure] Added classpath entry for nmd.jar from
FileHandler(a)3541984[path=nmd.jar
context=file:/C:/projects/microcontainer/deployers-vfs/target/tests-classes/nonmetadata
real=file:/C:/projects/microcontainer/deployers-vfs/target/tests-classes/nonmetadata/nmd.jar/]
| 250 TRACE [VFSStructuralDeployersImpl] Determining structure for jmx
deployers=[org.jboss.deployers.vfs.plugins.structure.jar.JARStructure@911f71,
org.jboss.deployers.vfs.plugins.structure.file.FileStructure@1eec612]
| 266 TRACE [JARStructure] ... no - doesn't look like a jar and no META-INF
subdirectory.
| 266 TRACE [JARStructure] Not recognised: jmx
| 266 TRACE [FileStructure] ... no - not a file.
| 266 TRACE [FileStructure] Not recognised: jmx
| 266 TRACE [VFSStructuralDeployersImpl] jmx not recognised
| 266 TRACE [VFSStructuralDeployersImpl] Determining structure for root.bsh
deployers=[org.jboss.deployers.vfs.plugins.structure.jar.JARStructure@911f71,
org.jboss.deployers.vfs.plugins.structure.file.FileStructure@1eec612]
| 266 TRACE [JARStructure] ... no - not a directory or an archive.
| 266 TRACE [JARStructure] Not recognised: root.bsh
| 266 TRACE [FileStructure] FileHandler(a)7051261[path=nmd.jar/root.bsh
context=file:/C:/projects/microcontainer/deployers-vfs/target/tests-classes/nonmetadata
real=file:/C:/projects/microcontainer/deployers-vfs/target/tests-classes/nonmetadata/nmd.jar/root.bsh]
is a leaf
| 266 TRACE [FileStructure] ... ok - not a top level file but it is a known name
| 266 TRACE [FileStructure] Added context ContextInfoImpl{path= metaData=[]
classPath=null} from root.bsh
| 266 TRACE [FileStructure] FileHandler(a)7051261[path=nmd.jar/root.bsh
context=file:/C:/projects/microcontainer/deployers-vfs/target/tests-classes/nonmetadata
real=file:/C:/projects/microcontainer/deployers-vfs/target/tests-classes/nonmetadata/nmd.jar/root.bsh]
isFile: true
| 281 TRACE [FileStructure] Recognised: root.bsh
| 281 TRACE [VFSStructuralDeployersImpl] root.bsh recognised by
org.jboss.deployers.vfs.plugins.structure.file.FileStructure@1eec612
| 281 TRACE [JARStructure] Recognised: nmd.jar
| 281 TRACE [VFSStructuralDeployersImpl] nmd.jar recognised by
org.jboss.deployers.vfs.plugins.structure.jar.JARStructure@911f71
| 281 TRACE [VFSStructureBuilder] Populating deployment
vfsfile:/C:/projects/microcontainer/deployers-vfs/target/tests-classes/nonmetadata/nmd.jar/
metaData=StructureMetaDataImpl{contexts=[ContextInfoImpl{path= metaData=[]
classPath=[ClassPathEntryImpl{path=}]}, ContextInfoImpl{path=root.bsh metaData=[]
classPath=null}]}
| 297 TRACE [VFSStructureBuilder] Apply context:
vfsfile:/C:/projects/microcontainer/deployers-vfs/target/tests-classes/nonmetadata/nmd.jar/
ContextInfoImpl{path= metaData=[] classPath=[ClassPathEntryImpl{path=}]}
| 297 TRACE [VFSStructureBuilder] Resolving classpath entry ClassPathEntryImpl{path=}
for
vfsfile:/C:/projects/microcontainer/deployers-vfs/target/tests-classes/nonmetadata/nmd.jar/
| 313 TRACE [AbstractVFSDeploymentContext] ClassPath for nmd.jar is nmd.jar
| 313 TRACE [VFSStructureBuilder] Populating Context
vfsfile:/C:/projects/microcontainer/deployers-vfs/target/tests-classes/nonmetadata/nmd.jar/
metaData=StructureMetaDataImpl{contexts=[ContextInfoImpl{path= metaData=[]
classPath=[ClassPathEntryImpl{path=}]}, ContextInfoImpl{path=root.bsh metaData=[]
classPath=null}]}
| 313 TRACE [VFSStructureBuilder] Apply context:
vfsfile:/C:/projects/microcontainer/deployers-vfs/target/tests-classes/nonmetadata/nmd.jar/root.bsh
ContextInfoImpl{path=root.bsh metaData=[] classPath=null}
| 313 TRACE [VFSStructureBuilder] Populating Context
vfsfile:/C:/projects/microcontainer/deployers-vfs/target/tests-classes/nonmetadata/nmd.jar/root.bsh
metaData=StructureMetaDataImpl{contexts=[ContextInfoImpl{path= metaData=[]
classPath=null}]}
| 313 DEBUG [MainDeployerImpl] Scheduling deployment:
vfsfile:/C:/projects/microcontainer/deployers-vfs/target/tests-classes/nonmetadata/nmd.jar/
parent=null
| 328 DEBUG [MainDeployerImpl] Scheduling deployment:
vfsfile:/C:/projects/microcontainer/deployers-vfs/target/tests-classes/nonmetadata/nmd.jar/root.bsh
parent=AbstractVFSDeploymentContext@7254922{vfsfile:/C:/projects/microcontainer/deployers-vfs/target/tests-classes/nonmetadata/nmd.jar/}
| 344 TRACE [DeployersImpl] Deployers for Not Installed []
| 344 TRACE [DeployersImpl] Deployers for Not Installed []
| 344 DEBUG [DeployersImpl] Deploying
vfsfile:/C:/projects/microcontainer/deployers-vfs/target/tests-classes/nonmetadata/nmd.jar/
| 344 TRACE [DeployersImpl] Deployers for Parse
[org.jboss.test.deployers.vfs.deployer.nonmetadata.support.MockBshDeployer@bfbdb0]
| 359 TRACE [DeployersImpl] Deployers for Describe []
| 359 TRACE [DeployersImpl] Deployers for ClassLoader []
| 359 TRACE [DeployersImpl] Deployers for PostClassLoader []
| 359 TRACE [DeployersImpl] Deployers for Real []
| 359 TRACE [DeployersImpl] Deployers for PreInstall []
| 359 TRACE [DeployersImpl] Deployers for Described []
| 359 TRACE [DeployersImpl] Deployers for Instantiated []
| 359 TRACE [DeployersImpl] Deployers for Configured []
| 359 TRACE [DeployersImpl] Deployers for Create []
| 359 TRACE [DeployersImpl] Deployers for Start []
| 359 TRACE [DeployersImpl] Deployers for Installed []
| 359 DEBUG [DeployersImpl] Fully Deployed
vfsfile:/C:/projects/microcontainer/deployers-vfs/target/tests-classes/nonmetadata/nmd.jar/
| 375 DEBUG [MockBshDeployerTestCase] testBshNonMetadataDeploy took 375ms
| 375 DEBUG [MockBshDeployerTestCase] ==== Stopping testBshNonMetadataDeploy ====
|
| Process finished with exit code 0
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113115#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...