Package net.rim.tumbler.exception

Examples of net.rim.tumbler.exception.PackageException


        // Copy templates
        try {
            TemplateWrapper templateWrapper = new TemplateWrapper( _bbwpProperties );
            _outputFiles.addAll( templateWrapper.writeAllTemplates( SessionManager.getInstance().getSourceFolder() ) );
        } catch( IOException ex ) {
            throw new PackageException( "EXCEPTION_IO_TEMPLATES" );
        }

        // Extract archive
        String sourceFolder = SessionManager.getInstance().getSourceFolder();
        ZipFile zip = new ZipFile( new File( SessionManager.getInstance().getWidgetArchive() ).getAbsolutePath() );
View Full Code Here


            fos.write( fileToWrite );
            fos.close();

            _outputFiles.add( s );
        } catch( Exception e ) {
            throw new PackageException( e, relativeFile );
        }
    }
View Full Code Here

        ZipFile zipFile;

        // Check for file's existence
        if( !codFile.exists() )
            throw new PackageException( "EXCEPTION_COD_NOT_FOUND" );

        boolean containsSiblingCods;

        try {
            zipFile = new ZipFile( codFile );
View Full Code Here

         
          for (Extension e : dependencies) {
            if (!_inProgressStack.contains(e.getId())) {
              deps.add(e.getId());
            } else {
              throw new PackageException("EXCEPTION_CIRCULAR_DEPENDENCY", e.getId());
            }
          }
         
          resolve(deps);
        }
       
        _inProgressStack.pop();
      } else {
        throw new PackageException("EXCEPTION_EXTENSION_NOT_FOUND", extId);
      }     
    }
  }
View Full Code Here

        _widgetArchive = getAbsolutePath( input1 );
        _archiveName = parseWidgetName( _widgetArchive );

        Pattern patternWidgetName = Pattern.compile( "[a-zA-Z][a-zA-Z0-9]*" );
        if( !patternWidgetName.matcher( _archiveName ).matches() ) {
            throw new PackageException( "EXCEPTION_INVALID_ARCHIVE_NAME" );
        }

        // Parse options
        try {
            parseOptionParameters( inputParams );
View Full Code Here

                    }
                }
            }
           
            if (_configXML.length == 0) {
                throw new PackageException("EXCEPTION_CONFIGXML_MISSING");
            }
        }
        catch (FileNotFoundException fnfe) {
            // Already validated for existence of archive file - never get here
            Logger.logMessage(LogType.FATAL, "EXCEPTION_WIDGET_ARCHIVE_NOT_FOUND");
        }
        catch (IOException ioe) {
            throw new PackageException("EXCEPTION_ARCHIVE_IO", ioe);
        }
    }
View Full Code Here

        File f = new File( archive );
        ZipFile zipFile;

        // Check for file's existence
        if( !f.exists() ) {
            throw new PackageException( "EXCEPTION_WIDGET_ARCHIVE_NOT_FOUND" );
        } else {
            try {
                zipFile = new ZipFile( f );
                zipFile.close();
            } catch( Exception e ) {
                throw new PackageException( "EXCEPTION_ARCHIVE_IO" );
            }
        }
    }
View Full Code Here

            // run rapc
            Logger.logMessage( LogType.INFO, "PROGRESS_COMPILING" );
            Rapc rapc = new Rapc( bbwpProperties, config, fileManager.getCompiledJARDependencies() );
            if( !rapc.run( fileManager.getFiles() ) ) {
                throw new PackageException( "EXCEPTION_RAPC" );
            }

            // generate ALX
            generateAlxFile( config );
View Full Code Here

        try {
            int signingResult = signingProcess.waitFor();

            // Check whether signing is successful
            if( signingResult != 0 ) {
                throw new PackageException( "EXCEPTION_SIGNING_FAILED" );
            }

            long newModified = ( new File( codFullname ) ).lastModified();
            if( newModified == lastModified ) {
                throw new PackageException( "EXCEPTION_SIGNING_FAILED" );
            }
        } catch( InterruptedException e ) {
            throw e;
        }
    }
View Full Code Here

                lib = OSUtils.replaceWithForwardSlash( lib );
            }
            if( new File( lib ).exists() ) {
                result.add( lib );
            } else {
                throw new PackageException( "EXCEPTION_LIBRARY_NOT_FOUND", lib );
            }
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of net.rim.tumbler.exception.PackageException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.