Replies: 1 comment 8 replies
-
The cache is part of P2 (see CacheManager) what might call the Tycho transport to cache unknown transport types. How caching works is highly depending on the protocol, e.g. HTTP works completely different than FTP, so as long as you only test with Http the super will never be called. In all other cases it calls back to the transport and probably download the file. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Why have this piece of code, for example:
tycho/p2-maven-plugin/src/main/java/org/eclipse/tycho/p2maven/transport/TychoRepositoryTransportCacheManager.java
Lines 45 to 53 in df4dab7
When
tycho/p2-maven-plugin/src/main/java/org/eclipse/tycho/p2maven/transport/TychoRepositoryTransportCacheManager.java
Line 62 in df4dab7
is going to call
handler.getLastModified
andhandler.getFile
at some point?tycho/p2-maven-plugin/src/main/java/org/eclipse/tycho/p2maven/transport/TychoRepositoryTransport.java
Lines 139 to 148 in 3db882d
It would seem like we have another cache implementations for nothing. But maybe I'm missing something.
Because of this, I have to implement another cache for FTP while it seems there is already one in the background.
Beta Was this translation helpful? Give feedback.
All reactions