jvff / gradle Goto Github PK
View Code? Open in Web Editor NEWThis project forked from gradle/gradle
A powerful build system for the JVM
Home Page: gradle.org
License: Apache License 2.0
This project forked from gradle/gradle
A powerful build system for the JVM
Home Page: gradle.org
License: Apache License 2.0
The doVisit() method keeps track of the relative path in a LinkedList and uses an integer to track the segment index. Because integers aren't stored in the heap (they are immutable), it can't be stored as a final method variable to be used in the SymlinkAwareFileVisitor anonymous class instance. The workaround used was to simply use the relative path list size, but this might not be optimal.
Need to see if this is necessary. If so, one solution would be to add a method overload for visitTreeOrBackingFile(SymlinkAwareFileVisitor)
and then update AbstractFileTree
and CompositeFileTree
.
Do both really treat them as normal files?
Jdk7DirectoryWalker
by default follows all links. Need to see if this behaviour should be kept, and then make all implementations that have both a visit(FileVisitor)
and a visit(SymlinkAwareFileVisitor)
methods consistent.
Some classes use NIO to detect if a File
is a symbolic link or not, maybe this should use a FileSystem
instance instead to not be dependent on Java 7.
Classes:
AbstractFileTreeElement
DefaultFileTreeElement
DefaultDirectoryWalker
DirectoryFileTree
SingletonFileTree
SingleIncludePatternFileTree
An example is a Tar file. It is read as a stream, and the stream file entries can be symbolic links. When visiting, the file entries are visited in the stream order. The problem arises when a symbolic link is read and the symbolic link strategy is set to follow. A couple of situations can appear:
Need to consider how to handle these situations.
If a symlink is traversed twice, stop traversal. Handling what to do next is an open question. Treat it as a normal file? Ignore it? Fail?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.