Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Dumping target configuration for fast reload

Just an additional link
It failes on org.eclipse.tycho.packaging.FeatureXmlTransformer.getInstallSize(FeatureXmlTransformer.java:125)
Looking at the code of Tycho [1], Tycho packaging seems to try to make a "JarFile jar = new JarFile(location);" on my UML model.
Is it possible to filter on jar files on the side of tycho?
Or is there a way to remove y uml files from the Tycho packaging?

Thanks again

Francois


[1] CODE
protected long getInstallSize(File location) {
120	
        long installSize = 0;
121	
        FileLocker locker = fileLockService.getFileLocker(location);
122	
        locker.lock();
123	
        try {
124	
            try {
125	
                JarFile jar = new JarFile(location);
126	
                try {
127	
                    Enumeration<JarEntry> entries = jar.entries();
128	
                    while (entries.hasMoreElements()) {
129	
                        JarEntry entry = entries.nextElement();
130	
                        long entrySize = entry.getSize();
131	
                        if (entrySize > 0) {
132	
                            installSize += entrySize;
133	
                        }
134	
                    }
135	
                } finally {
136	
                    jar.close();
137	
                }
138	
            } catch (IOException e) {
139	
                throw new RuntimeException("Could not determine installation size of file " + location, e);
140	
            }
141	
        } finally {
142	
            locker.release();
143	
        }
144	
        return installSize;
145	
    }  

-----Message d'origine-----
De : tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] De la part de LE FEVRE FRANCOIS
Envoyé : mardi 5 avril 2016 15:42
À : Tycho user list <tycho-user@xxxxxxxxxxx>
Objet : [PROVENANCE INTERNET] Re: [tycho-user] Dumping target configuration for fast reload

Thank
It is a good link even if it do not allow to reload the Tycho reactor.
Francois

-----Message d'origine-----
De : tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] De la part de Sievers, Jan Envoyé : mardi 5 avril 2016 12:24 À : Tycho user list <tycho-user@xxxxxxxxxxx> Objet : Re: [tycho-user] Dumping target configuration for fast reload

you may want to check

https://bugs.eclipse.org/bugs/show_bug.cgi?id=363073


if I get it right this is for debug purposes though.

Regards
Jan




On 05/04/16 08:19, "tycho-user-bounces@xxxxxxxxxxx on behalf of LE FEVRE FRANCOIS" <tycho-user-bounces@xxxxxxxxxxx on behalf of francois.le-fevre@xxxxxx> wrote:

>Dear Tycho community,
> 
>I would like to know if there is a way to dump the target resolution done by Tycho.
>For instance, mvn clean verify –Dtycho.targetplatform.dump=true And 
>then to reload it, with something like mvn clean verify 
>–Dtycho.targetplatform.reload=true
> 
>It will create at each pom level a hidden file with the initial resolution.
> 
>The main idea is to speed up the resolving phase for huge/complex projet.
>Actually the computing target platform/resolving dependencies/resolving class path could be the major period in the whole process.
>Many times developers do not change the target/depencies etc…, they just add functions that do not have any impact on the resolution phase, isn’t it?
> 
> 
>Thanks for your comment on this idea, that’s perhaps is not possible.
> 
>Francois
>
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/tycho-user

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Back to the top