aBean.setExecute( false );
aBean.setCompile( false );
aBean.setExecute( false );
try {
Repository repo = TopManager.getDefault().getRepository();
LocalFileSystem fsl = new LocalFileSystem( aBean );
// Get the file of the documentation directory.
File fileDocumentation =
new File( stringSDKDirectory + System.getProperty(
"file.separator" ) + "docs" + System.getProperty( "file.separator" )
+ "common" + System.getProperty( "file.separator" ) + "ref" );
if ( fileDocumentation.exists() ) {
fsl.setRootDirectory( fileDocumentation );
if ( repo.findFileSystem( fsl.getSystemName() ) == null ) {
fsl.setHidden( true );
repo.addFileSystem( fsl );
}
}
LocalFileSystem localfilesystem = new LocalFileSystem( aBean );
// Get the file of the helper documentation directory.
File fileDocumentationHelper =
new File( stringSDKDirectory + System.getProperty(
"file.separator" ) + "docs" + System.getProperty( "file.separator" )
+ "java" + System.getProperty( "file.separator" ) + "ref" );
if ( fileDocumentationHelper.exists() ) {
localfilesystem.setRootDirectory( fileDocumentationHelper );
if ( repo.findFileSystem(
localfilesystem.getSystemName() ) == null ) {
localfilesystem.setHidden( true );
repo.addFileSystem( localfilesystem );
}
}
File aFile = new File( stringOfficeDirectory + System.getProperty(
"file.separator") + "program" + System.getProperty(
"file.separator") + "classes" );
String [] aList = aFile.list( new OOExtensionFilter( ".jar" ) );
for(int i = 0; i < aList.length; i++ ) {
JarFileSystem fs = new JarFileSystem();
fs.setJarFile( new File( stringOfficeDirectory
+ System.getProperty(
"file.separator") + "program" + System.getProperty(
"file.separator" ) +"classes"
+ System.getProperty( "file.separator" ) + aList[ i ] ) );
// System.out.println( stringOfficeDirectory
// + System.getProperty(
// "file.separator") + "program" + System.getProperty(
// "file.separator" ) +"classes"
// + System.getProperty( "file.separator" ) + aList[ i ] );
// Set hidden state of the JAR filesystem.
fs.setHidden( true );
if ( repo.findFileSystem( fs.getSystemName() ) == null ) {
repo.addFileSystem( fs );
}
// FileObject fileobject = repo.findResource( "jurt.jar" );
// FileObject fileobject = fs.getRoot();
//