Examples of SVNFichero


Examples of es.juanrak.svn.modelo.SVNFichero

                , (revisionRecibo - 1) //
                , revision);

        for (Object object : collection) {
            SVNFileRevision fileRevision = (SVNFileRevision) object;
            SVNFichero fd = getFichero(fileRevision.getPath(), fileRevision.getRevision());
            if (fd != null) {
//                Log.log("Fichero: " + fd.getAbsolutePath());
//                Log.log("Revision: " + fileRevision.getRevision());
//                Log.log("Path: " + fileRevision.getPath());
            }
View Full Code Here

Examples of es.juanrak.svn.modelo.SVNFichero

    }

    public SVNFichero getFichero(String rutaFichero, long revision) throws Exception {
        controlador.getLogger().log("=> "+repositorio.getRepositoryPath("")+" getFichero(" + rutaFichero + ",revision:" + revision +")");
        File fd = UtilFichero.crearFicheroTemporalParaRevision(rutaFichero, (revision != -1 ? "_" + revision + "_" : "_HEAD_"));
        SVNFichero fichero = new SVNFichero(fd.getAbsolutePath());
        FileOutputStream baos = new FileOutputStream(fd);
        HashMap hm = new HashMap();
        SVNNodeKind nodeKind = repositorio.checkPath( rutaFichero , revision );
       
        repositorio.getFile(rutaFichero, revision, hm, baos);
       

        /*
         * Here the SVNProperty class is used to get the value of the
         * svn:mime-type property (if any). SVNProperty is used to facilitate
         * the work with versioned properties.
         */
        String mimeType = (String) hm.get(SVNProperty.MIME_TYPE);
        fichero.setMimeType( mimeType );

        //EL FICHERO PUEDE SER TRATADO COMO TEXTO.
        fichero.setTipoTexto(SVNProperty.isTextMimeType(mimeType));

         Iterator iterator = hm.keySet().iterator();
        while (iterator.hasNext()) {
            String propertyName = (String) iterator.next();
            String propertyValue = (String) hm.get(propertyName);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.